/* CSS Variables */
:root {
    --color-primary: #0891B2;
    /* Medical Teal */
    --color-primary-dark: #0E7490;
    --color-secondary: #0F172A;
    /* Dark / Black */

    --color-text-main: #0F172A;
    --color-text-muted: #475569;
    --color-text-body: #4B5563;

    --color-bg: #F0FDFA;
    --color-white: #FFFFFF;

    --font-main: 'Manrope', sans-serif;

    /* Unified text sizes */
    --text-body: 1rem;
    --text-body-line-height: 1.7;

    --radius-pill: 9999px;
    --radius-card: 32px;
    --radius-sm: 12px;

    --shadow-soft: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
    --shadow-float: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Precise Header Height (No Gap) */
    background-color: #1E293B;
    /* Match Navbar for overscroll bounce */
}

/* Mobile Scroll Padding Override */
@media (max-width: 992px) {
    html {
        scroll-padding-top: 180px;
        /* Unified mobile offset */
    }
}

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

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 12px 12px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 700;
    transition: top 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: -2px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Плавный переход фона в белый цвет снизу */
/* Плавный переход фона удален, так как убрали градиент сверху */
body::before {
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    top: 0;
    z-index: 50;
    background: #1E293B;
    /* Dark Slate BG */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}


.logo-text {
    font-family: 'Russo One', sans-serif;
    font-weight: 400;
    font-size: 1.35rem;
    font-size: 1.35rem;
    /* Slightly bigger for Russo One */
    color: white;
    /* White Text for Dark Header */
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Central Nav Pill */
.nav-center {
    display: flex;
    align-items: center;
    gap: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    /* Darker semi-transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 6px 6px 24px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* Darker shadow */
}

.nav-links {
    display: flex;
    gap: 4px;
    /* Reduced gap to accommodate padding */
    overflow: visible;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    font-size: 0.95rem;
    font-weight: 600;
    color: #CBD5E1;
    /* Slate 300 - Light gray for dark bg */
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    /* Added padding for button shape */
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    /* Hover on dark */
    color: white;
    box-shadow:
        0 0 15px rgba(100, 116, 139, 0.25),
        inset 0 0 10px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--color-text-main);
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Glass style nav link without underline */
.nav-link-glass {
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-link-glass::after {
    display: none;
}

.nav-link-glass:hover {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    border-color: rgba(148, 163, 184, 0.5);
}

.nav-hamburger {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #374151;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Nav Overflow Dropdown */
.nav-overflow-dropdown {
    position: relative;
    display: none;
    /* Hidden by default, shown by JS when items overflow */
}

.nav-overflow-dropdown.visible {
    display: block;
}

.nav-overflow-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-overflow-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-overflow-btn[aria-expanded="true"] {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.nav-overflow-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.nav-overflow-menu:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-overflow-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.nav-overflow-link:hover {
    background: rgba(8, 145, 178, 0.1);
    color: var(--color-primary);
}

.nav-overflow-link iconify-icon {
    font-size: 18px;
}

/* Hidden nav items (overflow) */
.nav-link.nav-hidden {
    display: none !important;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    /* Match btn-white */
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Match btn-white shadow */
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    /* Add transition */
}

.lang-toggle:hover {
    background: #F8FAFC;
    color: var(--color-text-main);
    box-shadow:
        0 0 15px rgba(100, 116, 139, 0.25),
        inset 0 0 10px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.lang-text {
    font-weight: 700;
    font-size: 0.85rem;
}

.toggle-dot {
    width: 8px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 50%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    /* General hover shadow enhancement */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    /* Contrast text */
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-white {
    background: white;
    color: var(--color-text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(100, 116, 139, 0.12),
            transparent);
    transition: left 0.5s ease;
}

.btn-white:hover::before {
    left: 100%;
}

.btn-white:hover {
    background: #F8FAFC;
    color: var(--color-text-main);
    box-shadow:
        0 0 15px rgba(100, 116, 139, 0.25),
        inset 0 0 10px rgba(255, 255, 255, 0.9);
    transform: translateY(-3px) scale(1.02);
}

.btn-primary {
    background: rgba(8, 145, 178, 0.85);
    /* Glassy Teal */
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.25);
    /* Colored shadow */
}


.btn-dark {
    background: rgba(30, 41, 59, 0.85);
    /* Glassy Dark */
    color: white;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.25);
    /* Colored shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 41, 59, 0.4);
    background: rgba(30, 41, 59, 0.95);
}


.icon-left {
    gap: 10px;
}

/* Tooltip Wrapper & Bubble */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    color: #374151;
    text-align: center;
    width: 280px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    pointer-events: none;
}

/* Speech bubble tail */
.tooltip-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}

.tooltip-wrapper:hover .tooltip-bubble,
.tooltip-wrapper:focus-within .tooltip-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}


/* Hero Section */
.hero {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    /* Background Image specific to Hero */
    background-color: #FFFFFF;
    background: linear-gradient(90deg, #FFFFFF 35%, rgba(255, 255, 255, 0) 80%),
        url('./assets/hero.jpg');
    background-repeat: no-repeat;
    background-size: auto 100%;
    /* Fit height explicitly */
    background-position: right center;
    /* Minimum height to ensure image is visible and large enough */
    min-height: 700px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero {
        background: linear-gradient(0deg, #FFFFFF 30%, rgba(255, 255, 255, 0) 70%),
            url('./assets/hero-mobile.png');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center top;
        min-height: 600px;
        /* Slightly shorter on mobile but tall enough */
    }
}




.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Give more space to text since right is now bg */
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Content above image */
}

/* Hero Left */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 650px;
    /* Limit line length */
    padding-bottom: 30px;
    /* Space for button shadows */
    background: transparent;
    /* Ensure transparency per user request */
}

/* ... rest of hero left ... */

.hero-intro-block {
    position: relative;
    max-width: 400px;
    width: fit-content;
    /* Shrink to wrap text tightly */
}

.intro-text {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.intro-star {
    position: absolute;
    top: -14px;
    right: -42px;
    font-size: 42px;
    /* Much larger */
    color: var(--color-secondary);
}

/* Trusted Users */
.trusted-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--color-bg);
    background-size: cover;
    margin-left: -12px;
}

.avatar:first-child {
    margin-left: 0;
}

.trusted-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.count {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1;
}

.label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Headline */
.hero-title {
    font-family: 'Russo One', sans-serif;
    /* Matching the logo */
    font-size: 3.5rem;
    /* Adjusted for Russo One's width */
    line-height: 1.2;
    font-weight: 400;
    color: var(--color-text-main);
    /* Unified Heading Color */
    text-transform: uppercase;
    /* Russo One usually looks best uppercase in headlines */
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.text-highlight {
    color: var(--color-primary);
    /* Support Button Color */
    font-weight: 700;
}

.title-decoration-pill {
    display: inline-flex;
    vertical-align: middle;
    color: var(--color-primary);
    /* Use Primary Button Color for Highlights */
    font-size: 64px;
    /* Increased from 48px */
    filter: drop-shadow(0 10px 10px rgba(59, 130, 246, 0.2));
    transform: rotate(-15deg) translateY(5px);
    /* Adjusted Y slightly for new size */
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

/* Hero Right Visuals */
.hero-right {
    position: relative;
    display: flex;
    justify-content: flex-start;
    /* Align to the left (closer to text) */
    align-items: center;
    /* Removed fixed height 600px to adapt to square content */
}

.hero-visual-wrapper {
    position: relative;
    /* Wrapper fits the content */
    width: auto;
    height: auto;
}

.doctor-card-mask {
    width: 500px;
    height: 600px;
    border-radius: 48px;
    overflow: hidden;
    position: relative;
    z-index: 10;

    /* Gradient Border Effect */
    background: linear-gradient(135deg, #0891B2 0%, #22D3EE 50%, #22C55E 100%);
    padding: 3px;

    /* Glow Effect */
    box-shadow:
        0 25px 50px -12px rgba(8, 145, 178, 0.25),
        0 0 80px rgba(34, 211, 238, 0.15),
        0 0 120px rgba(8, 145, 178, 0.1);

    /* Smooth transition for hover */
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.doctor-card-mask:hover {
    box-shadow:
        0 30px 60px -12px rgba(139, 92, 246, 0.35),
        0 0 100px rgba(139, 92, 246, 0.25),
        0 0 150px rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
}

/* Inner container for the image */
.doctor-card-mask .doctor-image {
    border-radius: 45px;
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Internal Overlays (Testimonials) */
.tag-floating {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    z-index: 20;
    white-space: nowrap;
    /* animation: float 6s ease-in-out infinite; - REMOVED for UX/A11y */
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.tag-testimonial-1 {
    top: 80px;
    /* Moved up */
    right: 10px;
    border-bottom-right-radius: 4px;
}

.tag-testimonial-2 {
    top: 300px;
    /* Moved down slightly */
    left: -70px;
    /* Moved left */
    border-bottom-left-radius: 4px;
    animation-delay: 2s;
}

.reaction-cluster {
    display: flex;
    margin-right: 4px;
}

.emoji {
    font-size: 1.2rem;
    line-height: 1;
}

/* Doctor Info Card (Main Testimonial) */
.doctor-info-card {
    position: absolute;
    bottom: 90px;
    /* Moved slightly lower */
    right: 20px;
    width: 330px;
    /* Slightly narrower */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 14px 20px;
    /* Reduced vertical padding */
    border-radius: 24px;
    z-index: 20;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    /* Depth shadow */
}

.doctor-info-card h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    /* Slightly tighter line height */
    margin-bottom: 10px;
    /* Reduced margin */
    font-style: normal;
    /* Removed italic */
    font-weight: 600;
    /* Match standard UI text weight */
    color: var(--color-text-main);
}

.doctor-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-text {
    flex: 1;
}

.profile-text .name {
    font-weight: 700;
    font-size: 0.85rem;
}

.profile-text .role {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.card-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background: #FEF2F2;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Specialist Pills */
.specialist-pills {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    /* Tight gap like nav */
    z-index: 20;
    width: auto;
    /* Fit content */

    /* Glassy Container Style (Matching .nav-center) */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 6px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.spec-pill {
    background: transparent;
    /* Transparent base */
    color: var(--color-text-main);
    /* Match btn-white text color */
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    /* No individual borders */
    box-shadow: none;
    /* No individual shadows */
    cursor: pointer;
    transition: all 0.3s ease;
}

.spec-pill:hover {
    background: #F8FAFC;
    color: var(--color-text-main);
    transform: translateY(-1px);
    box-shadow:
        0 0 15px rgba(100, 116, 139, 0.25),
        inset 0 0 10px rgba(255, 255, 255, 0.9);
}

.spec-pill.active {
    background: #F8FAFC;
    color: var(--color-text-main);
    box-shadow:
        0 0 15px rgba(100, 116, 139, 0.25),
        inset 0 0 10px rgba(255, 255, 255, 0.9);
}

/* External Floating Card (Large Testimonial) */
.float-card {
    position: absolute;
    top: 30px;
    /* Moved up */
    left: -140px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 14px 20px;
    /* Reduced vertical padding */
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    /* Depth shadow */
    z-index: 30;
    display: flex;
    gap: 16px;
    min-width: 260px;
    max-width: 300px;
    min-width: 260px;
    max-width: 300px;
    /* animation: float 7s ease-in-out infinite; - REMOVED for UX/A11y */
    animation-delay: 1s;
}

.card-icon-box {
    width: 48px;
    height: 48px;
    background: #FEF2F2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}


.reaction-bar {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.reaction {
    font-size: 0.75rem;
    font-weight: 600;
    background: #F1F5F9;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}



/* Stats Bar */
.stats-bar {
    padding-top: 20px;
    background: transparent;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid #E2E8F0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center on mobile, left on desktop usually */
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Responsive */
@media (min-width: 992px) {
    .stat-item {
        align-items: flex-start;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-left {
        align-items: center;
    }

    .hero-intro-block {
        text-align: center;
    }

    .intro-star {
        right: 50%;
        transform: translateX(50%) translateY(-30px);
    }

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

    .float-card {
        left: 0;
        top: 10%;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        justify-items: center;
    }

    .navbar-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 16px;
    }
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .title-decoration-pill {
        font-size: 40px;
        /* Resize icon */
    }

    .hero-intro-block {
        flex-direction: column;
        gap: 10px;
    }

    .intro-star {
        display: none;
        /* Hide decorative star on small mobile to reduce clutter */
    }

    .hero-right {
        justify-content: center;
        /* Center visuals on mobile */
        width: 100%;
        margin-top: 20px;
    }

    .doctor-card-mask {
        width: 100%;
        max-width: 340px;
        /* Fit on standard mobile */
        height: 400px;
        /* Proportional reduction */
    }

    /* Reposition floating elements for mobile safe-zone */
    .float-card {
        display: none;
        /* Hidden on mobile to prevent overlap with photo */
    }

    .tag-testimonial-2 {
        /* "Hope" tag */
        left: -10px;
        top: 65%;
        /* Moved lower */
    }

    .doctor-info-card {
        display: none;
        /* Hide large bottom card on mobile to save space */
    }
}

/* Custom Animations */
/* Slow Shadow Pulse (Independent) */
@keyframes heartbeat-shadow-slow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.6);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(250, 204, 21, 0.4);
    }
}

/* 60 BPM Heartbeat (Icon Only) */
@keyframes heartbeat-icon-pulse {

    0%,
    100% {
        color: white;
        transform: scale(1);
    }

    50% {
        color: #EF4444;
        /* Red Icon */
        transform: scale(1.6);
        filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.6));
    }
}



/* ============================================
   HERO IMPROVEMENTS - New Styles
   ============================================ */

/* Hero Subtitle */
.hero-subtitle {
    font-size: var(--text-body);
    line-height: var(--text-body-line-height);
    color: var(--color-text-muted);
    max-width: 480px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: bounce-down 2s ease-in-out infinite;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 20;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

@keyframes bounce-down {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in-visible {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-center {
        position: relative;
        z-index: 102;
        margin-left: 16px;
        margin-right: 16px;
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
    }

    .nav-links {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }

    /* Overflow dropdown always stays visible */
    .nav-overflow-dropdown {
        flex-shrink: 0;
    }

    /* Ensure overflow dropdown button is bigger on mobile */
    .nav-overflow-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    /* Adjust dropdown menu position for mobile */
    .nav-overflow-menu {
        right: 0;
        min-width: 180px;
    }
}

/* Accessibility: Focus States */
.btn:focus-visible,
.nav-link:focus-visible,
.nav-hamburger:focus-visible,
.scroll-indicator:focus-visible,
.slideshow-dots .dot:focus-visible,
.lang-toggle:focus-visible,
.bento-item a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* Image Gradient Overlay for better card readability */
.doctor-card-mask::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.6) 0%,
            transparent 100%);
    pointer-events: none;
    z-index: 5;
}

/* Enhanced CTA Button */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced Dark Button */
.btn-dark {
    position: relative;
    overflow: hidden;
}

.btn-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.btn-dark:hover::before {
    left: 100%;
}

/* ============================================
   BENTO GRID - Hero Right Section
   ============================================ */

.bento-grid {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 850px;
}

/* Base Bento Item */
.bento-item {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

/* Main Photo */
.bento-main {
    flex-shrink: 0;
    width: 320px;
    position: relative;
}

.bento-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
}

.bento-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
}

.bento-tag {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

/* Slideshow Styles */
.bento-slideshow {
    position: relative;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* Hide parts of ribbon outside */
    display: flex;
    align-items: center;
    /* Vertically center if needed, but track is 100% height */
}

/* The Ribbon Track */
.slideshow-track {
    position: relative;
    /* Ensure offsetParent for slides */
    display: flex;
    height: 100%;
    width: max-content;
    flex-shrink: 0;
    /* Prevent track from shrinking inside flex container */
    /* Allow it to grow horizontally */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);

    /* HARDWARE ACCELERATION */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;

    gap: 0;
    /* No gaps between images */
}

/* Slide Styles for Ribbon */
.slideshow-container .slide {
    position: relative;
    /* Not absolute anymore */
    width: auto;
    /* Natural width */
    height: 100%;
    /* Fit container height */
    flex-shrink: 0;
    /* Don't shrink */
    object-fit: cover;
    display: block;
    /* Remove inline gap */

    /* Remove old transition/transform properties */
    transform: none;
    opacity: 0.5;
    /* Dim inactive slides for focus effect */
    transition: opacity 0.3s ease;
    border-radius: 0;
    /* Ribbon usually looks better flat, or maybe small radius? Let's keep 0 for seamless join */
}

.slideshow-container .slide.active {
    opacity: 1;
    z-index: 2;
    /* Visual prominence if needed */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    /* Subtle lift */
    position: relative;
    z-index: 5;
}

/* Remove old specific states */
.slideshow-container .slide.prev,
.slideshow-container .slide.next {
    transform: none;
    opacity: 0.5;
}

/* Navigation Arrows */
.slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    color: var(--color-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slide-nav-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slideshow-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 30;
}

.slideshow-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    /* Context for pseudo-element */
}

/* Initial touch target expansion */
.slideshow-dots .dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 50%;
}

.slideshow-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slideshow-dots .dot.active {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slideshow-caption {
    transition: opacity 0.3s ease;
}

/* Right Side Container */
.bento-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* Row Container */
.bento-row {
    display: flex;
    gap: 12px;
}

.bento-row>.bento-item {
    flex: 1;
    min-width: 0;
}

/* Global Stats Card */
.bento-stats-global {
    padding: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.05));
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stats-globe-icon {
    font-size: 1.4rem;
    color: #3B82F6;
}

.stats-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-big-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0891B2 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-description {
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-subtext {
    font-size: 0.8rem;
    color: #6B7280;
    margin-bottom: 6px;
}

.stat-highlight {
    font-weight: 700;
    color: #EC4899;
}

.stat-source {
    font-size: 0.65rem;
    color: #9CA3AF;
    font-style: italic;
}

/* Mission Card */
.bento-mission {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
}

.mission-icon {
    font-size: 2rem;
    color: #EC4899;
    margin-bottom: 10px;
}

.mission-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mission-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #374151;
    font-weight: 600;
}

/* Activities Card */
.bento-activities {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
}

.activity-icon {
    font-size: 1.2rem;
    color: #10B981;
}

.activity-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1F2937;
}

/* Testimonial Card */
.bento-testimonial {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.04));
}

