/* File: freight-agency/assets/css/main.css
   Refactored & Modernized (No SCSS dependency)
*/

:root {
  /* Colors */
  --color-primary: #ef853a;   /* Orange */
  --color-secondary: #082439; /* Dark Navy */
  --color-text-main: #000000;
  --color-text-light: #666666;
  --color-bg-light: #f6f6f6;
  --color-bg-white: #ffffff;
  --color-border: #ef853a;
  --color-accent: #ef853a;
  
  /* Typography */
  --font-main: "Montserrat", sans-serif;
  
  /* Layout */
  --container-width: 1180px;
  --container-large-width: 1280px;
  --gap-standard: 30px;
}

/* Base & Reset */
body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  line-height: 1.4;
  letter-spacing: 0;
}

input,
button,
select,
textarea {
  font-family: var(--font-main);
}

input::placeholder {
  font-family: var(--font-main);
  color: #a2a2a2; /* Fallback/Specific placeholder color */
}

a {
  text-decoration: none;
  color: var(--color-text-main);
  transition: 0.4s;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  font-size: 14px;
}

.container-large {
  width: 100%;
  max-width: var(--container-large-width);
  margin: 0 auto;
  padding: 0 20px;
}

.flex {
  display: flex;
}

.display-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.flex-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.relative {
  position: relative;
}

.image.desktop-part img {
  max-width:100%;
  height:auto;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* Typography Helpers */
h2 {
  font-weight: 700;
  font-size: 2.625rem;
  line-height: 1.2;
}

h2.title {
  font-style: normal;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0;
}

/* Buttons */
.btn,
button.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 30px;
  border: 1px solid var(--color-primary);
  transition: 0.4s;
  border-radius: 0;
  cursor: pointer;
  line-height: normal;
}

