:root {
    --background-color: #eaf6fb;         /* Light blue background */
    --text-color: #1a3a5d;               /* Deep blue text */
    --heading-color: #1976d2;            /* Bright blue headings */
    --section-bg-color: #fff;            /* White for sections */
    --card-bg-color: #e3f0fa;            /* Very light blue for cards */
    --motive-col-bg: #f5faff;            /* Soft blue for motive columns */
    --motive-col-shadow: rgba(25, 118, 210, 0.08); /* Blue-tinted shadow */
    --footer-bg: #e3f0fa;                /* Light blue for footer */
    --footer-text: #1a3a5d;              /* Blue for footer text */
    --input-bg: #fff;                    /* White for inputs */
    --input-border: #90caf9;             /* Blue border */
    --contact-form-bg: #f5faff;          /* Soft blue for contact form */
    --icon-color-light: #1976d2;         /* Blue 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 {
        --background-color: #101a2b;         /* Deep dark blue */
        --text-color: #e0e6f0;               /* Light blue-gray text */
        --heading-color: #90caf9;            /* Soft blue for headings */
        --section-bg-color: #16213a;         /* Slightly lighter dark blue */
        --card-bg-color: #1a2740;            /* Card dark blue */
        --motive-col-shadow: rgba(33, 150, 243, 0.15); /* Blue-tinted shadow */
        --footer-bg: #101a2b;                /* Match background */
        --footer-text: #e0e6f0;
        --input-bg: #1a2740;
        --input-border: #274472;
        --contact-form-bg: #16213a;
        --motive-col-bg: #1a2740;
        --icon-color-dark: #90caf9;
    }
}

body[data-theme="light"] {
    --background-color: #eaf6fb;
    --text-color: #1a3a5d;
    --heading-color: #1976d2;
    --section-bg-color: #fff;
    --card-bg-color: #e3f0fa;
    --motive-col-bg: #f5faff;
    --motive-col-shadow: rgba(25, 118, 210, 0.08);
    --footer-bg: #e3f0fa;
    --footer-text: #1a3a5d;
    --input-bg: #fff;
    --input-border: #90caf9;
    --contact-form-bg: #f5faff;

    nav {
        background-color: #e3f0fa !important;
    }
    .nav-links ul li a,
    .theme-toggle i,
    nav .fa-bars {
        color: #1976d2 !important;
    }
    .nav-links .fa-circle-xmark {
        color: #1976d2 !important;
    }
    .nav-links {
        background: #e3f0fa !important;
    }
    nav .fa-bars {
        color: #1976d2 !important;
    }
    .nav-links ul li a.active-link {
        color: #1a3a5d !important;
    }
    footer {
        background-color: #e3f0fa !important;
        color: #1a3a5d !important;
    }
    footer a, footer p {
        color: #1a3a5d !important;
    }
}

body[data-theme="light"] .course-title-overlay h3 {
    color: #fff !important;
}

body[data-theme="dark"] {
    --background-color: #101a2b;
    --text-color: #e0e6f0;
    --heading-color: #90caf9;
    --section-bg-color: #16213a;
    --card-bg-color: #1a2740;
    --motive-col-shadow: rgba(33, 150, 243, 0.15);
    --footer-bg: #101a2b;
    --footer-text: #e0e6f0;
    --input-bg: #1a2740;
    --input-border: #274472;
    --contact-form-bg: #16213a;
    --motive-col-bg: #1a2740;
    .theme-toggle i, nav .fa-bars {
        color: 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%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(/assets/images/lungs.jpg);
    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;
}



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: 6px 8px; /* reduced padding */
    position: relative;
}

.nav-links ul li a {
    font-size: 12px; /* reduced font size */
    letter-spacing: 0.5px;
    /* 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: #90caf9; /* very light blue */
    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: #1976d2; /* very light blue text */
    border: 1px solid #fff;
}

/* Hover: blue bg, white text */
.hero-btn.white-btn:hover {
    background: #90caf9; /* very light blue */
    color: #fff;
    border: 1px solid #90caf9;
}

