:root {
    /* Premium NSMHA Palette */
    --color-navy: #0f172a;
    --color-blue: #4f6ef7;
    --color-blue-light: #818cf8;
    --color-accent: #7c3aed;
    --color-accent-glow: rgba(124, 58, 237, 0.3);
    --color-teal: #0ea5e9;
    --color-white: #ffffff;
    --color-gray-light: #f1f5f9;
    --color-text: #1e293b;
    --color-text-light: #64748b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f6ef7 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(79, 110, 247, 0.35) 100%);
    --gradient-text: linear-gradient(135deg, #4f6ef7 0%, #7c3aed 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    --gradient-stat: linear-gradient(135deg, #4f6ef7 0%, #7c3aed 100%);
    --gradient-section: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.18);
    --shadow-card: 0 10px 40px -8px rgba(79, 110, 247, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-hover: 0 24px 48px -8px rgba(79, 110, 247, 0.22), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-float: 0 15px 35px rgba(79, 110, 247, 0.20);
    --shadow-glow: 0 0 30px rgba(79, 110, 247, 0.4);
    --shadow-glow-accent: 0 0 30px rgba(124, 58, 237, 0.4);

    /* Transitions */
    --transition-base: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--color-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-hover {
    transform: translate(-50%, -50%) scale(2.5);
    background-color: rgba(79, 110, 247, 0.1);
    border-color: var(--color-accent);
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 2000;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Reveal Animations - Default Visible for Safety */
.reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: var(--transition-smooth);
}

body.animations-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

body.animations-enabled .reveal-left {
    opacity: 0;
    transform: translateX(-50px);
}

body.animations-enabled .reveal-right {
    opacity: 0;
    transform: translateX(50px);
}

body.animations-enabled .reveal.visible,
body.animations-enabled .reveal-left.visible,
body.animations-enabled .reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.95rem 2.4rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    box-shadow: 0 6px 20px rgba(79, 110, 247, 0.45);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(79, 110, 247, 0.55);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #4f6ef7 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Header - Glassmorphism */
.site-header {
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-base);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #0f172a;
    /* Dark Navy for Logo text */
    text-decoration: none;
    text-align: left;
}

.logo-acronym {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-navy);
    /* Theme color */
    /* Removed gradient for cleaner look or keep if preferred. Let's keep dark for contrast on light header */
    background: none;
    -webkit-text-fill-color: initial;
    letter-spacing: -1px;
}

.logo-full {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    /* Increased from 0.65rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-blue);
    /* Theme color */
    white-space: nowrap;
    /* Force one line */
    line-height: 1.2;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-blue);
    transition: width 0.3s ease;
}

.nav-link:not(.btn):hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
}

/* Hero Section */
@keyframes hero-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section {
    position: relative;
    min-height: 90vh;
    padding-bottom: 5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/hero-bg.png');
    background-color: var(--color-navy);
    background-size: cover;
    background-position: center;
    padding-top: 6rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(79, 110, 247, 0.45) 50%,
        rgba(124, 58, 237, 0.35) 100%);
    background-size: 200% 200%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Ensure full width for centering */
    letter-spacing: -1px;
}



.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* NSMHA Rebranding Typography */
.hero-brand-title {
    font-family: 'Inter', sans-serif;
    /* Futuristic bold sans */
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-brand-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-headline-wrapper {
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: 'Inter', sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.btn-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-base);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-brand-title {
        font-size: 4rem;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-brand-subtitle {
        font-size: 1rem;
    }
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 1;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
    /* Reduced from 120px to prevent overlap */
    transform-origin: bottom;
}

.wave-1 {
    z-index: 2;
    opacity: 1;
}

.hero-wave .shape-fill {
    fill: #ffffff !important;
}

/* Think, Feel, Act Section */
.tfa-section {
    background: var(--gradient-section);
    padding-top: 4rem;
}

.tfa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.tfa-column {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 24px;
    transition: var(--transition-bounce);
    background: var(--gradient-card);
    border: 1px solid rgba(79, 110, 247, 0.08);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.tfa-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tfa-column:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 110, 247, 0.2);
}