.btn:hover,
button.btn:hover {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-second {
  display: inline-block;
  background-color: transparent;
  color: #fff;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 30px;
  border: 1px solid #fff;
  transition: 0.4s;
  line-height: normal;
}

.btn-second:hover {
  background-color: #fff;
  color: var(--color-primary);
}

.btn-read-more,
span.btn-read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: 0.4s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-read-more::after,
span.btn-read-more::after {
  content: url('data:image/svg+xml,<svg width="11" height="9" viewBox="0 0 11 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.68306 0.188289C5.92714 -0.0627628 6.32286 -0.0627628 6.56694 0.188289L10.3169 4.04543C10.561 4.29648 10.561 4.70352 10.3169 4.95457L6.56694 8.81171C6.32286 9.06276 5.92714 9.06276 5.68306 8.81171C5.43898 8.56066 5.43898 8.15363 5.68306 7.90257L8.36612 5.14286L1.125 5.14286C0.779823 5.14286 0.5 4.85504 0.5 4.5C0.5 4.14496 0.779823 3.85714 1.125 3.85714H8.36612L5.68306 1.09743C5.43898 0.846375 5.43898 0.43934 5.68306 0.188289Z" fill="%23D80303"/></svg>');
}

.btn-read-more:hover,
span.btn-read-more:hover {
  color: var(--color-primary);
  opacity: 0.8;
}

/* Form Elements */
select {
  border: 0;
  margin-left: 15px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.75rem;
  padding-left: 0;
  appearance: none;
  background: url('data:image/svg+xml,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 1L5 5L1 1" stroke="%23111827" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 2px center;
  background-size: 10px 6px;
  padding-right: 25px;
  cursor: pointer;
}

.wpcf7-not-valid-tip {
  font-size: 0.85em;
}

/* Sections */

/* Request Track Forms Section Negative Margin */
.home section.request-track-forms-section,
.page-template-service section.request-track-forms-section {
  margin-top: -350px;
}

/* Top Banner */
.page-template-service section.top-banner {
  margin-bottom: 60px;
}

.page-template-service section.top-banner .top-banner-wrapper {
  position: relative;
  background-position: center;
}

.page-template-service section.top-banner .top-banner-wrapper:after {
  content: '';
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, var(--bg-alpha, 0.5));
  left: 0;
  position: absolute;
  top: 0;
}

.page-template-service section.top-banner .top-banner-wrapper .container {
  position: relative;
  z-index: 1;
}

.services-wrapper a .img img {
  max-width:40px;
}

/* Bottom Content */
section.bottom-content {
  background-color: var(--color-bg-light);
  padding: 50px 0;
}

/* Request Forms Wrapper */
section.top-banner .top-banner-wrapper,
section.request-track-forms-section {
  background-color: var(--color-bg-light);
}

section.top-banner .top-banner-wrapper .request-track-forms-wrapper,
section.request-track-forms-section .request-track-forms-wrapper {
  width: 100%;
}

.request-track-forms-wrapper .buttons-row {
  display: flex;
}

.request-track-forms-wrapper .buttons-row button {
  flex: 0 0 50%;
  background-color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  max-height: 77px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 700;
  gap: 18px;
  padding-left: 15px;
  font-family: var(--font-main);
  border-radius: 0;
}

.request-track-forms-wrapper .buttons-row button.active {
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.request-track-forms > div {
  min-height: 300px;
  background-color: var(--color-bg-white);
  display: none;
}

.request-track-forms > div.active {
  display: flex;
}

/* Page Top Line */
.page-top-line {
  height: 237px;
  margin-bottom: 80px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.page-top-line h1 {
  color: #fff;
  font-size: 3.25rem;
  line-height: 1.2;
  padding-top: 15px;
}

/* Meet Our Experts Section */
section.meet-our-experts {
  display: flex;
  justify-content: space-between;
  margin-bottom: 95px;
  font-size: 1.25rem;
  line-height: 1.4;
}

section.meet-our-experts > * {
  flex: 1;
}

section.meet-our-experts h2 {
  margin: 0;
}

section.our-experts ul.positions {
  padding-left: 0;
  display: flex;
  list-style-type: none;
  justify-content: space-between;
  margin-left: 0;
  margin-bottom: 43px;
}

section.our-experts ul.positions li {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 8px 15px;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.2;
  text-align: center;
  transition: 0.4s;
}

section.our-experts ul.positions li.active {
  background-color: var(--color-primary);
  color: #fff;
}

section.our-experts .employees-wrapper {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 180px;
}

section.our-experts .employees-wrapper .employee {
  width: 262px;
  height: 370px;
  text-align: center;
  background: var(--color-bg-white);
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.15);
}

section.our-experts .employees-wrapper .employee .image {
  height: 225px;
  position: relative;
}

section.our-experts .employees-wrapper .employee .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: opacity 0.4s ease-in-out;
}

section.our-experts .employees-wrapper .employee .image.has-hover .photo-alt {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 2;
}

section.our-experts .employees-wrapper .employee .image.has-hover:hover .photo-alt {
  opacity: 1;
}

section.our-experts .employees-wrapper .employee h3 {
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.5;
  text-align: center;
  margin: 1rem 0 0 0;
}

section.our-experts .employees-wrapper .employee .position {
  font-size: 0.875rem;
  line-height: 1.4;
}

section.our-experts .employees-wrapper .employee .links {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 30px;
}

section.our-experts .employees-wrapper .employee .links .email {
  position: relative;
}

section.our-experts .employees-wrapper .employee .links .email::before {
  content: '';
  height: 16px;
  width: 1px;
  background-color: var(--color-bg-light);
  position: absolute;
  left: -10px;
  top: 0;
}

/* --- UPDATED: Popups & Bio Modals --- */
.employee-popup-wrapper .bg-overlay {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99990;
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
}

.employee-popup-wrapper .employee-popup {
  position: fixed;
  z-index: 99991;
  background: var(--color-bg-white);
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Mobile Default: Full Screen & Scrollable */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
}

/* Close Button Styling */
.employee-popup-wrapper .employee-popup .popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 50;
}

.employee-popup-wrapper .employee-popup .popup-close button {
  background-color: #000; /* Dark background to see on image or white */
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff; /* Icon color */
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.employee-popup-wrapper .employee-popup .popup-close button:hover {
  background-color: var(--color-primary);
  transform: rotate(90deg);
}

.employee-popup-wrapper .employee-popup .popup-close button svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Flex Container for Image/Content */
.employee-popup-wrapper .employee-popup .popup-inner-content {
  display: flex;
  flex-direction: column; /* Column on mobile */
  width: 100%;
  height: 100%;
  overflow-y: auto; /* Scrollable content on mobile */
}

/* Image Section */
.employee-popup-wrapper .employee-popup .image {
  position: relative;
  width: 100%;
  min-height: 300px; /* Ensure visibility on mobile */
  flex-shrink: 0;
}

.employee-popup-wrapper .employee-popup .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease-in-out;
}

