:root {
    --background-color: #fff0f5;         /* Light pink background */
    --text-color: #b71c1c;               /* Deep red text */
    --heading-color: #d72638;            /* Bright red headings */
    --section-bg-color: #fff;            /* White for sections */
    --card-bg-color: #ffe4ec;            /* Very light pink for cards */
    --motive-col-bg: #fff5fa;            /* Soft pink for motive columns */
    --motive-col-shadow: rgba(215,38,56,0.08); /* Red-tinted shadow */
    --footer-bg: #ffe4ec;                /* Light pink for footer */
    --footer-text: #b71c1c;              /* Red for footer text */
    --input-bg: #fff;                    /* White for inputs */
    --input-border: #f8bbd0;             /* Pink border */
    --contact-form-bg: #fff5fa;          /* Soft pink for contact form */
    --icon-color-light: #d72638;         /* Red for icons in light mode */
}

/* Dark theme colors (applied automatically if system prefers dark, or manually via data-theme) */
@media (prefers-color-scheme: dark) {
    :root { /* Apply dark theme variables to root */
        --background-color: #1a1a2e;
        --text-color: #e0e0e0;
        --heading-color: #ffffff;
        --section-bg-color: #1a1a2e;
        --card-bg-color: #2b2b41;
        --motive-col-shadow: rgba(0,0,0,0.5);
        --footer-bg: #0f0f1d;
        --footer-text: #e0e0e0;
        --input-bg: #33334d;
        --input-border: #555;
        --contact-form-bg: #2b2b41;
        --motive-col-bg: #2b2b41;
        --icon-color-dark: #fff; /* This variable will no longer determine icon color for theme toggle/bars */
    }
}

/* Override system preference if user manually selects light mode */
/* Remove the selector for .course-title-overlay h3 from inside this block! */
body[data-theme="light"] {
    --background-color: #f5f7fa;
    --text-color: #1a237e;
    --heading-color: #0d47a1;
    --section-bg-color: #ffffff;
    --card-bg-color: #e3f2fd;
    --motive-col-bg: #f0f8ff;
    --motive-col-shadow: rgba(13, 71, 161, 0.08);
    --footer-bg: #e3f2fd;
    --footer-text: #1a237e;
    --input-bg: #ffffff;
    --input-border: #90caf9;
    --contact-form-bg: #f0f8ff;

    nav {
        background-color: #e3f2fd !important;
    }
    .nav-links ul li a,
    .theme-toggle i,
    nav .fa-bars {
        color: #1565c0 !important;
    }
    .nav-links .fa-circle-xmark {
        color: #1565c0 !important;
    }
    .nav-links {
        background: #e3f2fd !important;
    }
    nav .fa-bars {
        color: #1565c0 !important;
    }
    .nav-links ul li a.active-link {
        color: #0d47a1 !important;
    }
    footer {
        background-color: #e3f2fd !important;
        color: #1a237e !important;
    }
    footer a, footer p {
        color: #1a237e !important;
    }
}


/* ADD THIS OUTSIDE THE BLOCK to make the course title white in light theme */
body[data-theme="light"] .course-title-overlay h3 {
    color: #fff !important;
}

/* Override system preference if user manually selects dark mode */
body[data-theme="dark"] {
    --background-color: #1a1a2e;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --section-bg-color: #1a1a2e;
    --card-bg-color: #2b2b41;
    --motive-col-shadow: rgba(0,0,0,0.5);
    --footer-bg: #0f0f1d;
    --footer-text: #e0e0e0;
    --input-bg: #33334d;
    --input-border: #555;
    --contact-form-bg: #2b2b41;
    --motive-col-bg: #2b2b41;
    /* Set theme toggle and bars icon color to white in dark mode */
    .theme-toggle i, nav .fa-bars {
        color: white; /* Always white */
    }
}


* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
body, html {
    scroll-behavior: smooth; /* Enables smooth scrolling */
    background-color: var(--background-color); /* Apply theme background */
    color: var(--text-color); /* Apply theme text color */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    margin: 0;
    padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Adjust based on navbar height */
}