.tfa-column:hover::before {
    opacity: 1;
}

.tfa-icon {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: block;
    box-shadow: 0 8px 32px rgba(79, 110, 247, 0.25);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: 3px solid rgba(79, 110, 247, 0.15);
}

.tfa-column:hover .tfa-icon {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 12px 40px rgba(79, 110, 247, 0.35);
}

.tfa-label {
    display: block;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tfa-column h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.tfa-column p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Quote Section */
.quote-section {
    background-color: var(--color-gray-light);
    position: relative;
    overflow: hidden;
}

/* Decorative Quote Mark */
.quote-section::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 15rem;
    color: rgba(49, 130, 206, 0.05);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3rem;
    /* Space for arrows */
}

.carousel-track {
    position: relative;
    /* Min height to prevent jumping, approximate based on content */
    min-height: 350px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 1.5s ease-in-out;
    pointer-events: none;
    /* Prevent clicking hidden slides */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    /* Let active slide determine height if needed, but absolute is better for stacking */
    pointer-events: all;
    z-index: 1;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-navy);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.quote-author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 2rem auto 0;
    display: block;
    box-shadow: var(--shadow-card);
    border: 4px solid var(--color-white);
}

.quote-author {
    font-weight: 600;
    color: var(--color-blue);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    display: block;
}

/* Carousel Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-blue-light);
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 2;
    padding: 1rem;
}

.carousel-button:hover {
    color: var(--color-blue);
    transform: translateY(-50%) scale(1.1);
}

.prev-button {
    left: -2rem;
}

.next-button {
    right: -2rem;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.indicator.active {
    background: var(--color-blue);
    transform: scale(1.2);
}

/* Overview/Branches Section */
.overview-section {
    background-color: var(--color-white);
}

.section-header {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-navy) 0%, #4f6ef7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(79, 110, 247, 0.4);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.overview-schools {
    text-align: left;
}

.overview-schools h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-navy);
}

.school-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 0;
}

.school-list li {
    background-color: var(--color-white);
    padding: 0;
    /* Padding moved to link for better click area */
    border-radius: 12px;
    font-size: 0.9rem;
    transition: var(--transition-base);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    height: 48px;
    /* Fixed height for uniformity */
    display: flex;
}

.school-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(49, 130, 206, 0.2);
}

.school-list li a {
    text-decoration: none;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Overview Stats */
/* Overview Stats */
.overview-stats-container {
    padding: 0;
    /* Removed box styling */
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    transition: var(--transition-bounce);
    border-radius: 20px;
    background: var(--gradient-primary);
    box-shadow: 0 8px 24px rgba(79, 110, 247, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
    color: white;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 16px 40px rgba(79, 110, 247, 0.45);
}

.stat-card:hover::before {
    transform: scale(2.5);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: var(--font-heading);
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Activities Section */
.activities-section {
    background-color: var(--color-white);
}

.activities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
}

.activity-card {
    background: var(--gradient-card);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(79, 110, 247, 0.08);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    flex: 0 1 360px;
}

.activity-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 110, 247, 0.2);
}

.activity-card:hover::after {
    transform: scaleX(1);
}

.activity-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(49, 130, 206, 0.08);
    position: absolute;
    top: -10px;
    right: 15px;
    font-weight: 700;
    line-height: 1;
    transition: var(--transition-base);
}

.activity-card:hover .activity-number {
    transform: scale(1.1) rotate(5deg);
    color: rgba(49, 130, 206, 0.12);
}

.activity-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--color-navy);
    position: relative;
    z-index: 1;
}

.activity-card p {
    color: var(--color-text-light);
    font-size: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

/* Scroll Animations - Default Visible */
.fade-in-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

body.animations-enabled .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

body.animations-enabled .fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* Team Section */
.team-section {
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
}

/* Team Grid 3-up */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: start;
}

