/* =============================================
   Team Lab — Design System
   Nature-inspired, modern, professional
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
    /* Colors – Nature palette */
    --green-900: #0d2818;
    --green-800: #1a3a2a;
    --green-700: #24523a;
    --green-600: #2d6a4f;
    --green-500: #40916c;
    --green-400: #52b788;
    --green-300: #74c69d;
    --green-200: #b7e4c7;
    --green-100: #d8f3dc;
    --green-50: #f0faf3;

    --gold-600: #b8860b;
    --gold-500: #d4a843;
    --gold-400: #e0c068;
    --gold-300: #f0d88a;
    --gold-200: #f5e6b0;
    --gold-100: #faf2d8;

    --cream: #faf8f2;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-300) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.2) 100%);
    --gradient-dark: linear-gradient(180deg, var(--green-900) 0%, var(--green-800) 100%);
    --gradient-text: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-300) 50%, var(--green-400) 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 72px;
    --container-width: 1200px;

    /* Effects */
    --glass-bg: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.1);
    --glass-bg-light: rgba(255,255,255,0.7);
    --glass-border-light: rgba(255,255,255,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 40px rgba(212,168,67,0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--green-600);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-500);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Utilities --- */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(45,106,79,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,106,79,0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--green-700);
    border: 2px solid var(--green-600);
}

.btn-outline:hover {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}

.btn-small {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-text {
    background: none;
    color: var(--green-600);
    padding: 8px 0;
    font-size: 14px;
}

.btn-text:hover {
    color: var(--gold-500);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13,40,24,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.navbar.scrolled .nav-container {
    justify-content: flex-start;
}

.nav-logo {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-12px);
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    flex-shrink: 0;
    margin-right: 0;
}

.navbar.scrolled .nav-logo {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    margin-right: auto;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.navbar.scrolled .logo-img {
    height: 38px;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0 auto;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.navbar.scrolled .nav-menu {
    margin: 0 0 0 auto;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

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

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.lang-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn:hover { color: rgba(255,255,255,0.8); }
.lang-btn.active { color: var(--gold-400); background: rgba(255,255,255,0.1); }
.lang-sep { color: rgba(255,255,255,0.3); font-size: 12px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--green-900);
}

/* Hero background image carousel */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-carousel-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-400);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    25% { opacity: 0.85; }
    100% { opacity: 0; transform: translateY(-200px) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    margin-top: 20px;
}

.hero-logo-main {
    position: relative;
    margin-bottom: 24px;
    animation: heroLogoFadeIn 1.5s ease-out;
}

/* Radial glow behind logo for contrast */
.hero-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.15) 35%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-logo-img {
    position: relative;
    height: 20vh;
    width: auto;
    filter: drop-shadow(0 2px 12px rgba(255,255,255,0.25)) drop-shadow(0 4px 20px rgba(0,0,0,0.4));
    animation: heroLogoGlow 3s ease-in-out infinite alternate;
}

@keyframes heroLogoFadeIn {
    0% { opacity: 0; transform: translateY(-20px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroLogoGlow {
    0% { filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3)); }
    100% { filter: drop-shadow(0 4px 30px rgba(212,168,67,0.4)); }
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-400);
    background: rgba(212,168,67,0.12);
    border: 1px solid rgba(212,168,67,0.25);
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.25;
    word-break: break-word; /* allow long words to break */
}

.hero-title .text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.15em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-cta .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.hero-cta .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-400);
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.02em;
}

.hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
    cursor: pointer;
    pointer-events: auto;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 8px auto 0;
    border-right: 2px solid rgba(255,255,255,0.4);
    border-bottom: 2px solid rgba(255,255,255,0.4);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* =============================================
   ABOUT
   ============================================= */
.section-about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 48px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray-700);
}

.about-lead {
    font-size: 1.15rem;
    color: var(--green-800);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 16px;
}

.about-pillars h3 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--green-700);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pillar {
    padding: 24px;
    background: var(--green-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--green-100);
    transition: var(--transition);
}

.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-300);
}

.pillar-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.pillar-icon svg {
    color: var(--green-700);
}

.pillar h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green-800);
    line-height: 1.4;
}

.about-closing {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 40px;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--gold-100) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--green-200);
    color: var(--green-800);
}

/* =============================================
   TEAM
   ============================================= */
.section-team {
    background: var(--green-50);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-300);
}

.team-card-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-placeholder {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
}

.team-card-body {
    padding: 24px;
    flex: 1;
}

.team-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--green-900);
}

.team-role {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-500);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.team-bio-summary {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.team-bio-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-bio-details.expanded {
    max-height: 3000px;
}

.team-bio-details p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-top: 12px;
}