.quote-icon {
    font-size: 1.4rem;
    color: #8B5CF6;
    margin-bottom: 8px;
}

.testimonial-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #374151;
    font-weight: 500;
    font-style: italic;
}

.testimonial-footer {
    margin-top: 10px;
}

.testimonial-author {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8B5CF6;
}

/* Projection Card */
.bento-projection {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(245, 158, 11, 0.05));
}

.projection-year {
    font-size: 1.6rem;
    font-weight: 800;
    color: #F59E0B;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 12px;
}

.projection-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projection-text {
    font-size: 0.8rem;
    color: #6B7280;
    margin-right: auto;
}

.projection-cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

/* ============================================
   BENTO GRID - Responsive Styles
   ============================================ */

/* Tablet (768px - 1200px): Vertical Stack */
@media (max-width: 1200px) {
    .bento-grid {
        flex-direction: column;
        max-width: 600px;
        margin: 0 auto;
    }

    .bento-main {
        width: 100%;
        height: 350px;
    }

    .bento-right {
        width: 100%;
    }

    .bento-row {
        flex-direction: row;
    }

    .bento-row>.bento-item {
        flex: 1;
    }

    .slideshow-dots {
        bottom: 40px;
    }
}

/* Mobile (< 768px): Minimal Layout */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        gap: 30px;
        padding-top: 20px;
    }

    .hero-left {
        text-align: center;
        max-width: 100%;
    }

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

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .bento-grid {
        flex-direction: column;
        max-width: 100%;
        gap: 12px;
    }

    .bento-main {
        width: 100%;
        height: 300px;
    }

    .bento-row {
        flex-direction: column;
        gap: 12px;
    }

    /* Hide secondary cards on mobile */
    .bento-testimonial,
    .bento-projection {
        display: none;
    }

    /* Compact card styles */
    .bento-stats-global,
    .bento-mission,
    .bento-activities {
        padding: 14px;
    }

    .stat-big-number {
        font-size: 1.6rem;
    }

    .mission-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .mission-text {
        font-size: 0.85rem;
    }

    .activity-item {
        padding: 6px 10px;
    }

    .slideshow-dots {
        bottom: 30px;
    }

    .slideshow-dots .dot {
        width: 8px;
        height: 8px;
    }
}

