/* ============================================================
   African Council � Main Stylesheet
   Primary:   #2c1503 (deep coffee)
   Secondary: #8b4513 (saddle brown)
   Accent:    #f9a825 (gold)
   ============================================================ */

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Design Tokens ----------------------------------------- */
:root {
    --primary:       #2c1503;
    --primary-mid:   #5c2d0a;
    --primary-lt:    #8b4513;
    --primary-pale:  rgba(44,21,3,.08);
    --accent:        #f9a825;
    --accent-dark:   #f57f17;
    --accent-pale:   rgba(249,168,37,.12);
    --dark:          #1a1a1a;
    --cream:         #f5ede4;
    --white:         #ffffff;
    --gray-50:       #faf9f7;
    --gray-100:      #f3f0ec;
    --gray-200:      #e5ddd5;
    --gray-400:      #a89080;
    --gray-600:      #6b5a4e;
    --gray-800:      #2d1f17;
    --red:           #dc2626;
    --success:       #16a34a;
    /* legacy aliases */
    --green:         var(--primary);
    --green-mid:     var(--primary-mid);
    --green-lt:      var(--primary-lt);
    --gold:          var(--accent);
    --gold-dark:     var(--accent-dark);
    --brown:         var(--primary-mid);
    --choc:          var(--primary-lt);
    --coffee-dark:   var(--primary);
    --coffee-mid:    var(--primary-mid);
    --coffee-lt:     var(--primary-lt);
    --radius:        6px;
    --shadow:        0 2px 12px rgba(44,21,3,.10);
    --shadow-lg:     0 8px 32px rgba(44,21,3,.18);
    --transition:    .2s ease;
}


/* --- Base --------------------------------------------------- */
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; font-size: 1rem; line-height: 1.7; color: var(--gray-800); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; color: var(--primary); line-height: 1.25; }

/* --- Container --------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Language Bar ------------------------------------------ */
.lang-bar {
    background: var(--primary);
    color: rgba(255,255,255,.85);
    font-size: .78rem;
    padding: .3rem 0;
    position: relative;
    z-index: 1001;
}
.lang-bar-inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.lang-bar-label {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}
.lang-select-wrap { display: flex; align-items: center; }
.lang-select {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: .2rem .5rem;
    border-radius: 4px;
    font-size: .78rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: background .15s, border-color .15s;
    min-width: 200px;
}
.lang-select:hover, .lang-select:focus {
    background: rgba(255,255,255,.2);
    border-color: var(--accent);
}
.lang-select option { background: var(--primary-dark, #3b1f0a); color: #fff; }
.lang-powered {
    margin-left: auto;
    font-size: .68rem;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
}
/* Hide Google's default toolbar banner */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }
@media (max-width: 640px) {
    .lang-powered { display: none; }
    .lang-bar-inner { gap: .4rem; }
    .lang-select { min-width: 160px; }
}

/* --- Navbar (glassmorphism, white bg) ---------------------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(44,21,3,.10);
    box-shadow: 0 2px 16px rgba(44,21,3,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo-img { height: 48px; width: auto; flex-shrink: 0; }
.logo-name { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name-full { font-family: 'Playfair Display', serif; font-size: .95rem; font-weight: 700; color: var(--primary); letter-spacing: .01em; }
.logo-name-abbr { font-family: 'Open Sans', sans-serif; font-size: .72rem; font-weight: 600; color: var(--primary-lt); letter-spacing: .08em; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: .25rem; }
.nav-link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .45rem .75rem;
    color: var(--primary-mid);
    font-size: .9rem; font-weight: 600;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-pale); }
.nav-search { padding: .45rem .6rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        display: none; flex-direction: column; align-items: stretch; gap: 0;
        position: absolute; top: 72px; left: 0; right: 0;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(16px);
        padding: .75rem 1.25rem 1.25rem;
        box-shadow: 0 8px 24px rgba(44,21,3,.12);
        border-bottom: 1px solid rgba(44,21,3,.08);
    }
    .nav-menu.open { display: flex; }
    .nav-link { padding: .65rem .75rem; font-size: 1rem; }
}


/* --- Hero --------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, var(--primary-lt) 100%);
    color: var(--white); padding: 5.5rem 0 4.5rem; text-align: center;
    position: relative; overflow: hidden;
}
/* Photo layer: 30% opacity, soft-light blend over the brown gradient */
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('/assets/images/hero-bg.jpg') center center / cover no-repeat;
    opacity: 0.6;
    mix-blend-mode: soft-light;
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem,5vw,3.6rem); color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.9); margin-bottom: 2.25rem; }
.hero-badge {
    display: inline-block; background: var(--accent); color: var(--dark);
    font-size: .8rem; font-weight: 700; padding: .3rem .9rem;
    border-radius: 20px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem;
}