nav.shrink {
  padding: 6px 6%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/* Header Styles */
.header {
    min-height: 100vh;
    width: 100%;
    /* Keep background image fixed, but gradient can be adjusted if needed */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(images/express-cargo-services-1000x1000.webp);
    background-position: center;
    background-size: cover;
    position: relative;
    padding-top: 80px;
}

/* Navigation Styles */
nav {
  position: fixed;              /* Keep it fixed to the viewport */
  top: 0;                       /* Stick to top */
  left: 0;
  width: 100%;                  /* Full width */
  /* This background-color will be overridden by body[data-theme="light"] or body[data-theme="dark"] */
  background-color: var(--background-color);
  z-index: 1001;                /* Ensure it's above all other content */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 6%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional soft shadow */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Logo text style */
.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 2px;
    color: var(--heading-color, #d72638);
    text-decoration: none;
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 18px;
    transition: color 0.3s;
}
.logo-text:hover,
.logo-text:focus {
    color: #a1294d;
    text-decoration: none;
}

/* Remove old nav img styles */
nav img {
    display: none !important;
}

nav img {
    width: 100px;
}

.nav-links {
    flex: 1;
    text-align: right;
    transition: right 0.3s ease;
    padding-right: 50px;
}

.nav-links ul {
    list-style: none;
}

.nav-links ul li {
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    /* This will be the default, but overridden by theme-specific rules */
    color: #ffffff; /* Nav links always white on the header image */
    text-decoration: none;
    font-size: 13px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #6c97d8;
    display: block;
    margin: auto;
    transition: width 0.4s ease-in-out;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/* Theme Toggle Styles */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-right: 20px; /* Space from nav links/hamburger */
}

.theme-toggle i {
    font-size: 20px;
    cursor: pointer;
    margin: 0 5px;
    transition: color 0.3s ease;
    color: white; /* Always white for theme toggle icons */
}

.theme-toggle i:hover {
    color: #6c97d8;
}

/* Hide sun icon by default, show moon */
#lightModeToggle {
    display: none;
}
body[data-theme="dark"] #lightModeToggle {
    display: block;
}
body[data-theme="dark"] #darkModeToggle {
    display: none;
}


/* Hero Section */
.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: 50px; /* Shortened size */
    margin-bottom: 20px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 14px;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: #df3266;
    transition: background 0.4s, border 0.4s, color 0.4s;
    cursor: pointer;
    text-align: center;
}

/* Default hover effect */
.hero-btn:hover {
    border-color: #a1294d;
    background: #a1294d;
    color: #fff;
}

/* GET STARTED button: white bg, blue text */
.hero-btn.white-btn {
    background: #fff;
    color: #3b29a1;
    border: 1px solid #fff;
}

/* Hover: blue bg, white text */
.hero-btn.white-btn:hover {
    background: #3b29a1;
    color: #fff;
    border: 1px solid #3b29a1;
}

/* Interested? button: transparent, white text */
.hero-btn.transparent-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

/* Hover: white bg, blue text */
.hero-btn.transparent-btn:hover {
    background: #fff;
    color: #3b29a1;
    border: 1px solid #fff;
}

/* Section Styles */
section {
    width: 80%;
    margin: auto;
    padding-top: 60px;
    text-align: center;
    background-color: var(--section-bg-color); /* Apply theme background */
    color: var(--text-color); /* Apply theme text color */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.motive-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.motive-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.motive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10%;
}

.motive-content {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}

.motive-content h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
    color: var(--heading-color); /* Apply theme heading color */
}

.motive-content p {
    color: var(--text-color); /* Apply theme text color */
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    text-align: left;
}

/* Motive Content Row - Now using Grid */
.motive-content .row {
    display: grid; /* Changed to grid */
    grid-template-columns: repeat(2, 1fr); /* Default to 2 columns for larger screens */
    gap: 20px;
    margin-top: 20px;
}

.motive-col {
    background: var(--motive-col-bg); /* Apply theme background */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--motive-col-shadow); /* Apply theme shadow */
    text-align: left;
    transition: box-shadow 0.4s ease, background 0.3s ease;
    color: var(--text-color);
}

.motive-col:hover {
    box-shadow: 0 0 20px rgba(43, 151, 223, 0.3); /* Keep fixed hover shadow for now */
    cursor: pointer;
}

.motive-col h5 {
    color: var(--heading-color); /* Apply theme heading color */
}


.motive h1, .services h1, .milestones h1, .blogs h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--heading-color); /* Apply theme heading color */
}

.motive p, .services p, .milestones p, .blogs p {
    color: var(--text-color); /* Apply theme text color */
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
}

/* Row Styles (for challenges/milestones - not motive-col anymore) */
.row {
    margin-top: 5%;
    display: flex; /* Kept flex for other sections that use .row */
    justify-content: space-between;
}

.row .motive-col, .row .challenges-col, .row .milestones-col {
    flex-basis: 31%; /* Keep flex-basis for challenges/milestones if they use .row */
    background: var(--card-bg-color); /* Apply theme background */
    border-radius: 5%;
    padding: 20px 12px;
    box-shadow: 0 0 10px var(--motive-col-shadow); /* Apply theme shadow */
    transition: box-shadow 0.4s ease, background 0.3s ease;
    color: var(--text-color);
}

.motive-col:hover, .challenges-col:hover, .milestones-col:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Keep fixed hover shadow for now */
}

h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    color: var(--heading-color); /* Apply theme heading color */
}

.services {
    width: 80%;
    margin: auto;
    padding-top: 60px;
    text-align: center;
    background-color: var(--section-bg-color);
    color: var(--text-color);
}

.services-section h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.services p {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}

/* Grid Layout for Services */
.services-section .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-top: 40px;
    padding: 0 10px;
}