/* Interested? button: transparent, white text */
.hero-btn.transparent-btn:hover {
    background: #fff;
    color: #388e3c;
    border: 1px solid #fff;
}

/* Hover: white bg, blue text */
.hero-btn.transparent-btn:hover {
    background: #fff;
    color: #388e3c;
    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: 18px;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.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(25, 118, 210, 0.3); /* blue shadow */
    cursor: pointer;
}

.motive-col h5 {
    color: var(--heading-color); /* Apply theme heading color */
}


.motive h1, .challenges h1, .milestones h1, .blogs h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--heading-color); /* Apply theme heading color */
}

.motive p, .challenges 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 */
}

/* Challenges Section */
.challenges {
    width: 80%;
    margin: auto;
    padding-top: 60px;
    text-align: center;
    background-color: var(--section-bg-color);
    color: var(--text-color);
}

.challenges h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.challenges p {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}

/* Grid Layout for Challenges */
.challenges .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 0 10px;
}

/* 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;
    }
}

.tech-stack {
    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;
    justify-content: center;
    align-items: center;
}

.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: #90caf9; /* very light blue checkmark */
    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: #1976d2; /* blue */
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
    margin-top: 10px;
    transition: background 0.3s;
}
.bio-btn:hover {
    background-color: #1565c0; /* darker blue */
}

/* 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: #90caf9; /* very light blue 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.5s, background 0.5s, box-shadow 0.5s;
    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 {
    background: #bbdefb; /* very light blue */
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
    transform: scale(1.03);
}

.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 */

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin: 40px 0 0 0;
    padding-bottom: 40px;
}

/* Individual Contact Card */
.contact-card {
    background: var(--card-bg-color, #e3f0fa);
    border-radius: 16px;
    box-shadow: 0 4px 18px var(--motive-col-shadow, rgba(25, 118, 210, 0.08));
    padding: 32px 20px 24px 20px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(.4,2,.3,1), box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.04) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
    background: #bbdefb;
}

.contact-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--heading-color, #1976d2);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.12);
    display: block;
    margin: 0 auto 10px auto;
}

.contact-card h3 {
    margin: 0 0 16px 0;
    color: var(--heading-color, #1976d2);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.contact-badges a img {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.08);
}

.contact-badges a:hover img {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 4px 16px #1976d2;
}

/* 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 */
}

/* Update section IDs in CSS to match HTML */

#about-us, #about-us * {
    /* Styles for About Us section */
}

#services, #services * {
    /* Styles for Services section */
}

#tech-stack, #tech-stack * {
    /* Styles for Tech Stack section */
}

#lung-scan, #lung-scan * {
    /* Styles for Lung Scan section */
}

#aqi-impact, #aqi-impact * {
    /* Styles for AQI Impact section */
}

#features, #features * {
    /* Styles for Features section */
}

#contact, #contact * {
    /* Styles for Contact section */
}

/* If you have any section-specific CSS using old IDs like #about, #services, #techstack, #lungscan-section, #aqiimpact-section, update them to the above IDs. */

/* Example: */
#lung-scan .recommendation-section {
    /* ...existing code... */
}
#aqi-impact .recommendation-section {
    /* ...existing code... */
}

/* Remove or update any selectors using old IDs that do not match the HTML. */


