/* --- THEME: ELEVATED MODERN --- */
:root {
    /* Colors */
    --color-bg-body: #F9FAFB;
    --color-bg-dark-section: #1F2937;
    --color-bg-light-gray-section: #F3F4F6;
    --color-surface: #FFFFFF;
    --color-primary-accent: #3B82F6;
    --color-primary-accent-dark: #2563EB;
    --color-secondary-accent: #10B981;
    --color-secondary-accent-dark: #059669;
    --color-text-primary: #111827;
    --color-text-secondary: #4B5567;
    --color-text-light: #F9FAFB;
    --color-text-light-secondary: #D1D5DB;
    --color-border: #E5E7EB;
    --color-border-darker: #D1D5DB;
    --color-shadow: rgba(0, 0, 0, 0.05);
    --color-shadow-medium: rgba(0, 0, 0, 0.1);

    --color-bg-partners-start: #0D9488;
    --color-bg-partners-end: #0F766E;
    --color-bg-donate-start: #8B5CF6;
    --color-bg-donate-end: #7C3AED;
    --color-footer-bg: #f0f2f5;
    --color-footer-text: #4A5568;
    --color-footer-link-hover: var(--color-primary-accent);
    --color-primary-accent-rgb: 59, 130, 246;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --space-xxs: 0.125rem;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-xxl: 4rem;
    --space-section: clamp(3.5rem, 7vw, 5rem);

    /* Borders & Shadows */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --shadow-soft: 0 4px 6px -1px var(--color-shadow), 0 2px 4px -2px var(--color-shadow);
    --shadow-medium: 0 10px 15px -3px var(--color-shadow-medium), 0 4px 6px -4px var(--color-shadow-medium);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Stitch Design System */
    --stitch-primary: #f97415;
    --stitch-secondary: #e11d48;
    --stitch-cream: #fffbeb;
    --stitch-bg-dark: #23170f;
    --stitch-accent-orange: #f59e0b;
    --font-display: 'Plus Jakarta Sans', sans-serif;
}

/* Stitch theme - cream background */
body.stitch-theme {
    background-color: var(--stitch-cream);
    padding-top: 0;
}

/* Stitch utilities */
.blob-shape {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

/* --- Stitch Header (integrated, part of homepage) --- */
.header-stitch#main-header {
    position: sticky;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: var(--transition-smooth);
}

.header-stitch#main-header.scrolled {
    background: transparent;
    box-shadow: none;
    border-bottom: none;
}

.header-stitch .header-stitch-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
    pointer-events: none;
}

@media (min-width: 768px) {
    .header-stitch .header-stitch-wrapper {
        padding: 0 2.5rem;
    }
}

.header-stitch .header-stitch-pill {
    pointer-events: auto;
    width: 100%;
    max-width: 72rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(249, 116, 21, 0.1);
}

.header-stitch .brand-link-stitch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #0f172a;
}

.header-stitch .brand-logo-stitch {
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 50%;
    object-fit: contain;
}

.header-stitch .brand-text-stitch {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.header-stitch .nav-link-stitch {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    transition: color 0.2s ease;
}

.header-stitch .nav-link-stitch:hover,
.header-stitch .nav-item-dropdown .dropdown-toggle:hover {
    color: var(--stitch-primary);
}

.header-stitch .nav-stitch {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.header-stitch .btn-donate-stitch {
    background: linear-gradient(to right, var(--stitch-primary), var(--stitch-secondary));
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 14px rgba(249, 116, 21, 0.3);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-stitch .btn-donate-stitch:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 116, 21, 0.4);
}

/* --- Stitch Hero --- */
.hero-stitch {
    overflow: hidden;
}

.hero-stitch-light {
    background: var(--stitch-cream);
    min-height: auto;
    padding: 4rem 1.5rem 5rem;
}

.hero-stitch-light .hero-background-image,
.hero-stitch-light .hero-overlay {
    display: none;
}

.hero-stitch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
}

.hero-stitch-left {
    z-index: 1;
}

.hero-stitch .hero-title-stitch {
    color: #0f172a !important;
}

.hero-stitch .hero-subtitle-stitch {
    color: #64748b !important;
}

.hero-stitch .hero-free-highlight {
    color: var(--stitch-primary) !important;
}

.hero-stitch .hero-trust-stitch p {
    color: #64748b !important;
}

.hero-stitch .hero-trust-avatars {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.hero-stitch .hero-trust-avatars img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid white;
    object-fit: cover;
    margin-left: -0.75rem;
}

.hero-stitch .hero-trust-avatars img:first-child {
    margin-left: 0;
}

.hero-stitch .hero-trust-plus {
    width: 2.5rem;
    height: 2.5rem;
    margin-left: -0.75rem;
    border: 2px solid white;
}

.hero-stitch-right {
    display: none;
    position: relative;
    z-index: 0;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 32rem;
    margin: 0 auto;
}

.hero-image-decor {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--stitch-secondary), var(--stitch-primary));
    border-radius: 2.5rem;
    transform: rotate(6deg);
    opacity: 0.2;
}

.hero-image-card {
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-verified-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 20rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(241, 245, 249, 1);
}

.hero-verified-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hero-verified-icon {
    background: #dcfce7;
    color: #16a34a;
    padding: 0.375rem;
    border-radius: 0.5rem;
}

.hero-verified-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

.hero-verified-badge span:not(.material-symbols-outlined) {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    color: #0f172a;
}

.hero-verified-badge p {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

.hero-stitch .hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-stitch .hero-cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    min-height: 3rem;
}

@media (min-width: 1024px) {
    .hero-stitch-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stitch-right {
        display: block;
    }
}

