
:root {
    --primary: #3D5AFE;
    --accent: #00C896;
    --background: hsl(210, 18%, 96%);
    --card: #FFFFFF;
    --primary-text: #0F172A;
    --secondary-text: #64748B;
    --border: #E5E7EB;
    --danger: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat';
    font-weight: 300;
}

body {
    background: var(--background);
    color: var(--primary-text);
    line-height: 1.6;
}

h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color:#1e3a8a
}
h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 20px 0;
    position: relative;
    min-height: 80px;
}

.logo {
    display: block;
    margin: 0 auto;
    max-width: 240px; /* Reduced from 320px for smaller logo */
    height: auto;
    width: 100%;
}

.nav {
    margin-top: 1rem;
    text-align: center;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}



/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(237, 13, 13, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 3rem 0; /* Reduced padding from 4rem for smaller section */
    text-align: center;
}

.hero-title {
    font-size: 2rem; /* Reduced from 2.5rem */
    margin-bottom: 0.75rem; /* Reduced margin */
}

.hero-text {
    font-size: 1rem; /* Reduced from 1.2rem */
    max-width: 600px; /* Reduced from 800px */
    margin: 0 auto 1.5rem; /* Reduced margin */
}

.hero-image {
    max-width: 80%; /* Reduced from 100% to make hero images smaller */
    max-height: 400px; /* Added max-height for consistency */
    height: auto;
    border-radius: 8px;
    margin-top: 1.5rem; /* Reduced from 2rem */
}

/* Section Styles */
.section-title {
    font-size: 1.8rem; /* Reduced from 2rem */
    margin-bottom: 0.75rem; /* Reduced margin */
    text-align: center;
}

.section-text {
    font-size: 1rem; /* Reduced from 1.1rem */
    color: var(--secondary-text);
    max-width: 600px; /* Reduced from 800px */
    margin: 0 auto 1.5rem; /* Reduced margin */
    text-align: center;
}

.section-image {
    max-width: 80%; /* Reduced from 100% to make section images smaller */
    max-height: 400px; /* Added max-height for consistency */
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto; /* Reduced from 2rem */
    display: block;
}

/* Features Grid */
.features-grid, .specialism-grid, .stats-grid, .team-grid, .services-grid, .assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduced min width from 250px */
    gap: 1.5rem; /* Reduced from 2rem */
    margin: 1.5rem 0; /* Reduced from 2rem */
}

.feature-card, .specialism-card, .stat-card, .team-card, .service-card, .assessment-card {
    background: var(--card);
    border-radius: 12px; /* Reduced from 16px for slightly smaller cards */
    padding: 1.2rem; /* Reduced from 1.5rem */
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.feature-card:hover, .specialism-card:hover, .team-card:hover, .service-card:hover, .assessment-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 1.5rem; /* Reduced from 2rem */
    color: #1e3a8a
    margin-bottom: 0.75rem; /* Reduced margin */
}

.team-image {
    width: 100%;
    max-width: 150px; /* Reduced from 200px for smaller headshots */
    height: auto;
    border-radius: 50%;
    margin-bottom: 0.75rem; /* Reduced margin */
}