/* --- Buttons ----------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.9rem; border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: .95rem;
    cursor: pointer; border: 2px solid transparent;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-primary { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
/* White outline variant for dark/hero backgrounds */
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* --- Sections ---------------------------------------------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream); }
.section-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); color: var(--white); }
.section-primary h2, .section-primary h3 { color: var(--white); }
.section-primary p { color: rgba(255,255,255,.85); }
.section-primary .section-divider { background: var(--accent); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.6rem,3vw,2.4rem); margin-bottom: .5rem; }
.section-header p { color: var(--gray-600); max-width: 560px; margin: 0 auto; }
.section-divider { width: 56px; height: 3px; background: var(--accent); margin: .75rem auto 0; border-radius: 2px; }

/* --- Stats Strip ------------------------------------------- */
.stats-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    padding: 3rem 0;
}
.stats-strip .container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 2rem; text-align: center;
}
.stats-strip .stat-num { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stats-strip .stat-lbl { font-size: .9rem; color: rgba(255,255,255,.8); margin-top: .35rem; }

/* --- Mission Pillars --------------------------------------- */
.mission-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 2rem; margin-top: 1rem; }
.mission-pillar {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 2rem 1.5rem; text-align: center;
    border-top: 4px solid var(--accent);
    transition: transform var(--transition), box-shadow var(--transition);
}
.mission-pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mission-pillar-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-lt));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.mission-pillar h3 { font-size: 1.2rem; margin-bottom: .6rem; color: var(--primary-mid); }
.mission-pillar p { font-size: .95rem; color: var(--gray-600); }

/* --- What We Do -------------------------------------------- */
.wwd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; }
.wwd-card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 1.75rem 1.5rem;
    transition: transform var(--transition), box-shadow var(--transition);
}
.wwd-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.wwd-icon {
    width: 56px; height: 56px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.wwd-icon-primary { background: var(--primary-pale); color: var(--primary-lt); }
.wwd-icon-accent  { background: var(--accent-pale);   color: var(--accent-dark); }
.wwd-card h3 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--primary-mid); }
.wwd-card p  { font-size: .9rem; color: var(--gray-600); }