/* --- Stats Banner (Stitch) --- */
.stats-banner-stitch {
    background: var(--stitch-primary);
    transform: skewY(-2deg);
    padding: 3rem 0;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.stats-banner-inner {
    transform: skewY(2deg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.stats-banner-stitch .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-banner-stitch .stat-icon {
    font-size: 2.5rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.stats-banner-stitch .stat-number {
    display: none;
}

.stats-banner-stitch .stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    color: white;
}

@media (min-width: 768px) {
    .stats-banner-inner {
        grid-template-columns: repeat(4, 1fr);
    }

    .stats-banner-stitch .stat-icon {
        font-size: 2.5rem;
    }

    .stats-banner-stitch .stat-label {
        font-size: 1rem;
    }
}

.hero-stitch .hero-blob {
    position: absolute;
    z-index: 1;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.hero-stitch .hero-blob-1 {
    top: -5rem;
    right: -6rem;
    width: 24rem;
    height: 24rem;
    background: rgba(249, 116, 21, 0.25);
}

.hero-stitch .hero-blob-2 {
    bottom: -5rem;
    left: -6rem;
    width: 20rem;
    height: 20rem;
    background: rgba(225, 29, 72, 0.25);
}

.hero-stitch .hero-badge-stitch {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(249, 116, 21, 0.15);
    color: var(--stitch-primary);
    border-radius: 9999px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-stitch .hero-badge-stitch .material-symbols-outlined {
    font-size: 1rem;
}

.hero-stitch .hero-title-stitch {
    font-family: var(--font-display) !important;
    font-weight: 800 !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: none;
}

.hero-stitch .hero-gradient-text {
    background: linear-gradient(to right, var(--stitch-primary), var(--stitch-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stitch .hero-subtitle-stitch {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 500;
    line-height: 1.6;
}

.hero-stitch .hero-free-highlight {
    color: #6EE7B7 !important;
    text-decoration: underline;
    text-decoration-color: rgba(110, 231, 183, 0.6);
}

.hero-stitch .hero-cta-stitch .btn-stitch-primary {
    background: linear-gradient(to right, var(--stitch-primary), var(--stitch-secondary));
    color: white !important;
    border: none;
    box-shadow: 0 4px 14px rgba(249, 116, 21, 0.35);
    font-family: var(--font-display);
    font-weight: 700;
}

.hero-stitch .hero-cta-stitch .btn-stitch-primary:hover {
    box-shadow: 0 6px 24px rgba(249, 116, 21, 0.45);
    transform: translateY(-2px);
}

.hero-stitch .hero-cta-stitch .btn-stitch-outline {
    background: white !important;
    color: var(--stitch-primary) !important;
    border: 2px solid var(--stitch-primary) !important;
    font-family: var(--font-display);
    font-weight: 700;
}

.hero-stitch .hero-cta-stitch .btn-stitch-outline:hover {
    border-color: var(--stitch-secondary) !important;
    color: var(--stitch-secondary) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.hero-stitch .hero-trust-stitch {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.hero-stitch .hero-trust-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stitch .hero-trust-plus {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: var(--stitch-primary);
    color: white;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.hero-stitch .hero-trust-stitch p {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-light-secondary);
    margin: 0;
}

/* Globals */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth !important;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.65;
    color: var(--color-text-primary);
    background-color: var(--color-bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
    padding-top: 150px;
    /* Initial padding, JS will adjust */
    min-width: 320px;
}

body.no-scroll-mobile,
body.no-scroll-modal {
    overflow: hidden !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2rem, 6.5vw, 3.25rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.7rem, 5.5vw, 2.4rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 4.5vw, 1.7rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.05rem, 4vw, 1.2rem);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
    font-size: clamp(0.9rem, 2.8vw, 1rem);
}

a {
    color: var(--color-primary-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary-accent-dark);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout & Sections */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.section-padding {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

.bg-dark {
    background-color: var(--color-bg-dark-section);
}

.bg-light-gray {
    background-color: var(--color-bg-light-gray-section);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary-accent), var(--color-primary-accent-dark));
}

.text-light {
    color: var(--color-text-light) !important;
}

.text-light h1,
.text-light h2,
.text-light h3,
.text-light h4 {
    color: var(--color-text-light) !important;
}

.text-light p {
    color: var(--color-text-light-secondary) !important;
}

.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--space-lg);
}

.section-header {
    margin-bottom: clamp(var(--space-lg), 6vw, var(--space-xl));
    text-align: center;
}

.section-tagline {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 600;
    color: var(--color-primary-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.bg-dark .section-tagline,
.bg-gradient-primary .section-tagline,
#our-partners .section-tagline,
#donate .section-tagline {
    color: #A7F3D0;
}

.text-light-accent {
    color: #A7F3D0 !important;
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-intro {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-light .section-intro {
    color: var(--color-text-light-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(0.85rem, 2.8vw, 0.95rem);
    padding: 0.7em 1.5em;
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--color-primary-accent-dark);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--color-primary-accent);
    color: #fff !important;
    border-color: var(--color-primary-accent);
}

.btn-primary:hover {
    background-color: var(--color-primary-accent-dark);
    border-color: var(--color-primary-accent-dark);
    color: #fff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background-color: var(--color-secondary-accent);
    color: #fff !important;
    border-color: var(--color-secondary-accent);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-accent-dark);
    border-color: var(--color-secondary-accent-dark);
    color: #fff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-soft);
}

.btn-accent {
    background-color: var(--color-secondary-accent);
    color: #fff !important;
    border-color: var(--color-secondary-accent);
}

.btn-accent:hover {
    background-color: var(--color-secondary-accent-dark);
    border-color: var(--color-secondary-accent-dark);
    color: #fff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-soft);
}

.btn-outline-dark {
    color: var(--color-text-primary) !important;
    border-color: var(--color-border-darker);
    background-color: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--color-text-primary);
    color: var(--color-surface) !important;
    border-color: var(--color-text-primary);
}

.btn-outline-light {
    color: var(--color-text-light) !important;
    border-color: var(--color-text-light-secondary);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--color-text-light);
    color: var(--color-bg-dark-section) !important;
    border-color: var(--color-text-light);
}

.btn-light {
    background-color: var(--color-surface);
    color: var(--color-primary-accent) !important;
    border-color: var(--color-surface);
}

.btn-light:hover {
    background-color: #f0f0f0;
    color: var(--color-primary-accent-dark) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-soft);
}

.btn-lg {
    font-size: clamp(0.9rem, 3vw, 1rem);
    padding: 0.75em 1.75em;
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-submit-registration .fa-spinner {
    margin-left: var(--space-sm);
}

/* --- Header Styling --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: padding var(--transition-smooth), background-color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), min-height var(--transition-smooth);
    min-height: 140px;
    /* Initial min-height */
    display: flex;
    align-items: center;
}

#main-header.scrolled {
    padding: var(--space-xs) 0;
    min-height: 120px;
    /* Scrolled min-height */
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
    border-bottom-color: var(--color-border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-link {
    display: flex;
    /* To align logo and text */
    align-items: center;
    /* Vertical alignment */
    flex-shrink: 0;
}

.brand-logo.circular-logo {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: contain;
    transition: height var(--transition-fast), width var(--transition-fast);
    display: block;
    margin-right: var(--space-sm);
}

#main-header.scrolled .brand-logo.circular-logo {
    height: 100px;
    width: 100px;
}

.brand-text-mobile {
    display: none;
    /* Hidden by default */
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: var(--color-text-primary);
    margin-left: 10px;
    line-height: 1;
}

.desktop-navigation {
    display: none;
    flex-grow: 1;
    justify-content: flex-start;
    margin-left: var(--space-md);
}

.desktop-navigation .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--space-sm) var(--space-md);
    margin: 0 var(--space-xs);
    border-radius: var(--border-radius-sm);
    position: relative;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.desktop-navigation .nav-link:hover,
.desktop-navigation .nav-item-dropdown .dropdown-toggle:hover {
    color: var(--color-primary-accent);
    background-color: rgba(var(--color-primary-accent-rgb), 0.05);
}

.desktop-navigation .nav-link.active {
    color: var(--color-primary-accent);
    font-weight: 600;
}

.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-caret-icon {
    font-size: 0.7em;
    margin-left: var(--space-xs);
    transition: transform 0.2s ease-in-out;
}

.nav-item-dropdown.open .dropdown-caret-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    transform: translateY(10px);
    background-color: var(--color-surface);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-large);
    border: 1px solid var(--color-border);
    padding: var(--space-sm);
    min-width: 260px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0s 0.2s;
}

.nav-item-dropdown:hover .dropdown-menu,
/* For hover effect if desired */
.nav-item-dropdown.open .dropdown-menu {
    /* For click effect */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Align far-right dropdowns to the right edge */
.nav-item-dropdown:nth-last-child(-n+2):not(:first-child) .dropdown-menu {
    left: auto;
    right: 0;
}


.dropdown-item {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--color-bg-light-gray-section);
    color: var(--color-primary-accent);
}

.dropdown-item span {
    display: block;
    font-size: 0.9rem;
}

.dropdown-item small {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
    margin-top: var(--space-xxs);
    white-space: normal;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
    flex-shrink: 0;
}

.btn-donate-header {
    font-size: clamp(0.8rem, 2.2vw, 0.875rem);
    padding: 0.55em 1.1em;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: var(--space-sm);
    display: none;
    z-index: 1002;
}

.hamburger-box {
    display: inline-block;
    position: relative;
    width: 28px;
    height: 22px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 28px;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: 3px;
    position: absolute;
    transition-property: transform, background-color;
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -9px;
}

.hamburger-inner::after {
    bottom: -9px;
}

.mobile-nav-toggle.active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.mobile-nav-toggle.active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}

.mobile-nav-toggle.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.mobile-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    /* Use dvh for dynamic viewport height */
    background-color: rgba(255, 251, 235, 0.98);
    /* var(--stitch-cream) but slightly transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    padding: calc(var(--space-xxl) + 2rem) var(--space-xl) var(--space-xl);
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease, visibility 0s 0.4s;
    display: flex;
    flex-direction: column;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #0f172a;
    cursor: pointer;
    z-index: 1002;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--stitch-primary);
    transform: rotate(90deg);
}


.mobile-navigation.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.mobile-navigation .nav-link {
    /* General style for links in mobile nav */
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    /* Default weight */
    color: #0f172a;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    font-size: 1.25rem;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.mobile-navigation.active .nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for mobile nav links */
.mobile-navigation.active>.nav-link:nth-child(1),
.mobile-navigation.active>.mobile-dropdown-header:nth-child(1) {
    transition-delay: 0.15s;
}

.mobile-navigation.active>.nav-link:nth-child(2),
.mobile-navigation.active>.mobile-dropdown-header:nth-child(2),
.mobile-navigation.active>.mobile-sub-menu:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-navigation.active>.nav-link:nth-child(3),
.mobile-navigation.active>.mobile-dropdown-header:nth-child(3),
.mobile-navigation.active>.mobile-sub-menu:nth-child(3) {
    transition-delay: 0.25s;
}

/* Add more if needed */

.mobile-navigation .nav-link:hover {
    background-color: rgba(var(--color-primary-accent-rgb), 0.03);
    color: var(--color-primary-accent);
}

.mobile-navigation>.nav-link:last-of-type,
/* Last direct child nav-link */
.mobile-navigation>.mobile-donate-btn-nav {
    /* Ensure donate button doesn't have border if it's the last */
    border-bottom: none;
}

.mobile-navigation .mobile-dropdown-header {
    /* For main dropdown text */
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: #0f172a;
    /* Bolder for main items */
}

.mobile-navigation .mobile-sub-menu {
    list-style: none;
    padding-left: var(--space-md);
    margin-top: 0;
    margin-bottom: 0;
    /* Adjusted for flow */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Border for the whole sub-menu block */
}

.mobile-navigation .mobile-sub-menu li .nav-link {
    /* Sub-menu items */
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--space-sm) 0;
    /* Less padding for sub-items */
    border-bottom: none;
    /* Individual sub-items don't have border */
}