.team-role {
    font-size: 0.9rem; /* Reduced from 1rem */
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.team-contact {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.team-contact:hover {
    color: var(--accent);
}

/* Clients Carousel */
.clients-carousel {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem; /* Reduced from 1rem */
    padding: 0.75rem 0; /* Reduced padding */
    scroll-snap-type: x mandatory;
}

.client-logo {
    max-width: 100px; /* Reduced from 150px for smaller logos */
    height: auto;
    scroll-snap-align: center;
}

/* Map Container */
.map-container {
    text-align: center;
    margin: 1.5rem 0; /* Reduced from 2rem */
}

.map-image {
    max-width: 80%; /* Reduced from 100% for smaller maps */
    max-height: 400px; /* Added max-height */
    height: auto;
    border-radius: 8px;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    max-width: 500px; /* Reduced from 600px */
    margin: 0 auto 1.5rem; /* Reduced margin */
}

.benefits-list li {
    font-size: 1rem; /* Reduced from 1.1rem */
    padding: 0.4rem 0; /* Reduced padding */
    position: relative;
    padding-left: 1.5rem; /* Reduced padding */
}

.benefits-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    color: #1e3a8a;
    left: 0;
    top: 0.4rem; /* Adjusted for smaller text */
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: 1.5rem; /* Reduced from 2rem */
    padding: 0.75rem; /* Reduced from 1rem */
}

/* Search Filter */
.search-filter {
    background: var(--card);
    border-radius: 12px; /* Reduced from 16px */
    padding: 1.2rem; /* Reduced from 1.5rem */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem; /* Reduced from 2rem */
}

.search-filter .flex {
    display: flex;
    flex-direction: row;
    gap: 0.75rem; /* Reduced from 1rem */
    align-items: center;
    flex-wrap: nowrap;
}

.search-filter .relative {
    position: relative;
    flex: 1;
    min-width: 250px; /* Reduced from 300px */
}

.search-filter input.input,
.search-filter select.input {
    width: 100%;
    padding: 10px 14px; /* Reduced padding */
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem; /* Reduced from 1rem */
    background: var(--card);
    transition: border-color 0.2s ease;
}

.search-filter select.input {
    width: 160px; /* Reduced from 180px */
}

.search-filter input.input.pl-10 {
    padding-left: 36px; /* Adjusted for smaller icon */
}

.search-filter input.input:focus,
.search-filter select.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 90, 254, 0.2);
}

.search-filter input.input::placeholder {
    color: var(--secondary-text);
}

.search-filter i.fa-search {
    position: absolute;
    left: 10px; /* Adjusted for smaller input */
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text);
    pointer-events: none;
}

/* Jobs Container */
.jobs-container {
    display: grid;
    gap: 1.5rem; /* Reduced from 2rem */
    margin-top: 0.75rem; /* Reduced from 1rem */
}

.jobs-container.grid-view {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced min width from 300px */
}

.jobs-container.list-view {
    grid-template-columns: 1fr;
}

.job-item.card {
    background: var(--card);
    border-radius: 12px; /* Reduced from 16px */
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
}

.job-item.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 1.2rem; /* Reduced from 1.5rem */
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
    position: relative;
}

.card-footer {
    margin-top: auto;
    padding-top: 0.75rem; /* Reduced from 1rem */
}

.job-item h3 {
    font-size: 1.1rem; /* Reduced from 1.25rem */
    margin-bottom: 0.5rem; /* Reduced margin */
}

.job-item h3 a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 600;
}

.job-item h3 a:hover {
    color: var(--primary);
}

/* Job Meta */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* Reduced from 1rem */
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    font-size: 0.8rem; /* Reduced from 0.875rem */
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 0.4rem; /* Reduced from 0.5rem */
    font-size: 0.9rem; /* Reduced from 1rem */
}

/* Job Description Preview */
.job-description-preview {
    font-size: 0.8rem; /* Reduced from 0.875rem */
    color: var(--secondary-text);
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
}

/* Tag */
.tag {
    display: inline-block;
    padding: 5px 12px; /* Reduced from 6px 14px */
    font-size: 0.8rem; /* Reduced from 0.875rem */
    font-weight: 500;
    border-radius: 16px; /* Reduced from 20px */
    background: #F0F9FF;
    color: var(--primary);
}