/* --- Cards -------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-lt));
    display: flex; align-items: center; justify-content: center;
}
.card-body { padding: 1.25rem; }
.card-meta { font-size: .8rem; color: var(--gray-400); margin-bottom: .4rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.card-title { font-size: 1.1rem; margin-bottom: .5rem; }
.card-title a { color: var(--primary); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: .9rem; color: var(--gray-600); margin-bottom: 1rem; }
.tag { display: inline-block; padding: .2rem .6rem; background: var(--accent-pale); color: var(--accent-dark); border-radius: 20px; font-size: .75rem; font-weight: 600; }

/* --- Gallery ----------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-btn {
    padding: .4rem 1rem; border: 2px solid var(--accent); border-radius: 20px;
    background: transparent; color: var(--accent-dark);
    font-family: 'Open Sans', sans-serif; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: background var(--transition), color var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: var(--dark); }
.gallery-grid { columns: 3; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; cursor: pointer; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item-overlay {
    position: absolute; inset: 0; background: rgba(44,21,3,.45);
    opacity: 0; transition: opacity .3s;
    display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { color: var(--white); }
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }

/* --- Gallery Carousel (homepage) --------------------------- */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.gallery-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.gallery-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 .5rem;
    box-sizing: border-box;
}
.gallery-slide a {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
}
.gallery-slide img {
    width: 100%; height: 220px;
    object-fit: cover; display: block;
    transition: transform .35s;
}
.gallery-slide a:hover img { transform: scale(1.04); }
.gallery-slide-tag {
    position: absolute; bottom: .6rem; left: .6rem;
    background: var(--accent); color: var(--dark);
    font-size: .72rem; font-weight: 700;
    padding: .2rem .65rem; border-radius: 20px;
}
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--white); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    color: var(--primary); z-index: 2;
    transition: background .2s, transform .2s;
}
.carousel-btn:hover { background: var(--accent); transform: translateY(-50%) scale(1.08); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-prev { left: .5rem; }
.carousel-next { right: .5rem; }
.carousel-dots {
    display: flex; justify-content: center; gap: .45rem;
    margin-top: 1rem;
}
.carousel-dot {
    width: .55rem; height: .55rem; border-radius: 50%;
    background: var(--gray-300); border: none; cursor: pointer;
    padding: 0; transition: background .2s, transform .2s;
}
.carousel-dot.active { background: var(--primary); transform: scale(1.3); }
@media (max-width: 1023px) { .gallery-slide { flex: 0 0 50%; } }
@media (max-width: 639px)  { .gallery-slide { flex: 0 0 100%; } }

/* --- Lightbox ---------------------------------------------- */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.92); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; line-height: 1; }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none; color: var(--white);
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }

/* --- Blog --------------------------------------------------- */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
.blog-post-full { max-width: 780px; }
.blog-post-full img { border-radius: var(--radius); margin: 1.5rem 0; }
.blog-post-full h1 { font-size: clamp(1.6rem,3vw,2.4rem); margin-bottom: .5rem; }
.post-meta { color: var(--gray-400); font-size: .85rem; margin-bottom: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.post-content { line-height: 1.85; }
.post-content h2, .post-content h3 { margin: 1.5rem 0 .75rem; }
.post-content p { margin-bottom: 1rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1rem 1.5rem; }
.sidebar { position: sticky; top: 88px; }
.sidebar-widget { background: var(--cream); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-widget h3 { font-size: 1rem; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); }
.sidebar-widget ul li { padding: .35rem 0; border-bottom: 1px solid var(--gray-200); }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget a { color: var(--primary-mid); }
.sidebar-widget a:hover { color: var(--accent-dark); }
.sidebar-widget a.active-cat { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 768px) { .blog-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* --- Comments ---------------------------------------------- */
.comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--gray-200); }
.comment { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--gray-200); }
.comment-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-author { font-weight: 600; color: var(--primary-mid); }
.comment-date { font-size: .8rem; color: var(--gray-400); margin-left: .5rem; }
.comment-text { margin-top: .35rem; font-size: .95rem; }