.mobile-navigation .mobile-sub-menu li:last-child .nav-link {
    padding-bottom: var(--space-md);
    /* Add padding to last sub-item before next section */
}

.mobile-navigation .mobile-donate-btn-nav {
    margin-top: calc(var(--space-xl) * 1.5);
    text-align: center;
    width: 100%;
    font-family: var(--font-display);
    font-weight: 700;
    border-radius: 9999px;
    background: linear-gradient(to right, var(--stitch-primary), var(--stitch-secondary));
    color: white !important;
    font-size: 1.1rem !important;
    padding: 1rem var(--space-lg) !important;
    border-bottom: none;
    box-shadow: 0 10px 15px -3px rgba(249, 116, 21, 0.3);
    /* Explicitly no border */
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: calc(100vh - 150px);
    /* Adjusted based on initial body padding-top */
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    overflow: hidden;
    padding: var(--space-lg) 0;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) saturate(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.3) 0%, rgba(17, 24, 39, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-md) 0;
}

.hero-text-wrapper {
    max-width: 750px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 3.75rem);
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    color: var(--color-text-light-secondary);
    margin-bottom: var(--space-xl);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-subtitle .hero-free-highlight {
    font-weight: 500;
    color: #6EE7B7;
    text-decoration: underline;
    text-decoration-color: rgba(110, 231, 183, 0.6);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    padding: 0 2px;
    background-color: transparent;
}