/* Remove centering for the 7th challenge-col */
.services .row .challenges-col:nth-child(7) {
    grid-column: 2 / 3; /* Center column in a 3-col grid */
    max-width: 350px;
    margin: 0 auto;
    justify-self: unset; /* Remove centering */
}

/* On mobile, treat all challenge-cols the same */
@media (max-width: 900px) {
    .services-section .row,
    .services .row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 20px;
        padding: 0 5px;
    }
    .services-section .row .challenges-col:nth-child(7),
    .services .row .challenges-col:nth-child(7) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
        justify-self: unset;
    }
    .challenges-col img {
        height: 200px;
    }
}

/* Card Styles */
.challenges-col {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--motive-col-shadow); /* Apply theme shadow */
    transition: transform 0.3s ease, background 0.3s ease;
    background: var(--card-bg-color); /* Apply theme background */
}


.challenges-col img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* Overlay Layer */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: transparent;
    transition: background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

.layer:hover {
    background: rgba(55, 107, 143, 0.7);
}

/* Title inside overlay */
.layer h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Description inside overlay */
.layer p {
    color: #fff;
    font-size: 15px;
    line-height: 22px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Show on hover */
.layer:hover h3,
.layer:hover p {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 900px) {
    .challenges .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .challenges .row {
        grid-template-columns: 1fr;
    }

    .challenges-col img {
        height: 300px;
    }
}



.specialized-logistics {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px 10%;
    background-color: var(--section-bg-color); /* Apply theme background */
    color: var(--text-color); /* Apply theme text color */
    gap: 40px;
    flex-wrap: nowrap;
}

.bio-left {
    width: 50%;
}

.bio-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* Ensures it has height */
}

.feature-list {
    list-style: none;
    padding-left: 0;
    max-width: 400px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-color); /* Apply theme text color */
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 500;
    text-align: left;
}

.feature-list li::before {
    content: "✔"; /* checkmark */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #d72638; /* Keep checkmark color fixed */
    font-weight: bold;
    font-size: 18px;
}

.bio-left h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--heading-color); /* Apply theme heading color */
}

.bio-left p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--text-color); /* Apply theme text color */
}

.bio-btn {
    background-color: #d72638;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
    margin-top: 10px;
}

/* New section: Types of Goods We Handle */
.goods-handled-section {
    width: 80%;
    margin: auto;
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--section-bg-color);
    color: var(--text-color);
}

.goods-handled-section h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--heading-color);
}

.goods-list {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0 auto; /* Center the list */
    max-width: 900px; /* Limit width for readability */
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items if they don't fill the row */
    gap: 15px 30px; /* Vertical and horizontal gap */
}

.goods-list li {
    background-color: var(--card-bg-color); /* Use a soft background for items */
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px var(--motive-col-shadow);
    font-size: 1.05rem;
    color: var(--text-color);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    flex-basis: calc(33.33% - 20px); /* 3 items per row with gap consideration */
    min-width: 250px; /* Ensure items don't get too small */
    text-align: center;
}

.goods-list li:hover {
    transform: translateY(-5px);
    background-color: #d72638; /* A subtle hover effect */
    color: white;
}

/* SMO Section Styles */
.smo-section {
    width: 100%;
    text-align: center;
    padding: 6.25rem 0; /* 100px 0 */
    background: var(--section-bg-color);
    color: var(--text-color);
}

.smo-section h1 {
    font-size: 22px; /* Matches .bio-left h1 */
    font-weight: 600;
    margin-bottom: 1.5rem; /* 24px */
    color: var(--heading-color);
}

.smo-intro-paragraph {
    font-size: 16px; /* Matches .bio-left p */
    margin: 0 auto 3.75rem; /* 60px */
    width: 80%;
    line-height: 1.6;
    color: var(--text-color);
}

.smo-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.75rem; /* 60px */
    padding: 0 5%;
}

.smo-list-container {
    width: 100%;
    max-width: 600px; /* Adjust as needed */
    text-align: left;
}

.smo-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smo-feature-list li {
    position: relative;
    padding-left: 2.1875rem; /* 35px */
    margin-bottom: 0.9375rem; /* 15px */
    font-size: 16px; /* Matches .feature-list li */
    line-height: 1.5;
    color: var(--text-color);
}

.smo-feature-list li::before {
    content: "\f00c"; /* FontAwesome check-mark icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #4CAF50; /* Green checkmark */
    font-size: 18px; /* Matches .feature-list li::before */
    top: 50%;
    transform: translateY(-50%);
}

.smo-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.875rem; /* 30px */
    width: 100%;
    max-width: 1200px; /* Ensure it doesn't get too wide */
    margin: 0 auto;
}

.smo-card-col {
    background: var(--card-bg-color);
    border-radius: 10px;
    margin-bottom: 1.875rem; /* 30px */
    padding: 1.875rem 1.25rem; /* 30px 20px */
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    flex-basis: 31%; /* For larger screens, roughly 3 cards per row */
}

