/* =============================================
   HOMEPAGE CSS - Province Assomptionniste d'Afrique
   Extracted & modernized from home.php
   ============================================= */

/* =================================
   HERO SECTION ANIMATIONS
   ================================= */

@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.6; }
    50% { transform: translateY(-15px) translateX(10px); opacity: 0.8; }
}

@keyframes rotate-gentle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heroSlideInLeft {
    0% { opacity: 0; transform: translateX(-80px) scale(0.85); filter: blur(8px); }
    60% { transform: translateX(10px) scale(1.02); filter: blur(2px); }
    100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes heroSlideInRight {
    0% { opacity: 0; transform: translateX(80px) scale(0.85); filter: blur(8px); }
    60% { transform: translateX(-10px) scale(1.02); filter: blur(2px); }
    100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

@keyframes heroFadeInUpScale {
    0% { opacity: 0; transform: translateY(50px) scale(0.9); filter: blur(5px); }
    50% { transform: translateY(-5px) scale(1.02); filter: blur(1px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes heroTitleWord {
    0% { opacity: 0; transform: translateY(30px) rotateX(90deg); }
    100% { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-12px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes heroCircleRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes heroCircleRotateReverse {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes heroTextFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroButtonsFade {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroUnderlineExpand {
    0% { width: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { width: 100%; opacity: 1; }
}

@keyframes heroUnderlineGlow {
    0%, 100% { opacity: 0; transform: scaleX(0.8); }
    50% { opacity: 0.6; transform: scaleX(1); }
}

/* Hero animation classes */
.hero-section .hero-animate-left { animation: heroSlideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards; }
.hero-section .hero-animate-right { animation: heroSlideInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards; }
.hero-section .hero-animate-center { animation: heroFadeInUpScale 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards; }
.hero-section .hero-title-word-1 { animation: heroTitleWord 0.8s ease-out 0.8s forwards; }
.hero-section .hero-title-word-2 { animation: heroTitleWord 0.8s ease-out 1s forwards; }
.hero-section .hero-title-word-3 { animation: heroTitleWord 0.8s ease-out 1.2s forwards; }
.hero-section .hero-subtitle-fade { animation: heroTextFade 0.8s ease-out 1.4s forwards; }
.hero-section .hero-text-fade { animation: heroTextFade 0.8s ease-out 1s forwards; }
.hero-section .hero-buttons-fade { animation: heroButtonsFade 0.8s ease-out 1.6s forwards; }
.hero-section .hero-logo-float { animation: heroLogoFloat 6s ease-in-out infinite; }
.hero-section .hero-circle-rotate { animation: heroCircleRotate 20s linear infinite; }
.hero-section .hero-circle-rotate-reverse { animation: heroCircleRotateReverse 25s linear infinite; }

/* Hero button styles */
.hero-btn-primary:hover { transform: translateY(-5px) scale(1.05) !important; box-shadow: 0 8px 35px rgba(25, 118, 210, 0.6) !important; background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%) !important; }
.hero-btn-primary:active { transform: translateY(-1px); }
.hero-btn-secondary:hover { transform: translateY(-5px) scale(1.05) !important; box-shadow: 0 8px 30px rgba(25, 118, 210, 0.4) !important; background: #1976D2 !important; color: white !important; }
.hero-btn-vocation:hover { transform: translateY(-5px) scale(1.05) !important; box-shadow: 0 8px 35px rgba(255, 111, 0, 0.6) !important; background: linear-gradient(135deg, #E65100 0%, #FF6F00 100%) !important; }

.hero-buttons {
    display: flex !important; flex-wrap: wrap !important; flex-direction: row !important;
    justify-content: center !important; align-items: center !important;
    gap: 0.75rem !important; width: 100% !important; padding: 0 5px !important;
}
.hero-buttons .btn { white-space: nowrap !important; flex: 0 0 auto !important; }

/* Hero hover effects */
.hero-section .founder-logo-wrapper:hover .founder-logo-inner { transform: translateY(-10px) scale(1.08) !important; box-shadow: 0 15px 50px rgba(0,0,0,0.25), 0 0 40px rgba(25,118,210,0.4) !important; }
.hero-section .founder-logo-wrapper:hover .hero-logo-img { transform: scale(1.1) rotate(2deg) !important; }
.hero-section .province-logo-wrapper:hover .province-logo-inner { transform: translateY(-10px) scale(1.08) !important; box-shadow: 0 15px 50px rgba(0,0,0,0.25), 0 0 40px rgba(255,111,0,0.4) !important; }
.hero-section .province-logo-wrapper:hover .hero-logo-img { transform: scale(1.1) rotate(-2deg) !important; }

/* Hero subtitle underline */
.hero-section .hero-subtitle-text { position: relative; display: inline-block; }
.hero-section .hero-subtitle-text::after {
    content: ''; position: absolute; bottom: -8px; left: 0; width: 0; height: 3px;
    background: linear-gradient(90deg, #1976D2, #1565C0, #0D47A1); border-radius: 2px;
    animation: heroUnderlineExpand 1.5s ease-out 2s forwards;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.4);
}

/* Hero layout */
.hero-section { position: relative; overflow: hidden; width: 100%; }
.hero-section .container { position: relative; transition: transform 0.3s ease-out; margin: 0 auto; width: 100%; max-width: 100%; overflow-x: hidden !important; padding: 0 15px; box-sizing: border-box; }
.hero-section .hero-row { margin: 0; display: flex !important; flex-wrap: nowrap !important; align-items: center; }
.hero-section .hero-row > [class*="col-"] { padding: 0 0.25rem; flex: 0 0 auto; }
.hero-section .founder-circle, .hero-section .province-circle { border-radius: 50% !important; max-width: 100%; }
.hero-section .founder-logo-inner, .hero-section .province-logo-inner { border-radius: 50% !important; max-width: 100%; }
.hero-section .hero-logo-img { border-radius: 50% !important; }
.hero-section .founder-logo-wrapper, .hero-section .province-logo-wrapper { max-width: 100%; display: inline-block; }
.hero-section .founder-text { max-width: 100%; word-wrap: break-word; }
.hero-section .hero-title-main { word-wrap: break-word; hyphens: auto; }
.hero-section .hero-subtitle-text { word-wrap: break-word; max-width: 100%; }
.hero-section * { box-sizing: border-box; }
.hero-section .hero-col-left, .hero-section .hero-col-center, .hero-section .hero-col-right { display: block !important; float: none !important; }

/* Performance */
.hero-section, .animated-background, .floating-shape, .geo-shape {
    will-change: transform; transform: translateZ(0); backface-visibility: hidden;
}

/* =================================
   HERO RESPONSIVE
   ================================= */

@media (max-width: 1200px) and (min-width: 992px) {
    .hero-section { min-height: 90vh; padding: 60px 0; }
    .hero-section .container { transform: scale(0.92); transform-origin: center; }
    .hero-section .founder-circle { width: 180px !important; height: 180px !important; }
    .hero-section .founder-logo-inner { width: 160px !important; height: 160px !important; }
    .hero-section .province-circle { width: 290px !important; height: 290px !important; }
    .hero-section .province-logo-inner { width: 270px !important; height: 270px !important; }
    .hero-title-main { font-size: 2.5rem !important; }
    .hero-subtitle-text { font-size: 1.4rem !important; }
}

@media (max-width: 991px) and (min-width: 769px) {
    .hero-section { min-height: 85vh; padding: 50px 0; }
    .hero-section .container { transform: scale(0.85); transform-origin: center; }
    .hero-section .founder-circle { width: 160px !important; height: 160px !important; }
    .hero-section .founder-logo-inner { width: 145px !important; height: 145px !important; }
    .hero-section .province-circle { width: 260px !important; height: 260px !important; }
    .hero-section .province-logo-inner { width: 240px !important; height: 240px !important; }
    .hero-title-main { font-size: 2.2rem !important; }
    .hero-subtitle-text { font-size: 1.3rem !important; }
    .hero-section .hero-col-left { width: 25% !important; flex: 0 0 25% !important; max-width: 25% !important; }
    .hero-section .hero-col-center { width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important; }
    .hero-section .hero-col-right { width: 25% !important; flex: 0 0 25% !important; max-width: 25% !important; }
}

/* =================================
   HERO MOBILE - Design Moderne & Professionnel
   ================================= */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
        padding: 2rem 0 2rem !important;
        background: linear-gradient(160deg, #e8f0fe 0%, #d4e5fc 30%, #e0f2e9 60%, #f5f5dc 100%) !important;
    }
    .hero-section .container { transform: none !important; padding: 0 20px !important; }
    .hero-section .founder-text { display: none !important; }
    .hero-section .floating-shape, .hero-section .geo-shape { display: none !important; }

    /* Layout empilé : logos en haut, contenu en dessous */
    .hero-section .hero-row {
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
    }
    /* Cacher les colonnes logos sur mobile */
    .hero-section .hero-col-left,
    .hero-section .hero-col-right { display: none !important; }

    .hero-section .hero-col-center {
        order: 1 !important;
        width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important;
        margin-top: 0 !important;
    }

    /* Titre moderne */
    .hero-title-main {
        font-size: 1.65rem !important;
        font-family: 'Georgia', serif !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        hyphens: none !important;
        word-break: normal !important;
        color: #0f2b5b !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 0.75rem !important;
    }
    .hero-title-main .hero-title-word-2 {
        background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    /* Sous-titre moderne */
    .hero-subtitle-main { margin-bottom: 0 !important; }
    .hero-subtitle-text {
        font-size: 0.95rem !important;
        font-weight: 400 !important;
        color: #3b5998 !important;
        line-height: 1.5 !important;
        letter-spacing: 0.01em !important;
    }
    .hero-subtitle-text strong { font-weight: 500 !important; }

    /* Ligne décorative sous le sous-titre → gradient moderne */
    .hero-subtitle-main::after {
        content: '' !important;
        display: block !important;
        width: 60px !important;
        height: 3px !important;
        background: linear-gradient(90deg, #1e40af, #60a5fa) !important;
        border-radius: 3px !important;
        margin: 0.75rem auto 0 !important;
    }

    /* Boutons modernes - empilés, pleins, uniformes */
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.65rem !important;
        padding: 0 1.5rem !important;
        margin: 1.5rem auto 0 !important;
    }
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 280px !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        padding: 12px 20px !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
        letter-spacing: 0.02em !important;
        transition: all 0.2s ease !important;
    }
    .hero-buttons .hero-btn-primary {
        background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
        box-shadow: 0 4px 18px rgba(30,64,175,0.3) !important;
    }
    .hero-buttons .hero-btn-secondary {
        background: white !important;
        border: 1.5px solid #cbd5e1 !important;
        color: #1e40af !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
    }
    .hero-buttons .hero-btn-vocation {
        background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
        box-shadow: 0 4px 18px rgba(234,88,12,0.25) !important;
    }
}

/* ---- Smartphone ≤576px ---- */
@media (max-width: 576px) {
    .hero-section { padding: 1.5rem 0 1.5rem !important; }
    .hero-section .container { padding: 0 16px !important; }

    .hero-title-main { font-size: 1.45rem !important; }
    .hero-subtitle-text { font-size: 0.88rem !important; }
    .hero-buttons .btn { max-width: 260px !important; font-size: 0.84rem !important; padding: 11px 18px !important; }
}

/* ---- Petit smartphone ≤420px ---- */
@media (max-width: 420px) {
    .hero-section { padding: 1.25rem 0 1.25rem !important; }

    .hero-title-main { font-size: 1.25rem !important; }
    .hero-subtitle-text { font-size: 0.82rem !important; }
    .hero-buttons { padding: 0 1rem !important; gap: 0.55rem !important; }
    .hero-buttons .btn { max-width: 240px !important; font-size: 0.8rem !important; padding: 10px 16px !important; border-radius: 10px !important; }
}

/* ---- Très petit ≤340px ---- */
@media (max-width: 340px) {
    .hero-section { padding: 1rem 0 1rem !important; }

    .hero-title-main { font-size: 1.1rem !important; }
    .hero-subtitle-text { font-size: 0.78rem !important; }
    .hero-buttons .btn { font-size: 0.76rem !important; padding: 9px 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-shape, .geo-shape { animation: none !important; }
    .hero-title, .hero-subtitle, .hero-buttons, .hero-logo-container { animation: none !important; opacity: 1 !important; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* =================================
   UNIFIED SCROLL REVEAL SYSTEM
   ================================= */

.hp-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hp-reveal.hp-visible {
    opacity: 1;
    transform: translateY(0);
}
.hp-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.hp-reveal-left.hp-visible {
    opacity: 1;
    transform: translateX(0);
}
.hp-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.hp-reveal-right.hp-visible {
    opacity: 1;
    transform: translateX(0);
}
.hp-reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.hp-reveal-scale.hp-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.hp-stagger > * { opacity: 0; transform: translateY(25px); transition: opacity 0.5s ease, transform 0.5s ease; }
.hp-stagger.hp-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.hp-stagger.hp-visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.hp-stagger.hp-visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.hp-stagger.hp-visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.hp-stagger.hp-visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.hp-stagger.hp-visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.hp-stagger.hp-visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* =================================
   SECTION TITLE STYLES
   ================================= */

.hp-section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.hp-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3.5px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
    border-radius: 4px;
    margin: 14px auto 0;
}
.hp-section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 620px;
    margin: 0.25rem auto 0;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* =================================
   NEW BADGE (pulse animation)
   ================================= */

@keyframes newBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    animation: newBadgePulse 2s ease-in-out infinite;
    position: relative;
    z-index: 5;
}
.badge-new i { font-size: 0.6rem; }

/* =================================
   NOTIFICATION BAR (latest content)
   ================================= */

.hp-notif-bar {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}
.hp-notif-bar .container { display: flex; align-items: center; gap: 12px; }
.hp-notif-bar .notif-badge {
    background: rgba(255,255,255,0.2);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    animation: newBadgePulse 2s ease-in-out infinite;
}
.hp-notif-bar a { color: white; text-decoration: none; font-weight: 500; }
.hp-notif-bar a:hover { text-decoration: underline; }
.hp-notif-bar .notif-close {
    background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer;
    margin-left: auto; font-size: 1.1rem; padding: 0 5px;
}
.hp-notif-bar .notif-close:hover { color: white; }

/* =================================
   STATS SECTION - MODERNIZED
   ================================= */

@keyframes statCountUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes statIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hp-stats-section {
    background: linear-gradient(160deg, #0c1222 0%, #162033 40%, #0f1b2d 70%, #0c1222 100%);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}
.hp-stats-section::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59,130,246,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139,92,246,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hp-stat-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 1.75rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.hp-stat-card::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.6s;
}
.hp-stat-card:hover::before { left: 100%; }
.hp-stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.08);
}

.hp-stat-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.hp-stat-card:hover .hp-stat-icon { transform: scale(1.1); animation: statIconBounce 0.6s ease; }

.hp-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.3rem;
    line-height: 1;
    letter-spacing: -0.02em;
}
.hp-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-stat-icon.blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.hp-stat-icon.green { background: rgba(34,197,94,0.15); color: #4ade80; }
.hp-stat-icon.amber { background: rgba(245,158,11,0.15); color: #fbbf24; }
.hp-stat-icon.cyan { background: rgba(6,182,212,0.15); color: #22d3ee; }
.hp-stat-icon.rose { background: rgba(244,63,94,0.15); color: #fb7185; }
.hp-stat-icon.purple { background: rgba(168,85,247,0.15); color: #c084fc; }
.hp-stat-icon.indigo { background: rgba(99,102,241,0.15); color: #818cf8; }

/* Stats buttons */
.hp-stats-buttons .btn {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    background: transparent;
    transition: all 0.3s ease;
}
.hp-stats-buttons .btn:hover {
    border-color: rgba(255,255,255,0.5);
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.hp-stats-buttons .btn i { margin-right: 8px; }

@media (max-width: 768px) {
    .hp-stats-section { padding: 2.5rem 0; }
    .hp-stat-card { padding: 1rem 0.75rem; }
    .hp-stat-number { font-size: 1.5rem; }
    .hp-stat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
    .hp-stat-label { font-size: 0.75rem; }
}

/* =================================
   BLOG SECTION - MODERNIZED
   ================================= */

.hp-blog-section { padding: 5.5rem 0; background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }

.hp-blog-featured {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 420px;
    background: #0f172a;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.hp-blog-featured:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.18); }
.hp-blog-featured img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hp-blog-featured:hover img { transform: scale(1.04); }
.hp-blog-featured .blog-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
    padding: 2.25rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 55%;
}
.hp-blog-featured .blog-overlay h3 { color: white; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.hp-blog-featured .blog-overlay h3 a { color: white; text-decoration: none; transition: opacity 0.3s; }
.hp-blog-featured .blog-overlay h3 a:hover { opacity: 0.85; }
.hp-blog-featured .blog-overlay p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.65; }
.hp-blog-featured .blog-overlay .blog-meta { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

.hp-blog-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}
.hp-blog-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.12); }
.hp-blog-card .card-img-wrapper { height: 190px; overflow: hidden; position: relative; }
.hp-blog-card .card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hp-blog-card:hover .card-img-wrapper img { transform: scale(1.06); }
.hp-blog-card .card-body { padding: 1.35rem; display: flex; flex-direction: column; }
.hp-blog-card .card-body h5 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.hp-blog-card .card-body h5 a { color: #0f172a; text-decoration: none; transition: color 0.3s; }
.hp-blog-card .card-body h5 a:hover { color: #1e40af; }
.hp-blog-card .card-body .blog-excerpt { font-size: 0.88rem; color: #64748b; line-height: 1.55; }
.hp-blog-card .card-footer { border-top: 1px solid #f1f5f9; padding: 0.75rem 1.35rem; background: transparent; font-size: 0.82rem; color: #94a3b8; }

/* Time ago badge */
.badge-time-ago {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}

/* =================================
   LEADERSHIP SECTION - MODERNIZED
   ================================= */

.hp-leadership-section { padding: 5.5rem 0; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }

.hp-leader-card {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    background: white;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}
.hp-leader-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.1); }
.hp-leader-card.premium {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #d4af37, #f5d060, #d4af37);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
}
.hp-leader-card .card-header-custom {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex; align-items: center; gap: 10px;
    color: white;
    letter-spacing: 0.01em;
}
.hp-leader-card .card-header-custom.bg-gold {
    background: linear-gradient(135deg, #d4af37, #c5972c);
}
.hp-leader-card .card-header-custom.bg-teal {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}
.hp-leader-photo {
    width: 115px; height: 115px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hp-leader-card:hover .hp-leader-photo { transform: scale(1.05); }

.hp-council-member {
    display: flex; align-items: center; gap: 12px;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.3s ease;
}
.hp-council-member:hover { background: #f8fafc; }
.hp-council-member img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}
.hp-council-member .member-info h6 { font-size: 0.9rem; font-weight: 600; margin: 0; color: #1a202c; }
.hp-council-member .member-info small { color: #64748b; font-size: 0.78rem; }

/* =================================
   PROJECTS & MISSIONS - MODERNIZED
   ================================= */

.hp-projects-section {
    padding: 5.5rem 0;
    background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 40%, #eff6ff 70%, #f0f9ff 100%);
}

.hp-project-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}
.hp-project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0,0,0,0.1); }
.hp-project-card .card-header-custom {
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: white;
    display: flex; align-items: center; gap: 10px;
}
.hp-project-card .card-header-custom.bg-emerald { background: linear-gradient(135deg, #059669, #047857); }
.hp-project-card .card-header-custom.bg-amber { background: linear-gradient(135deg, #d97706, #b45309); }

.hp-project-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.hp-project-item:last-child { border-bottom: none; }
.hp-project-item h5 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.hp-project-item p { font-size: 0.9rem; color: #64748b; margin-bottom: 0.5rem; }

/* =================================
   RESOURCES SECTION - MODERNIZED
   ================================= */

.hp-resources-section {
    padding: 5.5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.hp-resource-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}
.hp-resource-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.12); }

.hp-resource-card .resource-img { height: 200px; overflow: hidden; position: relative; }
.hp-resource-card .resource-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hp-resource-card:hover .resource-img img { transform: scale(1.05); }

.resource-type-badge {
    position: absolute; top: 0.5rem; right: 0.5rem; z-index: 10;
    padding: 4px 10px; border-radius: 8px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); backdrop-filter: blur(4px);
    color: white;
}
.resource-type-badge.document { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.resource-type-badge.video { background: linear-gradient(135deg, #f59e0b, #d97706); }
.resource-type-badge.audio { background: linear-gradient(135deg, #10b981, #059669); }
.resource-type-badge.image { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* =================================
   SOCIAL & GALLERIES
   ================================= */

.hp-social-section { padding: 5.5rem 0; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.hp-galleries-section { padding: 5.5rem 0; background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }

/* Gallery featured (large card - like blog featured) */
.hp-gallery-featured {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 420px;
    background: #1e1b4b;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.hp-gallery-featured:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.18); }
.hp-gallery-featured img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hp-gallery-featured:hover img { transform: scale(1.04); }
.hp-gallery-featured .gallery-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
    padding: 2.25rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 55%;
}
.hp-gallery-featured .gallery-overlay h3 { color: white; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.hp-gallery-featured .gallery-overlay h3 a { color: white; text-decoration: none; transition: opacity 0.3s; }
.hp-gallery-featured .gallery-overlay h3 a:hover { opacity: 0.85; }
.hp-gallery-featured .gallery-overlay p { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.65; }
.hp-gallery-featured .gallery-overlay .gallery-meta { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

/* Gallery row card (secondary - like blog card) */
.hp-gallery-card-row {
    border: none;
    border-radius: 18px;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hp-gallery-card-row:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.12); }
.hp-gallery-card-row .card-img-wrapper { height: 100%; overflow: hidden; position: relative; border-radius: 18px 0 0 18px; }
.hp-gallery-card-row .card-img-wrapper img { transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hp-gallery-card-row:hover .card-img-wrapper img { transform: scale(1.06); }
.hp-gallery-card-row .card-body { padding: 1.35rem; display: flex; flex-direction: column; }
.hp-gallery-card-row .card-body h5 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.hp-gallery-card-row .card-body h5 a { color: #0f172a; text-decoration: none; transition: color 0.3s; }
.hp-gallery-card-row .card-body h5 a:hover { color: #7c3aed; }
.hp-gallery-card-row .gallery-excerpt { font-size: 0.88rem; color: #64748b; line-height: 1.55; }

/* Legacy gallery card (keep for other uses) */
.hp-gallery-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hp-gallery-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.12); }
.hp-gallery-card img { transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hp-gallery-card:hover img { transform: scale(1.04); }

/* Photo gallery items */
.hp-photo-item {
    overflow: hidden;
    border-radius: 18px;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.hp-photo-item:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.15); }
.hp-photo-item img { transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hp-photo-item:hover img { transform: scale(1.06); filter: brightness(0.85); }
.hp-photo-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s ease;
    display: flex; align-items: flex-end; padding: 1.25rem;
}
.hp-photo-item:hover .hp-photo-overlay { opacity: 1; }
.hp-photo-overlay .photo-info h6 { color: white; font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.hp-photo-overlay .photo-info small { color: rgba(255,255,255,0.7); }
.hp-photo-overlay .photo-actions { margin-top: 0.5rem; display: flex; gap: 0.5rem; }
.hp-photo-overlay .photo-actions .btn { border-radius: 20px; font-size: 0.75rem; padding: 5px 12px; }

@media (max-width: 768px) {
    .hp-photo-overlay { opacity: 1; }
}

/* =================================
   TESTIMONIALS - CAROUSEL
   ================================= */

.hp-testimonials-section {
    padding: 5.5rem 0;
    background: linear-gradient(160deg, #0f2340 0%, #1a365d 40%, #1e3a5f 70%, #0f2340 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.hp-testimonials-section::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 15% 40%, rgba(59,130,246,0.08) 0%, transparent 50%),
                radial-gradient(circle at 85% 60%, rgba(139,92,246,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hp-testimonial-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 2.25rem;
    text-align: center;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
}
.hp-testimonial-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.18);
}
.hp-testimonial-card .quote-icon { font-size: 2.5rem; color: rgba(255,255,255,0.15); margin-bottom: 1rem; }
.hp-testimonial-card .testimonial-text { font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,0.88); font-style: italic; margin-bottom: 1.5rem; letter-spacing: 0.01em; }
.hp-testimonial-card .testimonial-author { font-weight: 700; color: white; margin-bottom: 0.25rem; letter-spacing: 0.01em; }
.hp-testimonial-card .testimonial-position { font-size: 0.85rem; color: rgba(255,255,255,0.5); letter-spacing: 0.02em; }

/* =================================
   SERVICES SECTION - MODERNIZED
   ================================= */

.hp-services-section { padding: 5.5rem 0; background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }

.hp-service-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    padding: 2.25rem 1.75rem;
    position: relative;
    height: 100%;
}
.hp-service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    transition: height 0.3s ease;
}
.hp-service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.1); }
.hp-service-card:hover::before { height: 5px; }

.hp-service-card.color-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.hp-service-card.color-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.hp-service-card.color-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.hp-service-card.color-cyan::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }

.hp-service-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hp-service-card:hover .hp-service-icon { transform: scale(1.1) rotate(-5deg); }

.hp-service-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.hp-service-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.hp-service-icon.amber { background: rgba(245,158,11,0.1); color: #f59e0b; }
.hp-service-icon.cyan { background: rgba(6,182,212,0.1); color: #06b6d4; }

.hp-service-card h5 { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; color: #0f172a; letter-spacing: -0.01em; }
.hp-service-card p { font-size: 0.92rem; color: #64748b; margin-bottom: 1.25rem; line-height: 1.6; }
.hp-service-card .btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.hp-service-card .btn:hover { transform: translateY(-2px); }

/* =================================
   NEWSLETTER SECTION
   ================================= */

.newsletter-section {
    background: linear-gradient(160deg, #14392b 0%, #1a4d3a 35%, #2d5a47 65%, #14392b 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}
.newsletter-content { position: relative; z-index: 2; }
.newsletter-title { font-size: 2.4rem; font-weight: 800; color: #fff; margin-bottom: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.newsletter-title i { color: #4ade80; }
.newsletter-description { font-size: 1.15rem; color: #d1d5db; margin-bottom: 2rem; line-height: 1.65; }
.newsletter-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.benefit-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem; background: rgba(255,255,255,0.08);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.benefit-item:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.benefit-icon {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-radius: 50%; color: white; font-size: 0.9rem; flex-shrink: 0;
}
.benefit-item span { color: #fff; font-weight: 500; font-size: 0.95rem; }

.newsletter-form-wrapper { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; min-height: 300px; }
.newsletter-form-container {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 22px;
    padding: 2rem; width: 100%; max-width: 600px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.15); transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.newsletter-form-container:hover { transform: translateY(-4px); box-shadow: 0 28px 56px rgba(0,0,0,0.22); }
.newsletter-fields { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.newsletter-input {
    width: 100%; padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.25);
    border-radius: 16px; color: #fff; font-size: 1.1rem; font-weight: 500;
    transition: all 0.3s ease; min-height: 60px;
}
.newsletter-input::placeholder { color: #a0aec0; font-weight: 400; }
.newsletter-input:focus { outline: none; border-color: #4ade80; background: rgba(255,255,255,0.2); box-shadow: 0 0 0 4px rgba(74,222,128,0.15); }
.newsletter-btn {
    padding: 0.5rem 1rem; background: linear-gradient(135deg, #1a4d3a, #2d5a47);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
    color: #fff; font-size: 0.85rem; cursor: pointer; transition: all 0.3s ease;
    display: inline-flex; align-items: center; gap: 0.375rem; min-height: 36px;
}
.newsletter-btn:hover { background: linear-gradient(135deg, #2d5a47, #1a4d3a); transform: translateY(-2px); }
.newsletter-message { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; justify-content: center; }
.newsletter-message.newsletter-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.newsletter-message.newsletter-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }

@media (max-width: 991px) {
    .newsletter-title { font-size: 2rem; text-align: center; }
    .newsletter-description { text-align: center; }
    .newsletter-benefits { grid-template-columns: 1fr; }
    .newsletter-form-wrapper { min-height: auto; }
}
@media (max-width: 575px) {
    .newsletter-section { padding: 1.5rem 0; }
    .newsletter-title { font-size: 1.75rem; }
    .newsletter-input { padding: 1rem 1.25rem; font-size: 1rem; min-height: 52px; }
}

/* =================================
   GALLERY OVERLAY & MODALS
   ================================= */

.gallery-item {
    overflow: hidden; border-radius: 20px; transition: all 0.4s ease;
    position: relative; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.gallery-item:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.gallery-image { transition: all 0.4s ease; }
.gallery-item:hover .gallery-image { transform: scale(1.1); filter: brightness(0.8); }
.gallery-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    opacity: 0; transition: opacity 0.4s ease;
    display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-content { text-align: center; transform: translateY(20px); transition: transform 0.4s ease; }
.gallery-item:hover .gallery-content { transform: translateY(0); }
.gallery-info h6 { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.gallery-info p { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.gallery-actions { margin-top: 1rem; display: flex; gap: 0.5rem; justify-content: center; }
.gallery-actions .btn { border-radius: 25px; padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 600; border: none; }
.gallery-actions .btn-primary { background: linear-gradient(135deg, #007bff, #0056b3); color: white; }
.gallery-actions .btn-success { background: linear-gradient(135deg, #28a745, #1e7e34); color: white; }

@media (max-width: 768px) {
    .gallery-overlay { opacity: 1; background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 70%); }
}

/* =================================
   SHARE MODALS & MISC
   ================================= */

.share-option-card {
    border: 2px solid #e9ecef; border-radius: 12px; padding: 20px;
    text-align: center; cursor: pointer; transition: all 0.3s ease;
    background: #fff; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; min-height: 120px;
}
.share-option-card:hover { border-color: #007bff; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,123,255,0.15); }
.share-icon {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; font-size: 20px; color: white;
    background: linear-gradient(135deg, #6c757d, #495057); transition: all 0.3s ease;
}
.share-option-card:hover .share-icon { transform: scale(1.1); }
.share-icon.facebook { background: linear-gradient(135deg, #1877f2, #0d5bb8); }
.share-icon.twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.share-icon.whatsapp { background: linear-gradient(135deg, #25d366, #1ea851); }
.share-icon.email { background: linear-gradient(135deg, #ea4335, #d33b2c); }
.share-icon.linkedin { background: linear-gradient(135deg, #0077b5, #005885); }
.share-content h6 { margin-bottom: 5px; font-weight: 600; color: #333; }
.share-content p { margin: 0; font-size: 0.85rem; }

#shareModal .modal-content { border-radius: 15px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
#shareModal .modal-header { border-radius: 15px 15px 0 0; background: linear-gradient(135deg, #007bff, #0056b3); }
#shareModal .modal-body { padding: 30px; }

.share-gallery-btn { transition: all 0.3s ease; }
.share-gallery-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,123,255,0.3); }

/* =================================
   GENERAL SECTION SPACING
   ================================= */

section { margin-top: 0; margin-bottom: 0; }
section.hero-section { margin-top: 0; }

.shadow-hover-lift { transition: all 0.3s ease; }
.shadow-hover-lift:hover { transform: translateY(-10px); box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important; }

/* Video play button */
.video-preview { position: relative; background: #000; }
.play-icon { text-shadow: 2px 2px 4px rgba(0,0,0,0.8); transition: transform 0.3s ease; }
.hp-resource-card:hover .play-icon { transform: scale(1.1); }

/* Event gallery cards */
.event-gallery-card { transition: all 0.3s ease; border-radius: 16px; overflow: hidden; }
.event-gallery-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important; }

/* =============================================
   MOBILE MODERNIZATION - Toutes les sections
   Uniquement pour écrans ≤768px
   ============================================= */

@media (max-width: 768px) {

    /* ---- Titres de sections ---- */
    .hp-section-title {
        font-size: 1.35rem !important;
        margin-bottom: 0.35rem !important;
    }
    .hp-section-title::after {
        width: 40px !important;
        height: 3px !important;
        margin-top: 8px !important;
    }
    .hp-section-subtitle {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }
    .hp-section-title i {
        font-size: 1rem !important;
    }

    /* ---- Stats Section ---- */
    .hp-stats-section {
        padding: 2rem 0 !important;
    }
    .hp-stat-card {
        padding: 0.75rem 0.5rem !important;
        border-radius: 12px !important;
    }
    .hp-stat-icon {
        width: 38px !important; height: 38px !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
        margin-bottom: 0.5rem !important;
    }
    .hp-stat-number {
        font-size: 1.3rem !important;
    }
    .hp-stat-label {
        font-size: 0.65rem !important;
        letter-spacing: 0.3px !important;
    }
    .hp-stats-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        justify-content: center !important;
    }
    .hp-stats-buttons .btn {
        padding: 7px 14px !important;
        font-size: 0.75rem !important;
        border-width: 1.5px !important;
    }

    /* ---- Stories & Pensée du Jour ---- */
    #storiesThoughtRow {
        flex-direction: column !important;
    }
    #storiesThoughtRow > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    #dailyThoughtColumn .card-header {
        padding: 0.9rem 1rem !important;
    }
    #dailyThoughtColumn .card-header h3 {
        font-size: 1rem !important;
    }
    #dailyThoughtColumn .card-body {
        padding: 1rem !important;
    }
    #dailyThoughtColumn .card-body h4 {
        font-size: 0.95rem !important;
    }
    #dailyThoughtColumn .thought-content {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
    }
    #dailyThoughtColumn .row.g-2 .col-4 .btn {
        font-size: 0.68rem !important;
        padding: 5px 4px !important;
    }

    /* ---- Blog Section ---- */
    .hp-blog-section {
        padding: 2.5rem 0 !important;
    }
    .hp-blog-featured {
        min-height: 280px !important;
        border-radius: 16px !important;
    }
    .hp-blog-featured .blog-overlay {
        padding: 1.25rem !important;
    }
    .hp-blog-featured .blog-overlay h3 {
        font-size: 1.15rem !important;
    }
    .hp-blog-featured .blog-overlay p {
        font-size: 0.82rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .hp-blog-featured .blog-overlay .blog-meta {
        font-size: 0.72rem !important;
    }
    /* Secondary blog cards: stack image on top */
    .hp-blog-card.d-flex.flex-row {
        flex-direction: column !important;
        min-height: auto !important;
    }
    .hp-blog-card .card-img-wrapper {
        width: 100% !important;
        min-width: 100% !important;
        height: 160px !important;
    }
    .hp-blog-card .card-body {
        width: 100% !important;
        padding: 1rem !important;
    }
    .hp-blog-card .card-body h5 {
        font-size: 0.92rem !important;
    }
    .hp-blog-card .blog-excerpt {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .hp-blog-section .btn-lg {
        font-size: 0.88rem !important;
        padding: 10px 24px !important;
    }

    /* ---- Leadership Section ---- */
    .hp-leadership-section {
        padding: 2.5rem 0 !important;
    }
    .hp-leader-card {
        border-radius: 14px !important;
    }
    .hp-leader-card .card-header-custom {
        padding: 0.9rem 1.1rem !important;
        font-size: 0.9rem !important;
    }
    .hp-leader-card .card-body {
        padding: 1.25rem !important;
    }
    .hp-leader-photo {
        width: 85px !important; height: 85px !important;
        border-width: 3px !important;
    }
    .hp-leader-card .card-body h4 {
        font-size: 1rem !important;
    }
    .hp-leader-card .card-body p {
        font-size: 0.82rem !important;
    }
    .hp-council-member {
        padding: 8px !important;
        gap: 10px !important;
    }
    .hp-council-member img {
        width: 42px !important; height: 42px !important;
    }
    .hp-council-member .member-info h6 {
        font-size: 0.82rem !important;
    }
    .hp-council-member .member-info small {
        font-size: 0.72rem !important;
    }
    .hp-leadership-section .text-center.mt-3 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    .hp-leadership-section .text-center.mt-3 .btn {
        font-size: 0.82rem !important;
        padding: 8px 18px !important;
        margin: 0 !important;
    }

    /* ---- Projects & Missions ---- */
    .hp-projects-section {
        padding: 2.5rem 0 !important;
    }
    .hp-project-card {
        border-radius: 14px !important;
    }
    .hp-project-card .card-header-custom {
        padding: 0.85rem 1rem !important;
        font-size: 0.88rem !important;
    }
    .hp-project-card .card-body {
        padding: 1rem !important;
    }
    .hp-project-item {
        padding: 0.75rem 0 !important;
    }
    .hp-project-item h5 {
        font-size: 0.9rem !important;
    }
    .hp-project-item p {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }
    .hp-project-item .badge {
        font-size: 0.65rem !important;
    }
    .hp-project-item .btn-sm {
        font-size: 0.72rem !important;
        padding: 4px 12px !important;
    }

    /* ---- Resources Section ---- */
    .hp-resources-section {
        padding: 2.5rem 0 !important;
    }
    .hp-resource-card {
        border-radius: 14px !important;
    }
    .hp-resource-card .resource-img {
        height: 170px !important;
    }
    .hp-resource-card .card-body {
        padding: 1rem !important;
    }
    .hp-resource-card .card-body h5 {
        font-size: 0.92rem !important;
    }
    .hp-resource-card .card-body p {
        font-size: 0.78rem !important;
    }
    .hp-resource-card .btn-sm {
        font-size: 0.75rem !important;
        padding: 5px 12px !important;
    }

    /* ---- Social Publications ---- */
    .hp-social-section {
        padding: 2.5rem 0 !important;
    }
    .hp-social-section .card-header {
        padding: 0.75rem 1rem !important;
    }
    .hp-social-section .card-header h6 {
        font-size: 0.88rem !important;
    }
    .hp-social-section .card-body {
        padding: 1rem !important;
    }
    .hp-social-section iframe {
        max-height: 350px !important;
    }

    /* ---- Event Galleries (blog-style layout) ---- */
    .hp-galleries-section {
        padding: 2.5rem 0 !important;
    }
    .hp-gallery-featured {
        min-height: 280px !important;
        border-radius: 16px !important;
    }
    .hp-gallery-featured .gallery-overlay {
        padding: 1.25rem !important;
    }
    .hp-gallery-featured .gallery-overlay h3 {
        font-size: 1.15rem !important;
    }
    .hp-gallery-featured .gallery-overlay p {
        font-size: 0.82rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .hp-gallery-featured .gallery-overlay .gallery-meta {
        font-size: 0.72rem !important;
    }
    /* Secondary gallery cards: stack image on top */
    .hp-gallery-card-row.d-flex.flex-row {
        flex-direction: column !important;
        min-height: auto !important;
    }
    .hp-gallery-card-row .card-img-wrapper {
        width: 100% !important;
        min-width: 100% !important;
        height: 160px !important;
    }
    .hp-gallery-card-row .card-body {
        width: 100% !important;
        padding: 1rem !important;
    }
    .hp-gallery-card-row .card-body h5 {
        font-size: 0.92rem !important;
    }
    .hp-gallery-card-row .gallery-excerpt {
        font-size: 0.8rem !important;
    }
    .hp-galleries-section .btn-lg {
        font-size: 0.88rem !important;
        padding: 10px 24px !important;
    }
    /* Legacy gallery card */
    .hp-gallery-card {
        border-radius: 14px !important;
    }
    .hp-gallery-card .card-img-top {
        height: 190px !important;
    }

    /* ---- Gallery Photos ---- */
    .hp-photo-item {
        border-radius: 12px !important;
    }
    .hp-photo-item img {
        height: 170px !important;
    }
    .hp-photo-overlay {
        padding: 0.75rem !important;
    }
    .hp-photo-overlay .photo-info h6 {
        font-size: 0.8rem !important;
    }
    .hp-photo-overlay .photo-actions .btn {
        font-size: 0.68rem !important;
        padding: 4px 10px !important;
    }

    /* ---- Testimonials ---- */
    .hp-testimonials-section {
        padding: 2.5rem 0 !important;
    }
    .hp-testimonial-card {
        padding: 1.25rem !important;
        border-radius: 14px !important;
    }
    .hp-testimonial-card .quote-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    .hp-testimonial-card .testimonial-text {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }
    .hp-testimonial-card .testimonial-author {
        font-size: 0.88rem !important;
    }
    .hp-testimonial-card .testimonial-position {
        font-size: 0.75rem !important;
    }

    /* ---- Services ---- */
    .hp-services-section {
        padding: 2.5rem 0 !important;
    }
    .hp-service-card {
        padding: 1.25rem 1rem !important;
        border-radius: 14px !important;
    }
    .hp-service-icon {
        width: 52px !important; height: 52px !important;
        font-size: 1.3rem !important;
        border-radius: 14px !important;
        margin-bottom: 0.75rem !important;
    }
    .hp-service-card h5 {
        font-size: 0.95rem !important;
    }
    .hp-service-card p {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem !important;
    }
    .hp-service-card .btn {
        font-size: 0.78rem !important;
        padding: 6px 16px !important;
    }

    /* ---- Newsletter ---- */
    .newsletter-section {
        padding: 2rem 0 !important;
    }
    .newsletter-title {
        font-size: 1.5rem !important;
    }
    .newsletter-description {
        font-size: 0.9rem !important;
        margin-bottom: 1.25rem !important;
    }
    .benefit-item {
        padding: 0.5rem !important;
    }
    .benefit-item span {
        font-size: 0.82rem !important;
    }
    .newsletter-form-container {
        padding: 1rem !important;
        border-radius: 14px !important;
    }
    .newsletter-input {
        padding: 0.85rem 1rem !important;
        font-size: 0.9rem !important;
        min-height: 46px !important;
        border-radius: 10px !important;
    }
    .newsletter-fields {
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    /* ---- Presentation Gallery ---- */
    .presentation-gallery-section {
        padding: 1.5rem 0 !important;
    }
    .presentation-gallery-section .presentation-background {
        display: none !important;
    }
    .presentation-gallery-container {
        border-radius: 12px !important;
    }
    .presentation-slide-title {
        font-size: 1rem !important;
    }
    .presentation-slide-description {
        font-size: 0.8rem !important;
    }
    .presentation-nav-btn {
        width: 32px !important; height: 32px !important;
        font-size: 0.8rem !important;
    }

    /* ---- Notification bar ---- */
    .hp-notif-bar {
        font-size: 0.78rem !important;
        padding: 8px 0 !important;
    }
    .hp-notif-bar .notif-badge {
        font-size: 0.65rem !important;
        padding: 2px 8px !important;
    }

    /* ---- Badges & general ---- */
    .badge-new {
        font-size: 0.6rem !important;
        padding: 2px 7px !important;
    }
    .badge-time-ago {
        font-size: 0.65rem !important;
    }

    /* ---- Global CTA buttons on mobile ---- */
    .hp-blog-section .text-center.mt-5 .btn,
    .hp-resources-section .text-center.mt-5 .btn,
    .hp-galleries-section .text-center.mt-4 .btn,
    .hp-social-section .text-center.mt-4 .btn,
    .hp-testimonials-section .text-center.mt-4 .btn {
        font-size: 0.85rem !important;
        padding: 10px 22px !important;
        border-radius: 50px !important;
    }
}

/* ---- Smartphone ≤576px extra tweaks ---- */
@media (max-width: 576px) {
    .hp-stats-section {
        padding: 1.5rem 0 !important;
    }
    .hp-stat-card {
        padding: 0.6rem 0.35rem !important;
    }
    .hp-stat-icon {
        width: 32px !important; height: 32px !important;
        font-size: 0.85rem !important;
        margin-bottom: 0.35rem !important;
    }
    .hp-stat-number {
        font-size: 1.1rem !important;
    }
    .hp-stat-label {
        font-size: 0.58rem !important;
    }
    .hp-stats-buttons .btn {
        padding: 5px 10px !important;
        font-size: 0.68rem !important;
    }

    .hp-blog-featured {
        min-height: 220px !important;
    }
    .hp-blog-featured .blog-overlay h3 {
        font-size: 1rem !important;
    }

    .hp-service-card {
        padding: 1rem 0.75rem !important;
    }
    .hp-service-icon {
        width: 44px !important; height: 44px !important;
        font-size: 1.1rem !important;
    }

    .hp-testimonial-card {
        padding: 1rem !important;
    }

    .hp-photo-item img {
        height: 140px !important;
    }

    .hp-gallery-card .card-img-top {
        height: 160px !important;
    }

    .hp-gallery-featured {
        min-height: 220px !important;
    }
    .hp-gallery-featured .gallery-overlay h3 {
        font-size: 1rem !important;
    }

    .presentation-gallery-section {
        padding: 1rem 0 !important;
    }
}

/* =================================
   DARK MODE COMPATIBILITY
   ================================= */

[data-theme="dark"] .hp-section-title { color: #e2e8f0; }
[data-theme="dark"] .hp-section-title::after { background: linear-gradient(90deg, #60a5fa, #93c5fd); }
[data-theme="dark"] .hp-section-subtitle { color: #94a3b8; }

[data-theme="dark"] .hp-blog-section { background: #0f172a; }
[data-theme="dark"] .hp-blog-card { background: #1e293b; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .hp-blog-card .card-body h5 a { color: #e2e8f0; }
[data-theme="dark"] .hp-blog-card .card-body h5 a:hover { color: #60a5fa; }
[data-theme="dark"] .hp-blog-card .blog-excerpt { color: #94a3b8; }
[data-theme="dark"] .hp-blog-card .card-footer { border-top-color: #334155; }

[data-theme="dark"] .hp-leadership-section { background: #0f172a; }
[data-theme="dark"] .hp-leader-card { background: #1e293b; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
[data-theme="dark"] .hp-leader-card.premium { background-image: linear-gradient(#1e293b, #1e293b), linear-gradient(135deg, #d4af37, #f5d060, #d4af37); }
[data-theme="dark"] .hp-leader-card h4 { color: #e2e8f0 !important; }
[data-theme="dark"] .hp-council-member:hover { background: #334155; }
[data-theme="dark"] .hp-council-member .member-info h6 { color: #e2e8f0; }
[data-theme="dark"] .hp-council-member .member-info small { color: #94a3b8; }

[data-theme="dark"] .hp-projects-section { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); }
[data-theme="dark"] .hp-project-card { background: #1e293b; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .hp-project-item { border-bottom-color: #334155; }
[data-theme="dark"] .hp-project-item h5 { color: #60a5fa !important; }
[data-theme="dark"] .hp-project-item p { color: #94a3b8; }

[data-theme="dark"] .hp-resources-section { background: #0f172a; }
[data-theme="dark"] .hp-resource-card { background: #1e293b; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .hp-resource-card h5 a { color: #e2e8f0 !important; }

[data-theme="dark"] .hp-social-section { background: #0f172a; }
[data-theme="dark"] .hp-social-section .card { background: #1e293b !important; border-color: #334155 !important; }

[data-theme="dark"] .hp-galleries-section { background: #0f172a; }
[data-theme="dark"] .hp-gallery-card { background: #1e293b; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .hp-gallery-card h5 a { color: #e2e8f0 !important; }

[data-theme="dark"] .hp-photo-item { box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

[data-theme="dark"] .hp-services-section { background: #0f172a; }
[data-theme="dark"] .hp-service-card { background: #1e293b; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .hp-service-card h5 { color: #e2e8f0; }
[data-theme="dark"] .hp-service-card p { color: #94a3b8; }

[data-theme="dark"] .badge-time-ago { background: rgba(96,165,250,0.15); color: #60a5fa; }

[data-theme="dark"] .share-option-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .share-option-card:hover { border-color: #60a5fa; background: #2d3748; }
[data-theme="dark"] .share-content h6 { color: #e2e8f0; }

/* Dark mode notification bar */
[data-theme="dark"] .hp-notif-bar { background: linear-gradient(90deg, #1e3a5f, #1e40af); }