/* Hover Image Handling */
.employee-popup-wrapper .employee-popup .image .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 2;
}

.employee-popup-wrapper .employee-popup .image:hover .hover-img {
  opacity: 1;
}

/* Details Section (Text + Email) */
.employee-popup-wrapper .employee-popup .details-wrapper {
  padding: 30px 25px 80px 25px; /* Extra bottom padding for mobile scroll */
  background: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.employee-popup-wrapper .employee-popup .text h3 {
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
  margin-bottom: 5px;
  margin-top: 0;
}

.employee-popup-wrapper .employee-popup .text .position {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.employee-popup-wrapper .employee-popup .text .bio-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.employee-popup-wrapper .employee-popup .email-wrapper {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #eee;
  position: static;
  width: auto;
}
.employee-popup-wrapper .employee-popup .email-wrapper::before {
  display: none;
}

/* Desktop Layout */
@media (min-width: 992px) {
  .employee-popup-wrapper .employee-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 960px;
    max-width: 90vw;
    height: 600px; /* Fixed height for split view */
    max-height: 90vh;
    border-radius: 4px;
    flex-direction: row; /* Row on desktop */
  }

  .employee-popup-wrapper .employee-popup .popup-inner-content {
    flex-direction: row;
    overflow: hidden; /* Prevent main scroll */
  }

  .employee-popup-wrapper .employee-popup .image {
    width: 50%;
    height: 100%;
    min-height: auto;
  }
  
  .employee-popup-wrapper .employee-popup .details-wrapper {
    width: 50%;
    height: 100%;
    padding: 50px;
    overflow-y: auto; /* Scroll text independently */
  }

  .employee-popup-wrapper .employee-popup .popup-close {
    top: 20px;
    right: 20px;
  }
  
  .employee-popup-wrapper .employee-popup .email-wrapper {
      margin-top: auto; /* Push to bottom */
  }
}
/* --- END UPDATED Popups --- */

/* Services Page */
.page-template-services .page-top-line {
  margin-bottom: 60px;
}

section.services-page .introductory-section {
  text-align: center;
}

section.services-page .introductory-section h2 {
  margin-top: 15px;
  margin-bottom: 22px;
}

section.services-page .introductory-section .description {
  max-width: 730px;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.4;
}

section.services-page .contact-section {
  min-height: 496px;
  background-size: cover;
  background-position: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

section.services-page .contact-buttons-wrapper {
  margin-top: 60px;
  justify-content: center;
}

section.services-page .ocean-freight-forwarding {
  text-align: center;
}

section.services-page .ocean-freight-forwarding h2 {
  font-size: 2.4375rem;
  margin: 10px 0 25px;
}

section.services-page .ocean-freight-forwarding .description {
  font-size: 1rem;
  line-height: 1.4;
}

section.services-page .ocean-freight-forwarding .description p {
  margin-bottom: 15px;
}

.contact-buttons-wrapper {
  display: flex;
  gap: 10px;
}

.contact-buttons-wrapper a {
  background-color: var(--color-primary);
  width: 233px;
  height: 131px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.contact-buttons-wrapper a .description {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Tabs Section */
section.tabs-section {
  margin: 80px 0;
}

section.tabs-section ul.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 0;
  margin-left: 0;
  padding-left: 0;
}

section.tabs-section ul.tabs li {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 25px;
  height: 38px;
  background: #e9e9e9;
  user-select: none;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.4;
}

section.tabs-section ul.tabs li.active {
  color: #fff;
  background-color: var(--color-primary);
}

section.tabs-section .tabs-content-wrapper .tab-content {
  background-color: #f7f7f7;
  font-size: 1rem;
  line-height: 1.4;
  padding: 25px;
  justify-content: space-between;
  gap: 30px;
  display: none;
}

section.tabs-section .tabs-content-wrapper .tab-content.active {
  display: flex;
}

section.tabs-section .tabs-content-wrapper .tab-content p {
  margin-top: 0;
  margin-bottom: 20px;
}

section.tabs-section .tabs-content-wrapper .tab-content img.float-right {
  float: right;
  padding-left: 20px;
}

section.tabs-section .tabs-content-wrapper .tab-content a {
  transition: 0.4s;
}

section.tabs-section .tabs-content-wrapper .tab-content a:hover {
  color: var(--color-primary);
}

/* Personalised Quote Page */
.page-template-services section.request-track-forms-section {
  padding: 65px 0 150px;
}

.personalised-quote {
  text-align: center;
}

.personalised-quote p {
  margin-bottom: 0;
}

.personalised-quote h2 {
  margin-bottom: 25px;
}

.personalised-quote .contact-buttons-wrapper {
  justify-content: center;
  gap: 65px;
  transform: translateY(50%);
}

.page-template-personalisedquote .page-top-line {
  margin-bottom: 70px;
}

.page-template-personalisedquote .request-track-forms-section {
  padding: 140px 0 150px;
}

/* Posts & Widgets */
.single-post article {
  margin-bottom: 100px;
}

.single-post article .content-wrapper {
  display: flex;
  gap: 130px;
}

.single-post article .content-wrapper .left-side {
  max-width: 800px;
}

.single-post article .content-wrapper .left-side .post-thumbnail {
  position: relative;
}

.single-post article .content-wrapper .left-side .post-thumbnail .article-date {
  position: absolute;
  left: 15px;
  top: 15px;
}

.single-post article .entry-content {
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.4;
}

.single-post article .entry-content h2 {
  margin: 0;
}

.article-tags {
  color: #a2a2a2;
  margin-top: 15px;
}

.article-tags a {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #a2a2a2;
}

.article-date {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: 110px;
}

/* Related Posts Widget */
.widget.widget_related_posts_widget h3.widget-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  margin: 10px 0 0 0;
}

.widget.widget_related_posts_widget .related-posts-wrapper .related-post-item {
  margin-bottom: 30px;
}

.widget.widget_related_posts_widget .related-posts-wrapper .related-post-item .post-title {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}

.widget.widget_related_posts_widget .related-posts-wrapper .related-post-item .post-image img {
  width: 100%;
  height: auto;
}

.widget.widget_related_posts_widget .related-posts-wrapper .related-post-item a.btn-read-more {
  color: var(--color-primary);
}

.widget.widget_related_posts_widget .related-posts-wrapper .related-post-item a.btn-read-more:hover {
  color: var(--color-primary);
}

/* Archive Pages */
.archive-content {
  display: flex;
  gap: 130px;
}

.archive-content .archive-posts-wrapper {
  max-width: 800px;
}

.archive-content .widget-area {
  width: 100%;
}

.archive-content .widget-area .widget_block {
  margin-bottom: 10px;
}

.archive-content .widget-area h3.wp-block-heading {
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.3;
  margin: 0;
}

.archive-content .widget-area ul.wp-block-categories {
  margin-left: 0;
  padding-left: 0;
}

.archive-content .widget-area ul.wp-block-categories li {
  list-style-type: none;
  position: relative;
  padding: 0;
}

.archive-content .widget-area ul.wp-block-categories li a {
  font-size: 1rem;
  line-height: 1.5;
}

.archive-content .widget-area ul.wp-block-categories li::after {
  content: '';
  width: 100%;
  height: 1px;
  background-color: #d9d9d9;
  position: absolute;
  bottom: 0;
  left: 0;
}

.archive-content .widget-area ul.wp-block-categories li:last-child::after {
  width: 0;
  height: 0;
}

.archive-posts-wrapper .post-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.archive-posts-wrapper .post-item .post-thumbnail {
  position: relative;
}

.archive-posts-wrapper .post-item .post-thumbnail .article-date {
  position: absolute;
  left: 15px;
  top: 15px;
}

.archive-posts-wrapper .post-item h2.entry-title {
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.3;
  margin: 10px 0;
}

.archive-posts-wrapper .post-item a.btn-read-more {
  color: var(--color-primary);
}

.archive-posts-wrapper .post-item a.btn-read-more:hover {
  color: var(--color-primary);
}

.archive-posts-wrapper .post-item .post-excerpt {
  margin-bottom: 10px;
  max-width: 85%;
}

.archive-posts-wrapper .post-item .post-excerpt p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

/* Last Posts Widget */
.widget_last_posts_widget h3 {
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.3;
  margin: 0;
  margin-bottom: 15px;
}

.widget_last_posts_widget .last-posts-widget .last-posts-item {
  margin-bottom: 20px;
}

.widget_last_posts_widget .last-posts-widget .last-posts-item .post-image img {
  width: 100%;
  height: auto;
}

.widget_last_posts_widget .last-posts-widget .last-posts-item .post-title {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}

.widget_last_posts_widget .last-posts-widget .last-posts-item a.btn-read-more {
  color: var(--color-primary);
}

.widget_last_posts_widget .last-posts-widget .last-posts-item a.btn-read-more:hover {
  color: var(--color-primary);
}

/* Search Overlay */
#freight-search-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(10, 25, 45, 0.98) !important;
  z-index: 9999999 !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#freight-search-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

#freight-search-overlay .input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

#freight-search-overlay .input-wrapper .search-submit {
  font-size: 1rem;
}

#freight-search-overlay .search-overlay-content {
  width: 480px;
}

