/* ==========================================================================
   1. GLOBAL RESET & CONFIGURATION
   ========================================================================== */
:root {
  --primary-red: #ea3327;
  --primary-gold: #ffd42a;
  --dark-gray: #131718;
  --light-gray: #555;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --text-main: #333;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* Accounts for sticky header */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

body {
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Helper Class for Bootstrap overrides */
.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.section-label {
  color: var(--primary-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: #edf3f8;
  padding: 0.8rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.main-nav a {
  color: #000;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

/* Active navigation state */
.main-nav a.active-nav {
  color: var(--primary-red);
  font-weight: 600;
}

/* keep underline visible for active page */
.main-nav a.active-nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--primary-gold);
}


/* Hover Animation */
.main-nav a:not(.nav-btn-track)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: width 0.3s ease;
}

.main-nav a:not(.nav-btn-track):hover::after {
  width: 100%;
}

/* Dropdown Logic */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #eee7e7;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  border-radius: 4px;
  border-top: 3px solid var(--primary-red);
  margin-top: 5px;
}

.dropdown-content a {
  color: #333 !important;
  padding: 12px 16px;
  display: block;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background-color: var(--primary-red);
  color: var(--white) !important;
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

/* Track Button */
.nav-btn-track {
  background-color: var(--primary-red);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-btn-track:hover {
  background-color: #cba818;
  /* Darker Gold */
  transform: translateY(-2px);
}


/* ==========================================================================
   3. HERO SECTIONS
   ========================================================================== */
.hero-section {
  color: #ffffff;
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}

.hero-section.py-5 {
  padding: 150px 0 !important;
}

.hero-section.py-4 {
  padding: 100px 0 !important;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-left-align {
  margin-left: 20px;
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 42px;
  margin-bottom: 15px;
  max-width: 700px;
}

.hero-section p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 15px;
}


/* =========================
   BUTTONS
========================= */
.btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: #ffd42a;
  color: #000000;
}

.btn.primary:hover {
  background: #f9f9f9;
  color: #000;
}

.btn.outline {
  border: 2px solid #f9f9f9;
  color: #f9f9f9;
}

.btn.outline:hover {
  background: #ffffff;
  color: #000;
}

.btn.light {
  background: #f9f9f9;
  color: #222;
}

.btn.light:hover {
  background: #ffd42a;
  color: #000;
}


.btn-outline-dark:hover {
  background-color: #ffd42a;
  /* yellow */
  border-color: #ffd42a;
  color: #000;
}

/* ==========================================================================
   3. Other HERO SECTIONS
   ========================================================================== */

.about-hero,
.search-hero {
  position: relative;
  padding: 120px 0;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-hero {
  height: 500px;
  /* fixed height */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  /* vertical centering */
}


/* Universal Overlay for all Heros */
.hero-section::after,
.search-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Ensure content sits above overlay */
.hero-section .container,
.search-hero .container {
  position: relative;
  z-index: 2;
}

/* Text Styling */
.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-section p {
  font-size: 1.125rem;
  max-width: 700px;
  margin-bottom: 30px;
  opacity: 0.9;
}

/*Responsiveness*/



/* ==========================================================================
   4. TRACKING WIDGET (Home & Track Page)
   ========================================================================== */
.track-trace {
  padding-bottom: 80px;
  background: #fdfdfd;
}

.track-box {
  background: var(--white);
  /* Pulls box up over the hero */
  margin: -60px auto 0;
  padding: 40px;
  border-top: 10px solid var(--primary-red);
  border-radius: 60px 60px 20px 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 95%;
  position: relative;
  z-index: 10;
  text-align: center;
  transition: transform 0.4s ease;
}

.track-box:hover {
  transform: translateY(-5px);
}

.track-form {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px auto 0;
  max-width: 700px;
}

.track-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.track-form button {
  background: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 0 30px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.track-form button:hover {
  background: var(--primary-gold);
  color: #000;
}

/* --- Search & Track Specific Styles --- */
.form-control:focus,
.form-select:focus {
  border-color: #EB3324;
  box-shadow: 0 0 0 0.25rem rgba(235, 51, 36, 0.1);
}

.card-header.bg-dark {
  background-color: #1a1a1a !important;
}

.btn-danger {
  background-color: #EB3324;
  border-color: #EB3324;
}

.btn-danger:hover {
  background-color: #c92a1e;
}

/* Sticky Right Panel - keeps the schedule finder visible while scrolling the long form */
@media (min-width: 992px) {
  .sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
  }
}


/* ==========================================================================
   5. CARDS & GRIDS (Services, Awards, Cargo)
   ========================================================================== */
/* Shared Grid Logic */

.cargo-grid,
.award-grid,
.gallery-grid,
.office-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

/* --- Services Grid System --- */
.cargo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.cargo-card {
  position: relative;
  height: 350px;
  /* Ensures the background-image is visible */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

.cargo-card:hover {
  transform: translateY(-10px);
}

.cargo-card .overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  width: 100%;
  padding: 30px;
  color: #fff;
}

.read-more-btn {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-gold);
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Cargo Card */
.cargo-card {
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: block;
}

.cargo-card:hover {
  transform: translateY(-10px);
}

.cargo-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Feature/Award Card (White box with red accent) */
.feature-card,
.award-card,
.office-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  border-left: 5px solid var(--primary-red);
  transition: transform 0.3s ease;
}

.feature-card:hover,
.award-card:hover,
.office-card:hover {
  transform: translateY(-8px);
}

/* ==========================================================================
   6. CONTACT & LOCATIONS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  padding: 60px 0;
}

.contact-map iframe {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sticky-form {
  position: sticky;
  top: 120px;
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  background: #fcfcfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-red);
  outline: none;
}

/* ==========================================================================
   7. PAGE SPECIFIC COMPONENTS (Timeline, Gallery, FAQ, Search)
   ========================================================================== */

/* --- Timeline (History) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #e9ecef;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-red);
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px rgba(235, 51, 36, 0.2);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

/* =========================
   GALLERY STYLES
========================= */
.gallery-filter-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background: #f4f6f9;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
  color: #333;
}

.filter-btn.active,
.filter-btn:hover {
  background: #EB3324;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  justify-content: center;
}

.gallery-item {
  position: relative;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-left: 3px solid #FBD32C;
  padding-left: 10px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* --- FAQ Accordion --- */
.faq-item {
  background: #fff;
  padding: 0;
  /* Changed to 0 to allow the button to fill the space */
  margin-bottom: 20px;
  border-left: 4px solid #EB3324;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #222;
}

/* Plus/Minus Icon */
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #EB3324;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
  /* Minus sign */
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 25px 25px 25px;
  /* Added padding here instead of item */
  color: #555;
  display: none;
  border-top: 1px solid #f0f0f0;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   FOOTER STYLES
========================= */
.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 40px 0 15px;
  margin-top: 80px;
  border-top: 2px solid #ffd700;
}

/* Support Bootstrap py-5 */
.site-footer.py-5 {
  padding: 40px 0 15px !important;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  gap: 32px;
  margin-bottom: 24px;
  text-align: left;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  color: #ffd700;
}

.footer-section {
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
}

.quick-contact .contact-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.contact-item .label {
  font-weight: 600;
  min-width: 45px;
  color: #ffd700;
  font-size: 12px;
}

.contact-item a,
.contact-item span {
  color: #e8e8e8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #ffd700;
}

.social-section {
  display: flex;
  flex-direction: column;
}

.social-icons-compact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.social-link:hover {
  background-color: #ffd700;
  color: #0f3460;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.social-link svg {
  width: 12px;
  height: 12px;
}

.quick-links .links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-links a {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
  display: inline-block;
}

.quick-links a:hover {
  color: #ffd700;
}

.footer-info p {
  color: #e8e8e8;
  font-size: 13px;
  line-height: 1.5;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
  margin: 20px 0;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #b0b0b0;
}


/* ==========================================================================
   9. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sticky-form {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
    padding-left: 50px;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }

  .track-form {
    flex-direction: column;
    border: none;
  }

  .track-form input,
  .track-form button {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .track-box {
    margin-top: -30px;
    padding: 25px;
  }
}

/* ==========================================================================
   3. PRODUCT PAGE COMPONENTS
   ========================================================================== */

/* Notice Bar */
.notice-bar {
  background-color: var(--primary-gold);
  color: var(--dark-gray);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

/* Product Details Design */
.product-hero {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.product-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.product-hero p {
  font-size: 1.25rem;
}

/* 50/50 Overview Grid */
.product-overview {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 80px 0;
}

.overview-text,
.overview-image {
  flex: 1;
}

.overview-image-wrapper {
  position: relative;
}

.overview-image-wrapper img {
  border-radius: 8px;
  width: 100%;
  display: block;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.overview-image-wrapper::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--primary-gold);
  border-radius: 8px;
  z-index: -1;
}

/* Feature Cards */
.cargo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.feature-card {
  background: var(--white);
  padding: 35px;
  border-left: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.step span {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-red);
  opacity: 1.0;
}

.bg-dark {
  background-color: var(--dark-gray) !important;
  color: white;
}


/* Responsive */
@media (max-width: 992px) {
  .product-overview {
    flex-direction: column;
    text-align: center;
  }

  .overview-image-wrapper::before {
    display: none;
  }
}

/* ==========================================================================
   10. NETWORK (important for visibility)
   ========================================================================== */

#routes path {
  pointer-events: none;
}

#nodes circle {
  cursor: pointer;
}