/* --- 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;
    }
    /* 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 */
    .challenges .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 */
    .biospecimen-section {
        flex-direction: column; /* Stack content vertically */
        padding: 2rem 5%;
        gap: 1.5rem;
    }
    .bio-left, .bio-right {
        width: 100%;
        text-align: center;
    }
    .bio-left h1 {
        font-size: 1.6rem;
    }
    .bio-left p {
        font-size: 0.9rem;
    }
    .feature-list {
        max-width: 100%;
        margin: 1.5rem auto;
    }
    .feature-list li {
        position: relative; /* Ensure positioning context */
        padding-left: 30px; /* Revert to left padding */
        text-align: left;   /* Revert to left align text */
        font-size: 0.9rem;
    }
    .feature-list li::before {
        left: 0; /* Align to the left */
        top: 50%; /* Vertically center */
        transform: translateY(-50%); /* Fine-tune vertical centering */
        font-size: 18px; /* Keep original font size for checkmark */
    }
    .bio-btn {
        margin: 1.5rem auto 0 auto;
        display: block;
        width: 90%;
        max-width: 250px;
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    /* 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;
    }

    /* --- Add or update these rules for better mobile navbar/logo layout --- */

    nav {
        padding: 8px 2%; /* Less horizontal padding */
    }
    nav img {
        width: 70px !important;   /* Smaller logo */
        height: auto;
        margin-top: 2px;
        margin-bottom: 2px;
    }
    nav .fa-bars {
        font-size: 1.6rem !important; /* Smaller hamburger icon */
        margin-right: 6px;
    }
    .text-box {
        top: 56%; /* Move text lower on mobile */
        transform: translate(-50%, -50%);
    }
}


/* 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 */
    .challenges .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 */
    .biospecimen-section {
        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.25rem;
    }
    .bio-btn {
        margin: 1rem 0 0 0;
        display: inline-block;
        width: fit-content;
        font-size: 1rem;
        padding: 0.8rem 1.75rem;
    }

    /* Contact Section */
    .contact-wrapper {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .map-container,
    #contactForm {
        flex: 1 1 calc(50% - 0.75rem); /* Two columns */
        height: 350px;
    }
    #contactForm input,
    #contactForm textarea {
        flex: 1 1 48%; /* Maintain two columns for inputs */
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    #contactForm textarea {
        min-height: 90px;
    }
    #contactForm button[type="submit"] {
        padding: 0.8rem;
        font-size: 0.95rem;
        margin-top: 1.25rem;
    }
}


/* 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 */
    .challenges .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 */
    .biospecimen-section {
        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 */
    }

    /* 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 Queries for SMO Section --- */

/* For screens smaller than 768px (Mobile) */
@media (max-width: 767px) {
    .smo-section h1 {
        font-size: 25px; /* Matches .bio-left h1 */
    }

    .smo-intro-paragraph {
        width: 90%;
        font-size: 16px; /* Matches .bio-left p */
    }

    .smo-content-wrapper {
        gap: 2.5rem; /* 40px */
        padding: 0 2.5%;
    }

    .smo-list-container {
        width: 100%;
        text-align: left; /* Keep left alignment */
        padding: 0 5%; /* Add some horizontal padding */
        box-sizing: border-box;
    }

    .smo-feature-list li {
        font-size: 16px; /* Matches .feature-list li */
        padding-left: 1.875rem; /* 30px */
        margin-bottom: 0.625rem; /* 10px */
    }

    .smo-feature-list li::before {
        font-size: 18px; /* Matches .feature-list li::before */
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Adjust for vertical centering */
    }

    .smo-cards-row {
        grid-template-columns: 1fr; /* Single column for cards */
        padding: 0 5%;
    }

    .smo-card-col {
        margin-bottom: 1.25rem; /* 20px */
        padding: 1.5rem 1rem; /* 24px 16px */
    }

    .smo-card-col h3 {
        font-size: 1.375rem; /* 22px */
    }

    .smo-card-col p {
        font-size: 0.875rem; /* 14px */
    }
}

/* For screens between 768px and 1023px (Tablet) */
@media (min-width: 768px) and (max-width: 1023px) {
    .smo-section h1 {
        font-size: 25px; /* Matches .bio-left h1 */
    }

    .smo-intro-paragraph {
        width: 85%;
        font-size: 16px; /* Matches .bio-left p */
    }

    .smo-content-wrapper {
        flex-direction: row; /* Side-by-side layout */
        align-items: flex-start; /* Align items to the top */
        padding: 0 5%;
        gap: 2.5rem; /* 40px */
    }

    .smo-list-container {
        width: 50%; /* Take up half the width */
        max-width: none; /* Remove max-width for better flex distribution */
    }

    .smo-feature-list li {
        font-size: 16px; /* Matches .feature-list li */
    }

    .smo-cards-row {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Two columns, flexible */
        width: 50%; /* Take up half the width */
        gap: 1.25rem; /* 20px */
    }

    .smo-card-col {
        padding: 1.5rem; /* 24px */
    }

    .smo-card-col h3 {
        font-size: 1.375rem; /* 22px */
    }
}

