/* ================================
   VARIABLES & COLORS
   ================================ */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-light: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    --accent-gold: #d4af37;
    --accent-gold-light: #f4d77e;
    --dark: #1a1a2e;
    --dark-secondary: #2d2d44;
    --light: #ffffff;
    --light-bg: #f8f9fc;
    --gray-light: #e8eaf2;
    --gray: #6b7280;
    --gray-dark: #374151;
    --section-padding: 120px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ================================
   GLOBAL
   ================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}

h1:focus { outline: none; }
::selection { background: var(--primary); color: white; }

/* Blazor loading */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem;
}
.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Chargement...");
    font-family: 'Inter', sans-serif;
    color: var(--gray);
    display: block;
    text-align: center;
    margin-top: 1rem;
}
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 60px;
}
.section-label::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 2px;
    background: var(--gradient-primary);
}

.section-title-large {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--gray-dark);
}

/* ================================
   NAVIGATION
   ================================ */
.epes-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

@supports (animation-timeline: scroll()) {
    .epes-navbar {
        animation: navbar-shrink linear both;
        animation-timeline: scroll();
        animation-range: 0px 100px;
    }

    @keyframes navbar-shrink {
        from { padding: 1.25rem 0; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
        to   { padding: 0.5rem 0;  box-shadow: 0 4px 20px rgba(0,0,0,0.09); }
    }
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-smooth);
}
.navbar-brand-link:hover { color: var(--dark); transform: translateY(-2px); }

.brand-letter {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* Desktop nav links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0; padding: 0;
}

.nav-item { position: relative; }

.nav-link-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 1rem;
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}
.nav-link-item:hover,
.nav-link-item.active,
.nav-link-item.blazor-nav-active { color: var(--primary); }
.nav-link-item:hover::after,
.nav-link-item.active::after,
.nav-link-item.blazor-nav-active::after { width: 60%; }

.nav-caret { font-size: 0.65rem; transition: transform 0.3s; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

/* CSS-only dropdown */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 190px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    z-index: 100;
}
.nav-item:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-nav-link {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.dropdown-nav-link:hover,
.dropdown-nav-link.active,
.dropdown-nav-link.blazor-nav-active {
    background: var(--gradient-light);
    color: var(--primary);
}

/* CTA nav button */
.btn-nav {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.4rem;
    background: var(--gradient-primary);
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    margin-left: 0.5rem;
    display: inline-block;
    white-space: nowrap;
}
.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
    color: white !important;
}

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger-btn span {
    display: block;
    width: 26px; height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay fermeture menu mobile */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}
.mobile-overlay.open { display: block; }

/* Mobile nav */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid var(--gray-light);
    padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open {
    display: block;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    display: block;
    padding: 0.8rem 0;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-light);
    transition: color 0.2s;
    font-size: 1rem;
}
.mobile-nav-link:hover,
.mobile-nav-link.active,
.mobile-nav-link.blazor-nav-active { color: var(--primary); }

.mobile-group-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    border-bottom: 1px solid var(--gray-light);
    padding: 0.8rem 0;
    font-weight: 500;
    color: var(--dark);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
}
.mobile-group-btn .caret-icon { font-size: 0.7rem; transition: transform 0.3s; }
.mobile-group-btn.open .caret-icon { transform: rotate(180deg); }

.mobile-subnav {
    background: var(--light-bg);
    border-radius: 10px;
    margin: 0.5rem 0;
    padding: 0.5rem;
}
.mobile-subnav a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.mobile-subnav a:hover,
.mobile-subnav a.active,
.mobile-subnav a.blazor-nav-active {
    background: var(--gradient-light);
    color: var(--primary);
}

.btn-nav-mobile {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.9rem;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

@media (max-width: 991px) {
    .nav-menu { display: none; }
    .hamburger-btn { display: flex; }
    .navbar-inner { padding: 0.5rem 1.25rem; }
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    border: none;
    transition: var(--transition-smooth);
    letter-spacing: 0.3px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
.btn-primary-custom {
    background: var(--gradient-primary);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
    color: white !important;
}
.btn-light-custom {
    background: white;
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-light-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: var(--secondary) !important;
}
.btn-outline-light-custom {
    background: transparent;
    color: white !important;
    border: 2px solid white;
}
.btn-outline-light-custom:hover {
    background: white;
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* ================================
   HERO SECTION
   ================================ */
.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1438232992991-995b7058bbb3?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.92) 0%, rgba(118,75,162,0.92) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    padding: 4rem 0;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease both;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight { position: relative; display: inline-block; }
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em; left: 0;
    width: 100%;
    height: 0.15em;
    background: var(--accent-gold-light);
    opacity: 0.5;
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255,255,255,0.95);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 0.95rem;
}
.info-item i { font-size: 1.25rem; opacity: 0.9; }