/* ==========================================================================
   11. MOBILE NAVIGATION RESPONSIVENESS
   ========================================================================== */


:root {
  --primary-color: #EB3324;
  --accent-color: #FBD32C;
  --nav-bg-mobile: #fff;
  --nav-bg-mobile-gradient: linear-gradient(180deg, #ffffff, #f7fafc);
}

html,
body {
  overflow-x: hidden;
}


/* =========================
   HEADER FLEX
========================= */
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1100;

}

/* LOGO */
.logo-link img {
  max-height: 50px;
  display: block;
}

/* =========================
   NAV TOGGLE (HAMBURGER)
========================= */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 34px;
  height: 28px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1005;
  flex-shrink: 0;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, top 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-label span::before {
  content: "";
  position: absolute;
  top: -8px;
}

.nav-toggle-label span::after {
  content: "";
  position: absolute;
  top: 8px;
}

/* =========================
   OVERLAY
========================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  z-index: 999;
  /* BELOW nav, above page */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-toggle:checked~.nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

/* =========================
   NAV
========================= */
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 1.8rem;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.main-nav a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  position: relative;
}

.main-nav a:not(.nav-btn-track)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav a:not(.nav-btn-track):hover::after {
  width: 100%;
}

.nav-btn-track {
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
}

.nav-btn-track:hover {
  background-color: var(--accent-color);
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 769px) {
  .nav-toggle-label {
    display: none;
  }

  .main-nav {
    position: relative;
    flex-direction: row;
    gap: 1.8rem;
    padding: 0;
    height: auto;
    background: none;
    box-shadow: none;
    left: auto;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--nav-bg-mobile-gradient);
    flex-direction: column;
    padding: 72px 20px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.32s cubic-bezier(.2, .9, .3, 1);
    z-index: 1003;
  }

  body.nav-open {
    overflow: hidden !important;
    position: fixed;
    /* Extra protection for mobile Safari */
    width: 100%;
  }

  .nav-toggle:checked~.main-nav {
    transform: translateX(0);
  }

  .main-nav a {
    width: 100%;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    font-weight: 600;
  }

  /* Ensure the .active-nav class shows the underline like your :hover state */
  .main-nav a.active-nav::after {
    width: 100%;
  }

  /* Hamburger -> X animation */
  .nav-toggle:checked+.nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked+.nav-toggle-label span::before {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked+.nav-toggle-label span::after {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .site-header .container {
    display: flex;
    /* Ensure flex is active */
    flex-direction: row;
    /* Force horizontal alignment */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    /* Ensure there is some breathing room */
    overflow-y: auto;
    max-height: 100vh;
  }

  .logo-link {
    flex-shrink: 1;
    /* Allow logo to scale if needed */
  }
}

/* ==========================================================================
   MARQUEE SECTION
   ========================================================================== */

.marquee-section {
  background: #ffffff;
  overflow: hidden;
  padding: 29px 0;
}

.marquee-container {
  position: center;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  gap: 120px;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-item a {
  text-decoration: none;
  color: #212529;
  font-weight: 700;
  font-size: larger;
  white-space: nowrap;
  transition: color 0.6s ease;
}

.marquee-item a:hover {
  color: #c51d27;
}

/* animation */
@keyframes scrollMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-content:hover {
  animation-play-state: paused;
}