.team-member:nth-child(n) {
    grid-column: auto;
    width: 100%;
    margin: 0;
}

.member-bio {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    text-align: left;
    display: block;
}

.team-member {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    text-align: center;
    background: var(--color-white);
    padding: 2.2rem 1.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-bounce);
    border: 1px solid rgba(79, 110, 247, 0.07);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 110, 247, 0.15);
}

.team-member:hover::before {
    opacity: 1;
}

.member-photo {
    width: 130px !important;
    height: 130px !important;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: 0 8px 24px rgba(79, 110, 247, 0.25);
    border: 4px solid rgba(79, 110, 247, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.team-member:hover .member-photo {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(79, 110, 247, 0.35);
}

.team-member:nth-child(n) .member-photo {
    width: 130px !important;
    height: 130px !important;
    max-width: 130px !important;
    min-width: 130px !important;
}

.team-member h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--color-navy);
    font-weight: 700;
}

.member-role {
    color: var(--color-blue);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 6rem 0 4rem;
    border-top: 1px solid rgba(79, 110, 247, 0.2);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 110, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
    margin-bottom: 4rem;
    opacity: 0.9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 4rem;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
}

.footer-col h3 {
    color: var(--color-blue);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.footer-col p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-highlight {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 1.1rem;
    line-height: 1.4;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-socials a:hover {
    color: var(--color-blue-light);
    transform: translateX(5px);
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .mobile-nav-toggle {
        display: block;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-navy);
        margin: 5px 0;
        transition: var(--transition-base);
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition-base);
        padding: 2rem;
    }

    .nav-list.active {
        right: 0;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .tfa-grid,
    .overview-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .team-member,
    .team-member:nth-child(1),
    .team-member:nth-child(2) {
        grid-column: auto;
        /* Reset column spanning for single column layout */
    }

    .footer-tagline {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-socials {
        align-items: center;
    }

    .quote-section::before {
        font-size: 10rem;
        top: -10px;
    }
}

/* --- Visual Enhancements --- */

/* 3D Tilt Effect Utilities */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease;
    /* Fast transition for movement, overridden by JS */
    will-change: transform;
}

.tilt-content {
    transform: translateZ(20px);
    /* Pop out effect */
    transform-style: preserve-3d;
}

/* Glassmorphism Polish */
.activity-card,
.team-member {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Prepare for tilt */
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Organic Shapes */
.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blob-float 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--color-blue-light);
    top: -100px;
    left: -100px;
    animation-duration: 12s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #e2e8f0;
    /* Light gray-blue */
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
    animation-duration: 15s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #bee3f8;
    /* Very light blue */
    top: 40%;
    left: 60%;
    animation-delay: -2s;
    animation-duration: 8s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Ensure content stays above blobs */
.tfa-section .container,
.activities-section .container,
.overview-section .container,
.team-section .container {
    position: relative;
    z-index: 2;
}

.tfa-section,
.activities-section,
.overview-section,
.team-section {
    position: relative;
    /* For blob container positioning */
    overflow: hidden;
}

/* --- Wow Factor Polish & Alignment Fix --- */

/* Hero Particles */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Below content */
    pointer-events: none;
    /* Contain glare */
}

.glare {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    z-index: 10;
    mix-blend-mode: overlay;
    transition: opacity 0.2s ease;
}

/* Medium Feed Section */
.medium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.medium-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.medium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.medium-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.medium-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.medium-card:hover .medium-image {
    transform: scale(1.05);
}