.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-cta-buttons .btn {
    min-width: 150px;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

/* --- About Features, Scholar Tiers, Content Grid, Icon Card Grid --- */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.feature-item {
    background-color: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 2.25rem;
    color: var(--color-primary-accent);
    margin-bottom: var(--space-md);
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-title {
    margin-bottom: var(--space-sm);
    font-size: clamp(1.1rem, 3.5vw, 1.2rem);
}

.feature-description {
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    flex-grow: 1;
}

.scholar-tiers-visual {
    background-color: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    margin-bottom: var(--space-xl);
}

.tiers-heading {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: clamp(1.4rem, 4.5vw, 1.6rem);
}

.tiers-container {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.tier-card {
    flex: 1 1 280px;
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
        box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
        border-left-color 0.3s ease-in-out;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    cursor: default;
    /* Still default as the card itself isn't a link */
    position: relative;
}

/* Desktop Hover Effect for Card Body */
@media (hover: hover) and (min-width: 768px) {

    /* Apply only on devices that support hover and are tablet size up */
    .tier-card:hover {
        transform: translateY(-7px) scale(1.025);
        box-shadow: var(--shadow-large);
    }
}


.tier-icon-main {
    font-size: 2.2rem;
    margin-bottom: var(--space-md);
    display: block;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.tier-card h4 {
    font-size: clamp(1.1rem, 3.2vw, 1.2rem);
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.tier-level {
    font-size: clamp(0.8rem, 2.2vw, 0.85rem);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
    transition: color 0.3s ease-in-out;
}

@media (hover: hover) and (min-width: 768px) {
    .tier-card:hover .tier-level {
        color: var(--color-primary-accent);
    }
}

/* --- Desktop: Expandable Description --- */
.tier-description-wrapper {
    flex-grow: 1;
    display: grid;
    /* Default: Collapsed for desktop, overridden for mobile */
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tier-description-subtle {
    font-size: clamp(0.825rem, 2.3vw, 0.9rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding-top: var(--space-sm);
    /* Default: Hidden for desktop, overridden for mobile */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease-out 0.1s, transform 0.35s ease-out 0.1s;
    min-height: 0;
    /* Important for grid child collapse */
}


@media (hover: hover) and (min-width: 768px) {

    /* Apply hover expansion only on hover-capable devices & desktop/tablet */
    .tier-card:hover .tier-description-wrapper {
        grid-template-rows: 1fr;
        /* Expand wrapper on hover */
    }

    .tier-card:hover .tier-description-subtle {
        opacity: 1;
        /* Fade in text on hover */
        transform: translateY(0);
    }

    /* Icon scale on hover for desktop */
    /* .tier-school:hover .tier-icon-main { color: #535f71; transform: scale(1.12); }
    .tier-state:hover .tier-icon-main { color: var(--color-secondary-accent-dark); transform: scale(1.12); }
    .tier-national:hover .tier-icon-main { color: var(--color-primary-accent-dark); transform: scale(1.12); } */

    .tier-school:hover {
        border-left-color: #535f71;
    }

    .tier-state:hover {
        border-left-color: var(--color-secondary-accent-dark);
    }

    .tier-national:hover {
        border-left-color: var(--color-primary-accent-dark);
    }
}


/* --- Mobile: Description Visible by Default with Fade-in on Scroll --- */
@media (max-width: 767px) {
    .tier-card {
        /* No hover transform on mobile, or a very subtle one if "tapped" */
        /* transition: none; */
        /* Optionally disable card transform on mobile */
    }

    .tier-description-wrapper {
        grid-template-rows: 1fr;
        /* Wrapper is expanded by default */
        transition: none;
        /* No transition for the wrapper height on mobile */
        overflow: visible;
        /* Allow content to be visible */
    }

    .tier-description-subtle {
        opacity: 0;
        /* Start transparent for animate-on-scroll */
        transform: translateY(15px);
        /* Start slightly down for animate-on-scroll */
        padding-top: var(--space-sm);
        /* Ensure padding is still there */
        /* The transition for opacity/transform will be handled by animate-on-scroll logic,
           or we can define a base transition here if not relying on JS for it.
           Let's assume the .animate-on-scroll.is-visible handles it.
           If not, add: transition: opacity 0.5s ease-out, transform 0.5s ease-out; */
    }

    /* If using .animate-on-scroll.is-visible for the tier-card itself */
    .tier-card.is-visible .tier-description-subtle {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
        /* Slight delay after card pops up */
    }

    /* If you want description visible immediately without scroll animation for it on mobile */
    /*
    .tier-description-subtle {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
    */
}


/* Specific Tier Card Styles (Base Styles) */
.tier-school {
    background-color: rgba(75, 85, 99, 0.02);
    border-left: 5px solid var(--color-text-secondary);
}

.tier-school .tier-icon-main {
    color: var(--color-text-secondary);
}

.tier-state {
    background-color: rgba(5, 150, 105, 0.02);
    border-left: 5px solid var(--color-secondary-accent);
}

.tier-state .tier-icon-main {
    color: var(--color-secondary-accent);
}

.tier-national {
    background-color: rgba(37, 99, 235, 0.02);
    border-left: 5px solid var(--color-primary-accent);
}

.tier-national .tier-icon-main {
    color: var(--color-primary-accent);
}


/* Hover accents for borders (also for desktop via media query) */
@media (hover: hover) and (min-width: 768px) {
    .tier-school:hover {
        border-left-color: #535f71;
    }

    .tier-state:hover {
        border-left-color: var(--color-secondary-accent-dark);
    }

    .tier-national:hover {
        border-left-color: var(--color-primary-accent-dark);
    }
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.content-grid:last-child {
    margin-bottom: 0;
}

.content-block h3 {
    margin-top: 0;
    font-size: clamp(1.3rem, 4vw, 1.5rem);
}

.content-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    margin-bottom: var(--space-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.content-image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-large);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.shadow-lg {
    box-shadow: var(--shadow-large);
}

.styled-list {
    margin: var(--space-md) 0;
}

.styled-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
    font-size: clamp(0.9rem, 2.5vw, 0.95rem);
}

.styled-list i {
    color: var(--color-secondary-accent);
    margin-right: var(--space-sm);
    font-size: 1.1rem;
    margin-top: 0.125em;
    flex-shrink: 0;
}

.styled-list.light i {
    color: #A7F3D0;
}

.icon-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.icon-card {
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.icon-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.icon-card-icon {
    font-size: 2rem;
    color: var(--color-primary-accent);
    margin-bottom: var(--space-md);
}

.icon-card-title {
    font-size: clamp(1.05rem, 3vw, 1.15rem);
    margin-bottom: var(--space-sm);
}

.icon-card p {
    font-size: clamp(0.85rem, 2.3vw, 0.9rem);
    flex-grow: 1;
}

/* --- Our Journey Timeline --- */
.journey-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-lg) 0;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--color-primary-accent) 10%, var(--color-primary-accent) 90%, transparent);
    border-radius: 2px;
    z-index: 0;
}

.journey-timeline-event {
    position: relative;
    margin-bottom: var(--space-xl);
    width: 100%;
    padding-left: 45px;
    cursor: default;
}

.journey-timeline-event:last-child {
    margin-bottom: 0;
}

.journey-timeline-marker {
    position: absolute;
    top: 0.5rem;
    left: 0;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-surface);
    border: 4px solid var(--color-primary-accent);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-primary-accent);
    box-shadow: 0 0 0 8px var(--color-bg-light-gray-section);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.journey-timeline-event:hover .journey-timeline-marker {
    transform: translateX(-50%) scale(1.1);
    background-color: var(--color-primary-accent);
    color: var(--color-surface);
}

.journey-timeline-content {
    position: relative;
    background-color: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.journey-timeline-event:hover .journey-timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.journey-timeline-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: var(--space-md);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: #e0e0e0;
}

.journey-timeline-media iframe,
.journey-timeline-media img {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.journey-timeline-media-illustration {
    background: #f5f0ed;
}

.journey-timeline-media-illustration img {
    object-fit: contain;
}

.journey-timeline-year {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-primary-accent);
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    margin-bottom: var(--space-xs);
    display: block;
}

.journey-timeline-title {
    font-size: clamp(1.1rem, 3.5vw, 1.25rem);
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.journey-timeline-content p {
    font-size: clamp(0.9rem, 2.8vw, 0.95rem);
    margin-bottom: 0;
    color: var(--color-text-secondary);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.4s ease-out, margin-top 0.5s ease-out;
    margin-top: 0;
}

.journey-timeline-event:hover .journey-timeline-content p {
    max-height: 300px;
    opacity: 1;
    margin-top: var(--space-sm);
}

.journey-timeline-content::before {
    display: none;
}

/* Used for alternating timeline, hidden by default */

/* --- Our Partners & Donate Sections --- */
#our-partners {
    background: linear-gradient(135deg, var(--color-bg-partners-start), var(--color-bg-partners-end));
}

/* --- NEW OUR TEAM SECTION STYLES (Clean, Subtle Reveal Social) --- */
#our-team {
    background-color: var(--color-bg-light-gray-section);
}

.team-members-grid {
    display: grid;
    /* Default to 2 columns on small screens, adjust for mobile */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    /* Slightly reduced gap for better fit on small screens */
    justify-content: center;
    max-width: 1080px;
    margin: 0 auto;
}

.team-member-card {
    background-color: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    /* Not the whole card is a link */
}

.team-member-card:hover {
    transform: translateY(-5px);
    /* Gentle lift */
    box-shadow: var(--shadow-medium);
    /* Enhanced shadow */
}

.member-image-wrapper {
    width: 120px;
    /* Image size */
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--space-md);
    border: 3px solid var(--color-border);
    /* Clean, thin border */
    flex-shrink: 0;
    /* Prevents shrinking */
    background-color: #e0e0e0;
    /* Placeholder background */
    transition: border-color 0.3s ease;
}

.team-member-card:hover .member-image-wrapper {
    border-color: var(--color-primary-accent);
    /* Accent border on hover */
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.team-member-card:hover .member-image {
    transform: scale(1.05);
    /* Gentle zoom effect */
}

.member-name {
    font-size: clamp(1.15rem, 3.5vw, 1.05rem);
    margin-bottom: var(--space-xxs);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.member-designation {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    /* Space before social links */
    flex-grow: 1;
    /* Ensures vertical spacing if content height varies */
}

.member-social-links {
    display: flex;
    justify-content: center;
    opacity: 0;
    /* Hidden by default */
    transform: translateY(10px);
    /* Starts slightly below */
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* This transition applies to both hover and JS-triggered visibility */
}

/* On card hover, reveal social links */
.team-member-card:hover .member-social-links {
    opacity: 1;
    /* Fully visible on hover */
    transform: translateY(0);
    /* Slides up to normal position */
    transition-delay: 0.1s;
    /* Slight delay for staggered effect */
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-primary-accent);
    color: #fff !important;
    /* Important to override default link color */
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.linkedin-link:hover {
    background-color: var(--color-primary-accent-dark);
    transform: scale(1.1);
    /* Gentle pop on icon hover */
    box-shadow: var(--shadow-medium);
}

/* --- END NEW OUR TEAM SECTION STYLES --- */


#donate {
    background: linear-gradient(135deg, var(--color-bg-donate-start), var(--color-bg-donate-end));
}

.cta-section .cta-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.cta-section .cta-description {
    font-size: clamp(1rem, 3vw, 1.15rem);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
    color: var(--color-text-light-secondary);
}

.cta-section .btn-cta-main {
    font-size: clamp(0.9rem, 3.5vw, 1.05rem);
}


/* Footer */
#main-footer-bottom {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding-top: var(--space-xl);
    font-size: clamp(0.875rem, 2.5vw, 0.95rem);
}

.footer-main-layout {
    display: grid;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    grid-template-columns: 1fr;
}

.footer-col h4 {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary-accent);
}

.footer-logo.circular-logo {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-md);
}

.footer-about p {
    font-size: clamp(0.8rem, 2.2vw, 0.875rem);
    line-height: 1.6;
}

.social-media-links {
    margin-top: var(--space-md);
    display: flex;
    justify-content: flex-start;
    gap: var(--space-md);
}

.social-media-links a {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-media-links a:hover {
    color: var(--color-footer-link-hover);
    transform: translateY(-2px);
}

.footer-links ul li a {
    color: var(--color-text-secondary);
    display: block;
    padding: var(--space-xs) 0;
    transition: var(--transition-fast);
    font-size: clamp(0.85rem, 2.3vw, 0.9rem);
}

.footer-links ul li a:hover {
    color: var(--color-footer-link-hover);
    padding-left: var(--space-sm);
}

.footer-contact address p {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: flex-start;
    font-size: clamp(0.85rem, 2.3vw, 0.9rem);
}

.footer-contact address i {
    margin-right: var(--space-sm);
    margin-top: 0.25em;
    color: var(--color-primary-accent);
    width: 16px;
    flex-shrink: 0;
}

.footer-contact address a {
    color: var(--color-text-secondary);
}

.footer-contact address a:hover {
    color: var(--color-footer-link-hover);
}

.footer-copyright {
    background-color: rgba(0, 0, 0, 0.03);
    padding: var(--space-md) 0;
    text-align: center;
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    color: var(--color-text-secondary);
}

.footer-copyright .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
}

.footer-copyright p {
    margin-bottom: 0;
}

.privacy-links a {
    color: var(--color-text-secondary);
    margin-left: var(--space-sm);
}

.privacy-links a:hover {
    color: var(--color-footer-link-hover);
    text-decoration: underline;
}

/* Animation Utilities */
.animate-on-load,
.animate-on-scroll {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.7s;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-load.is-visible,
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none !important;
}

.fade-in-down {
    transform: translateY(-25px);
}

.fade-in-up {
    transform: translateY(25px);
}

.slide-in-left {
    transform: translateX(-40px);
}

.slide-in-right {
    transform: translateX(40px);
}

.pop-up {
    transform: scale(0.85) translateY(15px);
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    background-color: rgba(17, 24, 39, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--space-md);
}