/* Small Mobile (< 480px): Extra Compact */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .bento-main {
        height: 260px;
    }

    .bento-stats-global,
    .bento-mission {
        padding: 12px;
    }

    .stat-big-number {
        font-size: 1.4rem;
    }

    .stats-header {
        margin-bottom: 6px;
    }

    .stat-description {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .stat-subtext {
        font-size: 0.75rem;
    }

    /* Stack activities horizontally on small screens */
    .bento-activities {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .activity-item {
        flex: 0 0 auto;
        padding: 6px 10px;
        border-radius: 20px;
    }

    .activity-item span {
        font-size: 0.75rem;
    }

    .activity-icon {
        font-size: 1rem;
    }

    .slideshow-dots {
        bottom: 20px;
        gap: 6px;
    }
}

/* ============================================
   ADVANCED DESIGN - Extended Styles
   ============================================ */

/* Gradient Text for Highlight */
/* Gradient removed manually for solid color request */
/* .text-highlight gradient removed */


/* Text Accent - highlighted keywords */
.text-accent {
    color: var(--color-primary);
    font-weight: 700;
    position: relative;
}

.text-accent::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    border-radius: 2px;
}

/* Decorative Blob Shapes */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    animation: blob-pulse 8s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.3));
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(249, 115, 22, 0.2));
    bottom: 50px;
    left: -80px;
    animation-delay: 4s;
}

