/* --- Variables & Theme --- */
:root {
    --color-bg-main: #ffffff;
    --color-bg-alt: #f4f7f6;
    --color-card-bg: #ffffff;
    --color-brand-navy: #002244;
    --color-accent-green: #0a5f38;
    --color-accent-green-light: #128a54;
    --color-text-main: #1a202c;
    --color-text-muted: #4a5568;
    --color-text-light: #ffffff;
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-padding: 60px 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* --- Resets & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 115px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 600; /* All standard text rendered bold */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-brand-navy);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

/* --- Typography Utilities --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent-green);
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-primary-sm {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.btn-primary-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary, .btn-primary-sm {
    background-color: var(--color-accent-green);
    color: var(--color-text-light);
    border-color: var(--color-accent-green);
}

.btn-primary:hover, .btn-primary-sm:hover {
    background-color: transparent;
    color: var(--color-accent-green);
    border-color: var(--color-accent-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(10, 95, 56, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-brand-navy);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-brand-navy);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-brand-navy);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary-sm) {
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    color: var(--color-text-main);
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--color-accent-green);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-brand-navy);
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-brand-navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.mobile-menu a:hover {
    color: var(--color-accent-green-light);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
}

.lazy-bg {
    background-image: none;
    transition: background-image 0.5s ease-in-out;
}

.subpage-hero {
    height: 40vh !important;
    min-height: 320px !important;
    padding-top: 100px;
}

.subpage-hero .hero-content h1 {
    font-size: clamp(2rem, 3.8vw, 3.2rem); /* Sized down to fit long titles cleanly */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* Subtle dark overlay to let the gradient show clearly */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px; /* Extended to the right to fit the background area */
    width: fit-content; /* Shrinks container width to fit the text length */
    margin: 0 auto; /* Centers the container */
    padding: 1.5rem 2.2rem; /* Reduced height by shrinking padding */
    border-radius: 24px; /* Soft, highly rounded edges */
    border: 2px solid rgba(255, 255, 255, 0.35); /* Translucent white border */
    background-color: rgba(2, 17, 36, 0.45); /* Glassmorphism translucent background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* White Theme text & button overrides inside hero */
.hero .hero-content h1, 
.hero .hero-content h1 span {
    color: #ffffff;
    margin-bottom: 0.75rem; /* Shrunk spacing under title */
}

.hero .hero-content p {
    color: rgba(255, 255, 255, 0.9);
}

.hero .hero-content .hero-btns .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero .hero-content .hero-btns .btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* --- Light/White Hero Theme Override (Homepage only) --- */
.hero-light {
    /* White background in padding area, transparent border area for the rotating glow */
    background: linear-gradient(#ffffff, #ffffff) padding-box; 
    border: 3px solid transparent; /* 3px track for the glow line */
    border-radius: 24px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); 
    position: relative;
    overflow: hidden; /* Clips the rotating background to the rounded edges */
}

/* Rotating Glow constrained exactly to the border edges */
.hero-light::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0) 25%,
        rgba(255, 255, 255, 0) 95%,
        rgba(255, 255, 255, 0.95) 100%
    );
    z-index: -1;
    animation: rotate-glow 6s linear infinite; /* Sweeps along the border edges */
    pointer-events: none;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-light.hero-content h1,
.hero-light.hero-content h1 span {
    color: var(--color-brand-navy);
}

.hero-light.hero-content p {
    color: var(--color-text-muted);
}

.hero-light.hero-content .hero-btns .btn-secondary {
    color: var(--color-brand-navy);
    border-color: rgba(0, 34, 68, 0.3);
}

.hero-light.hero-content .hero-btns .btn-secondary:hover {
    border-color: var(--color-brand-navy);
    background-color: rgba(0, 34, 68, 0.05);
    color: var(--color-brand-navy);
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: #ffffff; /* White text for contrast */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-logo {
    height: clamp(3rem, 5vw, 4.5rem);
    width: auto;
    object-fit: contain;
    margin-right: 1.25rem;
    mix-blend-mode: multiply; /* Blends out the white background */
}

.hero h1 span {
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9); /* Muted white text */
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Hero Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    right: 6rem;
    top: 56%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    color: #ffffff; /* Solid white text for visibility */
    z-index: 10;
    text-decoration: none;
    cursor: pointer;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.75)); /* Dark drop shadow around the whole widget */
    transition: color var(--transition-medium), opacity var(--transition-medium);
}

.scroll-indicator:hover {
    color: #ffffff;
    opacity: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
}

.scroll-indicator:hover .arrow-line {
    background-color: #ffffff;
}

.scroll-indicator:hover .arrow-line::after {
    border-color: #ffffff;
}