.tag.success {
    background: #ECFDF5;
    color: var(--accent);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
    padding: 8px 16px; /* Reduced from 10px 20px */
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem; /* Reduced from 0.875rem */
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2C47E8, #4F46E5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 8px 16px; /* Reduced from 10px 20px */
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem; /* Reduced from 0.875rem */
    border: 2px solid var(--primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem; /* Reduced from 1.5rem */
    color: #1e3a8a;
    position: absolute;
    top: 0.75rem; /* Reduced from 1rem */
    right: 0.75rem; /* Reduced from 1rem */
    z-index: 10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-btn i {
    transition: color 0.2s ease;
}

.bookmark-btn:hover i {
    color: #1e40af;
}

/* CTA Banner */
.cta-banner {
    background: var(--card);
    border-radius: 12px; /* Reduced from 16px */
    padding: 1.5rem; /* Reduced from 2rem */
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    margin: 1.5rem 0; /* Reduced from 2rem */
    
}

.cta-banner h2 {
    font-size: 1.5rem; /* Reduced from 1.8rem */
    
    margin-bottom: 0.75rem; /* Reduced from 1rem */
}

.cta-banner p {
    font-size: 1rem; /* Reduced from 1.1rem */
    color: var(--secondary-text);
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    max-width: 500px; /* Reduced from 600px */
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 1.2rem 0; /* Reduced from 1.5rem */
    color: white;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem; /* Reduced from 1rem */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.copyright {
    font-size: 0.9rem; /* Reduced from 1rem */
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 0.5rem; /* Reduced from 0.75rem */
    align-items: center;
}

.social-link {
    color: white;
    font-size: 1rem; /* Reduced from 1.2rem */
    text-decoration: none;
    padding: 0.4rem; /* Reduced from 0.5rem */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #E0F2FE;
    animation: bounce 0.4s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.social-link i {
    width: 20px; /* Reduced from 24px */
    height: 20px; /* Reduced from 24px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text-link {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced from 0.5rem */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.4rem 0.6rem; /* Reduced from 0.5rem 0.75rem */
    font-size: 0.9rem; /* Reduced from 1rem */
    font-weight: 500;
    color: #fff !important;
    text-decoration: none;
}

.footer-text-link i {
    font-size: 1rem; /* Reduced from 1.2rem */
    color: #fff !important;
}

.footer-text-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #e0f2fe !important;
    transform: scale(1.1);
}

.footer-text-link:hover i {
    color: #e0f2fe !important;
}

/* Error Message */
.error-message {
    color: var(--danger);
    background: #FEF2F2;
    padding: 0.6rem; /* Reduced from 0.75rem */
    border-radius: 8px;
    margin-bottom: 0.6rem; /* Reduced from 0.75rem */
    text-align: center;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem; /* Reduced from 3rem */
    }

    .hero-text {
        font-size: 1.2rem; /* Reduced from 1.4rem */
    }

    .section-title {
        font-size: 2rem; /* Reduced from 2.5rem */
    }

    .section-text {
        font-size: 1.1rem; /* Reduced from 1.2rem */
    }

    .jobs-container.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .jobs-container.grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .hero-section {
        padding: 2rem 0; /* Reduced from 3rem */
    }

    .hero-title {
        font-size: 1.8rem; /* Reduced from 2rem */
    }

    .hero-text {
        font-size: 0.9rem; /* Reduced from 1rem */
    }

    .jobs-container {
        grid-template-columns: 1fr;
    }

    .search-filter .flex {
        flex-wrap: wrap;
        gap: 0.5rem; /* Reduced from 0.75rem */
    }

    .search-filter input.input,
    .search-filter select.input {
        width: 100%;
        min-width: 0;
    }

    .search-filter select.input {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .logo {
        max-width: 160px; /* Reduced from 200px */
    }

    .btn-primary,
    .btn-secondary {
        padding: 6px 12px; /* Reduced from 8px 14px */
        font-size: 0.75rem; /* Reduced from 0.8rem */
    }

    .cta-banner {
        padding: 1rem; /* Reduced from 1.5rem */
    }

    .cta-banner h2 {
        font-size: 1.3rem; /* Reduced from 1.5rem */
    }

    .cta-banner p {
        font-size: 0.9rem; /* Reduced from 1rem */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        width: 100%;
        margin: 0.4rem 0; /* Reduced from 0.5rem */
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem; /* Reduced from 0.625rem */
    }

    .social-link {
        font-size: 0.9rem; /* Reduced from 1.1rem */
        padding: 0.3rem; /* Reduced from 0.375rem */
    }
}



.nav {
    margin-top: 1rem;
    text-align: center;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem; /* Increased from 1rem for larger links */
    padding: 0.75rem 1.25rem; /* Increased from 0.5rem 1rem */
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    color: var(--primary-text);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    transition: background 0.2s ease, color 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFadeIn 0.3s ease-out forwards;
}

.dropdown-link:nth-child(1) { animation-delay: 0.1s; }
.dropdown-link:nth-child(2) { animation-delay: 0.2s; }
.dropdown-link:nth-child(3) { animation-delay: 0.3s; }
.dropdown-link:nth-child(4) { animation-delay: 0.4s; }
.dropdown-link:nth-child(5) { animation-delay: 0.5s; }
.dropdown-link:nth-child(6) { animation-delay: 0.6s; }

.dropdown-link:hover, .dropdown-link.active {
    background: #F0F9FF;
    color: var(--primary);
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-link {
    display: block;
    color: var(--primary-text);
    text-decoration: none;
    font-size: 1rem; /* Slightly smaller than nav-link but larger than original */
    padding: 0.6rem 1.2rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover, .dropdown-link.active {
    background: #F0F9FF;
    color: var(--primary);
}

/* ... (rest of the styles unchanged, including .hero-section, .section-title, etc.) */

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-text {
        font-size: 1.1rem;
    }

    .jobs-container.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Ensure dropdown menu is usable on desktop */
    .dropdown-menu {
        width: 220px; /* Slightly wider for desktop */
    }
}

@media (min-width: 1024px) {
    .jobs-container.grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}


.posts-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Matches gap-2 in template */
    margin-top: 1.5rem;
}

.post-item.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 800px; /* Consistent width */
    min-width: 800px;
    min-height: 500px; /* Fixed minimum height for uniformity */
    margin: 0 auto; /* Center posts */
    display: flex;
    flex-direction: column;
}

.post-item.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 2px solid #e5e7eb;
}

.post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.post-content {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap; /* Preserve newlines and formatting */
    overflow: auto; /* Scroll for long content */
    flex-grow: 1; /* Ensure content fills remaining space */
}

.post-separator {
    border: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #3b82f6, transparent);
    margin: 2.5rem auto;
    width: 50%;
}
.like-btn {
        background: none;
        border: none;
        cursor: pointer;
        color: inherit;
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        transition: color 0.3s ease;
    }
    .like-btn:hover .fa-heart {
        color: #ef4444;
    }



@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        font-size: 1rem; /* Slightly smaller on mobile but still larger than original */
        padding: 0.6rem 1rem; /* Adjusted for mobile */
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background: var(--background);
        border: none;
        box-shadow: none;
        padding: 0.5rem 0;
    }

    .dropdown-link {
        font-size: 0.9rem; /* Adjusted for mobile */
        padding: 0.5rem 1rem;
    }


    

}