/* For screens 1024px and larger (Desktop) - slight adjustments for wider view */
@media (min-width: 1024px) {
    .smo-section h1 {
        font-size: 25px; /* 40px */
    }

    .smo-intro-paragraph {
        width: 70%;
        font-size: 1.25rem; /* 20px */
    }

    .smo-content-wrapper {
        flex-direction: row; /* Side-by-side layout */
        align-items: flex-start; /* Align items to the top */
        padding: 0 10%; /* More padding for desktop */
        gap: 3.75rem; /* 60px */
    }

    .smo-list-container {
        width: 40%; /* Adjust width for list */
        max-width: none;
    }

    .smo-cards-row {
        grid-template-columns: repeat(3, 1fr); /* Three columns */
        width: 60%; /* Adjust width for cards */
        gap: 1.875rem; /* 30px */
    }

    .smo-card-col h3 {
        font-size: 1.5rem; /* 24px */
    }
}

/* Dark mode adjustments for SMO section */
[data-theme="dark"] .smo-section h1,
[data-theme="dark"] .smo-card-col h3 {
    color: var(--heading-color);
}

[data-theme="dark"] .smo-intro-paragraph,
[data-theme="dark"] .smo-feature-list li,
[data-theme="dark"] .smo-card-col p {
    color: var(--text-color);
}

[data-theme="dark"] .smo-card-col {
    background: var(--card-bg-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .smo-card-col:hover {
    background: #1976d2;
    box-shadow: 0 0 20px 0px rgba(25, 118, 210, 0.5);
}
[data-theme="dark"] .smo-card-col:hover h3,
[data-theme="dark"] .smo-card-col:hover p {
    color: #fff;
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}


.feature-list li,
.smo-feature-list li {
  transform: translateX(-50px);
  opacity: 0;
}



@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}


.nav-links ul li a.active-link {
    color: #1976d2;
    font-weight: 600;
}


/* style2.css (or a new courses.css file if you prefer) */

/* Courses Section Specific Styles */
.courses-section {
    padding: 40px 0; /* Reduced padding */
    background-color: var(--section-bg-color); /* Uses global theme variable */
    text-align: center;
    overflow: hidden; /* Ensures no content spills out due to animations */
}

.courses-section h2 {
    font-size: 24px; /* Reduced from 2.8rem (approx 44px) */
    margin-bottom: 15px; /* Reduced margin */
    color: var(--heading-color); /* Uses global theme variable */
}

.courses-section .section-intro {
    font-size: 18px; /* Reduced from 1.2rem (approx 19px) to fit 25px max, still prominent */
    color: var(--text-color); /* Uses global theme variable */
    margin-bottom: 30px; /* Reduced margin */
    max-width: 700px; /* Slightly reduced max width */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.course-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-card {
    background-color: var(--card-bg-color); /* Uses global theme variable */
    border-radius: 10px; /* Slightly reduced border-radius */
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* Reduced shadow */
    max-width: 650px; /* Reduced max-width for the card */
    width: 90%; /* Adjust width for smaller screens */
    margin: 15px; /* Reduced margin */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Faster transition */
    will-change: transform, box-shadow; /* Optimize for animation */
}

.course-card:hover {
    transform: translateY(-8px) scale(1.01); /* Lifts and slightly scales */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Enhances shadow */
}

.course-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio for responsive image */
    overflow: hidden;
}

.course-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container */
    display: block;
    transition: transform 0.5s ease-in-out; /* Smooth zoom on hover */
}

.course-card:hover .course-image {
    transform: scale(1.03); /* Slightly less zoom */
}

.course-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(144, 202, 249, 0.88); /* very light blue */
    color: white;
    padding: 15px; /* Reduced padding */
    text-align: left;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.course-card:hover .course-title-overlay {
    transform: translateY(-3px); /* Slight lift on hover */
    background-color: rgba(144, 202, 249, 0.95); /* very light blue */
}