@media (max-width: 767px) {
    .modal.active {
        align-items: flex-start;
        padding: 0.75rem;
        padding-top: calc(0.75rem + env(safe-area-inset-top));
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.modal-content {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
    position: relative;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    transform: translateY(-30px) scale(0.98);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease-out;
    padding: var(--space-lg);
}

@media (max-width: 767px) {
    .modal-content {
        max-height: 85dvh;
        width: 100% !important;
        max-width: min(100%, calc(100svw - 1.5rem));
        margin: 0 !important;
        border-radius: 1rem;
        padding: 0.75rem;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Allow flex child to shrink below content min-width */
        min-width: 0;
    }
}

@media (max-width: 400px) {
    .modal-content {
        padding: 0.75rem;
    }
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Registration Modal Specifics */
#registerModal .modal-content {
    max-width: 600px;
}

/* --- Stitch School Nomination Modal --- */
.modal-stitch.modal .modal-content {
    background-color: #fff;
}

.modal-school-stitch {
    max-width: 56rem !important;
    border-radius: 2.5rem;
    border: 1px solid rgba(249, 116, 21, 0.1);
    overflow-y: auto;
}

.modal-school-stitch .modal-blob {
    position: absolute;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.modal-school-stitch .modal-blob-1 {
    top: -6rem;
    right: -6rem;
    width: 16rem;
    height: 16rem;
    background: rgba(249, 116, 21, 0.2);
}

.modal-school-stitch .modal-blob-2 {
    bottom: -6rem;
    left: -6rem;
    width: 16rem;
    height: 16rem;
    background: rgba(225, 29, 72, 0.2);
}

.modal-stitch-inner {
    position: relative;
    z-index: 1;
}

.modal-stitch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.5rem 2rem 1.5rem;
}

.modal-badge-stitch {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.25rem 0.75rem;
    background: rgba(249, 116, 21, 0.1);
    color: var(--stitch-primary);
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.modal-badge-stitch .material-symbols-outlined {
    font-size: 0.875rem;
}

.modal-title-stitch {
    font-family: var(--font-display) !important;
    font-size: 1.875rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-xs);
}

.modal-title-accent {
    color: var(--stitch-secondary);
}

.modal-subtitle-stitch {
    font-size: 0.9375rem;
    color: #64748b;
    font-weight: 500;
    max-width: 28rem;
    margin: 0;
}

.close-button-stitch {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    border-radius: 9999px;
    transition: color 0.2s, background 0.2s;
}

.close-button-stitch:hover {
    background: #f1f5f9;
    color: #475569;
}

.close-button-stitch .material-symbols-outlined {
    font-size: 1.875rem;
}

.modal-form-stitch {
    padding: 0 2rem 2.5rem;
}

.modal-form-grid-stitch {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.modal-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
    margin-bottom: var(--space-md);
}

.modal-section-icon {
    font-size: 1.5rem;
}

.modal-section-icon-primary {
    color: var(--stitch-primary);
}

.modal-section-icon-secondary {
    color: var(--stitch-secondary);
}

.modal-section-header h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: #0f172a;
    margin: 0;
}

.modal-form-fields {
    display: grid;
    gap: var(--space-md);
}

.modal-field-row-stitch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.modal-field-stitch label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    padding-left: 0.25rem;
}

.modal-field-stitch input,
.modal-field-stitch select,
.modal-field-stitch textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.875rem 1.25rem;
    background: #f8fafc;
    border: none;
    border-radius: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0f172a;
    transition: box-shadow 0.2s;
    font-family: inherit;
}

.modal-field-stitch textarea {
    resize: vertical;
    min-height: 6rem;
}

.modal-field-stitch input::placeholder,
.modal-field-stitch select option:first-child,
.modal-field-stitch textarea::placeholder {
    color: #94a3b8;
}

.modal-field-stitch input:focus,
.modal-field-stitch select:focus,
.modal-field-stitch textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 116, 21, 0.2);
}

.modal-form-col:last-child .modal-field-stitch input:focus,
.modal-form-col:last-child .modal-field-stitch select:focus,
.modal-form-col:last-child .modal-field-stitch textarea:focus {
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2);
}

.modal-phone-prefix {
    display: flex;
    gap: 0.5rem;
}

.modal-phone-plus91 {
    background: #f8fafc;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    color: #64748b;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.modal-phone-prefix input {
    flex: 1;
    border-radius: 1rem;
}

.modal-badges-stitch {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-md);
}

.modal-badge-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-badge-green {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.modal-badge-orange {
    background: rgba(249, 116, 21, 0.1);
    border: 1px solid rgba(249, 116, 21, 0.2);
    color: #c2410c;
}

.modal-form-actions-stitch {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.modal-captcha-stitch {
    display: flex;
    justify-content: center;
}

.btn-submit-stitch {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--stitch-secondary);
    color: white !important;
    border: none;
    border-radius: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-stitch:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.4);
}

.modal-form-note-stitch {
    text-align: center;
    font-size: 0.6875rem;
    color: #94a3b8;
    margin: 0;
}

.modal-form-note-stitch a {
    color: var(--stitch-primary);
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .modal-form-grid-stitch {
        grid-template-columns: 1fr 1fr;
    }
}

#nominateSchoolModal .modal-content {
    max-width: 56rem;
}

/* --- Stitch Student Registration Modal --- */
.modal-student-stitch {
    max-width: 42rem !important;
    padding: 0 !important;
    border-radius: 1.5rem;
    overflow-y: auto;
    background: var(--stitch-cream) !important;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.modal-student-header {
    background: linear-gradient(135deg, var(--stitch-primary), var(--stitch-secondary));
    padding: 2.5rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.close-button-student-stitch {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    transition: color 0.2s, background 0.2s;
}

.close-button-student-stitch:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.close-button-student-stitch .material-symbols-outlined {
    font-size: 1.5rem;
}

.modal-student-icon-wrap {
    width: 6rem;
    height: 6rem;
    background: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.modal-student-icon-wrap .material-symbols-outlined {
    font-size: 3rem;
    color: var(--stitch-primary);
}

.modal-student-title {
    font-family: var(--font-display) !important;
    font-size: 1.875rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.modal-student-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
}

.modal-student-body {
    padding: 0 2rem 2rem;
    margin-top: -2rem;
}

.modal-student-form-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid rgba(251, 191, 36, 0.2);
    min-width: 0;
}

.modal-student-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    min-width: 0;
}

.modal-student-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.modal-student-input-wrap {
    position: relative;
}

.modal-student-input-wrap .material-symbols-outlined {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #94a3b8;
}

.modal-student-input-wrap input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid #f1f5f9;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0f172a;
    background: white;
    transition: border-color 0.2s;
}

.modal-student-input-wrap input:focus {
    outline: none;
    border-color: var(--stitch-primary);
}

.modal-student-field-hint {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    padding-left: 0.25rem;
}

.modal-student-field-valid {
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.modal-student-field-valid .material-symbols-outlined {
    font-size: 0.875rem;
}

.modal-student-phone-wrap {
    display: flex;
}

.modal-student-phone-prefix {
    padding: 0.75rem 1rem;
    border: 2px solid #f1f5f9;
    border-right: none;
    border-radius: 0.75rem 0 0 0.75rem;
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    font-size: 0.875rem;
}

.modal-student-phone-wrap input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #f1f5f9;
    border-radius: 0 0.75rem 0.75rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
}

.modal-student-phone-wrap input:focus {
    outline: none;
    border-color: var(--stitch-primary);
}

.modal-student-field-full {
    grid-column: 1 / -1;
}

.modal-student-submit-wrap {
    padding-top: 1.5rem;
}

.btn-student-submit-stitch {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, var(--stitch-primary), var(--stitch-secondary));
    color: white !important;
    border: none;
    border-radius: 0.75rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.125rem;
    box-shadow: 0 20px 25px -5px rgba(249, 116, 21, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-student-submit-stitch:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 50px -12px rgba(249, 116, 21, 0.35);
}

.modal-student-terms {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1rem;
}

.modal-student-terms a {
    color: var(--stitch-primary);
    font-weight: 600;
}

.modal-student-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    opacity: 0.6;
}

.modal-student-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.modal-student-trust-item .material-symbols-outlined {
    font-size: 0.875rem;
}

.modal-student-stitch .captcha-container {
    margin-top: 0.5rem;
}