/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 20px 0;
    position: relative;
    min-height: 80px;
}

.logo {
    display: block;
    margin: 0 auto;
    max-width: 240px;
    height: auto;
    width: 100%;
}

.nav {
    margin-top: 1rem;
    text-align: center;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    transition: color 0.3s ease;
    position: relative; /* Needed for positioning the ::after element */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px; /* Default line thickness */
    background: var(--accent); /* Matches your --accent color (#00C896) */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%; /* Expands the line to full width on hover */
}

.nav-link.active::after {
    width: 100%; /* Full width for active link */
    height: 3px; /* Thicker line for active state */
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-link {
    display: block;
    color: var(--primary-text);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover, .dropdown-link.active {
    background: #F0F9FF;
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(122, 121, 121, 0.5)), url('/static/images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 4rem 0;
    text-align: center;
    max-height: 800px;
    min-height: 400px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: rgb(106, 109, 111)
    
}

.section-text {
    font-size: 1.1rem;
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* Features Grid */
.features-grid, .expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card, .expertise-card, .fact-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover, .expertise-card:hover, .fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

/* Expertise Section */
.expertise-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.expertise-card {
    padding: 2rem;
}

.expertise-list {
    list-style: none;
    text-align: left;
}

.expertise-list li {
    font-size: 1rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.expertise-list li i {
    color: #1e3a8a;
    font-size: 1.2rem;
}

/* Facts Section */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns for the first row on desktop */
    gap: 2rem;
    margin: 2rem 0;
}

.facts-second-row {
    grid-column: 1 / 4; /* Span all three columns */
    display: flex;
    justify-content: center; /* Center the two cards horizontally */
    gap: 2rem; /* Match the grid gap */
}

.facts-second-row .fact-card {
    flex: 0 0 calc(33.33% - 1.33rem); /* Match the width of first-row cards, accounting for gap */
}

.fact-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15);
}

.fact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.fact-card p {
    font-size: 0.95rem;
    color: var(--secondary-text);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .facts-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 1.5rem; /* Slightly smaller gap for mobile */
    }

    .facts-second-row {
        grid-column: auto; /* Reset to default grid behavior */
        display: grid; /* Use grid instead of flex for consistency */
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 1.5rem; /* Match the grid gap */
    }

    .facts-second-row .fact-card {
        flex: none; /* Reset flex properties */
        width: 100%; /* Full width for mobile */
    }
}

