/* La Grande Académie - Main Stylesheet */

/* Safari/WebKit Compatibility Fixes */
@supports (-webkit-appearance: none) {
    /* Safari-specific fixes will be added here */
}

:root {
    /* Colors - Teal and Yellow primary */
    --primary-color: #009F9D;      /* Teal */
    --secondary-color: #F1C40F;    /* Yellow */
    --accent-color: #F4D03F;       /* Light Yellow */
    --teal-dark: #008080;          /* Dark Teal */
    --teal-light: #38A3A5;         /* Light Teal */
    --teal-lighter: #87D1D0;       /* Lighter Teal */
    --yellow-dark: #D4AC0D;        /* Dark Yellow */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #fff;
    --border-color: #e9ecef;
    /* Gradients using teal and yellow */
    --gradient: linear-gradient(135deg, #008080 0%, #009F9D 50%, #F1C40F 100%);
    --gradient-warm: linear-gradient(135deg, #F1C40F 0%, #F4D03F 100%);
    --gradient-cool: linear-gradient(135deg, #008080 0%, #38A3A5 100%);
    --gradient-rainbow: linear-gradient(135deg, #008080 0%, #009F9D 33%, #38A3A5 66%, #87D1D0 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body.nav-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

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

/* ==========================================================================
   HEADER - Modern Clean Design
   ========================================================================== */
.main-header {
    background: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    max-width: 290px;
}

.logo-img {
    height: 59px !important;
    width: auto !important;
    min-height: 59px !important;
    max-width: 170px !important;
    max-height: 59px !important;
    object-fit: contain;
    display: block;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-toggle i:first-child {
    font-size: 14px;
    color: var(--primary-color);
}

.lang-toggle i:last-child {
    font-size: 10px;
    transition: var(--transition);
}

.lang-switcher:hover .lang-toggle i:last-child {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    list-style: none;
    margin-top: 8px;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.lang-dropdown li a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.lang-dropdown li a.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(0, 159, 157, 0.1);
}

/* Language Switcher Mobile */
.lang-switcher-mobile {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(0, 159, 157, 0.05) 0%, rgba(0, 159, 157, 0.1) 100%);
    border-radius: var(--radius-md);
    margin-left: -10px;
    margin-right: -10px;
}

.lang-switcher-mobile::before {
    display: none;
}

.lang-switcher-mobile .lang-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 8px;
}

.lang-switcher-mobile .lang-btn {
    border-radius: var(--radius-md);
    padding: 8px 16px;
}

.lang-btn {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    background: var(--white);
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

a.lang-btn.active,
.lang-btn.active {
    background: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 159, 157, 0.3);
}

/* Mobile Toggle - Hamburger Animation */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--dark-color);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-sm);
}

.main-nav a:hover {
    color: var(--primary-color);
    background: rgba(0, 159, 157, 0.08);
}

.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a i {
    font-size: 10px;
    transition: var(--transition);
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Nav Records Button */
.nav-records {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
    color: var(--white) !important;
    border-radius: 25px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.nav-records:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4) !important;
}

.nav-records i {
    margin-right: 5px;
}

/* Nav Donate Button */
.nav-donate {
    background: var(--gradient-warm) !important;
    color: var(--white) !important;
    border-radius: 25px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 159, 157, 0.3);
}

.nav-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 157, 0.4) !important;
    background: var(--gradient-warm) !important;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    padding: 8px;
    border: 1px solid var(--border-color);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    margin: 0;
}

.dropdown a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.dropdown a:hover {
    background: var(--light-color);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 159, 157, 0.3);
}

.btn-primary:hover {
    background: #008080;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 157, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 159, 157, 0.3);
}

.btn-secondary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 157, 0.4);
    color: var(--white);
}

/* CTA Buttons Group */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-donate {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 159, 157, 0.3);
}

.btn-donate:hover {
    transform: translateY(-2px);
    background: var(--teal-dark);
    box-shadow: 0 6px 20px rgba(0, 159, 157, 0.4);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Additional color buttons - teal and yellow palette */
.btn-teal {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 159, 157, 0.3);
}