#freight-search-overlay .search-overlay-content h3 {
  color: #fff;
  text-align: center;
}

#freight-search-overlay input.search-field {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.5rem;
  width: 100%;
  padding: 15px 0;
  outline: none;
  text-align: center;
  border-radius: 0;
  box-shadow: none;
}

#freight-search-overlay input.search-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#freight-search-overlay #search-close-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none !important;
  border: none !important;
  cursor: pointer;
  z-index: 100;
}

#freight-search-overlay #search-close-btn svg {
  width: 40px;
  height: 40px;
  stroke: #ffffff;
}

#freight-search-overlay #freight-live-results {
  margin-top: 30px;
  max-height: 60vh;
  overflow-y: auto;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#freight-search-overlay .relevanssi-live-search-result {
  background: #ffffff !important;
  color: #333 !important;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
  display: block;
  text-decoration: none !important;
}

#freight-search-overlay .relevanssi-live-search-result:hover {
  background-color: #f0f4f8 !important;
  padding-left: 25px;
  transition: 0.2s;
}

.relevanssi-live-search-results .relevanssi-live-search-result-status p {
  padding: 10px;
  text-align: center;
}

.relevanssi-live-search-results .relevanssi-live-search-result p {
  border-bottom: 0 !important;
  padding: 5px;
}