.smo-card-col h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    margin-bottom: 0.9375rem; /* 15px */
    text-align: center;
    color: var(--heading-color);
}

.smo-card-col p {
    color: var(--text-color);
    font-size: 0.9375rem; /* 15px */
    font-weight: 300;
    line-height: 1.6;
    text-align: center;
}

.smo-card-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
    transform: scale(1.03);
    background: #839db6; /* Match services section hover */
    color: #fff;
}

.smo-card-col:hover h3,
.smo-card-col:hover p {
    color: #fff;
}


/* Contact Section */
.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
  }
  
  .map-container,
  #contactForm {
    flex: 1 1 48%;
    height: 450px;
    box-shadow: 0 0 10px var(--motive-col-shadow); /* Use theme shadow variable */
  }
  
  /* Form Styling */
  #contactForm {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--contact-form-bg); /* Use theme background variable */
    border-radius: 8px;
  }
  
  .form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  #contactForm input,
  #contactForm textarea {
    flex: 1 1 48%;
    padding: 12px;
    border: 1px solid var(--input-border); /* Use theme border variable */
    background-color: var(--input-bg); /* Use theme background variable */
    color: var(--text-color); /* Use theme text color variable */
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  #contactForm textarea {
    flex: 1 1 100%;
    resize: vertical;
    min-height: 100px;
  }
  
  #contactForm button[type="submit"] {
    background-color: #0077B5;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
  }
  
  #contactForm button[type="submit"]:hover {
    background-color: #005a8d;
  }
  
  /* Removed .contact-address styling as the element is removed from HTML */

/* Careers Section */
.careers {
    background-color: var(--section-bg-color);
    color: var(--text-color);
}
.careers h1 {
    color: var(--heading-color);
}

footer {
    background-color: var(--footer-bg) !important; /* Apply theme background */
    padding: 20px;
    text-align: center;
    font-family: Poppins, sans-serif;
    color: var(--footer-text) !important; /* Apply theme text color */
    transition: background-color 0.3s ease, color 0.3s ease;
}
footer p {
    color: var(--footer-text) !important; /* Apply theme text color */
}
footer a {
    color: var(--footer-text) !important; /* Apply theme text color */
}




/* --- Media Queries for Responsive Design (Flexible Approach) --- */