.medium-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.medium-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.medium-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.medium-excerpt {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.medium-link {
    font-weight: 600;
    color: var(--color-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.medium-link i {
    transition: transform 0.3s ease;
}

.medium-link:hover i {
    transform: translateX(4px);
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--color-text-light);
    font-weight: 500;
}


/* Mission Section Specifics */
.mission-grid {
    margin-top: 3rem;
}

.icon-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mission-icon {
    font-size: 4rem;
    color: var(--color-blue);
    /* Attempting a 'thinner' look with standard FA icons by using lighter weight if available or just consistent styling */
    font-weight: 300;
    /* Try for light version if kit supports it */
}

/* Ensure headers matches previous style (inherits national h3) */
.tfa-column h3 {
    /* Using default h3 styles (Playfair Display) */
    font-size: 2rem;
    color: var(--color-navy);
    margin-bottom: 1.2rem;
}

.tfa-column p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    padding: 0 1rem;
    /* Add some side padding for text breathability */
}

/* New 2x2 Layout for What We Do */
.new-grid-layout {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem !important;
    justify-items: stretch;
}

@media (max-width: 768px) {
    .new-grid-layout {
        grid-template-columns: 1fr !important;
    }
}

.activity-icon-wrapper {
    margin-bottom: 1.5rem;
}

.activity-icon-large {
    font-size: 3rem;
    color: var(--color-blue);
    background: rgba(49, 130, 206, 0.1);
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.school-icon {
    color: var(--color-blue);
    margin-right: 0.5rem;
    font-size: 0.9em;
}

.text-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
    font-style: normal;
    border-bottom: 2.5px solid rgba(255, 255, 255, 0.75);
    padding-bottom: 3px;
}


/* Override for Hero Description readability */
.hero-description {
    font-size: 1.3rem !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
    max-width: 800px !important;
}

/* Hero Text Enhancements */
.hero-headline {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Hero Actions Spacing */
.hero-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Section Text Color */
.cta-section,
.cta-section h2,
.cta-section p {
    color: var(--color-white) !important;
}

/* Form Enhancements */
.form-section {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: var(--color-navy);
    font-size: 1.5rem;
}

input[type="file"] {
    padding: 12px;
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-base);
}

input[type="file"]:hover {
    border-color: var(--color-blue);
    background: #edf2f7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-navy);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: #f7fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Team Bio Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 40, 0.88);
    backdrop-filter: blur(12px);
}

.modal-container {
    position: relative;
    background: var(--color-white);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(79, 110, 247, 0.1);
    z-index: 10001;
    overflow-y: auto;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-blue);
}

.modal-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.modal-left {
    flex: 0 0 200px;
}

.modal-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-blue);
    box-shadow: var(--shadow-float);
}

.modal-right {
    flex: 1;
}

.modal-name {
    font-size: 2.2rem !important;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    margin-top: 0 !important;
}

.modal-role {
    font-size: 1.1rem;
    color: var(--color-blue);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.modal-school {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.modal-line {
    width: 60px;
    height: 4px;
    background: var(--color-blue);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.modal-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .modal-container {
        padding: 2.5rem 1.5rem;
    }

    .modal-left {
        flex: none;
    }

    .modal-line {
        margin: 0 auto 1.5rem;
    }
}

.team-member {
    cursor: pointer;
}
/* ── Scrolling Ticker Strip ── */
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-strip {
    background: var(--gradient-primary);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.85rem 0;
    position: relative;
    z-index: 10;
    box-shadow: none;
}

.ticker-strip::before,
.ticker-strip::after {
    right: 0;
    background: linear-gradient(to left, rgba(124, 58, 237, 0.8), transparent);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: ticker-scroll 38s linear infinite;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0 1.8rem;
    white-space: nowrap;
}

.ticker-item i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.ticker-sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    flex-shrink: 0;
}


/* JOIN FORM SECTION */
.join-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--color-blue-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.success-message {
    display: none;
    background: #dcfce7;
    color: #166534;
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

@media (max-width: 768px) {
    .join-form-container {
        padding: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr !important;
    }
}



/* PREMIUM SLIDE-OUT MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-panel {
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: #ffffff;
    padding: 4rem 3rem;
    position: relative;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal-panel {
    transform: translateX(0);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-blue-dark);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-blue);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 3rem;
}

.modal-header h2 {
    font-size: 2.5rem;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.modal-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