@keyframes blob-pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(10deg);
    }
}

/* Micro-animations for Cards */
.float-card,
.tag-floating,
.doctor-info-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease;
}

.float-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 16px 48px rgba(31, 38, 135, 0.25);
}

.tag-floating:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.doctor-info-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

/* Specialist Pills enhanced hover */
.spec-pill {
    position: relative;
    overflow: hidden;
}

.spec-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.spec-pill:hover::before {
    left: 100%;
}

/* Avatar group hover effect */
.avatar {
    transition: transform 0.3s ease, z-index 0.3s;
}

.avatar:hover {
    transform: scale(1.15) translateY(-3px);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Count number pulse animation */
.count {
    display: inline-block;
    animation: count-pulse 3s ease-in-out infinite;
}

@keyframes count-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Decorative dots pattern */
.hero-visual-wrapper::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, var(--color-primary) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Animated underline for nav links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

.nav-link {
    position: relative;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-section {
    padding: 60px 0;
    /* Standard padding */
    background: #FFFFFF;
    position: relative;

}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    /* Wider gap for dividers */
    position: relative;
}

/* Vertical Divider (Between bottom two cards) */
.projects-grid::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    /* Start from bottom */
    top: 40%;
    /* Start halfway down (skipping top card) */
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(30, 41, 59, 0.2) 20%, rgba(30, 41, 59, 0.2) 80%, transparent);
    transform: translateX(-50%);
    pointer-events: none;
}

.project-card:first-child {
    grid-column: 1 / -1;
    /* Horizontal Divider (Below top card) */
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, rgba(30, 41, 59, 0.2) 20%, rgba(30, 41, 59, 0.2) 80%, transparent) 1;
    margin-bottom: 20px;
    padding-bottom: 40px;
}

.project-card {
    background: transparent;
    /* Flat Design */
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: auto;
    transition: none;
    /* Remove hover effects */
}

/* Remove hover scale */
.project-card:hover {
    transform: none;
    box-shadow: none;
}

.project-header {
    background: transparent;
    padding: 0 0 16px 0;
    /* Remove box padding */
    font-weight: 800;
    color: #1E293B;
    /* Dark Slate */
    font-size: 1.5rem;
    margin: 0 0 16px 0;
    min-height: auto;
    display: block;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.project-body {
    padding: 0;
    /* Remove inner padding */
    flex: 1;
    text-align: justify;
    /* Justified Text */
    color: #334155;
    /* Slate 700 */
}

.project-body p {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* Responsive Grid for Projects */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .projects-grid::after {
        display: none;
        /* Hide vertical divider */
    }

    .project-card:first-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* ============================================
   TEAM SECTION
   ============================================ */
/* ============================================
   TEAM SECTION (Bento Grid)
   ============================================ */
.team-section {
    background: #1E293B;
    /* Dark Slate Background */
    color: #FFFFFF;
    padding: 60px 0;

}

/* ============================================
   TEAM SECTION (Rectilinear Design)
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /* Wider gap for vertical line space */
    position: relative;
    /* For vertical line positioning */
}

/* Vertical Separator */
.team-grid::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    /* Start from top */
    bottom: auto;
    /* Don't span full height */
    height: 500px;
    /* Approximate height of top row cards */
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.3) 80%, transparent);
    transform: translateX(-50%);
    pointer-events: none;
}