/* Join Section */
.join-section {
    background: linear-gradient(135deg, var(--primary), #6366F1);
    color: white;
    padding: 3rem 0;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.join-section .section-title {
    color: white;
}

.join-section .section-text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.join-section .btn-primary {
    background: white;
    color: var(--primary);
    padding: 10px 20px;
    font-size: 1rem;
}

.join-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e5d8a, #234ac7);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-text {
        font-size: 1.2rem;
    }

    .dropdown-menu {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        background: var(--background);
        border: none;
        box-shadow: none;
        padding: 0.5rem 0;
    }

    .dropdown-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .features-grid, .expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .logo {
        max-width: 160px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .join-section {
        padding: 2rem 0;
    }

    .join-section .section-title {
        font-size: 1.8rem;
    }

    .join-section .section-text {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        margin: 0.5rem 0;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .social-link {
        font-size: 1.1rem;
        padding: 0.375rem;
    }
}




/* Testimonials Section */
.testimonials-section {
    padding: 3rem 0;
    text-align: center;
}
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-slide {
    display: none;
    padding: 1.5rem; /* Reduced padding slightly since no image */
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
}
.testimonial-author {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}
.testimonial-title {
    font-size: 0.9rem;
    color: var(--secondary-text);
}
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.carousel-prev, .carousel-next {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.carousel-prev:hover, .carousel-next:hover {
    background: linear-gradient(135deg, #3461dd, #1e40af);
    transform: scale(1.1);
}
.carousel-prev i, .carousel-next i {
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .testimonials-section {
        padding: 2rem 0;
    }
    .testimonial-slide {
        padding: 1.5rem;
    }
    .testimonial-image {
        width: 80px; /* Smaller images on mobile */
        height: 80px;
    }
    .testimonial-text {
        font-size: 1rem;
    }
    .testimonial-author {
        font-size: 0.9rem;
    }
    .testimonial-title {
        font-size: 0.8rem;
    }
    .carousel-prev, .carousel-next {
        width: 36px;
        height: 36px;
    }
    .carousel-prev i, .carousel-next i {
        font-size: 1rem;
    }
}




/* Pathways Section */
.pathways-section {
    padding: 3rem 0;
    text-align: center;
    background: var(--background);
}

.pathways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

.pathway-card {
    background: var(--card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pathway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px -1px rgba(0, 0, 0, 0.15);
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.pathway-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    
    font-weight: 700;
}

.pathway-text {
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pathway-benefits h4 {
    font-size: 1.1rem;
    
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-align: left;
}

.pathways-section .benefits-list {
    text-align: left;
    margin: 0;
    padding: 0;
}

.pathways-section .benefits-list li {
    font-size: 0.9rem;
    padding: 0.4rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    padding-left: 2rem;
}

.pathways-section .benefits-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #1e3a8a;
    font-size: 0.9rem;
    position: absolute;
    left: 0;
    top: 0.6rem;
}

.pathways-section .benefits-list .benefit-text {
    display: block;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .pathways-section {
        padding: 2rem 0;
    }

    .pathways-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pathway-card {
        padding: 1.5rem;
    }

    .pathway-header h3 {
        font-size: 1.2rem;
    }

    .pathway-text {
        font-size: 0.9rem;
    }

    .pathway-benefits h4 {
        font-size: 1rem;
    }

    .pathways-section .benefits-list li {
        font-size: 0.85rem;
        padding-left: 1.8rem;
    }

    .pathways-section .benefits-list li::before {
        font-size: 0.8rem;
        top: 0.5rem;
    }
}




/* Workshops Grid Section */
.workshops-grid-section {
    padding: 3rem 0;
    text-align: center;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.workshop-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px -1px rgba(0, 0, 0, 0.15);
}

.workshop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.workshop-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    
    font-weight: 600;
}

.workshop-card p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .workshops-grid-section {
        padding: 2rem 0;
    }

    .workshops-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .workshop-card {
        padding: 1.2rem;
    }

    .workshop-card h3 {
        font-size: 1.1rem;
    }

    .workshop-card p {
        font-size: 0.85rem;
    }
}




/* Solutions Section */
.solutions-section {
    padding: 3rem 0;
    text-align: center;
}

.solutions-section .benefits-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.solutions-section .benefits-list li {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
    padding-left: 2rem;
}

.solutions-section .benefits-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #1e3a8a;
    font-size: 0.9rem;
    position: absolute;
    left: 0;
    top: 0.6rem;
}

.solutions-section .benefits-list .benefit-text {
    display: block;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .solutions-section {
        padding: 2rem 0;
    }

    .solutions-section .benefits-list {
        max-width: 100%;
    }

    .solutions-section .benefits-list li {
        font-size: 0.9rem;
        padding-left: 1.8rem;
    }

    .solutions-section .benefits-list li::before {
        font-size: 0.8rem;
        top: 0.5rem;
    }
}


/* Contact Section */
.contact-section {
    padding: 3rem 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-form {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15);
}

.contact-form h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--card);
    color: var(--primary-text);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 90, 254, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15);
}

.contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.contact-list {
    list-style: none;
    text-align: left;
}

.contact-list li {
    font-size: 1rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-list li i {
    color: #1e3a8a;
    font-size: 1.2rem;
}

.contact-list li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-list li a:hover {
    color: var(--accent);
}

/* Responsive Adjustments for Contact Section */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.2rem;
    }

    .contact-form h3,
    .contact-info h3 {
        font-size: 1.1rem;
    }

    .contact-list li {
        font-size: 0.9rem;
    }

    .contact-list li i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form,
    .contact-info {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .contact-form h3,
    .contact-info h3 {
        font-size: 1rem;
    }

    .contact-list li {
        font-size: 0.85rem;
    }
}

/* Contact Image */
.contact-image {
    max-width: 100%;
    max-height: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .contact-image {
        max-height: 150px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-image {
        max-height: 120px;
        margin-bottom: 0.75rem;
    }
}



/* Add side spacing for mobile devices */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem; /* Increased side padding for mobile */
    }
}

/* Mobile-specific navigation styles */
@media (max-width: 768px) {
    .header {
        padding: 15px 0; /* Adjusted padding for better spacing */
        position: relative;
        min-height: 60px; /* Reduced to accommodate hamburger */
    }

    .logo {
        max-width: 160px;
        margin: 40px auto 10px; /* Adjusted to avoid collision with hamburger */
    }

    .nav {
        margin-top: 0 !important;
        margin: 0;
        position: fixed;
        top: 0;
        left: -100%; /* Hidden off-screen by default */
        width: 280px; /* Slightly wider for readability */
        height: 100%; /* Dynamic full height */
        min-height: -webkit-fill-available; /* WebKit fix for full height */
        background: linear-gradient(135deg, #1e3a8a, #1e40af);
        padding: 0 1.5rem; /* No top/bottom padding here */
        transition: left 0.3s ease;
        z-index: 2000;
        overflow-y: auto; /* Enable scrolling for long menus */
        scrollbar-width: thin; /* Firefox: slim scrollbar */
        scrollbar-color: var(--accent) rgba(255, 255, 255, 0.2); /* Firefox: scrollbar colors */
        box-sizing: border-box; /* Ensure padding doesn't add to height */
    }

    .nav::-webkit-scrollbar {
        width: 8px; /* Chrome/Safari: slim scrollbar */
    }

    .nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1); /* Track background */
        border-radius: 4px;
    }

    .nav::-webkit-scrollbar-thumb {
        background: var(--accent); /* Scrollbar thumb */
        border-radius: 4px;
    }

    .nav::-webkit-scrollbar-thumb:hover {
        background: #00a378; /* Darker accent on hover */
    }

    .nav.active {
        left: 0; /* Show sidebar when active */
    }

    .nav-list {
        padding-top: calc(env(safe-area-inset-top) + 4rem);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem; /* Compact layout */
        
        padding-bottom: env(safe-area-inset-bottom);
        margin: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        width: 100%;
        display: block;
        color: white;
        border-radius: 6px;
        transition: background 0.2s ease, color 0.2s ease;
        position: relative; /* For underline */
    }

    .nav-link:hover, .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px; /* Default line thickness */
        background: var(--accent);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%; /* Expands the line to full width on hover */
    }

    .nav-link.active::after {
        width: 100%; /* Full width for active link */
        height: 3px; /* Thicker line for active state */
    }

    .dropdown {
        width: 100%; /* Full width for dropdown */
    }

    .dropdown-toggle {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: white;
        border-radius: 6px;
        transition: background 0.2s ease;
        position: relative; /* For underline */
    }

    .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .toggle-icon {
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .dropdown.active .toggle-icon {
        transform: rotate(180deg); /* Rotate chevron when active */
    }

    .dropdown-menu {
        display: block; /* Always block, but hidden with max-height 0 */
        position: static !important; /* Force flow in sidebar, no overlay */
        width: 100%;
        background: transparent !important; /* Override desktop white bg */
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0; /* No extra spacing */
        opacity: 1 !important; /* Ensure visible */
        transform: none !important; /* No transform */
        transition: max-height 0.3s ease-in-out; /* Slide down animation */
        max-height: 0;
        overflow: hidden; /* Hide content when collapsed */
        animation: none !important; /* Disable desktop animation */
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px; /* Arbitrary large value to allow expansion */
    }

    .dropdown-link {
        font-size: 1.1rem; /* Same size as nav-link for consistency */
        padding: 0.75rem 1rem 0.75rem 2rem; /* Indent with 1rem extra padding */
        width: 100%;
        display: block;
        color: white !important; /* Visible on dark background, override desktop */
        border-radius: 6px;
        transition: background 0.2s ease, color 0.2s ease;
        opacity: 1 !important; /* Ensure visible immediately */
        transform: none !important; /* No transform */
        animation: none !important; /* Disable desktop animation */
        position: relative; /* For underline */
    }

    .dropdown-link:hover, .dropdown-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent);
    }

    .dropdown-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s ease;
    }

    .dropdown-link:hover::after {
        width: 100%;
    }

    .dropdown-link.active::after {
        width: 100%;
        height: 3px;
    }

    /* Hamburger menu button */
    .menu-toggle {
        display: block;
        position: fixed; /* Fixed to stay in top-left corner */
        top: 15px;
        left: 15px;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 2100;
        width: 30px;
        height: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        padding: 5px;
        transition: all 0.3s ease; /* Smooth transition for hamburger */
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .menu-toggle.scrolled span {
        background: #1e3a8a; /* Dark color for visibility on light backgrounds */
    }
    .menu-toggle.active span {
    background: white !important;
}
}