.btn-teal:hover {
    background: #008080;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 157, 0.4);
    color: var(--white);
}

.btn-blue {
    background: var(--teal-light);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-blue:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: var(--white);
}

.btn-yellow {
    background: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.btn-yellow:hover {
    background: #d4ac0d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
    color: var(--dark-color);
}

.btn-gold {
    background: var(--accent-color);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.btn-gold:hover {
    background: #d68910;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
    color: var(--dark-color);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
/* Simple Hero Banner - Full width with text overlay */
.hero-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    line-height: 0;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-banner .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    padding: 0 24px;
    line-height: 1.5;
}

.hero-banner h1 {
    font-size: 48px; /* Fallback for Safari */
    font-size: clamp(36px, 5vw, 60px);
    margin-bottom: 24px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    color: var(--white);
    font-weight: 800;
}

.hero-banner p {
    font-size: 20px; /* Fallback for Safari */
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 40px;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-banner .btn {
    margin: 0 8px 16px;
}

/* Legacy Hero with carousel - kept for other pages if needed */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 72px; /* Fallback for Safari */
    font-size: clamp(52px, 8vw, 90px);
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    color: var(--white);
    font-weight: 800;
    text-align: center;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

.hero p {
    font-size: 30px; /* Fallback for Safari */
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 28px;
    opacity: 0.95;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.hero .btn {
    margin: 0 8px 12px;
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-indicators span:hover {
    background: rgba(255,255,255,0.6);
}

.hero-indicators span.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */
.page-header {
    background: var(--gradient);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header h1 {
    font-size: 40px; /* Fallback for Safari */
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
    color: var(--white);
    position: relative;
}

.page-header p {
    font-size: 18px; /* Fallback for Safari */
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.9;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px; /* Fallback for Safari */
    font-size: clamp(28px, 3.5vw, 42px);
    color: var(--dark-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 650px;
    margin: 20px auto 0;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

/* Color variations for cards - orange/green palette */
.card:nth-child(1)::before { background: var(--primary-color); }
.card:nth-child(2)::before { background: var(--secondary-color); }
.card:nth-child(3)::before { background: var(--accent-color); }
.card:nth-child(4)::before { background: var(--primary-color); }
.card:nth-child(5)::before { background: var(--secondary-color); }
.card:nth-child(6)::before { background: var(--accent-color); }

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-content {
    padding: 28px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ==========================================================================
   TEAM CARDS
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.team-card {
    text-align: center;
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-card img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 4px solid transparent;
    background: var(--gradient) padding-box, var(--gradient) border-box;
    padding: 4px;
}

.team-card h3 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 20px;
}

.team-card .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
}

/* Team Featured Layout (for detailed bios) */
.team-featured {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.team-featured:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.team-featured.reverse {
    grid-template-columns: 1fr 280px;
}

.team-featured.reverse .team-featured-image {
    order: 2;
}

.team-featured.reverse .team-featured-content {
    order: 1;
}

.team-featured-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.team-featured-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 
        0 0 0 4px var(--primary-color),
        0 10px 40px rgba(0, 159, 157, 0.3);
    transition: var(--transition);
}

.team-featured-image img:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 0 4px var(--secondary-color),
        0 15px 50px rgba(0, 159, 157, 0.4);
}

/* Team Placeholder (for members without photos) */
.team-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--white);
    box-shadow: 
        0 0 0 4px var(--primary-color),
        0 10px 40px rgba(0, 159, 157, 0.3);
}

.team-placeholder i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.8);
}

.team-placeholder-card {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 4px solid transparent;
    background: var(--gradient) padding-box, var(--gradient) border-box;
    padding: 4px;
}

.team-placeholder-card i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.team-featured-content h3 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.team-featured-content .role {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.team-featured-content p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
}

.team-featured-content p:last-child {
    margin-bottom: 0;
}

/* Advisory Grid - Centered */
.advisory-grid {
    max-width: 700px;
    margin: 0 auto;
    justify-content: center;
}

/* Staff Grid for La Grande Academie */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.staff-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.staff-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.staff-card h4 {
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.staff-card .staff-role {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.staff-placeholder i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   FEATURED SECTION
   ========================================================================== */
.featured-section {
    background: var(--light-color);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.featured-text h2 {
    font-size: 32px; /* Fallback for Safari */
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 24px;
    color: var(--dark-color);
}

.featured-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

/* ==========================================================================
   QUOTES CAROUSEL SECTION
   ========================================================================== */
.quotes-carousel-section {
    background: var(--light-color);
    padding: 80px 0;
}

.quotes-carousel-section .container {
    max-width: 1000px;
}

.quotes-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    text-align: center;
    min-height: 300px;
}

.quotes-carousel .quote-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.quotes-carousel .quote-slide.active {
    display: block;
    opacity: 1;
}

.quotes-carousel .quote-slide h2 {
    font-size: 28px; /* Fallback for Safari */
    font-size: clamp(24px, 3vw, 32px);
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.quotes-carousel .quote-slide blockquote {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    margin: 0;
    text-align: justify;
}

.quotes-carousel .quote-slide blockquote p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 20px;
    text-align: justify;
}

.quotes-carousel .quote-slide blockquote cite {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--teal-dark);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 159, 157, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dots .dot:hover {
    background: var(--primary-color);
}

/* ==========================================================================
   CTA / JOIN US SECTION
   ========================================================================== */
.quote-section {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.03);
    transform: rotate(15deg);
    pointer-events: none;
}

.quote-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.03);
    transform: rotate(-15deg);
    pointer-events: none;
}

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

.quote-section h2 {
    font-size: 40px; /* Fallback for Safari */
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.quote-section p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.quote-section .btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid var(--white);
    background: var(--white);
    color: var(--primary-color);
    transition: var(--transition);
}

.quote-section .btn:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote-section blockquote {
    font-size: 24px; /* Fallback for Safari */
    font-size: clamp(20px, 2.5vw, 28px);
    font-style: italic;
    max-width: 900px;
    margin: 0 auto 24px;
    position: relative;
    line-height: 1.6;
}

.quote-section cite {
    font-size: 16px;
    opacity: 0.85;
    font-style: normal;
    font-weight: 600;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 159, 157, 0.8) 0%, rgba(241, 196, 15, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 36px;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ==========================================================================
   VIDEO GRID
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.video-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-item iframe {
    width: 100%;
    height: auto;
    min-height: 200px; /* Fallback for Safari */
    aspect-ratio: 16/9;
    border: none;
}

/* Safari aspect-ratio fallback */
@supports not (aspect-ratio: 16/9) {
    .video-item {
        position: relative;
        padding-top: 56.25%; /* 16:9 ratio */
    }
    .video-item iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-section {
    background: var(--light-color);
}

.contact-grid {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    margin-bottom: 32px;
    color: var(--dark-color);
    font-size: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 159, 157, 0.1);
}

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

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 24px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 24px;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   SUBSCRIBE SECTION
   ========================================================================== */
.subscribe-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--teal-dark) 100%);
    color: var(--white);
    padding: 80px 0;
}