/* Small Devices (e.g., 320x569, 360x640, 480x854) */
/* This range covers typical mobile portrait sizes and up to common small tablet portrait. */
@media (max-width: 767px) {
    /* General Body/HTML Adjustments */
    body {
        font-size: 0.875rem; /* 14px base for small screens */
    }

    /* Header & Hero Section */
    .header {
        min-height: 70vh; /* Adjust header height to be less dominant */
    }
    .text-box {
        width: 95%; /* Use more width on small screens */
        padding: 0 1rem; /* Add some horizontal padding */
    }
    .text-box h1 {
        font-size: 2rem; /* Shortened size */
        margin-bottom: 1rem;
    }
    .text-box p {
        font-size: 0.8rem; /* ~12.8px */
        margin: 0.5rem 0 1.5rem;
    }
    .hero-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    /* Navigation - Mobile (Hamburger Menu) */
    nav {
        padding: 8px 4%; /* Updated padding */
    }
    nav img {
        width: 80px; /* Smaller logo */
        order: 1; /* Ensure logo is first */
    }
    .nav-links {
        position: fixed;
        background: #1a1a2e; /* Changed to solid color for opacity */
        height: 100vh;
        width: 70vw; /* Flexible width for sidebar */
        max-width: 300px; /* Cap max width for larger screens */
        top: 0;
        right: -100vw; /* Hide off-screen flexibly */
        text-align: left;
        padding-top: 4rem; /* Space for close button */
        padding-right: 0; /* Remove desktop padding */
        box-shadow: -5px 0 15px rgba(0,0,0,0.3); /* Add shadow for depth */
        transition: right 0.3s ease;
        z-index: 1000;
    }
    .nav-links ul {
        display: block; /* Stack links vertically */
        padding: 0;
    }
    .nav-links ul li {
        display: block;
        padding: 1rem 1.5rem; /* Larger padding for touch targets */
    }
    .nav-links ul li a {
        font-size: 1.1rem; /* Larger font for readability */
    }
    /* Show the menu when active (JS adds 'active' class) */
    .nav-links.active {
        right: 0;
    }
    /* Show hamburger icon */
    nav .fa-bars {
        display: block;
        font-size: 1.8rem; /* Larger icon */
        color: var(--icon-color-light); 
        cursor: pointer;
        order: 3; /* Ensure hamburger is last */
    }
    /* Show close icon inside menu */
    .nav-links .fa-circle-xmark {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.8rem;
        color: white;
        cursor: pointer;
    }
    /* Hide desktop nav links hover effect */
    .nav-links ul li::after {
        display: none;
    }

    /* Adjust theme toggle for mobile view */
    .theme-toggle {
        order: 2; /* Place it after logo and before hamburger */
        margin-right: 15px; /* Adjust spacing */
        position: static; /* Revert to static for flow within nav */
        transform: none; /* Remove any previous transforms */
    }


    /* General Section Adjustments */
    section {
        width: 90%;
        padding-top: 2rem; /* Reduced top padding */
        padding-bottom: 2rem; /* Add bottom padding */
    }

    /* Motive/About Section */
    .motive-container {
        flex-direction: column; /* Stack image and content */
        gap: 1.5rem;
    }
    .motive-image, .motive-content {
        width: 100%; /* Take full width */
        min-width: unset;
        max-width: 100%;
    }
    .motive-content h1, .motive-content p {
        text-align: center; /* Center align headings and paragraphs */
    }
    .motive-content h1 {
        font-size: 1.8rem; /* Smaller heading */
    }
    .motive-content p {
        font-size: 0.9rem;
    }
    .motive-content .row {
        /* Grid adjustments for motive-col */
        display: grid;
        grid-template-columns: 1fr; /* Single column on small screens */
        gap: 1rem; /* Space between grid items */
    }
    .motive-col {
        width: auto; /* Let grid manage width */
        text-align: center;
        padding: 1rem;
    }

    .motive-col:hover{
        cursor: pointer;
    }
    /* General .row adjustments for cards */
    .row {
        flex-direction: column; /* Stack all columns */
        gap: 1.25rem; /* Space between stacked cards */
    }
    .row .motive-col, .row .challenges-col, .row .milestones-col {
        flex-basis: 100%; /* Each card takes full width */
        border-radius: 0.5rem; /* Slightly less rounded */
        padding: 1.25rem;
        width: auto; /* Remove flex-basis as grid handles this */
    }

    /* Challenges/Services Section */
    .services .row {
        grid-template-columns: 1fr; /* Single column grid */
        gap: 1.5rem;
    }
    .challenges-col img {
        height: 200px; /* Adjust image height for mobile */
        object-fit: cover;
    }
    .layer h3 {
        font-size: 1.25rem;
    }
    .layer p {
        font-size: 0.85rem;
    }

    /* Biospecimen Section */
    .specialized-logistics {
        flex-direction: column; /* Stack content vertically */
        padding: 2rem 5%;
        gap: 1.5rem;
    }
    .bio-left, .bio-right {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Goods Handled Section */
    .goods-list li {
        flex-basis: 100%; /* 1 item per row on small screens */
    }

    /* Contact Section */
    .contact-wrapper {
        flex-direction: column; /* Stack map and form */
        gap: 1.5rem;
    }
    .map-container,
    #contactForm {
        flex: 1 1 100%;
        height: 250px; /* Shorter height for mobile */
    }
    #contactForm input,
    #contactForm textarea {
        flex: 1 1 100%; /* Stack input fields */
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    .form-group {
        gap: 0;
    }
    #contactForm textarea {
        min-height: 80px;
    }
    #contactForm button[type="submit"] {
        padding: 0.75rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }
}