/* Hide hamburger menu on desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}






/* Clients Section */
.clients-section {
    padding: 3rem 0;
    text-align: center;
}

.clients-carousel {
    position: relative;
    overflow: hidden;
    max-width: 664px; /* 4 slides * (150px + 16px gap) = 664px */
    margin: 0 auto;
}

.clients-track {
    display: flex;
    transition: transform 0.5s ease;
}

.client-slide {
    flex: 0 0 150px; /* Fixed width for each slide */
    margin-right: 16px; /* Gap between slides */
    padding: 1rem;
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    text-align: center;
}

.client-logo {
    max-width: 100px; /* Matches existing style */
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-prev, .carousel-next {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: linear-gradient(135deg, #3461dd, #1e40af);
    transform: scale(1.1);
}

.carousel-prev i, .carousel-next i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .clients-section {
        padding: 2rem 0;
    }

    .clients-carousel {
        max-width: 552px; /* 4 slides * (120px + 12px gap) = 528px + padding */
    }

    .client-slide {
        flex: 0 0 120px; /* Smaller width on mobile */
        margin-right: 12px; /* Smaller gap */
        padding: 0.75rem;
    }

    .client-logo {
        max-width: 80px; /* Smaller logos on mobile */
    }

    .carousel-prev, .carousel-next {
        width: 36px;
        height: 36px;
    }

    .carousel-prev i, .carousel-next i {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .clients-carousel {
        max-width: 276px; /* 2 slides * (120px + 12px gap) = 264px + padding */
    }
}