.scroll-indicator .vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    animation: text-glow-pulse 4s infinite ease-in-out;
}

.scroll-indicator .arrow-line {
    width: 5px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.65); /* Brighter line track */
    position: relative;
    border-radius: 3px;
    transition: background-color var(--transition-medium);
}

.scroll-indicator .scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 24px rgba(255, 255, 255, 0.6);
    animation: scroll-dot-slide 2.2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

.scroll-indicator .arrow-line::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 18px;
    height: 18px;
    border-bottom: 4px solid #ffffff; /* Solid white arrowhead border */
    border-right: 4px solid #ffffff;
    transform-origin: center;
    transition: border-color var(--transition-medium);
    animation: arrow-head-pulse 2.2s infinite ease-in-out;
}

@keyframes text-glow-pulse {
    0%, 100% {
        color: rgba(255, 255, 255, 0.85);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Maintain dark contrast shadow */
    }
    50% {
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

@keyframes scroll-dot-slide {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 110px;
        opacity: 0;
    }
}

@keyframes arrow-head-pulse {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.85);
        transform: translateX(-50%) rotate(45deg) scale(1);
    }
    50% {
        border-color: #ffffff;
        transform: translateX(-50%) rotate(45deg) scale(1.2);
    }
}

@media (max-width: 1024px) {
    .scroll-indicator {
        display: none;
    }
}

/* --- Hero Grid & Split Layout --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero-centered {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero-centered .hero-left {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-centered .hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.hero-centered .hero-content p {
    margin-left: auto;
    margin-right: auto;
}

.hero-centered .hero-btns {
    justify-content: center;
}

.hero-left, .hero-right {
    width: 100%;
}

.hero-about-box {
    padding: 2.5rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(2, 17, 36, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-about-box h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-about-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.hero-btns .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-btns .btn-secondary:hover {
    border-color: #ffffff;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background-color: transparent;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--color-brand-navy);
    transition: transform var(--transition-medium);
    box-shadow: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-green);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--color-brand-navy);
    margin-bottom: 0.5rem;
}

.stat-card p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    display: block;
    background-color: transparent;
    padding: 2rem 1.75rem; /* Slightly smaller padding */
    border-radius: 8px;
    border: 2px solid var(--color-brand-navy);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
    text-align: center; /* Centered content */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--color-brand-navy);
    transition: var(--transition-medium);
    z-index: -1;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-brand-navy);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card:hover h3, 
.service-card:hover p {
    color: var(--color-text-light);
}

.service-card:hover .service-card-link-text {
    color: var(--color-accent-green); /* Keep it green on hover */
}

.service-card-link-text {
    color: var(--color-accent-green); /* Deep Green default */
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.9rem;
    transition: color var(--transition-medium);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: color var(--transition-medium);
}
.service-card p {
    transition: color var(--transition-medium);
}