/* Medium Devices (e.g., 960x540 for landscape tablets, or 768x1024 portrait) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* General Body/HTML Adjustments */
    body {
        font-size: 0.9375rem; /* 15px base for medium screens */
    }

    /* Header & Hero Section */
    .text-box h1 {
        font-size: 2.8rem; /* Shortened size */
    }
    .text-box p {
        font-size: 0.9rem;
    }
    .hero-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    /* Navigation */
    nav {
        padding: 10px 5%; /* Updated padding */
    }
    nav img {
        width: 90px;
    }
    .nav-links {
        padding-right: 2rem; /* Adjust padding */
    }
    /* Ensure hamburger/close icons are hidden on medium screens if using traditional nav */
    nav .fa-bars,
    .nav-links .fa-circle-xmark {
        display: none;
    }
    .nav-links ul li::after {
        display: block; /* Ensure hover effect is visible */
    }
    .theme-toggle {
        margin-right: 20px;
        position: relative;
    }

    /* General Section Adjustments */
    section {
        width: 88%; /* Slightly wider sections */
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Motive/About Section */
    .motive-container {
        flex-wrap: wrap; /* Allow wrapping for two columns */
        gap: 2rem;
    }
    .motive-image, .motive-content {
        flex: 1 1 calc(50% - 1rem); /* Two columns, flexible */
        min-width: unset;
        max-width: unset;
    }
    .motive-content h1 {
        font-size: 2.2rem;
    }
    .motive-content p {
        font-size: 0.95rem;
    }
    .motive-content .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two equal columns on medium screens */
        gap: 1rem;
    }
    .motive-col {
        /* No flex-basis needed */
        width: auto;
        padding: 1.25rem;
    }
    /* General .row adjustments for cards */
    .row {
        flex-direction: row; /* Layout in rows */
        gap: 1.5rem; /* Space between cards */
    }
    .row .motive-col, .row .challenges-col, .row .milestones-col {
        flex-basis: auto; /* Remove flex-basis for grid items */
        width: auto;
        border-radius: 0.75rem;
        padding: 1.5rem;
    }

    /* Challenges/Services Section */
    .services .row {
        grid-template-columns: repeat(2, 1fr); /* Two columns grid */
        gap: 1.75rem;
    }
    .challenges-col img {
        height: 300px; /* Adjust image height */
    }
    .layer h3 {
        font-size: 1.5rem;
    }
    .layer p {
        font-size: 0.95rem;
    }

    /* Biospecimen Section */
    .specialized-logistics {
        flex-wrap: wrap;
        flex-direction: row; /* Layout side-by-side */
        padding: 3rem 8%;
        gap: 2rem;
    }
    .bio-left, .bio-right {
        width: calc(50% - 1rem); /* Two columns */
        text-align: left;
    }
    .bio-left h1 {
        font-size: 1.8rem;
    }
    .bio-left p {
        font-size: 1rem;
    }
    .feature-list {
        max-width: 600px; /* Allow wider list */
        margin: 0 auto 0 0; /* Align left */
    }
    .feature-list li {
        padding-left: 2rem;
        font-size: 1rem;
    }
    .feature-list li::before {
        left: 0;
        transform: translateY(-50%);
        top: 50%;
        font-size: 1.125rem; /* 18px */
    }
    .bio-btn {
        margin: 0.625rem 0 0 0; /* 10px */
        display: inline-block;
        width: fit-content;
        font-size: 0.9375rem; /* 15px */
        padding: 0.625rem 1.25rem; /* 10px 20px */
    }

    /* Goods Handled Section */
    .goods-list li {
        flex-basis: calc(50% - 15px); /* 2 items per row on medium screens */
    }

    /* Contact Section */
    .contact-wrapper {
        flex-wrap: nowrap;
        gap: 1.25rem; /* 20px */
    }
    .map-container,
    #contactForm {
        flex: 1 1 48%;
        height: 450px;
    }
    #contactForm input,
    #contactForm textarea {
        flex: 1 1 48%;
        padding: 0.75rem; /* 12px */
        font-size: 1rem;
    }
    #contactForm textarea {
        min-height: 100px;
    }
    #contactForm button[type="submit"] {
        padding: 0.75rem; /* 12px */
        font-size: 1rem;
        margin-top: 0.9375rem; /* 15px */
    }
}