/* Hide divider on mobile */
@media (max-width: 768px) {
    .team-grid::after {
        display: none;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* New Card Structure */
.team-card {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.team-card-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}

/* Photos: Rectangular, Top-Left */
.team-photo {
    object-fit: cover;
    border: none;
    display: block;
    border-radius: 4px;
    /* Slight rounding for polish */
    margin: 0;
    align-self: flex-start;
    mask-image: none;
    -webkit-mask-image: none;
}

.photo-large {
    width: 140px;
    height: 180px;
    /* Rectangular Portrait */
}

.photo-small {
    width: 100px;
    height: 100px;
    /* Square/Rect */
}

/* Info Box (Name + Role) */
.team-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4px;
    /* Align with top of photo */
}

.team-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    text-align: left;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 700;
    color: #38BDF8;
    /* Sky Blue Accent */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    text-align: left;
    padding: 0;
}

/* Description */
.team-description {
    text-align: justify;
    padding: 0;
}

.team-description p {
    font-size: 1.1rem;
    color: #E2E8F0;
    margin: 0;
    line-height: 1.6;
}

/* Right Column Helper & Horizontal Line */
.team-col-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Space for horizontal divider */
    position: relative;
    justify-content: space-between;
}

/* Horizontal Separator (Between Deputies) */
.team-col-right::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.3) 80%, transparent);
    transform: translateY(-50%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .team-col-right::after {
        display: none;
    }
}

/* Team Manifesto / Footer Block */
/* Team Manifesto / Footer Block */
.team-manifesto {
    grid-column: 1 / -1;
    /* Span full width */
    margin-top: 30px;
    /* Reduced from 40px + removed padding */
    position: relative;
    /* Remove max-width to match grid width */
    max-width: none;
    text-align: justify;
}

/* Manifesto Horizontal Dividers Removed */
/* .team-manifesto::before and ::after deleted */

.team-manifesto p {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 1.1rem;
    /* Match team description font size */
    line-height: 1.6;
    color: #E2E8F0;
    /* Light Slate */
    font-weight: 500;
}

.team-manifesto img {
    flex-shrink: 0;
    /* Prevent image from shrinking */
}

/* Standalone CTA Block */
.team-cta-block {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    /* Stack text and button */
    align-items: center;
    /* Center horizontally */
    text-align: center;
    /* Center text */
    margin-top: 32px;
    /* Increased spacing */
    position: relative;
    z-index: 2;
}

/* Custom CTA Styling Removed - Using Standard .btn .btn-primary */

/* ============================================
   MISSION SECTION
   ============================================ */

/* Mission Section */
.mission-section {
    padding: 60px 0;
    /* Standard padding */
    background: #1E293B;
    /* Dark Slate (Match Header) */
    position: relative;

    /* Prevent header overlap */
}

/* Slideshow Section */
#projects-slideshow {}

/* FINDRISC Section */
.findrisc-section {
    padding: 60px 0;
    background: #CBD5E1;
    /* Match Mission Background */
    position: relative;
    overflow: hidden;
    margin-bottom: 0;

}

.mission-section::before {
    display: none;
}



.mission-section .container {
    position: relative;
    z-index: 1;
}

.mission-block {
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    text-align: center;

}

/* Section Connector */
/* Section Connector */
.section-connector {
    width: 100%;
    height: 30px;
    /* Reduced from 60px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    position: relative;
    z-index: 10;
}

.section-connector svg {
    width: 100%;
    max-width: 600px;
    height: 20px;
    /* Reduced to fit 30px container */
    opacity: 0.6;
}

/* Removed hover from mission-block */

.mission-media-wrapper {
    width: 266px;
    height: 266px;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.mission-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease;
}

.mission-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the container, cropping height/width as needed */
    position: absolute;
    top: 0;
    left: 0;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease;
    opacity: 1;
    /* Always visible */
    border-radius: 50%;
    /* Optional: ensures video doesn't have square corners if needed, match image shape if applicable */
}

/* Hover effect removed - video always visible */

.mission-heading {
    font-family: 'Russo One', sans-serif;
    /* Ensure font consistency */
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    /* White for Dark Theme */
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    text-align: center;
    text-transform: uppercase;
    /* Standardized text case */
}

.mission-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.mission-text {
    flex: 1;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.1);
    /* Glassy Dark Theme */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-text:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(100, 116, 139, 0.12);
}

.mission-text p {
    font-size: var(--text-body);
    line-height: var(--text-body-line-height);
    color: #E2E8F0;
    /* Lighter Text for dark theme */
    margin: 0;
}

.mission-text-left {
    text-align: right;
}

.mission-text-right {
    text-align: left;
}

/* Mission Section Responsive */
@media (max-width: 992px) {
    .mission-layout {
        gap: 24px;
    }

    .mission-text {
        max-width: 320px;
    }

    .mission-media-wrapper {
        width: 213px;
        height: 213px;
    }
}