.trp-shortcode-switcher {
  padding: 2px 0 !important;
  border-radius: 0 !important;
  margin-top: 4px !important;
}

section.logistics-solution .text-section .text .right-side ul li strong {
  margin-bottom: 5px;
}

/* Desktop Submenu Fixes */
.main-navigation.desktop .menu-item-has-children {
  position: relative;
}

.main-navigation.desktop .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 290px;
  background-color: var(--color-bg-white);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  list-style: none;
  z-index: 999;
  border-top: 3px solid var(--color-primary);
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateY(10px);
  margin-top: 15px;
}

/* Invisible bridge to prevent menu closing when moving mouse */
.main-navigation.desktop .sub-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
  display: block;
}

.main-navigation.desktop .menu-item-has-children:hover .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.main-navigation.desktop .sub-menu li {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.main-navigation.desktop .sub-menu li:last-child {
  border-bottom: none;
}

.main-navigation.desktop .sub-menu li a {
  display: block;
  padding: 12px 20px;
  color: #333333;
  font-size: 0.875rem;
  line-height: 1.2;
  text-transform: none;
  font-weight: 500;
  white-space: normal;
  text-align: left;
  width: 100%;
}

.main-navigation.desktop .sub-menu li a:hover {
  background-color: #f9f9f9;
  color: var(--color-primary);
  padding-left: 25px;
}

/* Mobile Header Fix */
@media screen and (max-width: 768px) {
  .top-line .container {
    height: auto;
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  
  .top-line .text.alignright {
    float: none;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .top-line .text span {
    display: inline-block;
    margin: 0;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body.page-template-about-us section.logistics-solution {
    background-color: #ffffff;
}

.archive-content img {
    border-style: none;
    max-width: 100%;
    height: auto;
}


.post-thumbnail img {
    max-width: 700px;
    height: auto;
}