@media (max-width: 767px) {
    .modal-student-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-width: 0;
    }

    .modal-student-stitch {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0.75rem;
        max-height: 85dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
    }

    .modal-student-header {
        padding: 1.25rem 1rem 2rem;
    }

    .modal-student-icon-wrap {
        width: 3rem;
        height: 3rem;
        margin: 0 auto 0.5rem;
        border-width: 3px;
    }

    .modal-student-icon-wrap .material-symbols-outlined {
        font-size: 1.5rem;
    }

    .modal-student-title {
        font-size: 1.25rem;
    }

    .modal-student-subtitle {
        font-size: 0.8rem;
    }

    .modal-student-body {
        padding: 0 0.75rem 1rem;
        margin-top: -1rem;
    }

    .modal-student-form-card {
        padding: 0.875rem;
        border-radius: 0.75rem;
        min-width: 0;
    }

    .modal-student-submit-wrap {
        padding-top: 1rem;
    }

    .btn-student-submit-stitch {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .modal-student-trust {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-top: 1rem;
    }

    .modal-student-input-wrap input,
    .modal-student-phone-wrap input,
    .modal-field-stitch input,
    .modal-field-stitch select,
    .modal-field-stitch textarea,
    .modal-phone-prefix input {
        font-size: 16px;
    }

    .modal-school-stitch {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0.75rem;
        max-height: 85dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
    }

    .modal-school-stitch .modal-stitch-header {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.75rem;
        padding-top: 2.5rem;
    }

    .modal-school-stitch .close-button-stitch {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }

    .modal-school-stitch .modal-form-stitch {
        padding: 0 0.75rem 1rem;
        overflow-x: hidden;
    }

    .modal-student-body {
        overflow-x: hidden;
    }

    .modal-student-input-wrap input,
    .modal-student-phone-wrap input,
    .modal-field-stitch input,
    .modal-field-stitch select,
    .modal-field-stitch textarea {
        min-width: 0;
    }

    .modal-form-grid-stitch,
    .modal-form-fields {
        min-width: 0;
    }

    .modal-field-row-stitch {
        grid-template-columns: 1fr;
    }

    .modal-stitch .modal-content-stitch {
        width: 100% !important;
        max-width: min(100%, calc(100svw - 1.5rem));
        margin: 0 !important;
        border-radius: 0.75rem;
        max-height: 85dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
    }

    .modal-title-stitch {
        font-size: 1.25rem;
    }

    .modal-subtitle-stitch {
        font-size: 0.8rem;
    }

    .close-button-student-stitch {
        top: 0.75rem;
        right: 0.75rem;
    }
}


#registerModal .modal-content {
    max-width: 42rem;
}

.modal-header-icon {
    font-size: 2.8rem;
    color: var(--color-primary-accent);
    text-align: center;
    margin-bottom: var(--space-md);
}

.modal-content h2 {
    font-size: 1.85rem;
    margin-bottom: var(--space-xs);
    font-weight: 700;
    text-align: center;
}

.modal-subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-xl);
    color: var(--color-text-secondary);
    text-align: center;
}

.close-button {
    color: var(--color-text-secondary);
    position: absolute;
    top: var(--space-md);
    right: var(--space-lg);
    font-size: 2rem;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
    z-index: 10;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-primary-accent);
}

.styled-form.modal-form .form-grid-condensed {
    display: grid;
    grid-template-columns: 1fr;
    /* Default to 1 column */
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.form-group .required {
    color: #EF4444;
    margin-left: var(--space-xs);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"] {
    /* Added number type */
    width: 100%;
    padding: 0.75em 1.1em;
    font-family: var(--font-secondary);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    /* Responsive font size for inputs */
    color: var(--color-text-primary);
    background-color: var(--color-bg-body);
    border: 1px solid var(--color-border-darker);
    border-radius: var(--border-radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.6;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-accent-rgb), 0.2);
    /* Use RGB var for alpha */
    background-color: var(--color-surface);
}