.course-title-overlay h3 {
    margin: 0 0 5px 0; /* Reduced margin */
    font-size: 22px; /* Reduced from 2.2rem (approx 35px) */
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Reduced shadow */
}

.course-title-overlay p {
    font-size: 16px; /* Reduced from 1.1rem (approx 17.6px) */
    line-height: 1.4;
    opacity: 0.98; /* Slightly more opaque */
}

.course-content {
    padding: 20px; /* Reduced padding */
    text-align: left;
}

.course-content h4 {
    font-size: 20px; /* Reduced from 1.8rem (approx 29px) */
    color: var(--heading-color); /* Uses global theme variable */
    margin-bottom: 12px; /* Reduced margin */
}

.course-modules-list {
    list-style-type: none; /* Remove default bullet */
    padding: 0;
    margin: 0;
    color: var(--text-color); /* Uses global theme variable */
    font-size: 16px; /* Reduced from 1.05rem (approx 16.8px) */
}

.course-modules-list li {
    padding: 6px 0; /* Reduced padding */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03); /* Lighter separator */
    transition: color 0.2s ease;
}

.course-modules-list li:last-child {
    border-bottom: none; /* No border for the last item */
}

.course-modules-list li:hover {
    color: #1976d2; /* very light blue */
}

.course-modules-list li strong {
    color: var(--heading-color); /* Emphasize module number/name */
}

.course-actions {
    margin-top: 20px; /* Reduced margin */
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between buttons */
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 22px; /* Reduced padding */
    border-radius: 6px; /* Slightly smaller border-radius */
    text-decoration: none;
    font-weight: 500;
    font-size: 16px; /* Reduced from 1.1rem (approx 17.6px) */
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; /* Faster transitions */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); /* Reduced shadow */
}

.btn-primary {
    background-color: #90caf9;
    color: #1a3a5d;
    border: 1px solid #90caf9;
}
.btn-primary:hover {
    background-color: #64b5f6;
    color: #fff;
    border: 1px solid #64b5f6;
}

.btn-secondary {
    background-color: #e3f0fa;   /* very light blue */
    color: #1976d2;              /* very light blue text */
    border: 1px solid #90caf9;   /* very light blue border */
}

.btn-secondary:hover {
    background-color: #90caf9;   /* lighter blue on hover */
    color: #fff;
    border: 1px solid #1976d2;
}

.hero-btn.transparent-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #90caf9;
    transition: background 0.3s, color 0.3s, border 0.3s;
}

.hero-btn.transparent-btn:hover {
    background: #e3f0fa;
    color: #1976d2;
    border: 1px solid #90caf9;
}


/* Dark mode adjustments for Courses Section */
[data-theme="dark"] .courses-section h2,
[data-theme="dark"] .course-content h4,
[data-theme="dark"] .course-modules-list li strong {
    color: var(--heading-color); /* Ensures headings/strong text match dark theme */
}

[data-theme="dark"] .courses-section .section-intro,
[data-theme="dark"] .course-modules-list li {
    color: var(--text-color); /* Ensures text matches dark theme */
}

[data-theme="dark"] .course-card {
    background-color: var(--card-bg-color); /* Uses dark theme card background */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .course-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .course-modules-list li:hover {
    color: #81c784;
}

[data-theme="dark"] .btn-secondary {
    background-color: #3a3a3a; /* Darker background */
    color: #ccc; /* Lighter text */
    border-color: #4a4a4a; /* Darker border */
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: #4a4a4a; /* Even darker background */
    color: #fff;
}


/* Responsive Design for Courses Section (Adjusted for smaller base fonts) */
@media (max-width: 768px) {
    .courses-section h2 {
        font-size: 22px; /* Adjusted for smaller screens */
    }

    .courses-section .section-intro {
        font-size: 16px; /* Adjusted */
        margin-bottom: 25px;
    }

    .course-card {
        margin: 10px;
        width: 98%; /* Slightly wider on medium screens */
    }

    .course-title-overlay h3 {
        font-size: 18px; /* Adjusted */
    }

    .course-title-overlay p {
        font-size: 14px; /* Adjusted */
    }

    .course-content {
        padding: 15px; /* Adjusted */
    }

    .course-content h4 {
        font-size: 18px; /* Adjusted */
    }

    .course-modules-list {
        font-size: 15px; /* Adjusted */
    }

    .course-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Full width for buttons */
        font-size: 15px; /* Adjusted */
        padding: 8px 18px; /* Adjusted */
    }
}