@media (max-width: 768px) {
    .mission-section {
        padding: 30px 0;
    }

    .mission-block {
        padding: 32px 24px;
        border-radius: 24px;
        margin: 0 16px;
    }

    .mission-layout {
        flex-direction: column;
        gap: 24px;
    }

    .mission-text {
        max-width: 100%;
    }

    .mission-text-left,
    .mission-text-right {
        text-align: center;
    }

    .mission-media-wrapper {
        order: 0;
        width: 187px;
        height: 187px;
    }

    .mission-text-left {
        order: 1;
    }

    .mission-text-right {
        order: 2;
    }

    .mission-heading {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .mission-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .mission-block {
        padding: 28px 20px;
    }

    .mission-heading {
        font-size: 1.5rem;
    }

    .mission-text p {
        font-size: 0.95rem;
    }

    .mission-media-wrapper {
        width: 160px;
        height: 160px;
    }
}

/* ============================================
   SECTION NAVIGATION - Fixed Bottom Buttons
   ============================================ */

.section-nav {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.section-nav-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.section-nav-btn iconify-icon {
    font-size: 24px;
    color: #64748B;
    transition: color 0.3s ease, transform 0.3s ease;
}

.section-nav-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(148, 163, 184, 0.3);
    transform: scale(1.1);
}

.section-nav-btn:hover iconify-icon {
    color: #374151;
}

.section-nav-btn.section-nav-down:hover iconify-icon {
    transform: translateY(3px);
}

.section-nav-btn.section-nav-up:hover iconify-icon {
    transform: translateY(-3px);
}

.section-nav-btn.hidden {
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .section-nav {
        bottom: 20px;
    }

    .section-nav-btn {
        width: 44px;
        height: 44px;
    }

    .section-nav-btn iconify-icon {
        font-size: 22px;
    }
}

/* ============================================
   FOOTER Styles
   ============================================ */

.footer {
    background: #1E293B;
    /* Dark Gray / Slate-800 */
    color: #F8FAFC;
    padding: 60px 0 40px;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-right: 120px;
    /* Space for fixed navigation buttons */
}

.footer-left {
    flex: 1;
    /* Take up all available space */
    margin-right: auto;
    /* Push other items to the right */
}

.footer-address {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #CBD5E1;
    /* Slate-300 */
}

.footer-copyright {
    color: #64748B;
    /* Slate-500 */
    font-size: 0.8rem;
}

.social-group {
    flex: 0 0 auto;
    /* Do not grow, do not shrink, size based on content */
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.social-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #E2E8F0;
    /* Lighter text for better visibility */
    font-weight: 700;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: fit-content;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.social-link iconify-icon {
    font-size: 1.2rem;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-address {
        font-size: 0.9rem;
    }

    /* Ensure full width for stacked items */
    .footer-left,
    .social-group {
        width: 100%;
        max-width: none;
    }



    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .tag-floating,
    .float-card,
    .doctor-info-card,
    .btn-heartbeat iconify-icon,
    .scroll-indicator {
        animation: none !important;
    }
}

/* ============================================
   FINDRISC SECTION
   ============================================ */
.findrisc-section {
    padding: 60px 0;
    background: #CBD5E1;
    /* Match Mission Background */
    position: relative;
    overflow: hidden;
    margin-bottom: 0;

}

.findrisc-clean-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    /* Mission Style: Glass/Border/Shadow */
    background: #FFFFFF;
    /* Solid White */
    backdrop-filter: none;
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.findrisc-view {
    width: 100%;
    display: none;
    animation: fadeIn 0.5s ease;
}

.findrisc-view.active {
    display: block;
}

/* Intro View (Redesigned Bento) */
.findrisc-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* Left Column */
.findrisc-col-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.findrisc-header {
    text-align: left;
}

.findrisc-desc {
    font-size: 1.05rem;
    /* Reduced from 1.15rem to match other blocks better, slightly larger than 1rem for readability */
    color: var(--color-text-main);
    line-height: 1.6;
}

/* New Left Column Elements */
/* New Compact Info Grid */
.findrisc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 16px 0 24px 0;
    align-items: stretch;
}

.findrisc-checkpoints {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
}

.findrisc-checkpoints li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.3;
}

.check-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.findrisc-tip-box.compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    padding: 16px;
    border-radius: 16px;
    color: #92400E;
    font-size: 0.9rem;
    line-height: 1.4;
    height: auto;
    /* Changed from 100% for standalone use */
    margin-top: 20px;
    /* spacing from desc */
}

.tip-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 1rem;
    color: #F59E0B;
}

.tip-icon-sm {
    font-size: 1.2rem;
}

/* Mobile responsive for grid */
@media (max-width: 900px) {
    .findrisc-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .findrisc-right-card {
        min-height: auto;
    }
}

.tag-pill {
    display: inline-block;
    background: rgba(8, 145, 178, 0.1);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: Russo One, sans-serif;
    font-size: 2.2rem;
    /* Slightly smaller title */
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--color-secondary);
}

.findrisc-disclaimer-box {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #F1F5F9;
    /* Slate 100 */
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #64748B;
    /* Slate 500 */
    line-height: 1.4;
}

.disclaimer-icon {
    font-size: 1rem;
    color: #94A3B8;
    /* Slate 400 */
    flex-shrink: 0;
    margin-top: 2px;
}

/* Right Column */
.findrisc-col-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.findrisc-right-card {
    min-height: 440px;
    height: 100%;
    width: 100%;
    position: relative;
    /* Contrast Update */
    background: #F1F5F9;
    /* Slate 100 */
    border: 1px solid #CBD5E1;
    /* Slate 300 */
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.findrisc-image-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Redesigned Initial View */
/* Redesigned Initial View - Compact Version */
.findrisc-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    height: 100%;
    justify-content: center;
}

.findrisc-illustration-centered {
    margin-bottom: 12px;
    position: relative;
    /* Optional: Add a subtle glow behind if needed, but keeping it clean for now */
}

.bot-illustration {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    /* If the image itself is round */
    /* No border/shadow as requested */
    transition: transform 0.3s ease;
}

.bot-illustration:hover {
    transform: scale(1.05);
}

.findrisc-text-block {
    margin-bottom: 16px;
}

.findrisc-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 6px;
    line-height: 1.2;
}

.findrisc-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.findrisc-features-inline {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width: 100%;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F8FAFC;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-body);
    border: 1px solid #E2E8F0;
}

/* Support Section */
.support-section {
    padding: 60px 0;
    background: #CBD5E1;
    /* Match Findrisc Background */
    position: relative;
    /* Match other sections padding */
}

/* Support Section Grid Overrides */
.support-section .projects-grid::after {
    top: 0;
    /* Start divider from top */
}

.support-section .project-card:first-child {
    grid-column: auto;
    /* Reset full width */
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Reuse Findrisc card styles for Support card but ensure it centers well */
.support-card {
    max-width: 800px;
    margin: 0 auto;
    background: #F1F5F9;
    /* Same as findrisc-right-card */
}

.f-icon {
    font-size: 1rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: 14px;
}

.pulse-effect {
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(8, 145, 178, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0);
    }
}