.subscribe-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.subscribe-text h3 {
    font-size: 28px; /* Fallback for Safari */
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.subscribe-text p {
    opacity: 0.8;
    margin-bottom: 0;
    font-size: 16px;
}

.subscribe-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.subscribe-input-wrapper {
    display: flex;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}

.subscribe-form input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    background: var(--white);
    color: var(--text-color);
}

.subscribe-form input:focus {
    outline: none;
}

.subscribe-form input::placeholder {
    color: var(--text-light);
}

.subscribe-form .btn {
    white-space: nowrap;
    padding: 14px 28px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background: var(--teal-light);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(0, 159, 157, 0.3);
}

.footer-brand {
    padding-right: 40px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 80px;
    max-width: 200px;
    min-height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-links h4,
.footer-connect h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 159, 157, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid rgba(0, 159, 157, 0.3);
}

/* Brand-consistent social icons on hover - teal/yellow theme */
.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 159, 157, 0.4);
}

.btn-footer-donate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--secondary-color);
    color: var(--dark-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.btn-footer-donate:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
    color: var(--dark-color);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-ein {
    font-size: 13px !important;
    opacity: 0.5;
}

/* Donation Page */
.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.donation-amount {
    text-align: center;
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.donation-amount:hover,
.donation-amount.selected {
    border-color: var(--primary-color);
    background: rgba(0, 159, 157, 0.05);
}

.donation-amount h3 {
    font-size: 32px;
    color: var(--primary-color);
}

.donation-amount p {
    font-size: 14px;
    color: var(--text-light);
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.program-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-icon {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-size: 40px;
    flex-shrink: 0;
}

/* Color variations for program icons - teal/yellow palette */
.program-card:nth-child(1) .program-icon { background: var(--primary-color); }
.program-card:nth-child(2) .program-icon { background: var(--secondary-color); color: var(--dark-color); }
.program-card:nth-child(3) .program-icon { background: var(--accent-color); color: var(--dark-color); }
.program-card:nth-child(4) .program-icon { background: var(--teal-light); }
.program-card:nth-child(5) .program-icon { background: var(--primary-color); }
.program-card:nth-child(6) .program-icon { background: var(--secondary-color); color: var(--dark-color); }

.program-content {
    padding: 25px;
    flex: 1;
}

.program-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.program-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Sponsor Grid */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.sponsor-grid img {
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.sponsor-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ChangeMakers Cards */
.changemaker-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.changemaker-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.changemaker-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.changemaker-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.changemaker-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: var(--white);
}

.changemaker-content h3 {
    margin-bottom: 10px;
}

.changemaker-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Thank You Page */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
}

.thank-you-content i {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.thank-you-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.thank-you-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.bg-light { background: var(--light-color); }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
        padding: 0 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero h1 {
        width: 100%;
        text-align: center;
    }
    
    .hero p {
        width: 100%;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
    }
    
    .footer-brand .footer-logo-link {
        margin-bottom: 16px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .featured-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .changemaker-cards {
        grid-template-columns: 1fr;
    }
    
    .main-nav > ul {
        gap: 4px;
    }
    
    .main-nav a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
    .main-header .container {
        height: 70px;
    }
    
    .logo-img {
        height: 28px;
        max-width: 100px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .lang-switcher {
        display: none;
    }
    
    .lang-switcher-mobile {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: 24px;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: var(--transition);
        overflow-y: auto;
        z-index: 999;
    }
    
    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .main-nav > ul > li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        padding: 18px 0;
        font-size: 16px;
        justify-content: space-between;
        border-radius: 0;
    }
    
    .main-nav a:hover {
        background: transparent;
    }
    
    .nav-donate {
        margin-top: 20px;
        text-align: center;
        justify-content: center !important;
    }
    
    .nav-records {
        margin-top: 15px;
        margin-bottom: 5px;
        text-align: center;
        justify-content: center !important;
        display: flex !important;
        align-items: center;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 0 0 0 20px;
        border: none;
        display: none !important;
        background: transparent;
    }
    
    .has-dropdown:hover .dropdown {
        display: none !important;
    }
    
    .has-dropdown.active .dropdown {
        display: block !important;
    }
    
    .has-dropdown.active > a i {
        transform: rotate(180deg);
    }
    
    .has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .has-dropdown > a i {
        padding: 10px;
        margin-right: -10px;
    }
    
    .dropdown a {
        padding: 14px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown li:last-child a {
        border-bottom: none;
    }
    
    /* Hero */
    .hero {
        height: 75vh;
        min-height: 500px;
    }
    
    .hero .btn {
        display: block;
        margin: 0 auto 16px;
        max-width: 280px;
    }
    
    /* Page Header */
    .page-header {
        padding: 80px 0 60px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Team Featured */
    .team-featured,
    .team-featured.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .team-featured.reverse .team-featured-image,
    .team-featured.reverse .team-featured-content {
        order: unset;
    }
    
    .team-featured-image {
        margin: 0 auto;
    }
    
    .team-featured-image img {
        width: 180px;
        height: 180px;
    }
    
    .team-featured-content {
        text-align: left;
    }
    
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Subscribe */
    .subscribe-content {
        flex-direction: column;
        text-align: center;
    }
    
    .subscribe-text {
        text-align: center;
    }
    
    .subscribe-form {
        width: 100%;
        max-width: 100%;
    }
    
    .subscribe-input-wrapper {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 12px;
    }
    
    .subscribe-form input {
        width: 100%;
        border-radius: var(--radius-sm);
    }
    
    .subscribe-form .btn {
        width: 100%;
        border-radius: var(--radius-sm);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 24px;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    /* Video */
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-form {
        padding: 32px 24px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .main-header .container {
        height: 60px;
    }
    
    .logo-img {
        height: 24px;
        max-width: 90px;
    }
    
    .hero {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 0 24px;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 26px;
        word-break: break-word;
        line-height: 1.3;
        padding: 0;
        white-space: normal;
        width: 100%;
        text-align: center;
    }
    
    .hero p {
        font-size: 18px;
        padding: 0;
        width: 100%;
        text-align: center;
    }
    
    /* Page Header */
    .page-header {
        padding: 60px 0 50px;
    }
    
    .page-header h1 {
        font-size: 24px;
        padding: 0 16px;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    /* Cards */
    .card-content {
        padding: 20px;
    }
    
    .team-card {
        padding: 32px 24px;
    }
    
    .team-card img {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 240px;
    }
    
    /* Subscribe */
    .subscribe-section {
        padding: 60px 0;
    }
    
    /* Footer */
    .main-footer {
        padding: 60px 0 0;
    }
    
    .footer-grid {
        gap: 28px;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .btn-footer-donate {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* CTA Buttons - Mobile layout */
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-buttons .btn {
        flex: 0 0 calc(50% - 6px);
        text-align: center;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .cta-buttons .btn:last-child {
        flex: 0 0 100%;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 36px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card,
.team-card,
.program-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.animate-in,
.team-card.animate-in,
.program-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.cards-grid .card:nth-child(2),
.team-grid .team-card:nth-child(2) {
    transition-delay: 0.1s;
}

.cards-grid .card:nth-child(3),
.team-grid .team-card:nth-child(3) {
    transition-delay: 0.2s;
}

.cards-grid .card:nth-child(4),
.team-grid .team-card:nth-child(4) {
    transition-delay: 0.3s;
}

/* ==========================================================================
   SAFARI/WEBKIT BROWSER COMPATIBILITY
   ========================================================================== */

/* Safari flexbox gap fallback - Safari <14.1 doesn't support gap in flexbox */
@supports not (gap: 1px) {
    .nav-links,
    .social-icons,
    .footer-content,
    .subscribe-content,
    .form-group,
    .cards-grid,
    .team-grid,
    .programs-grid,
    .gallery-grid,
    .sponsors-grid {
        margin: -10px; /* Half of typical gap */
    }
    
    .nav-links > *,
    .social-icons > *,
    .footer-content > *,
    .subscribe-content > *,
    .form-group > *,
    .cards-grid > *,
    .team-grid > *,
    .programs-grid > *,
    .gallery-grid > *,
    .sponsors-grid > * {
        margin: 10px; /* Half of typical gap */
    }
}

/* Safari smooth scrolling fix */
@supports (-webkit-overflow-scrolling: touch) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Safari sticky position fix */
.navbar.scrolled,
.navbar {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Safari button rendering fix */
button,
.btn,
input[type="submit"],
input[type="button"] {
    -webkit-appearance: none;
    appearance: none;
}

/* Safari input styling fixes */
input,
textarea,
select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0; /* Prevents iOS styling */
}

/* Safari image rendering optimization */
img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
}

/* Safari transition flickering fix */
.card,
.team-card,
.program-card,
.gallery-item,
.btn {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Safari text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