/* --- Events ------------------------------------------------- */
.event-card { display: flex; gap: 1.25rem; padding: 1.25rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; transition: transform var(--transition); }
.event-card:hover { transform: translateY(-2px); }
.event-date-badge { flex-shrink: 0; width: 64px; text-align: center; background: var(--accent); color: var(--dark); border-radius: var(--radius); padding: .5rem .25rem; }
.event-date-badge .day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date-badge .month { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.event-info h3 { font-size: 1.1rem; margin-bottom: .25rem; color: var(--primary); }
.event-info h3 a { color: var(--primary); }
.event-info h3 a:hover { color: var(--accent-dark); }
.event-meta { font-size: .85rem; color: var(--gray-400); display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .35rem; }
.event-card-img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
@media (max-width: 560px) { .event-card-img { display: none; } }

/* --- Calendar ---------------------------------------------- */
.calendar-toggle { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.calendar-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-header h3 { font-size: 1.1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day-name { text-align: center; font-size: .75rem; font-weight: 600; color: var(--gray-400); padding: .35rem 0; }
.cal-day { text-align: center; padding: .4rem; border-radius: var(--radius); font-size: .85rem; cursor: default; }
.cal-day.has-event { background: var(--accent-pale); color: var(--accent-dark); font-weight: 700; cursor: pointer; }
.cal-day.has-event:hover { background: var(--accent); color: var(--dark); }
.cal-day.today { border: 2px solid var(--accent); }
.cal-day.other-month { color: var(--gray-200); }

/* --- About / Team ------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1.5rem; }
.team-card { text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo-wrap { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--gray-100); }
.team-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 0; border: none; margin: 0; display: block; }
.team-photo-placeholder { width: 100%; aspect-ratio: 3/4; background: var(--accent); color: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; margin: 0; border-radius: 0; }
.team-card-body { padding: 1rem; }
.team-name { font-size: .95rem; margin-bottom: .2rem; color: var(--primary); }
.team-role { font-size: .82rem; color: var(--accent-dark); font-weight: 600; }

/* --- About page cards -------------------------------------- */
.about-card { background: var(--cream); border-radius: var(--radius); padding: 2rem; border-left: 4px solid var(--accent); }
.about-card h2 { color: var(--primary); margin-bottom: 1rem; }
.about-card p { color: var(--gray-600); line-height: 1.8; }
.about-icon-card { text-align: center; padding: 2rem 1.5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-icon-wrap { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.about-icon-primary { background: var(--primary-pale); color: var(--primary-lt); }
.about-icon-accent  { background: var(--accent-pale);  color: var(--accent-dark); }
.about-icon-card h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--primary); }
.about-icon-card p  { font-size: .9rem; color: var(--gray-600); }

/* --- Modal -------------------------------------------------- */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 8000; background: rgba(0,0,0,.7); align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2rem; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); }
.modal-close:hover { color: var(--primary); }

/* --- Forms -------------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--primary); }
.form-control {
    width: 100%; padding: .65rem .9rem;
    border: 2px solid var(--gray-200); border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif; font-size: .95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white); color: var(--gray-800);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
.form-control.error { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-error { font-size: .82rem; color: var(--red); margin-top: .3rem; }
.form-success { padding: 1rem 1.25rem; background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.3); border-radius: var(--radius); color: var(--success); font-weight: 600; margin-bottom: 1.25rem; }
.form-alert { padding: 1rem 1.25rem; background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.25); border-radius: var(--radius); color: var(--red); margin-bottom: 1.25rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Pagination -------------------------------------------- */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius); border: 2px solid var(--gray-200); color: var(--gray-600); font-size: .9rem; font-weight: 600; transition: all var(--transition); }
.page-link:hover { border-color: var(--accent); color: var(--accent-dark); }
.page-link.active { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* --- Search ------------------------------------------------- */
.search-bar { display: flex; gap: .5rem; max-width: 560px; margin: 0 auto 2rem; }
.search-bar .form-control { flex: 1; }
.search-results-group { margin-bottom: 2.5rem; }
.search-results-group h2 { font-size: 1.2rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--accent); color: var(--primary); }
.search-result-item { padding: .75rem 0; border-bottom: 1px solid var(--gray-200); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item h3 { font-size: 1rem; margin-bottom: .2rem; }
.search-result-item h3 a { color: var(--primary); }
.search-result-item h3 a:hover { color: var(--accent-dark); }
.search-result-item p { font-size: .9rem; color: var(--gray-600); }

/* --- Contact ----------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--gray-600); margin-bottom: 1rem; }
.contact-detail { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; }
.contact-detail svg { flex-shrink: 0; color: var(--accent-dark); margin-top: .15rem; }
.map-embed { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 280px; border: none; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }


/* --- Admin -------------------------------------------------- */
.admin-body { background: var(--gray-100); min-height: 100vh; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--primary); color: var(--white);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-logo { padding: 1.5rem 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.admin-sidebar-logo .logo-text { font-size: 1.1rem; color: var(--white); font-family: 'Playfair Display', serif; }
.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .65rem 1.25rem; color: rgba(255,255,255,.75);
    font-size: .9rem; font-weight: 600;
    transition: color var(--transition), background var(--transition);
}
.admin-nav-link:hover, .admin-nav-link.active { color: var(--accent); background: rgba(249,168,37,.15); }
.admin-nav-link svg { flex-shrink: 0; }
.admin-nav-divider { height: 1px; background: rgba(255,255,255,.12); margin: .5rem 1.25rem; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--red); color: var(--white); border-radius: 10px; font-size: .7rem; font-weight: 700; margin-left: auto; }
.admin-main { flex: 1; padding: 2rem; overflow-x: hidden; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-topbar h1 { font-size: 1.5rem; color: var(--primary); }
.admin-topbar .btn-outline,
.admin-topbar .btn-outline-dark { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.admin-topbar .btn-outline:hover,
.admin-topbar .btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card h2 { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gray-200); color: var(--primary); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; border-left: 4px solid var(--accent); }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; }
.stat-card .stat-label { font-size: .8rem; color: var(--gray-400); margin-top: .2rem; }