.scroll-indicator-modern {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px; height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    position: relative;
}
.mouse::before {
    content: '';
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0%   { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}
@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ================================
   PAGE HEADER (inner pages)
   ================================ */
.page-header-simple {
    background: var(--gradient-primary);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-header-simple::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.page-header-simple .section-label { color: rgba(255,255,255,0.8); }
.page-header-simple .section-label::before { background: rgba(255,255,255,0.5); }

.scout-header { background: linear-gradient(135deg, #FFDE59 0%, #FF914D 100%); }

/* ================================
   MISSION / VALUE CARDS
   ================================ */
.mission-section {
    padding: var(--section-padding) 0;
    background: var(--light-bg);
    position: relative;
}

.decorative-line {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 2px; height: 80%;
    background: linear-gradient(to bottom, transparent, var(--gray-light), transparent);
    pointer-events: none;
}

.value-card-modern {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    height: 100%;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}
.value-card-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transition: var(--transition-smooth);
}
.value-card-modern:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(102,126,234,0.15); }
.value-card-modern:hover::before { transform: scaleX(1); }

.value-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem; font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    line-height: 1;
    margin-bottom: -2rem;
}

.value-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-bounce);
}
.value-icon i { font-size: 1.75rem; color: var(--primary); transition: var(--transition-smooth); }
.value-card-modern:hover .value-icon { background: var(--gradient-primary); transform: scale(1.1) rotate(5deg); }
.value-card-modern:hover .value-icon i { color: white; }

.value-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--dark); }
.value-description { color: var(--gray); line-height: 1.7; margin: 0; }

/* ================================
   WELCOME SECTION
   ================================ */
.welcome-section {
    padding: var(--section-padding) 0;
    background: white;
}

.image-frame { position: relative; border-radius: 20px; overflow: hidden; }
.image-frame img {
    border-radius: 20px;
    width: 100%; height: auto;
    display: block;
    transition: var(--transition-smooth);
}
.image-frame:hover img { transform: scale(1.05); }

.image-decoration {
    position: absolute;
    top: -20px; right: -20px;
    width: 150px; height: 150px;
    background: var(--gradient-primary);
    opacity: 0.15;
    border-radius: 20px;
    z-index: -1;
}

.image-badge {
    position: absolute;
    bottom: 30px; left: 30px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dark);
}
.image-badge i { color: var(--primary); font-size: 1.25rem; }

.content-rich { margin-bottom: 2.5rem; }

.verse-card {
    background: var(--gradient-light);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}
.verse-icon {
    position: absolute;
    top: -15px; left: 30px;
    width: 50px; height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.verse-icon i { color: white; font-size: 1.25rem; }
.verse-card blockquote {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dark);
    margin: 1.5rem 0 1rem;
    line-height: 1.8;
}
.verse-card cite { color: var(--primary); font-weight: 600; font-style: normal; }

/* ================================
   CTA SECTIONS
   ================================ */
.cta-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}
.cta-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: 1;
}
.cta-section .container { position: relative; z-index: 2; }

.cta-icon {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}
.cta-icon i { font-size: 2rem; color: white; }

.cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
}
.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}
.cta-info-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}
.info-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}
.info-block i { font-size: 2rem; opacity: 0.9; }
.info-block div { text-align: left; }
.info-block strong { display: block; font-size: 0.875rem; margin-bottom: 0.25rem; opacity: 0.9; }
.info-block span { font-size: 1.1rem; font-weight: 500; }

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section-simple {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}
.cta-section-simple::before {
    content: '';
    position: absolute;
    top: -50%; left: -5%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* ================================
   FOOTER
   ================================ */
.footer-modern {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 30px;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.footer-brand .brand-letter {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-brand .brand-text { color: white; }
.footer-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.footer-description { color: rgba(255,255,255,0.55); line-height: 1.8; }
.footer-title {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}
.footer-contact li i { color: var(--primary); margin-top: 0.25rem; flex-shrink: 0; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 3rem 0 2rem; }
.footer-copyright { color: rgba(255,255,255,0.4); font-size: 0.875rem; margin: 0; }
.footer-affiliations {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.footer-affiliations span { color: rgba(255,255,255,0.4); font-size: 0.875rem; }
.footer-affiliations a {
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
    opacity: 0.75;
}
.footer-affiliations a:hover { opacity: 1; }
.affiliation-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ================================
   AFFILIATIONS SECTION
   ================================ */
.affiliations-section {
    padding: var(--section-padding) 0;
    background: var(--light-bg);
}
.affiliation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    height: 100%;
}
.affiliation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    color: inherit;
}
.affiliation-acronym {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}
.affiliation-name {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 1.25rem;
}
.affiliation-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================
   FAITH CARDS
   ================================ */
.faith-card-modern {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.faith-card-modern::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 4px 0 0 4px;
    transform: scaleY(0);
    transition: var(--transition-smooth);
}
.faith-card-modern:hover { transform: translateX(6px); box-shadow: 0 12px 40px rgba(102,126,234,0.12); }
.faith-card-modern:hover::before { transform: scaleY(1); }

.faith-number {
    font-family: 'Playfair Display', serif;
    font-size: 5rem; font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.12;
    line-height: 1;
    flex-shrink: 0;
    width: 4rem;
    align-self: center;
}
.faith-icon-modern {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-bounce);
}
.faith-icon-modern i { font-size: 1.75rem; color: var(--primary); transition: var(--transition-smooth); }
.faith-card-modern:hover .faith-icon-modern { background: var(--gradient-primary); transform: scale(1.1) rotate(5deg); }
.faith-card-modern:hover .faith-icon-modern i { color: white; }
.faith-content-modern { flex: 1; }
.faith-title-modern { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--dark); }
.bible-verse-box {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-light);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