/* Responsive Grid */
@media (max-width: 992px) {
    .findrisc-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .findrisc-col-left,
    .findrisc-header {
        text-align: center;
    }

    .findrisc-col-right {
        order: initial;
        /* User request: Info on top, Calculator second */
    }

    .bot-illustration {
        width: 180px;
        height: 180px;
    }
}

/* Quiz View */
.quiz-header {
    margin-bottom: 30px;
}

.quiz-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.quiz-meta {
    text-align: right;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.quiz-card {
    min-height: 350px;
    /* Ensure consistent height */
    display: flex;
    flex-direction: column;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-secondary);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.95);
    /* High contrast white */
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid #CBD5E1;
    /* Clear slate border */
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    /* Bolder text */
    color: var(--color-text-main);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    backdrop-filter: blur(8px);
    /* Keep glass feel */
}

.quiz-option:hover {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.15);
    transform: translateY(-2px);
}

.quiz-option.selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.quiz-controls {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

/* Result View */
.result-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.result-header {
    margin-bottom: 30px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid var(--color-primary);
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 700;
}

#result-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

#result-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.result-message {
    background: #F8FAFC;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-body);
}

.result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.share-ask {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .findrisc-clean-wrapper {
        padding: 24px;
    }

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

/* Input Styles for Quiz */
.quiz-input-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.quiz-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.quiz-input-wrapper label {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.quiz-input {
    padding: 16px;
    border-radius: 16px;
    border: 2px solid #E2E8F0;
    font-size: 1.2rem;
    width: 120px;
    text-align: center;
    transition: all 0.2s ease;
}

.quiz-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.btn-next {
    margin-top: 20px;
    width: 100%;
}

/* ============================================
   EMBEDDED QUIZ CARD (Right Column)
   ============================================ */
.findrisc-right-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 20px 40px -10px rgba(8, 145, 178, 0.1),
        0 0 0 1px rgba(8, 145, 178, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* transition: opacity 0.3s ease; */
}

.findrisc-right-card .quiz-header {
    margin-bottom: 24px;
}

.findrisc-right-card .quiz-card {
    box-shadow: none;
    /* Remove shadow from inner card if it had one */
    padding: 0;
    /* Remove padding from inner interaction area */
    background: transparent;
    border: none;
    max-width: none;
    /* Fill container */
}

/* Custom Range Input Styles */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    /* Standard property for compatibility */
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #E2E8F0;
    border-radius: 2px;
}

input[type=range]:focus {
    outline: none;
}

.range-input-wrapper {
    margin: 20px 0;
    text-align: center;
}

.range-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.range-value-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* ============================================
   RESULT CARD (Liquid Glass)
   ============================================ */
.liquid-glass-card {
    transition: background-color 0.5s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #1E293B;
    /* Default Dark Text */
}

/* Ensure text inside result is readable on colored backgrounds */
.liquid-glass-card .result-title {
    color: inherit;
}

.result-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.result-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Text Accents in Javascript will use <strong> tags */
.result-message strong {
    font-weight: 800;
    color: #0F172A;
    /* Even darker for emphasis */
    background: rgba(255, 255, 255, 0.4);
    padding: 0 4px;
    border-radius: 4px;
}

/* ============================================
   SLIDESHOW SECTION (Bottom)
   ============================================ */
/* Robust Scroll Offset Hack */
#projects-slideshow {}


/* Button Text Wrapping for Mobile */
@media (max-width: 768px) {
    .btn {
        white-space: normal;
        /* Allow text wrapping */
        height: auto;
        /* Allow height to grow */
        padding: 12px 20px;
        text-align: center;
        line-height: 1.4;
    }
}

.slideshow-section {
    padding: 60px 0;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    /* Ensure blobs don't overflow */
}

/* Decorative Background Blobs for specific section ambience */
.slideshow-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.slideshow-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.slideshow-section .container {
    position: relative;
    z-index: 1;
}

/* Caption Container */
.bento-overlay-external {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    padding: 0 20px;
}

.slideshow-caption {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E293B;
    /* Slate 900 */
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: inline-block;
}

/* Slideshow Wrapper - The "Frame" */
.project-slideshow-wrapper {
    max-width: min(1100px, 115vh);
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 0 auto;
    position: relative;
    border-radius: 24px;
    /* More modern rounding */
    overflow: hidden;

    /* Modern "Lifted" Shadow */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 10px 15px -3px rgba(0, 0, 0, 0.04),
        0 20px 40px -4px rgba(0, 0, 0, 0.04);

    /* Subtle border for definition */
    border: 1px solid rgba(0, 0, 0, 0.04);

    background: #F8FAFC;
    /* Slate 50 placeholder */
    transform: translateZ(0);
    /* Hardware acceleration */
}

/* Slide Styles */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 6s ease-out; Remove scale effect for cleaner look or keep subtle */
}

/* Vignette / Shading Overlays */
.slide-overlay-left,
.slide-overlay-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25%;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.slide-overlay-left {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
}

.slide-overlay-right {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent);
}

/* Navigation Buttons - Glassmorphism */
.slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slide-nav-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: var(--color-primary);
    /* Use brand color on hover */
}

.slide-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Pagination Dots */
.slideshow-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    /* Start as circle */
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #FFFFFF;
    width: 24px;
    /* Expand to pill */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slideshow-section {
        padding: 40px 0;
    }

    .project-slideshow-wrapper {
        border-radius: 16px;
    }

    .slideshow-caption {
        font-size: 1.1rem;
    }

    .slide-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.85);
        /* More opaque on mobile */
    }

    .prev-btn {
        left: 12px;
    }

    .next-btn {
        right: 12px;
    }
}

.section-title {
    font-family: 'Russo One', sans-serif;
    font-size: 2.5rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
}

/* Ensure slideshow container fills the wrapper */
.project-slideshow-wrapper .slideshow-container {
    width: 100%;
    height: 100%;
}

/* Side Shading (Vignette) - REMOVED from wrapper */
/* Now handled by individual slide overlays */

/* External Caption (Above Slideshow) */
.bento-overlay-external {
    max-width: 1100px;
    margin: 0 auto 16px;
    /* Spacing below caption */
    text-align: center;
}

.slideshow-caption {
    display: inline-block;
    padding: 10px 24px;
    color: var(--color-text-main);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    /* Removed glass background styles as it sits on white page now */
    text-shadow: none;
    box-shadow: none;
    background: transparent;
    border: none;
}