/* --- CTA Section --- */
.cta {
    background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-accent-green) 100%);
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.cta-container p {
    color: var(--color-text-light);
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.info-item .icon {
    font-size: 1.5rem;
    background-color: var(--color-bg-alt);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

.info-item h4 {
    margin-bottom: 0.25rem;
}

.contact-form {
    background-color: transparent;
    padding: 2.5rem;
    border-radius: 8px;
    border: 2px solid var(--color-brand-navy);
    box-shadow: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-main);
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-green);
    box-shadow: 0 0 0 2px rgba(10, 95, 56, 0.2);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    display: none;
}
.form-status.success { color: #0a5f38; display: block; }
.form-status.error { color: #e53e3e; display: block; }


/* --- Footer --- */
.footer {
    background-color: var(--color-brand-navy);
    border-top: 1px solid var(--color-border);
    padding-top: 4rem;
    color: var(--color-text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-brand .logo {
    color: var(--color-text-light);
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
    color: rgba(255,255,255,0.7);
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.footer-links a,
.footer-legal a {
    display: block;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--color-accent-green-light);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px) scaleY(0.85) scaleX(0.95);
    transition: opacity 1.6s ease, transform 2.0s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px) scaleX(0.85) scaleY(0.95);
    transition: opacity 1.6s ease, transform 2.0s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px) scaleX(0.85) scaleY(0.95);
    transition: opacity 1.6s ease, transform 2.0s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* --- Slower Swipe Transitions --- */
.swipe-in-left {
    opacity: 0;
    transform: translateX(-150px);
    transition: opacity 1.6s ease, transform 2.0s cubic-bezier(0.25, 1, 0.5, 1);
}

.swipe-in-right {
    opacity: 0;
    transform: translateX(150px);
    transition: opacity 1.6s ease, transform 2.0s cubic-bezier(0.25, 1, 0.5, 1);
}

.swipe-in-left.visible,
.swipe-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* --- Responsive Design --- */
@media screen and (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px 0;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    /* Hide scroll indicator on tablets and mobiles */
    .scroll-indicator {
        display: none !important;
    }

    /* Center the checklist and logo on small screens */
    .about-partner-row {
        justify-content: center !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Tighter padding for hero boxes on mobile screens */
    .hero-content {
        padding: 1.25rem 1.25rem !important;
        border-radius: 16px !important;
    }

    /* Center and shrink subpage header partner logos on mobile */
    .detail-card-header {
        justify-content: center !important;
        text-align: center !important;
    }

    .subpage-header-logo {
        height: 90px !important;
    }
}

/* --- Page Transition Overlay --- */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-brand-navy);
    z-index: 10000;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.5s ease-in-out;
}

.page-transition-overlay.loaded {
    opacity: 0;
    pointer-events: none;
}

.page-transition-overlay.exiting {
    opacity: 1;
    pointer-events: all;
}

/* --- Subpage Detail Card --- */
.detail-card {
    padding: 3rem;
    border-radius: 8px;
    border: 2px solid var(--color-brand-navy);
    margin-left: auto;
    margin-right: auto;
    max-width: 950px; /* Narrower width */
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.detail-card:first-of-type {
    margin-top: -35px; /* Shifted down (less overlap) */
}

.detail-card h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.detail-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.feature-item {
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* --- Flex Accordion Grid --- */
.flex-accordion {
    display: flex;
    gap: 1.5rem;
    max-width: 1150px;
    margin: -35px auto 0 auto;
    position: relative;
    z-index: 10;
    width: 100%;
    height: 420px; /* Fixed height for horizontal flex transitions */
}

.accordion-card {
    flex: 1;
    background-color: #ffffff; /* Pure white by default */
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Accordion hover logic: non-hovered contract, hovered expand */
.flex-accordion:hover .accordion-card {
    flex: 0.6;
    opacity: 0.85; /* Soft opacity dimming for non-hovered cards */
}

.flex-accordion .accordion-card:hover {
    flex: 1.8;
    opacity: 1;
    background-color: #1A365D; /* Dark Blue on hover */
    border-color: #1A365D;
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.3);
}

.accordion-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--color-brand-navy); /* Dark title default */
    font-family: var(--font-heading);
    transition: color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-card:hover h3 {
    color: #ffffff; /* White title on hover */
}

.accordion-card .card-initial p {
    color: var(--color-text-muted); /* Gray text default */
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    transition: color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-card:hover .card-initial p {
    color: rgba(255, 255, 255, 0.9); /* White text on hover */
}

/* Expanded rich text panel */
.accordion-card .card-details {
    opacity: 0;
    visibility: hidden;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.15s, 
                visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.15s, 
                border-color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    flex-grow: 1;
}

.accordion-card:hover .card-details {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.accordion-card .card-details h5 {
    color: var(--color-accent-green); /* Green header default */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-card:hover .card-details h5 {
    color: var(--color-accent-green-light); /* Brighter green on hover */
}

.accordion-card .card-details ul {
    list-style: none;
    padding-left: 0;
}

.accordion-card .card-details ul li {
    font-size: 0.9rem;
    color: var(--color-text-main); /* Dark text list default */
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-card:hover .card-details ul li {
    color: rgba(255, 255, 255, 0.9); /* White text list on hover */
}

.accordion-card:hover .card-details {
    opacity: 1;
    visibility: visible;
}

.accordion-card:hover .icon {
    transform: scale(1.1);
}

/* --- Responsive Design --- */
@media screen and (max-width: 992px) {
    .flex-accordion {
        flex-direction: column;
        height: auto;
        min-height: 650px;
        margin-top: 0;
        gap: 1.25rem;
    }
    
    .accordion-card {
        flex: none;
        height: 155px;
        transition: height 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
                    background-color 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                    opacity 0.4s ease;
    }
    
    .flex-accordion:hover .accordion-card {
        flex: none;
        height: 135px;
        opacity: 0.85;
    }
    
    .flex-accordion .accordion-card:hover {
        flex: none;
        height: 330px; /* Vertically expands on hover on mobile */
        opacity: 1;
        background-color: #1A365D; /* Dark Blue on hover */
    }
}

/* --- Partner Logo Styles --- */
.about-partner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    width: 100%;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.partner-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.partner-logo img {
    height: 110px; /* Highly balanced, standardized height */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Blends the off-white background out */
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.partner-logo img:hover {
    opacity: 1;
}

.subpage-header-logo {
    height: 160px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: height var(--transition-medium);
}