.team-actions {
    margin-top: auto;
    padding: 0 24px 16px;
    display: flex;
    align-items: center;
}

.team-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.team-toggle .toggle-icon {
    transition: transform var(--transition);
}

.team-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Desktop: expand all team bios together */
@media (min-width: 1025px) {
    .team-grid.all-expanded .team-bio-details {
        max-height: 3000px;
    }
    .team-grid.all-expanded .team-toggle .toggle-icon {
        transform: rotate(180deg);
    }
}

.team-card-body p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* =============================================
   PROGRAMS
   ============================================= */
.section-programs {
    background: var(--white);
    position: relative;
}

.section-programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: var(--gradient-dark);
    z-index: 0;
}

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

.section-programs .section-header {
    color: var(--white);
}

.section-programs .section-tag {
    color: var(--gold-400);
}

.section-programs .section-title {
    color: var(--white);
}

.section-programs .section-desc {
    color: rgba(255,255,255,0.7);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px 32px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    position: relative;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.program-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.program-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
}

.program-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--green-100);
    line-height: 1;
}

.program-title {
    font-size: 1.4rem;
    color: var(--green-800);
    margin-bottom: 8px;
}

.program-tagline {
    font-size: 0.95rem;
    color: var(--gold-600);
    font-style: italic;
    font-weight: 500;
    margin-bottom: 16px;
}

.program-questions {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    padding: 16px;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--green-400);
}

.program-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-details.expanded {
    max-height: 2000px;
}

.program-detail-section {
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.program-detail-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.program-detail-section p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.program-detail-section ul {
    list-style: none;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.program-detail-section ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.program-detail-section ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--green-400);
    font-size: 10px;
    top: 3px;
}

.program-actions {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.program-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.program-toggle .toggle-icon {
    transition: transform var(--transition);
}

.program-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Desktop: expand all programs together */
@media (min-width: 1025px) {
    .programs-grid.all-expanded .program-details {
        max-height: 2000px;
    }
    .programs-grid.all-expanded .program-toggle .toggle-icon {
        transform: rotate(180deg);
    }
    .programs-grid.all-expanded .program-toggle .toggle-text {
        font-weight: 600;
    }
}

.programs-note {
    text-align: center;
    padding: 32px 40px;
    background: linear-gradient(135deg, var(--green-50) 0%, var(--gold-100) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--green-200);
    font-size: 1.05rem;
    color: var(--green-800);
}

/* =============================================
   BLOG PREVIEW
   ============================================= */
.section-blog {
    background: var(--green-50);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.blog-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--green-100);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--green-900);
    line-height: 1.3;
}

.blog-card-body p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
}

.blog-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--gray-500);
    font-size: 1.1rem;
}

.blog-more {
    text-align: center;
}

/* =============================================
   CONTACT
   ============================================= */
.section-contact {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.section-contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--green-50));
    z-index: 0;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--green-800);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(64,145,108,0.1);
}

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

.contact-form .btn {
    grid-column: 1 / -1;
    justify-self: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--green-50);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--green-100);
}

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--green-800);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--green-700);
    font-weight: 500;
    border-bottom: 1px solid var(--green-100);
    transition: var(--transition);
}

.contact-link:last-child {
    border-bottom: none;
}

.contact-link:hover {
    color: var(--gold-500);
    padding-left: 8px;
}

.contact-icon {
    font-size: 1.4rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--green-700);
    border: 2px solid var(--green-200);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
    transform: translateY(-3px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--green-900);
    color: rgba(255,255,255,0.6);
    padding: 64px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 48px;
    gap: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--transition);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

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

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

    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .programs-grid .program-details {
        max-height: 0;
    }

    /* Allow individual program expand on tablet/mobile */
    .program-details.expanded {
        max-height: 2000px;
    }

    /* Programs section: prevent text clipping */
    .section-programs {
        overflow: visible;
    }

    .section-programs::before {
        height: 500px;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }

    /* Mobile nav — hamburger always on the right */
    .nav-container {
        justify-content: flex-end;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(13,40,24,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .nav-link {
        font-size: 16px;
        padding: 14px 20px;
        border-radius: var(--radius-sm);
    }

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

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

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

    /* Hero — allow title to wrap on mobile */
    .hero-title {
        white-space: normal;
        font-size: clamp(1.1rem, 4.5vw, 2rem);
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Contact */
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(0.95rem, 4vw, 1.6rem);
    }

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

    .section-desc {
        font-size: 0.88rem;
    }

    .program-card {
        padding: 28px 20px 24px;
    }
}