/* Large Devices (e.g., 1024x640, 1366x768, 1920x1080 and up) */
@media (min-width: 1024px) {
    /* General Body/HTML Adjustments */
    body {
        font-size: 1rem; /* 16px base for large screens */
    }

    /* Header & Hero Section */
    .header {
        min-height: 100vh;
    }
    .text-box {
        width: 90%;
        padding: 0;
    }
    .text-box h1 {
        font-size: 3.125rem; /* Shortened size */
    }
    .text-box p {
        font-size: 0.875rem; /* 14px */
        margin: 0.625rem 0 2.5rem;
    }
    .hero-btn {
        padding: 0.75rem 2.125rem;
        font-size: 0.8125rem;
    }

    /* Navigation */
    nav {
        padding: 10px 6%; /* Updated padding */
    }
    nav img {
        width: 100px;
    }
    .nav-links {
        padding-right: 50px;
    }
    /* Ensure hamburger/close icons are hidden on desktop */
    nav .fa-bars,
    .nav-links .fa-circle-xmark {
        display: none;
    }
    .nav-links ul li::after {
        display: block; /* Ensure hover effect is visible */
    }
    .theme-toggle {
        margin-right: 20px;
        position: relative;
    }

    /* General Section Adjustments */
    section {
        width: 80%;
        padding-top: 3.75rem; /* 60px */
        padding-bottom: 3.75rem;
    }

    /* Motive/About Section */
    .motive-container {
        flex-direction: row; /* Keep original row layout */
        gap: 2.5rem; /* 40px */
        flex-wrap: nowrap;
    }
    .motive-image, .motive-content {
        flex: 1; /* Original flex behavior */
        min-width: 300px;
        max-width: 500px;
    }
    .motive-content h1, .motive-content p {
        text-align: left;
    }
    .motive-content h1 {
        font-size: 2.25rem; /* 36px */
    }
    .motive-content p {
        font-size: 0.875rem; /* 14px */
    }
    .motive-content .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two equal columns on large screens */
        gap: 1.25rem;
    }
    .motive-col {
        flex: 1 1 calc(50% - 1.25rem); /* Original two columns */
        text-align: left;
        padding: 0.9375rem; /* 15px */
    }
    /* General .row adjustments for cards */
    .row {
        flex-direction: row;
        gap: 1.875rem; /* 30px */
    }
    .row .motive-col, .row .challenges-col, .row .milestones-col {
        flex-basis: calc(33.33% - 1.25rem); /* Original three columns */
        border-radius: 5%; /* Original rounding */
        padding: 1.25rem 0.75rem; /* 20px 12px */
    }

    /* Challenges/Services Section */
    .services .row {
        grid-template-columns: repeat(3, 1fr); /* Three columns grid */
        gap: 1.875rem; /* 30px */
    }
    .challenges-col img {
        height: 400px; /* Original image height */
    }
    .layer h3 {
        font-size: 1.5rem; /* 24px */
    }
    .layer p {
        font-size: 0.9375rem; /* 15px */
    }

    /* Biospecimen Section */
    .specialized-logistics {
        flex-direction: row; /* Keep original row layout */
        padding: 3.75rem 10%; /* 60px */
        gap: 2.5rem; /* 40px */
        flex-wrap: nowrap;
    }
    .bio-left, .bio-right {
        width: 50%;
        text-align: left;
    }
    .bio-left h1 {
        font-size: 1.75rem; /* 28px */
    }
    .bio-left p {
        font-size: 1rem; /* 16px */
    }
    .feature-list {
        max-width: 400px;
        margin: 0 auto 0 0; /* Align left */
    }
    .feature-list li {
        padding-left: 1.875rem; /* 30px */
        font-size: 1rem;
    }
    .feature-list li::before {
        left: 0;
        transform: translateY(-50%);
        top: 50%;
        font-size: 1.125rem; /* 18px */
    }
    .bio-btn {
        margin: 0.625rem 0 0 0; /* 10px */
        display: inline-block;
        width: fit-content;
        font-size: 0.9375rem; /* 15px */
        padding: 0.625rem 1.25rem; /* 10px 20px */
    }

    /* Goods Handled Section */
    .goods-list li {
        flex-basis: calc(33.33% - 20px); /* 3 items per row on large screens */
    }

    /* Contact Section */
    .contact-wrapper {
        flex-wrap: nowrap;
        gap: 1.25rem; /* 20px */
    }
    .map-container,
    #contactForm {
        flex: 1 1 48%;
        height: 450px;
    }
    #contactForm input,
    #contactForm textarea {
        flex: 1 1 48%;
        padding: 0.75rem; /* 12px */
        font-size: 1rem;
    }
    #contactForm textarea {
        min-height: 100px;
    }
    #contactForm button[type="submit"] {
        padding: 0.75rem; /* 12px */
        font-size: 1rem;
        margin-top: 0.9375rem; /* 15px */
    }
}


@media (max-width: 720px) and (max-height: 520px) {
    nav {
        padding: 6px 1.5% !important;
    }
    .logo-text {
        font-size: 1.1rem;
        margin-right: 4px;
        margin-left: 0;
    }
    .nav-links {
        width: 85vw;
        max-width: 220px;
        padding-right: 0;
    }
    .nav-links ul li a {
        font-size: 1rem;
    }
    .text-box {
        width: 98% !important;
        padding: 0 2vw !important;
    }
    .text-box h1 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem;
    }
    .text-box h2 {
        font-size: 1rem !important;
    }
    .hero-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}


.industry-partners-section {
    width: 100%;
    background: var(--section-bg-color);
    padding: 60px 0 40px 0;
    text-align: center;
}
.industry-partners-section h1 {
    color: var(--heading-color);
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

/* ...existing code... */

.partners-carousel {
    display: flex;
    overflow: hidden;
    max-width: 350px;
    margin: 0 auto 20px auto;
    position: relative;
    scroll-behavior: smooth;
    /* Show only one card at a time */
}

.partner-card {
    min-width: 100%;
    max-width: 100%;
    margin: 0;
    transition: box-shadow 0.3s, transform 0.3s;
    opacity: 1;
}

@media (max-width: 600px) {
    .partners-carousel {
        max-width: 95vw;
    }
    .partner-card {
        min-width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 22px 8px 18px 8px;
    }
}

/* ...existing code... */
/* ...existing code... */

.bio-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* Ensures it has height */
}

/* Ensure the parent ul has no default list styling and correct padding */
.feature-list {
    list-style: none; /* Removes default bullets */
    padding-left: 0;  /* Removes default left padding from the ul */
    max-width: 400px; /* Example value, adjust as needed */
    margin: 0 auto;   /* Centers the list if max-width is set */
    font-size: 16px;  /* Example value, adjust as needed */
    color: var(--text-color); /* Uses your defined text color */
    /* Add any other specific styles for the overall list here */
}

/* Styles for individual list items */
.feature-list li {
    position: relative; /* Essential for positioning the ::before pseudo-element */
    padding-left: 30px; /* Creates space for the checkmark on the left */
    margin-bottom: 15px; /* Adds space between list items */
    line-height: 1.4;    /* Improves readability */
    font-weight: 500;    /* Example value, adjust as needed */
    text-align: left;    /* Ensures text aligns to the left */
    /* Add any other specific styles for individual list items here */
}