/* --- Tables ------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th { background: var(--cream); color: var(--primary); font-weight: 700; padding: .75rem 1rem; text-align: left; border-bottom: 2px solid var(--gray-200); white-space: nowrap; }
tbody td { padding: .7rem 1rem; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
tbody tr:hover { background: var(--gray-50); }
.status-badge { display: inline-block; padding: .2rem .65rem; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.status-published { background: rgba(22,163,74,.12); color: var(--success); }
.status-draft { background: var(--gray-100); color: var(--gray-400); }
.status-unread { background: var(--accent-pale); color: var(--accent-dark); }
.status-read { background: var(--gray-100); color: var(--gray-400); }
.action-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius); border: none; cursor: pointer; transition: background var(--transition); }
.btn-edit { background: var(--accent-pale); color: var(--accent-dark); }
.btn-edit:hover { background: var(--accent); color: var(--dark); }
.btn-preview { background: rgba(59,130,246,.1); color: #3b82f6; }
.btn-preview:hover { background: #3b82f6; color: var(--white); }
.btn-delete { background: rgba(220,38,38,.1); color: var(--red); }
.btn-delete:hover { background: var(--red); color: var(--white); }
.btn-view { background: var(--primary-pale); color: var(--primary-lt); }
.btn-view:hover { background: var(--primary-lt); color: var(--white); }

/* --- Alerts ------------------------------------------------- */
.alert { padding: .9rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 600; font-size: .9rem; }
.alert-success { background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.3); color: var(--success); }
.alert-error { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.25); color: var(--red); }
.alert-info { background: var(--accent-pale); border: 1px solid rgba(249,168,37,.3); color: var(--accent-dark); }

/* --- Footer ------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--white); padding: 3.5rem 0 0; margin-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: .75rem; max-width: 300px; line-height: 1.7; }
.footer-brand .footer-sub { font-size: .85rem; color: rgba(255,255,255,.35); margin-top: .5rem; }
.footer-logo-img { height: 52px; width: auto; margin-bottom: .5rem; }
.footer-links h3, .footer-social h3 { font-size: .95rem; color: var(--white); margin-bottom: .75rem; font-family: 'Playfair Display', serif; }
.footer-links ul li { padding: .3rem 0; }
.footer-links ul li a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-links ul li a:hover { color: var(--accent); }
.social-icons { display: flex; gap: .75rem; }
.social-icons a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.social-icons a:hover { color: var(--accent); }
.footer-contact { margin-top: 1.25rem; }
.footer-contact p { font-size: .85rem; color: rgba(255,255,255,.45); margin-bottom: .35rem; }
.footer-contact a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; text-align: center; }
.footer-bottom p { font-size: .85rem; color: rgba(255,255,255,.35); }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }

/* --- Post featured image ----------------------------------- */
.post-featured-img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }

/* Featured image with lightbox trigger */
.post-feat-img-link {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin: 1.25rem 0;
    cursor: zoom-in;
}
.post-feat-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease, filter .3s ease;
}
.post-feat-img-link:hover .post-feat-img {
    transform: scale(1.02);
    filter: brightness(.85);
}
.post-feat-img-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
    color: #fff;
    background: rgba(0,0,0,.25);
}
.post-feat-img-link:hover .post-feat-img-zoom { opacity: 1; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: lbFadeIn .2s ease;
}
.lightbox.open { display: flex; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0,0,0,.6);
    animation: lbZoomIn .2s ease;
}
@keyframes lbZoomIn { from { transform: scale(.92); } to { transform: scale(1); } }
.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }

/* --- Utility ----------------------------------------------- */
/* --- Rich Text Editor (RTE) -------------------------------- */
.rte-wrap { border: 2px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.rte-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale); }
.rte-toolbar {
    display: flex; flex-wrap: wrap; gap: .25rem;
    padding: .5rem .6rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}
.rte-toolbar button {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 4px; padding: .25rem .55rem;
    font-size: .82rem; cursor: pointer; line-height: 1.4;
    color: var(--gray-700); transition: background .15s, border-color .15s;
    min-width: 28px;
}
.rte-toolbar button:hover { background: var(--accent-pale); border-color: var(--accent); color: var(--primary); }
.rte-toolbar select {
    border: 1px solid var(--gray-200); border-radius: 4px;
    padding: .25rem .4rem; font-size: .82rem; background: var(--white);
    color: var(--gray-700); cursor: pointer;
}
.rte-sep { width: 1px; height: 22px; background: var(--gray-200); margin: 0 .15rem; }
.rte-body {
    min-height: 320px; padding: 1rem 1.1rem;
    font-size: .95rem; line-height: 1.75;
    color: var(--gray-800); outline: none; cursor: text;
    overflow-y: auto; position: relative;
}
.rte-body:focus { outline: none; }
.rte-body:empty:before { content: 'Start writing your post content here...'; color: var(--gray-400); pointer-events: none; }
.rte-body h1,.rte-body h2,.rte-body h3 { margin: 1rem 0 .5rem; color: var(--primary); }
.rte-body p { margin-bottom: .75rem; }
.rte-body ul,.rte-body ol { margin: .5rem 0 .75rem 1.5rem; }
.rte-body a { color: var(--accent-dark); text-decoration: underline; }
.rte-body blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; color: var(--gray-500); margin: 1rem 0; }

/* --- Utility ----------------------------------------------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-results { text-align: center; padding: 3rem 1rem; color: var(--gray-400); }
.no-results svg { margin: 0 auto 1rem; opacity: .4; }
.divider { height: 1px; background: var(--gray-200); margin: 2rem 0; }

/* ============================================================
   MOBILE RESPONSIVE — comprehensive breakpoints
   ============================================================ */

/* Admin nav toggle hidden on desktop */
.admin-nav-toggle { display: none; }