.form-group.captcha-container {
    margin-top: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* reCAPTCHA v3 is invisible - no widget styles needed */

.form-actions {
    text-align: center;
    margin-top: var(--space-lg);
}

.form-actions .btn-submit-registration {
    padding: 0.8em 2.5em;
    font-size: 1rem;
    width: 100%;
}

.form-note {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: var(--space-lg);
}

/* Form Messages Area */
.form-messages-area {
    padding: var(--space-md);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.5;
    display: none;
    /* Hidden by default */
}

.form-messages-area.success {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    display: block;
}

.form-messages-area.error {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    display: block;
}

.form-messages-area ul {
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
}

.form-messages-area li {
    margin-bottom: var(--space-xs);
}

/* Response Pop-up */
.response-popup .modal-content {
    max-width: 480px;
    text-align: center;
    padding: var(--space-xl) var(--space-xxl);
    /* More padding for this specific modal */
}

.response-popup-content .response-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.response-popup-content .response-icon .fa-check-circle {
    color: var(--color-secondary-accent);
}

.response-popup-content .response-icon .fa-times-circle,
.response-popup-content .response-icon .fa-exclamation-triangle {
    color: #DC2626;
}

.response-popup-content h3 {
    font-size: 1.6rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
    font-weight: 600;
}

.response-popup-content p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.response-popup-content .btn-primary {
    width: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
    font-size: 1rem;
}

/* --- Stitch Response Popup --- */
.response-popup-content-stitch {
    max-width: 28rem !important;
    padding: 2rem !important;
    background: var(--stitch-cream) !important;
    border-radius: 1rem;
    border: 1px solid rgba(249, 116, 21, 0.1);
    position: relative;
    overflow: hidden;
}

.response-close-stitch {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
}

.response-close-stitch:hover {
    color: var(--stitch-primary);
}

.response-close-stitch .material-symbols-outlined {
    font-size: 1.5rem;
}

.response-icon-stitch {
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.response-icon-success-stitch {
    background: var(--stitch-accent-orange);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

.response-icon-success-stitch .material-symbols-outlined {
    font-size: 3rem;
    font-weight: 700;
}

.response-icon-error-stitch {
    background: #FEE2E2;
    color: #F87171;
}

.response-icon-error-stitch .material-symbols-outlined {
    font-size: 3rem;
    font-weight: 700;
}

.response-title-stitch {
    font-family: var(--font-display) !important;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.response-message-stitch {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.response-actions-stitch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.response-btn-primary-stitch {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(to right, var(--stitch-primary), #e01a9a);
    color: white !important;
    border: none;
    border-radius: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 15px -3px rgba(249, 116, 21, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.response-btn-primary-stitch:hover {
    transform: scale(1.02);
}

.response-close-link-stitch {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.response-close-link-stitch:hover {
    color: var(--stitch-primary);
}

.response-footer-stitch {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(249, 116, 21, 0.1);
}

.response-footer-text-stitch {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.response-footer-text-stitch a {
    color: var(--stitch-primary);
}

.response-gradient-bar-stitch {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: linear-gradient(to right, var(--stitch-accent-orange), var(--stitch-primary), var(--stitch-accent-orange));
    opacity: 0.8;
}

/* --- Stitch Sections --- */
.section-stitch .section-tagline {
    font-family: var(--font-display);
    color: var(--stitch-primary);
}

.section-stitch .section-title {
    font-family: var(--font-display) !important;
}

.section-stitch .btn-primary {
    background: linear-gradient(to right, var(--stitch-primary), var(--stitch-secondary));
    border: none;
    box-shadow: 0 4px 14px rgba(249, 116, 21, 0.3);
}

.section-stitch .btn-primary:hover {
    background: linear-gradient(to right, #ea580c, #be123c);
    box-shadow: 0 6px 20px rgba(249, 116, 21, 0.4);
}

.section-stitch .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.section-stitch .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.section-stitch .feature-icon,
.section-stitch .icon-card-icon {
    color: var(--stitch-primary);
}

.section-stitch .icon-card {
    border: 1px solid rgba(249, 116, 21, 0.15);
    transition: all 0.3s ease;
}

.section-stitch .icon-card:hover {
    border-color: rgba(249, 116, 21, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.section-stitch .feature-item {
    border-radius: 1rem;
    border: 2px solid rgba(249, 116, 21, 0.15);
}

.section-stitch .feature-item:hover {
    border-color: rgba(249, 116, 21, 0.3);
}

.section-stitch .tier-card {
    border-width: 2px;
    border-radius: 1rem;
}

.section-stitch .tier-school {
    border-color: rgba(249, 116, 21, 0.2);
}

.section-stitch .tier-state {
    border-color: rgba(225, 29, 72, 0.2);
}

.section-stitch .tier-national {
    border-color: rgba(249, 116, 21, 0.3);
}

.section-stitch.bg-light-gray,
.section-stitch #our-journey {
    background-color: var(--stitch-cream) !important;
}

.section-stitch .journey-timeline::before {
    background: linear-gradient(to bottom, var(--stitch-primary), var(--stitch-secondary), var(--stitch-primary)) !important;
}

.section-stitch .journey-timeline-marker {
    border-color: var(--stitch-primary);
    color: var(--stitch-primary);
}

.section-stitch .journey-timeline-event:nth-child(even) .journey-timeline-marker {
    border-color: var(--stitch-secondary);
    color: var(--stitch-secondary);
}

.section-stitch .journey-timeline-marker {
    box-shadow: 0 0 0 8px var(--stitch-cream);
}

.section-stitch .journey-timeline-marker .material-symbols-outlined {
    font-size: 1.25rem;
}

.section-stitch .feature-icon .material-symbols-outlined,
.section-stitch .tier-icon-main.material-symbols-outlined {
    font-size: inherit;
}

.section-stitch-dark .section-tagline.text-accent {
    color: #fdba74 !important;
}

.section-stitch-partners {
    background: linear-gradient(135deg, var(--stitch-secondary), var(--stitch-primary)) !important;
}

.section-stitch-donate {
    background: linear-gradient(135deg, var(--stitch-secondary), var(--stitch-primary)) !important;
    position: relative;
    overflow: hidden;
}

.section-stitch-donate::before,
.section-stitch-donate::after {
    content: '';
    position: absolute;
    width: 16rem;
    height: 16rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    filter: blur(60px);
    pointer-events: none;
}

.section-stitch-donate::before {
    top: -4rem;
    left: -4rem;
}

.section-stitch-donate::after {
    bottom: -4rem;
    right: -4rem;
}

.section-stitch-donate .cta-stitch-inner {
    position: relative;
    z-index: 1;
}

.section-stitch-donate .cta-title,
.section-stitch-donate .cta-description {
    position: relative;
}

.section-stitch-donate .cta-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-stitch-donate .cta-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.cta-buttons-stitch {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-cta-secondary-stitch {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 2px solid white;
    font-family: var(--font-display);
    font-weight: 700;
}

.btn-cta-secondary-stitch:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.section-stitch-donate .btn-light {
    background: white !important;
    color: var(--stitch-secondary) !important;
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
}

.section-stitch-donate .btn-light:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.section-stitch .team-member-card {
    border: 1px solid rgba(249, 116, 21, 0.1);
}

.section-stitch .team-member-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.section-stitch .linkedin-link:hover {
    color: var(--stitch-primary) !important;
}

.footer-stitch {
    background: var(--stitch-bg-dark) !important;
    color: white;
    border-radius: 3rem 3rem 0 0;
    margin-top: 3rem;
    padding-top: 5rem;
}

.footer-stitch .footer-main-layout {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    justify-items: center;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .footer-stitch .footer-main-layout {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
}

.footer-stitch .footer-brand-stitch {
    justify-content: center;
}

.footer-brand-stitch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 40px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.footer-stitch .footer-about p {
    color: rgba(148, 163, 184, 1);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-stitch .footer-social-stitch {
    justify-content: center;
}

.footer-social-stitch {
    display: flex;
    gap: 1rem;
}

.footer-social-icon-stitch {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(148, 163, 184, 1);
    transition: background-color 0.2s, color 0.2s;
}

.footer-social-icon-stitch .material-symbols-outlined {
    font-size: 1rem;
}

.footer-stitch .footer-social-icon-stitch:hover {
    background: var(--stitch-primary);
    color: white !important;
}

.footer-stitch .footer-col h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-stitch .footer-col h4::after {
    display: none;
}

.footer-stitch .footer-links ul,
.footer-stitch .footer-programs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-stitch .footer-links ul li,
.footer-stitch .footer-programs ul li {
    margin-bottom: 1rem;
}

.footer-stitch .footer-links a,
.footer-stitch .footer-programs a {
    color: rgba(148, 163, 184, 1);
    font-size: 0.875rem;
}

.footer-stitch .footer-links a:hover,
.footer-stitch .footer-programs a:hover {
    color: var(--stitch-primary) !important;
}

.footer-newsletter-intro {
    color: rgba(148, 163, 184, 1);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: white;
}

.footer-newsletter-input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--stitch-primary);
}

.footer-newsletter-btn {
    background: var(--stitch-primary) !important;
    color: white !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.footer-newsletter-btn:hover {
    background: #ea580c !important;
}

.footer-copyright-stitch {
    background: transparent !important;
}

.footer-copyright-stitch .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-copyright-stitch .container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

.footer-copyright-stitch p {
    color: rgba(100, 116, 139, 1);
    font-size: 0.75rem;
    font-weight: 500;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: rgba(100, 116, 139, 1);
    font-size: 0.75rem;
}

.footer-legal-links a:hover {
    color: white !important;
}

.footer-stitch a:hover {
    color: var(--stitch-primary) !important;
}

/* --- Section Specific Margins & Dividers --- */
#our-journey .merged-features {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
}

#our-journey .merged-tiers {
    margin-bottom: var(--space-xl);
}

.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--color-border), rgba(0, 0, 0, 0));
    margin: var(--space-xl) auto;
    width: 70%;
    max-width: 350px;
}

#our-journey .section-header+.journey-timeline {
    margin-top: 0;
}

#our-journey .merged-tiers+.section-header {
    margin-top: var(--space-xl);
}

#our-journey .scholar-tiers-visual+hr.section-divider+.section-header {
    margin-top: var(--space-xxl);
}

/* Fieldset for Contact Person Details */
.contact-person-details {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    /* Add margin below the fieldset */
    position: relative;
    /* For legend positioning */
}

.contact-person-details legend {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    /* Slightly larger than label */
    color: var(--color-primary-accent);
    padding: 0 var(--space-xs);
    margin-left: var(--space-sm);
    background-color: var(--color-surface);
    /* Match modal background */
    display: inline-block;
    position: absolute;
    top: -0.05rem;
    /* Adjust to sit on border */
    left: var(--space-md);
    transform: translateY(-50%);
}

.contact-person-details .form-group {
    margin-bottom: var(--space-md);
}

.contact-person-details .form-group:last-child {
    margin-bottom: 0;
    /* Remove margin from last form group inside fieldset */
}


/* --- Media Queries --- */
@media (max-width: 991px) {

    /* Tablet and below */
    body {
        padding-top: 100px;
    }

    /* Adjust to actual mobile header height */
    #main-header {
        min-height: 90px;
    }

    #main-header.scrolled {
        min-height: 80px;
    }

    .brand-logo.circular-logo {
        height: 60px;
        width: 60px;
        margin-right: var(--space-xs);
    }

    #main-header.scrolled .brand-logo.circular-logo {
        height: 50px;
        width: 50px;
    }

    .brand-text-mobile {
        display: inline-block;
        /* Show on mobile */
        font-size: clamp(0.9rem, 3.2vw, 1.1rem);
    }

    .desktop-navigation {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1002;
    }

    .header-actions .btn-donate-header {
        display: none;
    }

    .hero-stitch-light {
        padding-top: 2rem;
    }

    .hero-stitch .hero-title-stitch {
        font-size: 3rem;
    }

    .hero-stitch .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-stitch .hero-cta-buttons .btn {
        width: 100%;
    }

    .modal-stitch .modal-content-stitch {
        margin: 1rem auto;
        width: calc(100% - 2rem);
    }

    .modal-stitch-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .modal-title-stitch {
        font-size: 1.75rem;
    }

    .modal-form-grid-stitch {
        padding: 0 1.5rem 1.5rem;
    }

    .modal-field-row-stitch {
        grid-template-columns: 1fr;
    }

    .journey-timeline::before {
        left: 15px;
    }

    .journey-timeline-event {
        padding-left: 35px;
        /* Was margin-left + padding-left */
    }

    .journey-timeline-marker {
        left: 15px;
        transform: translateX(-50%);
        /* Centered on the line */
        width: 35px;
        height: 35px;
        font-size: 1rem;
        border-width: 3px;
        box-shadow: 0 0 0 6px var(--color-bg-light-gray-section);
    }

    .footer-main-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-media-links {
        justify-content: center;
    }

    .styled-form.modal-form .form-grid-condensed {
        grid-template-columns: 1fr;
    }

    /* Already default, but explicit */
    .hero-section {
        min-height: calc(100vh - 100px);
    }
}

/* Apply modal narrowing only on tablets (768px–991px), not phones */
@media (min-width: 768px) and (max-width: 991px) {
    .modal-stitch .modal-content-stitch {
        margin: 1rem auto;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 767px) {

    /* Mobile phones */
    body {
        padding-top: 85px;
    }

    #main-header {
        min-height: 75px;
    }

    #main-header.scrolled {
        min-height: 65px;
    }

    .brand-logo.circular-logo {
        height: 50px;
        width: 50px;
    }

    #main-header.scrolled .brand-logo.circular-logo {
        height: 45px;
        width: 45px;
    }

    .footer-logo.circular-logo {
        height: 50px;
        width: 50px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section {
        min-height: calc(100vh - 85px);
        padding-top: var(--space-sm);
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1.05rem);
        margin-bottom: var(--space-md);
    }

    .hero-cta-buttons .btn {
        font-size: clamp(0.8rem, 4vw, 0.9rem);
        padding: 0.6em 1.1em;
        min-width: 130px;
    }

    .content-grid-two-cols {
        grid-template-columns: 1fr;
    }

    .content-grid-two-cols .content-block,
    .content-grid-two-cols.reverse-cols .content-block {
        text-align: center;
    }

    .content-grid-two-cols .content-block .btn {
        margin-left: auto;
        margin-right: auto;
    }

    .tiers-container {
        flex-direction: column;
        align-items: stretch;
    }

    .tier-card {
        max-width: 100%;
        margin-bottom: var(--space-md);
    }

    .journey-timeline::before {
        left: 10px;
    }

    .journey-timeline-event {
        padding-left: 30px;
        margin-bottom: var(--space-lg);
    }

    .journey-timeline-marker {
        left: 10px;
        transform: translateX(-50%);
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        border-width: 2px;
        box-shadow: 0 0 0 5px var(--color-bg-light-gray-section);
    }

    .journey-timeline-content {
        padding: var(--space-md);
        min-width: 0;
    }

    .journey-timeline-media,
    .journey-timeline-media img {
        max-width: 100%;
    }

    .journey-timeline-media-illustration img {
        object-fit: cover;
        object-position: center;
    }

    .modal-content {
        width: 100%;
        max-width: min(100%, calc(100svw - 1.5rem));
        padding: var(--space-md);
    }

    .modal-stitch .modal-content-stitch {
        width: 100% !important;
        max-width: min(100%, calc(100svw - 1.5rem));
    }

    #registerModal .modal-content,
    /* Specific for reg modal on small screens */
    #nominateSchoolModal .modal-content {
        /* Also for school modal on small screens */
        padding: var(--space-md);
    }

    .modal-header-icon {
        font-size: clamp(2rem, 6vw, 2.2rem);
        margin-bottom: var(--space-sm);
    }

    .modal-content h2 {
        font-size: clamp(1.3rem, 4.5vw, 1.6rem);
    }

    .modal-subtitle {
        font-size: clamp(0.8rem, 2.8vw, 0.9rem);
        margin-bottom: var(--space-md);
    }

    .form-actions .btn-submit-registration {
        font-size: clamp(0.85rem, 3.5vw, 0.9rem);
        padding: 0.65em 1.5em;
    }

    .contact-person-details .form-group {
        grid-column: 1 / -1 !important;
        /* Force full width within fieldset on small screens */
    }
}