@media (max-width: 480px) {
    .courses-section {
        padding: 30px 0; /* Further reduced padding */
    }

    .courses-section h2 {
        font-size: 20px; /* Adjusted */
    }

    .course-card {
        border-radius: 6px; /* Smaller border-radius */
    }

    .course-title-overlay {
        padding: 10px; /* Further reduced padding */
    }

    .course-title-overlay h3 {
        font-size: 16px; /* Adjusted */
    }

    .course-title-overlay p {
        font-size: 13px; /* Adjusted */
    }

    .course-content {
        padding: 10px; /* Further reduced padding */
    }

    .course-content h4 {
        font-size: 16px; /* Adjusted */
    }

    .course-modules-list li {
        font-size: 14px; /* Adjusted */
        padding: 4px 0;
    }
}


.recommendation-section {
    background: var(--section-bg-color);
    color: var(--text-color);
    border-radius: 14px;
    box-shadow: 0 4px 18px var(--motive-col-shadow);
    padding: 40px 30px 30px 30px;
    margin: 40px auto;
    max-width: 600px;
    width: 100%;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.recommendation-section h2 {
    color: var(--heading-color);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.recommendation-section p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 24px;
}

.recommendation-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--contact-form-bg);
    padding: 24px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--motive-col-shadow);
    margin-bottom: 18px;
}

.recommendation-form input,
.recommendation-form select {
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}

.recommendation-form input:focus,
.recommendation-form select:focus {
    border-color: #1976d2; /* blue */
}

.recommend-btn {
    background: #1976d2; /* blue */
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 8px;
}
.recommend-btn:hover {
    background: #1565c0; /* darker blue */
    color: #fff;
}

.recommendation-result {
    margin-top: 18px;
    font-size: 1.1rem;
    color: var(--heading-color);
    font-weight: 500;
    min-height: 24px;
}

/* Dark theme adjustments */
body[data-theme="dark"] .recommendation-section {
    background: #16213a;
    color: #e0e6f0;
    box-shadow: 0 4px 18px rgba(33,150,243,0.15);
}

body[data-theme="dark"] .recommendation-section h2 {
    color: #90caf9;
}

body[data-theme="dark"] .recommendation-form {
    background: #1a2740;
    box-shadow: 0 2px 8px rgba(33,150,243,0.15);
}

body[data-theme="dark"] .recommendation-form input,
body[data-theme="dark"] .recommendation-form select {
    background: #16213a;
    color: #e0e6f0;
    border: 1px solid #274472;
}

body[data-theme="dark"] .recommend-btn {
    background: #1976d2;
    color: #fff;
}

body[data-theme="dark"] .recommend-btn:hover {
    background: #1565c0;
    color: #fff;
}

body[data-theme="dark"] .recommendation-result {
    color: #90caf9;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .recommendation-section {
        padding: 20px 5vw 18px 5vw;
        max-width: 98vw;
    }
    .recommendation-form {
        padding: 14px 6px;
    }
}

/* Add or update these rules at the end of your CSS for best effect */

@media (max-width: 400px) {
    nav {
        padding: 6px 1.5% !important;
    }
    nav img {
        width: 48px !important;
        min-width: 40px !important;
        max-width: 60px !important;
        margin-top: 1px;
        margin-bottom: 1px;
    }
    nav .fa-bars {
        font-size: 1.2rem !important;
        margin-right: 2px;
    }
    .text-box {
        top: 62% !important; /* Move hero text further down */
        width: 98%;
        padding: 0 2vw;
    }
    .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;
    }
}