/* ================================
   TIMELINE
   ================================ */
.timeline-modern {
    position: relative;
    padding: 2rem 0;
}
.timeline-modern::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gray-light), var(--primary), var(--gray-light), transparent);
    transform: translateX(-50%);
}
.timeline-item-modern {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
}
.timeline-year-badge {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 900;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    position: relative;
    z-index: 1;
    text-align: center;
}
.timeline-content-left,
.timeline-content-right {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
.timeline-content-left:hover,
.timeline-content-right:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(102,126,234,0.12);
}
.timeline-item-left .timeline-content-right { visibility: hidden; }
.timeline-item-right .timeline-content-left { visibility: hidden; }

.timeline-icon-modern {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.timeline-icon-modern i { font-size: 1.5rem; color: var(--primary); }

/* ================================
   ACTIVITY CARDS
   ================================ */
.activity-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: 100%;
    transition: var(--transition-smooth);
}
.activity-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(102,126,234,0.15);
}
.activity-header-modern {
    background: var(--gradient-primary);
    color: white;
    padding: 1.75rem 1.5rem;
}
.activity-header-modern h4 { color: white; font-size: 1.2rem; }
.activity-body-modern { padding: 1.75rem 1.5rem; }

/* ================================
   TEAM CARDS
   ================================ */
.team-card-modern {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    transition: var(--transition-smooth);
}
.team-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102,126,234,0.15);
}
.team-photo-modern {
    width: 160px; height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid;
    border-color: transparent;
    background: var(--gradient-primary) border-box;
    box-shadow: 0 8px 25px rgba(102,126,234,0.25);
}
.team-photo-modern img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
    width: 160px; height: 160px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.team-photo-placeholder i { font-size: 4rem; color: white; }

/* ================================
   SCOUT STYLES
   ================================ */
.scout-badge-modern {
    width: 120px; height: 120px;
    background: linear-gradient(135deg, rgba(255,193,7,0.15), rgba(255,152,0,0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.scout-card-modern {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    transition: var(--transition-smooth);
    height: 100%;
}
.scout-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.icon-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
   CONTACT PAGE
   ================================ */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition-smooth);
}
.contact-info-item:last-child { border-bottom: none; }

.contact-icon {
    width: 52px; height: 52px;
    background: var(--gradient-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}
.contact-icon i { color: var(--primary); font-size: 1.25rem; }
.contact-info-item:hover .contact-icon { background: var(--gradient-primary); }
.contact-info-item:hover .contact-icon i { color: white; }

.contact-card-modern {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}

.form-control, .form-select {
    border-radius: 12px !important;
    border: 2px solid var(--gray-light) !important;
    padding: 0.875rem 1.25rem !important;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.25s, box-shadow 0.25s;
    font-size: 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15) !important;
}
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-family: 'Inter', sans-serif;
}

.form-success-alert {
    background: linear-gradient(135deg, rgba(40,167,69,0.1), rgba(32,201,151,0.1));
    border: 1px solid rgba(40,167,69,0.3);
    color: #155724;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 0.4s ease;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
}

/* Validation messages */
.validation-message { font-size: 0.85rem; color: #dc3545; margin-top: 0.25rem; display: block; }

/* ================================
   SCROLL REVEAL (CSS scroll-driven)
   ================================ */
.reveal {
    animation: fadeInUp 0.7s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
}
.reveal-left {
    animation: fadeInLeft 0.7s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
}
.reveal-right {
    animation: fadeInRight 0.7s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    :root { --section-padding: 70px; }
    .hero-background { background-attachment: scroll; }
    .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-info { flex-direction: column; align-items: center; gap: 1rem; }
    .timeline-modern::before { left: 20px; }
    .timeline-item-modern { grid-template-columns: 1fr; }
    .timeline-item-left .timeline-content-right { display: none; }
    .timeline-item-right .timeline-content-left { display: none; }
    .faith-card-modern { flex-direction: column; gap: 1.5rem; }
    .faith-number { display: none; }
    .cta-info-box { padding: 1.5rem; }
    .info-block { flex-direction: column; text-align: center; }
    .info-block div { text-align: center; }
    .contact-card-modern { padding: 1.75rem; }
    .footer-affiliations { justify-content: center; }
    .footer-copyright { text-align: center; }
    .navbar-inner { padding: 0.5rem 1rem; }
}

@media (max-width: 480px) {
    .cta-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: auto; }
}

/* ================================
   UTILITY
   ================================ */
.text-primary-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.py-section { padding: var(--section-padding) 0; }
a { transition: color 0.2s ease; }