/* RESTORED SLIDE STYLES */
.project-slideshow-wrapper .slide {
    width: 33.33%;
    /* Default, overridden by JS */
    height: 100%;
    /* Wrapper takes full height */
    position: relative;
    /* For absolute children */
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    /* Only animate width of wrapper */
    will-change: transform, width;
    flex-shrink: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    /* Crop inner image */
    box-sizing: border-box;

    /* HARDWARE ACCELERATION */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

/* Inner Image */
.project-slideshow-wrapper .slide .slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: filter 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Wing Image Positioning */
.project-slideshow-wrapper .slide.left-wing .slide-img {
    object-position: right center;
    /* Anchor right */
}

.project-slideshow-wrapper .slide.right-wing .slide-img {
    object-position: left center;
    /* Anchor left */
}

/* Overlay for Shading - DUAL SYSTEM */
.project-slideshow-wrapper .slide .overlay-left,
.project-slideshow-wrapper .slide .overlay-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    /* MATCHES TRACK TIMING EXACTLY */
}

/* Gradient Definitions */
.project-slideshow-wrapper .slide .overlay-left {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.project-slideshow-wrapper .slide .overlay-right {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Active Slide */
.project-slideshow-wrapper .slide.active {
    z-index: 5;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Left Wing Shading: Show LEFT Overlay */
.project-slideshow-wrapper .slide.left-wing .overlay-left {
    opacity: 1;
}

/* Right Wing Shading: Show RIGHT Overlay */
.project-slideshow-wrapper .slide.right-wing .overlay-right {
    opacity: 1;
}

/* Active Slide Shading: Both Hidden (Default) */

/* Response adjustments */
@media (max-width: 768px) {
    .slideshow-caption {
        font-size: 1.1rem;
        padding: 0 16px;
    }
}

/* Utility to kill transitions during reset */
.no-transition * {
    transition: none !important;
}

/* Response adjustments */
@media (max-width: 768px) {
    .project-slideshow-wrapper {
        height: 300px;
        border-radius: 16px;
    }

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

    .project-slideshow-wrapper .slideshow-caption {
        font-size: 1rem;
        /* Smaller font on mobile */
        padding: 12px 16px;
    }

    .project-slideshow-wrapper .bento-overlay {
        border-radius: 16px 16px 0 0;
    }
}

/* Team Lightbox */
#team-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#team-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: width 0.3s ease, height 0.3s ease;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    color: white;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1010;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Team Photo Interactive */
.team-photo {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.team-photo:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* =========================================
   Responsiveness Refinements
   ========================================= */

/* Desktop Defaults (Moved from Inline) */
.project-img-float {
    float: left;
    width: 180px;
    height: auto;
    margin: 0 24px 12px 0;
    border-radius: 4px;
    object-fit: cover;
}

.team-manifesto-img {
    width: 260px;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
    float: left;
    /* Assumed based on text wrapping desire, though original didn't have it explicitly, it was inside flex? */
    margin-right: 20px;
    margin-bottom: 12px;
}

/* If .team-manifesto was flex, we need to ensure it wraps around */
/* But since I couldn't see the parent CSS, I'll rely on float for wrapping text effect or block stacking */

.team-cta-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 24px;
}

/* Mobile Adaptation */
@media (max-width: 768px) {

    /* Projects: Stack Image on Top */
    .project-img-float {
        float: none;
        width: 100%;
        max-width: 400px;
        /* Limit size on tablets */
        display: block;
        margin: 0 auto 16px auto;
    }

    /* Team Manifesto: Stack Image */
    .team-manifesto-img {
        float: none;
        width: 100% !important;
        /* Override explicit width */
        height: auto;
        margin: 0 0 16px 0;
        display: block;
    }

    /* Team Grid: Ensure Columns Stack */
    .team-grid {
        display: flex;
        flex-direction: column;
    }

    .team-col-left,
    .team-col-right {
        width: 100%;
        margin-bottom: 24px;
    }

    /* Team Description Text */
    .team-description p {
        text-align: left;
        /* Ensure readability */
        font-size: 1rem;
        line-height: 1.6;
    }


}

/* =============================================
   JOIN TEAM MODAL STYLES
============================================= */

/* Honeypot field - invisible to users */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal-container {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 116, 139, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 24px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Form Styles */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group label .required {
    color: #EF4444;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-main);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    color: var(--color-text-main);
    transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Styles */
.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form-checkbox label a:hover {
    text-decoration: none;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    margin-top: 8px;
    padding: 16px 24px;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-submit .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Success/Error States */
.modal-success,
.modal-error {
    text-align: center;
    padding: 20px 0;
}

.modal-success .success-icon {
    font-size: 64px;
    color: #10B981;
    margin-bottom: 16px;
}

.modal-error .error-icon {
    font-size: 64px;
    color: #EF4444;
    margin-bottom: 16px;
}

.modal-success h4,
.modal-error h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.modal-success p,
.modal-error p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* Modal Responsive */
@media (max-width: 520px) {
    .modal-container {
        padding: 24px;
        border-radius: 20px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .form-group input[type="text"],
    .form-group textarea {
        padding: 12px 14px;
    }
}

/* ==================== */
/* FAQ Accordion Styles */
/* ==================== */

.faq-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, #FFFFFF 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 32px rgba(8, 145, 178, 0.12);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(8, 145, 178, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(8, 145, 178, 0.04);
}

.faq-question:focus {
    outline: none;
    background: rgba(8, 145, 178, 0.06);
}

.faq-question:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: -3px;
    border-radius: 20px;
}

.faq-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.4;
}

/* Plus/Minus Icon */
.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.faq-icon::before {
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Active state - minus icon */
.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item.active .faq-icon {
    background: var(--color-primary-dark);
    transform: rotate(180deg);
}

/* Answer Panel */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 24px 24px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-body);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-question {
        padding: 16px 20px;
    }

    .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
    }

    .faq-icon::before,
    .faq-icon::after {
        width: 10px;
    }

    .faq-answer-content {
        padding: 0 20px 20px 20px;
        font-size: 0.95rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .faq-item,
    .faq-icon,
    .faq-icon::before,
    .faq-icon::after,
    .faq-answer {
        transition: none;
    }

    .faq-item:hover {
        transform: none;
    }
}