/* Styles for the custom checkmark */
.feature-list li::before {
    content: "✔"; /* The Unicode checkmark character */
    position: absolute; /* Allows precise positioning relative to the li */
    left: 0; /* Positions the checkmark at the far left of the li's padding */
    top: 50%; /* Starts the checkmark vertically centered */
    transform: translateY(-50%); /* Adjusts vertical position to truly center it */
    color: #d72638; /* Uses your defined heading color (or a fixed red) */
    font-size: 18px; /* Makes the checkmark visible */
    font-weight: bold; /* Makes the checkmark bolder */
    display: inline-block; /* Ensures it behaves like a block for sizing and positioning */
    width: 20px; /* Gives the checkmark a defined width */
    text-align: center; /* Centers the checkmark within its 20px width */
    line-height: 1; /* Ensures proper vertical alignment within its own space */
    z-index: 1; /* Ensures the checkmark appears above other elements if there are overlaps */
}
/* Responsive: Stack bio-left and bio-right on mobile */
@media (max-width: 900px) {
    .specialized-logistics {
        flex-direction: column;
        gap: 1.5rem;
    }
    .bio-left, .bio-right {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .feature-list {
        max-width: 100%;
        margin: 1.5rem auto;
    }
}

/* Services/Challenges Section: 3-3-1 grid layout */
.services .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-top: 40px;
    padding: 0 10px;
}

/* Make the last (7th) .challenges-col span all columns and center it */
.services .row .challenges-col:nth-child(7) {
    grid-column: 2 / 3; /* Center column in a 3-col grid */
    max-width: 350px; /* Optional: limit width for better appearance */
    margin: 0 auto;
}

/* Responsive: stack all on mobile */
@media (max-width: 900px) {
    .services-section .row,
    .services .row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 20px;
        padding: 0 5px;
    }
    .services-section .row .challenges-col:nth-child(7),
    .services .row .challenges-col:nth-child(7) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
        justify-self: unset;
    }
    .challenges-col img {
        height: 200px;
    }
}

/* Extra: make text and padding smaller on very small screens */
@media (max-width: 600px) {
    .services-section h1,
    .services h1 {
        font-size: 1.3rem;
    }
    .services-section p,
    .services p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .challenges-col {
        padding: 0.75rem 0.5rem;
    }
}
.coverage-highlights {
    margin-top: 40px;
    background-color: var(--card-bg-color);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--motive-col-shadow);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.coverage-highlights h2 {
    font-size: 24px;
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.coverage-highlights ul {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: auto;
}

.coverage-highlights ul li {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    padding-left: 25px;
    position: relative;
}

.coverage-highlights ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #d72638;
    font-weight: bold;
}

/* Add this at the end of your CSS file or in the contact section styles */

.contact-address-card {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    background: var(--card-bg-color, #ffe4ec);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(55, 107, 143, 0.10);
    padding: 22px 28px;
    margin: 0 auto 28px auto;
    max-width: 420px;
    position: relative;
    top: 0;
    z-index: 2;
    transition: box-shadow 0.3s, background 0.3s, transform 0.3s;
}

.contact-address-card:hover {
    background: #13083a;
    color: #fff;
    box-shadow: 0 8px 32px rgba(215, 38, 56, 0.18), 0 2px 10px var(--motive-col-shadow);
    transform: translateY(-4px) scale(1.03);
}

.contact-address-card:hover .contact-address-icon,
.contact-address-card:hover .contact-address-text {
    color: #fff;
    transition: color 0.3s;
}

.contact-address-icon {
    font-size: 2em;
    color: #d72638;
    margin-top: 2px;
    transition: color 0.3s;
}

.contact-address-text {
    text-align: left;
    font-size: 1.08em;
    color: var(--text-color);
    line-height: 1.5;
    transition: color 0.3s;
}

@media (max-width: 600px) {
    .contact-address-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 12px;
        max-width: 98vw;
        font-size: 0.98em;
    }
    .contact-address-icon {
        margin-bottom: 6px;
    }
}


/* Careers Section */
.careers {
    background-color: var(--section-bg-color);
    color: var(--text-color);
}
.careers h1 {
    color: var(--heading-color);
}

.careers a.hero-btn {
    margin-top: 20px;
    display: inline-block;
    background-color: var(--heading-color); /* default red in light mode */
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hover effect for light mode */
body[data-theme="light"] .careers a.hero-btn:hover {
    background-color: #6c5ce7; /* purple on hover */
}

/* Default + hover for dark mode */
body[data-theme="dark"] .careers a.hero-btn {
    background-color: #6c5ce7; /* purple */
    color: #fff;
}

body[data-theme="dark"] .careers a.hero-btn:hover {
    background-color: #d72638; /* red on hover */
    color: #fff;
}