/* --- Admin: collapsible sidebar on mobile ------------------ */
@media (max-width: 900px) {
    .admin-layout { flex-direction: column; }

    .admin-sidebar {
        width: 100%; height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .admin-sidebar-logo {
        flex: 1;
        padding: .75rem 1rem;
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,.15);
        display: flex; align-items: center; justify-content: space-between;
    }
    .admin-nav-toggle {
        background: none; border: none; color: rgba(255,255,255,.85);
        font-size: 1.4rem; cursor: pointer; padding: .25rem .5rem; line-height: 1;
        display: inline-block;
    }    .admin-nav {
        width: 100%;
        padding: 0;
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        border-top: 1px solid rgba(255,255,255,.12);
    }
    .admin-nav.open { display: flex; }
    .admin-nav-link {
        flex: 1 1 auto;
        min-width: 120px;
        padding: .6rem .75rem;
        font-size: .82rem;
        justify-content: center;
        text-align: center;
        border-right: 1px solid rgba(255,255,255,.08);
    }
    .admin-nav-divider { display: none; }
    .admin-main { padding: 1rem; }

    /* Admin topbar stacks on small screens */
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }
    .admin-topbar > div { flex-wrap: wrap; }

    /* Admin card tables scroll horizontally */
    .admin-card { padding: 1rem; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Stat grid 2 cols */
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .admin-nav-link { min-width: 90px; font-size: .78rem; gap: .3rem; }
    .admin-nav-link svg { display: none; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .admin-topbar h1 { font-size: 1.2rem; }

    /* Admin forms: grids collapse to 1 col */
    .admin-card [style*="grid-template-columns"] {
        display: block !important;
    }
    .admin-card [style*="grid-template-columns"] > * {
        margin-bottom: .75rem;
    }
}

/* --- Public: hero on small screens ------------------------- */
@media (max-width: 640px) {
    .hero { padding: 3.5rem 0 3rem; }
    .hero p { font-size: 1rem; }
    .hero > .container > div[style*="display:flex"] { flex-direction: column; align-items: center; }
    .section { padding: 2.5rem 0; }
    .section-header { margin-bottom: 1.75rem; }
}

/* --- Stats strip: 2 cols on mobile ------------------------- */
@media (max-width: 480px) {
    .stats-strip .container { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    .stats-strip .stat-num { font-size: 2rem; }
}

/* --- Event cards on mobile --------------------------------- */
@media (max-width: 480px) {
    .event-card { flex-wrap: wrap; gap: .75rem; padding: 1rem; }
    .event-date-badge { width: 52px; }
    .event-info { flex: 1 1 calc(100% - 64px); }
}

/* --- Blog layout already handled at 768px, extra tweaks ---- */
@media (max-width: 640px) {
    .blog-post-full h1 { font-size: 1.5rem; }
    .post-content { font-size: .95rem; }
    .card-grid { grid-template-columns: 1fr; }
}

/* --- Search bar stacks on mobile --------------------------- */
@media (max-width: 480px) {
    .search-bar { flex-direction: column; }
    .search-bar .btn { width: 100%; justify-content: center; }
}

/* --- Modals slide up from bottom on mobile ----------------- */
@media (max-width: 600px) {
    .modal-box {
        position: fixed; bottom: 0; left: 0; right: 0; top: auto;
        transform: none; border-radius: var(--radius) var(--radius) 0 0;
        max-height: 85vh; overflow-y: auto;
        margin: 0; width: 100%;
    }
    .modal-overlay { align-items: flex-end; }
}

/* --- Lightbox buttons shrink on mobile --------------------- */
@media (max-width: 480px) {
    .lightbox-prev, .lightbox-next { width: 36px; height: 36px; font-size: 1.1rem; }
    .lightbox-close { width: 32px; height: 32px; font-size: 1rem; top: .5rem; right: .5rem; }
}

/* --- RTE toolbar wraps on mobile --------------------------- */
@media (max-width: 600px) {
    .rte-toolbar { flex-wrap: wrap; gap: .25rem; }
    .rte-toolbar button { padding: .25rem .4rem; font-size: .8rem; }
}

/* --- Team grid 2-col on tablet, 1-col on mobile ------------ */
@media (max-width: 768px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
}

/* --- Calendar fits small screens --------------------------- */
@media (max-width: 480px) {
    .calendar-grid { font-size: .78rem; }
    .calendar-day { min-height: 36px; padding: .2rem; }
    .calendar-nav { gap: .5rem; }
    .calendar-nav button { padding: .3rem .6rem; font-size: .85rem; }
}

/* --- Nav hamburger (public) -------------------------------- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--primary);
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-link { display: block; padding: .65rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
    .hamburger { display: flex; }
    .navbar { position: relative; }
    .nav-inner { flex-wrap: wrap; }
}

/* --- Footer columns stack on mobile ------------------------ */
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* --- Gallery grid 2-col on mobile -------------------------- */
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}

/* --- Carousel controls on mobile --------------------------- */
@media (max-width: 480px) {
    .carousel-btn { width: 32px; height: 32px; font-size: 1rem; }
    .carousel-dots { gap: .3rem; }
}

/* --- Contact form stacks on mobile ------------------------- */
@media (max-width: 600px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* --- Lang bar wraps on very small screens ------------------ */
@media (max-width: 400px) {
    .lang-bar-inner { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .lang-select { min-width: 160px; }
    .lang-powered { display: none; }
}

/* --- Contact layout already handled at 768px --------------- */
@media (max-width: 480px) {
    .map-embed iframe { height: 200px; }
}

/* --- Footer: already 1-col at 768px, extra tweaks ---------- */
@media (max-width: 480px) {
    .site-footer { padding: 2.5rem 0 0; }
    .footer-inner { gap: 1.5rem; }
    .social-icons { gap: 1rem; }
}

/* --- Modals full-screen on mobile -------------------------- */
@media (max-width: 560px) {
    .modal { padding: 1.25rem; max-height: 95vh; }
    .modal-overlay { padding: .5rem; align-items: flex-end; }
    .modal { border-radius: var(--radius) var(--radius) 0 0; max-width: 100%; }
}

/* --- Lightbox nav buttons smaller on mobile ---------------- */
@media (max-width: 480px) {
    .lightbox-prev, .lightbox-next { width: 36px; height: 36px; font-size: 1.2rem; }
    .lightbox-prev { left: .35rem; }
    .lightbox-next { right: .35rem; }
}

/* --- RTE toolbar wraps nicely on mobile -------------------- */
@media (max-width: 600px) {
    .rte-toolbar { gap: .2rem; padding: .4rem; }
    .rte-toolbar button { padding: .2rem .4rem; font-size: .78rem; min-width: 24px; }
    .rte-body { min-height: 200px; }
}

/* --- Calendar fits on small screens ------------------------ */
@media (max-width: 400px) {
    .cal-day { padding: .25rem; font-size: .75rem; }
    .cal-day-name { font-size: .65rem; }
    .calendar-header h3 { font-size: .95rem; }
}

/* --- Team grid: 2 cols on mobile --------------------------- */
@media (max-width: 480px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .team-card-body { padding: .75rem; }
}

/* --- Gallery grid already responsive, extra touch ---------- */
@media (max-width: 400px) {
    .gallery-filters { gap: .35rem; }
    .filter-btn { padding: .35rem .75rem; font-size: .8rem; }
}

/* --- Buttons: full-width on very small screens ------------- */
@media (max-width: 360px) {
    .btn { padding: .7rem 1.2rem; font-size: .88rem; }
    .container { padding: 0 .9rem; }
}

/* --- CTA section flex wrap --------------------------------- */
@media (max-width: 480px) {
    .section-primary [style*="display:flex"] { flex-direction: column; align-items: center; }
}

/* ── Email composer extras ─────────────────────────────────────────────────── */
.rte-toolbar select {
    padding: .2rem .4rem;
    border: 1px solid var(--gray-200);
    border-radius: 3px;
    font-size: .8rem;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-800);
    cursor: pointer;
}
.rte-sep {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: var(--gray-200);
    margin: 0 .2rem;
    vertical-align: middle;
}
.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    text-align: center;
}
.admin-stat-card .stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.admin-stat-card .stat-lbl { font-size: .85rem; color: var(--gray-600); margin-top: .3rem; }