@media (max-width: 320px) {
    .brand-text-mobile {
        font-size: 1rem;
    }

    .modal.active {
        padding: 0.5rem;
        padding-top: calc(0.5rem + env(safe-area-inset-top));
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }

    .modal-content,
    .modal-student-stitch,
    .modal-school-stitch {
        padding: 0.5rem;
    }

    .modal-student-body {
        padding: 0 0.5rem 0.75rem;
    }

    .modal-student-form-card {
        padding: 0.75rem;
    }

    .modal-school-stitch .modal-form-stitch {
        padding: 0 0.5rem 0.75rem;
    }
}

@media (min-width: 576px) {

    /* Apply two columns for form only on screens 576px and wider */
    .styled-form.modal-form .form-grid-condensed {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg) var(--space-md);
    }

    .styled-form.modal-form .form-grid-condensed .form-group.full-width-modal,
    .styled-form.modal-form .form-grid-condensed .form-group.captcha-container,
    .styled-form.modal-form .form-grid-condensed .contact-person-details {
        /* Added contact-person-details */
        grid-column: 1 / -1;
    }

    .form-actions .btn-submit-registration {
        width: auto;
    }

    /* Auto width for button on larger form */

    .contact-person-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Two columns inside fieldset */
        gap: var(--space-md);
        /* Consistent gap */
    }

    .contact-person-details .form-group.full-width-modal {
        grid-column: 1 / -1;
        /* Make specific fields span full width if desired */
    }
}

@media (min-width: 768px) {

    /* Desktop-like timeline and content grid */
    .footer-main-layout {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        text-align: left;
    }

    .footer-col h4::after {
        left: 0;
        transform: none;
    }

    .social-media-links {
        justify-content: flex-start;
    }

    .content-grid-two-cols {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        text-align: left;
    }

    .content-grid-two-cols .content-block .btn {
        margin-left: 0;
        margin-right: 0;
    }

    .content-grid-two-cols.reverse-cols {
        grid-template-areas: "text image";
    }

    /* LTR: text left, image right */
    .content-grid-two-cols.reverse-cols>.content-block:nth-child(1) {
        grid-area: text;
    }

    /* First child is text */
    .content-grid-two-cols.reverse-cols>.content-block:nth-child(2) {
        grid-area: image;
    }

    /* Second child is image */
    /* Ensure alternating for normal grid too if needed, or use specific classes */
    .content-grid-two-cols:not(.reverse-cols)>.content-block:nth-child(1) {
        /* image */
    }

    .content-grid-two-cols:not(.reverse-cols)>.content-block:nth-child(2) {
        /* text */
    }


    .journey-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .journey-timeline-event {
        width: 100%;
        padding-left: 0;
    }

    .journey-timeline-marker {
        left: 50%;
    }

    .journey-timeline-content {
        width: calc(50% - var(--space-xl));
        /* Default width */
    }

    .journey-timeline-content::before {
        /* Arrow for desktop timeline */
        content: " ";
        height: 0;
        position: absolute;
        top: 22px;
        width: 0;
        z-index: 1;
        border: medium solid var(--color-surface);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--color-surface) transparent transparent;
    }

    .journey-timeline-event:nth-child(odd) .journey-timeline-content {
        margin-left: calc(50% + var(--space-xl));
        text-align: left;
    }

    .journey-timeline-event:nth-child(odd) .journey-timeline-content::before {
        right: 100%;
        left: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--color-surface) transparent transparent;
    }

    .journey-timeline-event:nth-child(even) .journey-timeline-content {
        margin-left: 0;
        /* Default left alignment for text block */
        margin-right: calc(50% + var(--space-xl));
        text-align: right;
        /* Content text align right */
    }

    .journey-timeline-event:nth-child(even) .journey-timeline-content::before {
        left: 100%;
        right: auto;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent var(--color-surface);
    }

    .journey-timeline-event:nth-child(even) .journey-timeline-text {
        align-items: flex-end;
        display: flex;
        flex-direction: column;
    }

    /* Align text block items to right */
}

@media (min-width: 992px) {

    /* Larger desktops */
    .desktop-navigation {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
    }

    .header-stitch .nav-stitch {
        display: flex;
        gap: var(--space-lg);
    }

    .mobile-nav-toggle {
        display: none;
    }

    .header-actions .btn-donate-header {
        display: inline-block;
    }

    .brand-text-mobile {
        display: none;
    }

    /* Hide mobile brand text on desktop */
}

@media (min-width: 1024px) {
    .footer-main-layout {
        grid-template-columns: 2fr 1.2fr 1.5fr;
        /* About, Links, Contact */
        gap: var(--space-xl);
    }
}