:root {
    /* Brand (Francmatic-inspired palette) */
    --primary: #0a1628;
    --primary-light: #152238;
    --secondary: #1e73be;
    --secondary-light: #3a8fd4;
    --secondary-dark: #155a96;
    --accent-teal: #5a9fb8;
    --accent-orange: #d4855a;
    --accent-gold: #c9a84c;
    --accent-green: #5aab6e;

    /* Neutrals */
    --bg: #ffffff;
    --light: #f5f7fa;
    --muted: #6b7280;
    --border: #e5e7eb;
    --dark: #1a1a2e;

    /* Aliases — keep old --blue / --gold tokens working everywhere
       (SiteSettings.blue_color / gold_color in base.html still override these) */
    --blue: var(--primary);
    --blue-light: var(--primary-light);
    --gold: var(--accent-gold);
    --gold-dark: #a8853a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0a1628 0%, #152238 100%);
    --gradient-blue: linear-gradient(135deg, #1e73be 0%, #155a96 100%);
    --gradient-hero: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(21,34,56,0.88) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 14px rgba(10,22,40,0.08);
    --shadow-md: 0 8px 30px rgba(10,22,40,0.10);
    --shadow-lg: 0 20px 60px rgba(10,22,40,0.15);
    --shadow-blue: 0 8px 25px rgba(30,115,190,0.25);

    --transition: all .3s ease;
    --radius: 6px;
    --radius-lg: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #222; background: var(--bg); line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; color: var(--blue); margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.2rem); }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.6vw, 1.7rem); }
h3 { font-size: clamp(1.1rem, .95rem + .7vw, 1.3rem); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: var(--blue); color: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; line-height: 1.1; color: #fff; }
.brand a { color: inherit; font-family: Georgia, serif; font-size: 1.5rem; font-weight: bold; display: inline-flex; align-items: center; gap: 10px; }
.brand .tag { font-size: .75rem; color: inherit; opacity: .85; margin-top: 2px; letter-spacing: .5px; }
.brand-logo { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold, #c9a84c); padding: 2px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); flex-shrink: 0; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #fff; padding: 8px 14px; border-radius: var(--radius); font-size: .95rem; transition: background .2s, color .2s; position: relative; }
.nav a:hover { background: rgba(201,168,76,0.18); color: var(--gold); }
.nav a.active { background: var(--gold); color: var(--blue); font-weight: 600; }
.nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 8px 12px; border-radius: var(--radius); cursor: pointer; font-size: 1rem; font-weight: 600; line-height: 1; }
.nav-toggle:hover { background: rgba(201,168,76,0.15); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); color: #fff; padding: clamp(48px, 6vw, 80px) 0; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(197,160,89,0.15), transparent 60%); z-index: 1; }
/* Hero with uploaded background image: kill the gradient and use a darker overlay for legibility */
.hero--image { background-color: var(--blue); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero--image::before { background: linear-gradient(180deg, rgba(15,22,32,0.65) 0%, rgba(15,22,32,0.78) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(1.85rem, 1.2rem + 3vw, 2.8rem); margin-bottom: 12px; }
.hero p { font-size: clamp(.98rem, .85rem + .5vw, 1.15rem); color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto 24px; }

/* Hero slider (rotating background images) */
.hero--slider { background-image: none !important; }
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero-slide.is-active { opacity: 1; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 10px 22px; border-radius: var(--radius); font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: all .2s; font-size: .95rem; }
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-danger:hover { background: #962d22; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-light { background: #fafbfc; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; }
.section-title .accent { width: 60px; height: 3px; background: var(--gold); margin: 0 auto; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/10; object-fit: cover; object-position: center 20%; width: 100%; background: #eee; }
.card-body { padding: 16px 18px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card-meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.card-excerpt { color: #444; font-size: .95rem; }

/* ---------- Photo grid ---------- */
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.photo-tile { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); cursor: pointer; position: relative; box-shadow: var(--shadow); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .3s; }
.photo-tile:hover img { transform: scale(1.06); }

/* Masonry: show photos at their full natural aspect ratio (no cropping). */
.photo-grid--full { display: block; column-count: 4; column-gap: 12px; }
.photo-grid--full .photo-tile {
    display: block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    aspect-ratio: auto;
    width: 100%;
    margin: 0 0 12px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.photo-grid--full .photo-tile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform .3s;
}
@media (max-width: 1100px) { .photo-grid--full { column-count: 3; } }
@media (max-width: 760px)  { .photo-grid--full { column-count: 2; } }
@media (max-width: 480px)  { .photo-grid--full { column-count: 1; } }

/* ---------- Filter pills ---------- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.filter-pills a { padding: 6px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: .9rem; color: var(--blue); background: #fff; }
.filter-pills a.active, .filter-pills a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- Event card ---------- */
.event-item { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 16px; box-shadow: var(--shadow); }
.event-date { background: var(--blue); color: #fff; text-align: center; border-radius: var(--radius); padding: 12px 8px; }
.event-date .day { font-size: 2rem; font-weight: bold; line-height: 1; color: var(--gold); }
.event-date .month { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.event-date .year { font-size: .75rem; color: rgba(255,255,255,0.7); }
.event-info h3 { margin-bottom: 4px; }
.event-info .meta { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }

/* ---------- Forms ---------- */
.form-control, input[type=text], input[type=email], input[type=password], input[type=url], input[type=datetime-local], input[type=tel], input[type=number], textarea, select { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 16px; font-family: inherit; background: #fff; }
.form-control:focus, input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,160,89,0.15); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--blue); font-size: .9rem; }
.form-group .helptext { color: var(--muted); font-size: .82rem; margin-top: 4px; display: block; }
.form-group .errorlist { color: #c0392b; font-size: .85rem; margin: 4px 0 0; padding-left: 18px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border-left: 4px solid; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-color: #2e7d32; }
.alert-error, .alert-danger { background: #fdecea; color: #b71c1c; border-color: #c62828; }
.alert-info { background: #e3f2fd; color: #0d47a1; border-color: #1565c0; }
.alert-warning { background: #fff8e1; color: #6c4f00; border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: rgba(255,255,255,0.85); padding: 40px 0 20px; margin-top: 60px; }
.footer-verse { font-style: italic; color: var(--gold); text-align: center; font-size: 1.1rem; padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; font-family: Georgia, serif; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 24px; }
.footer-grid h4 { color: var(--gold); font-size: 1rem; margin-bottom: 12px; }
.footer-grid a { color: rgba(255,255,255,0.75); display: block; padding: 3px 0; font-size: .9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: .85rem; color: rgba(255,255,255,0.55); padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .footer-powered { margin-left: auto; font-size: .72rem; color: inherit; letter-spacing: .2px; opacity: .9; }
.footer-bottom .footer-powered a { color: inherit; font-weight: 600; text-decoration: none; }
.footer-bottom .footer-powered a:hover { text-decoration: underline; opacity: 1; }
@media (max-width: 600px) { .footer-bottom { justify-content: center; text-align: center; } .footer-bottom .footer-powered { margin-left: 0; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2rem; background: transparent; border: none; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: #fff; border: none; padding: 14px 18px; font-size: 1.4rem; cursor: pointer; border-radius: var(--radius); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.05rem; text-align: justify; text-justify: inter-word; hyphens: auto; }
.prose p, .prose li { text-align: justify; text-justify: inter-word; hyphens: auto; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { text-align: left; hyphens: manual; }
.prose img { border-radius: var(--radius); margin: 16px 0; }
.prose blockquote { border-left: 4px solid var(--gold); padding: 8px 18px; color: #444; font-style: italic; background: #fafafa; margin: 18px 0; text-align: left; }

/* About page wider reading body — uses container width to remove desktop side whitespace */
.about-body { max-width: 1080px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; color: #2b2f36; text-align: justify; text-justify: inter-word; hyphens: auto; }
.about-body p { margin: 0 0 14px; }
.about-body h2, .about-body h3 { text-align: left; hyphens: manual; color: var(--blue); margin-top: 1.4em; }
.about-body ul { padding-left: 1.2em; text-align: left; }
.about-body li { margin-bottom: 8px; text-align: left; hyphens: manual; }
.about-body blockquote { border-left: 4px solid var(--gold); padding: 10px 20px; margin: 22px 0; color: #444; font-style: italic; background: #fafafa; text-align: left; }
.about-body img { border-radius: var(--radius); margin: 18px 0; max-width: 100%; }
/* Two-column reading on wide desktops — paragraphs flow naturally; lists stay single-column */
@media (min-width: 1024px) {
    .about-body--cols { columns: 2; column-gap: 48px; }
    .about-body--cols > * { break-inside: avoid; }
    .about-body--cols ul, .about-body--cols ol, .about-body--cols blockquote, .about-body--cols img { column-span: all; break-inside: avoid; }
}

/* About-page Section blocks (image + text), alternating sides on desktop */
.about-section { padding: 64px 0; }
.about-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.about-row--img-right { grid-template-columns: 1fr 1.05fr; }
.about-row-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; object-position: center 20%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; }
.about-row-text { font-size: 1.05rem; line-height: 1.75; color: #2b2f36; }
.about-row-text h2 { color: var(--blue); margin: 0 0 14px; font-size: clamp(1.4rem, 1.05rem + 1vw, 1.85rem); }
.about-row-body p { margin: 0 0 14px; }
.about-row-body ul { padding-left: 1.2em; }
.about-row-body li { margin-bottom: 8px; }
.about-row-body blockquote { border-left: 4px solid var(--gold); padding: 8px 18px; background: #fafafa; font-style: italic; margin: 18px 0; }
/* Image-right places text first in source order */
.about-row--img-right .about-row-media { order: 2; }
.about-row--img-right .about-row-text  { order: 1; }
/* If a section has no image, let text span full width */
.about-row:not(:has(.about-row-media)) { grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; }
@media (max-width: 860px) {
    .about-section { padding: 44px 0; }
    .about-row, .about-row--img-right { grid-template-columns: 1fr; gap: 22px; }
    .about-row--img-right .about-row-media,
    .about-row--img-right .about-row-text { order: 0; }
    .about-row-media img { max-height: 320px; aspect-ratio: 16/10; }
}

/* ---------- Contact icons ---------- */
.contact-line { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.contact-ico { width: 16px; height: 16px; flex: 0 0 16px; color: var(--gold); }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0; }
.contact-detail-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: rgba(201, 168, 76, 0.12); }
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail strong { color: var(--blue); }

/* ---------- Contact page polish ---------- */
.contact-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 36px; }
.contact-quick-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 3px solid var(--gold); text-decoration: none; color: var(--blue); transition: transform .18s, box-shadow .18s, border-color .18s; }
.contact-quick-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(10,22,40,.12); border-left-color: var(--blue); }
.contact-quick-card .cqc-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(201,168,76,0.14); color: var(--gold); margin-bottom: 6px; }
.contact-quick-card .cqc-icon svg { width: 22px; height: 22px; }
.contact-quick-card .cqc-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.contact-quick-card .cqc-value { font-weight: 600; font-size: 1rem; word-break: break-word; }
.contact-quick-card--whatsapp { border-left-color: #25D366; }
.contact-quick-card--whatsapp .cqc-icon { background: rgba(37,211,102,0.14); color: #25D366; }
.contact-quick-card--whatsapp:hover { border-left-color: #1ea854; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; display: flex; flex-direction: column; }
.contact-form-head h2 { margin: 0 0 6px; color: var(--blue); font-size: 1.4rem; }
.contact-form-head p { color: var(--muted); margin: 0 0 22px; }
.contact-form { display: flex; flex-direction: column; flex: 1; }
.contact-form .btn-lg { padding: 14px 24px; font-size: 1rem; }
.contact-form-foot { text-align: center; color: var(--muted); font-size: .82rem; margin: 14px 0 0; }

.contact-info-panel { background: #fff; color: var(--text, #222); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; display: flex; flex-direction: column; height: 100%; }
.contact-info-panel h3 { margin: 0 0 18px; color: var(--blue); font-size: 1.15rem; padding-bottom: 12px; border-bottom: 1px solid var(--border, #eee); }
.contact-info-panel .contact-detail strong { color: var(--blue); }
.contact-info-panel .contact-detail a { color: var(--blue); }
.contact-info-panel .contact-detail a:hover { color: var(--gold); }
.contact-info-panel .contact-detail-icon { background: rgba(201,168,76,0.12); }

.contact-socials { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border, #eee); }
.contact-socials-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
.contact-socials-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-chip { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(201,168,76,0.12); color: var(--gold); transition: background .18s, color .18s, transform .18s; }
.social-chip:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.social-chip svg { width: 18px; height: 18px; }

.contact-map { margin-top: 40px; }
.contact-map-head { color: var(--blue); margin: 0 0 14px; font-size: 1.15rem; }
.contact-map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- About preview on home ---------- */
.about-preview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.about-preview-img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; object-position: center 20%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-preview-text { max-width: none; font-size: 1.02rem; }
@media (max-width: 760px) { .about-preview-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Footer-specific contact rows (override .footer-grid a display:block) */
.footer-grid a.contact-line,
.footer-grid span.contact-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; line-height: 1.3; word-break: break-word; }
.footer-grid .contact-line .contact-ico-wrap { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: rgba(201,168,76,0.15); color: var(--gold); transition: background .2s, color .2s; }
.footer-grid .contact-line:hover .contact-ico-wrap { background: var(--gold); color: var(--blue); }
.footer-grid .contact-line .contact-ico { width: 14px; height: 14px; flex: 0 0 14px; color: inherit; }
.footer-grid .contact-line .contact-text { flex: 1; min-width: 0; }

/* ---------- Who We Are (About page) ---------- */
.whoweare { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.whoweare-text { max-width: none; font-size: 1.02rem; }
.whoweare-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.whoweare-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.whoweare-photos img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1/1; transition: transform .25s ease; }
.whoweare-photos img:hover { transform: scale(1.02); }
@media (max-width: 760px) {
    .whoweare { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
.table th { background: var(--blue); color: var(--gold); font-weight: 600; text-transform: uppercase; font-size: .78rem; letter-spacing: .5px; }
.table tr:hover td { background: #fafbfc; }
.table .thumb { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-green { background: #e8f5e9; color: #1b5e20; }
.badge-gray { background: #eceff1; color: #455a64; }
.badge-gold { background: rgba(197,160,89,0.15); color: var(--gold-dark); }

/* ---------- Responsive ---------- */
/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .container { padding: 0 22px; }
    .section { padding: 50px 0; }
    .grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
    .grid-4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
    .contact-grid { gap: 22px; }
    .contact-form-panel, .contact-info-panel { padding: 28px; }
    .about-preview-grid { gap: 28px; }
}

/* Mobile (≤760px) */
@media (max-width: 760px) {
    .site-header .container { padding: 12px 16px; gap: 12px; }
    .brand a { font-size: 1.25rem; }
    .brand .tag { font-size: .7rem; }
    .brand-logo { width: 38px; height: 38px; }
    .nav-toggle { display: inline-block; }
    .nav { display: none; width: 100%; flex-direction: column; gap: 2px; padding: 8px 0 4px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 6px; order: 99; }
    .nav.open { display: flex; }
    .nav a { padding: 12px 14px; font-size: 1rem; border-radius: var(--radius); min-height: 44px; display: flex; align-items: center; }
    .nav a.active { background: var(--gold); color: var(--blue); }
    .nav a.active::after { display: none; }

    .hero { padding: 50px 0; }
    .section { padding: 40px 0; }
    .container { padding: 0 16px; }
    .btn { padding: 11px 20px; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .btn-sm { padding: 8px 14px; font-size: .85rem; min-height: 38px; }

    .grid-3 { grid-template-columns: 1fr; gap: 18px; }
    .grid-4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }

    .section-title { margin-bottom: 28px; }
    .section-title h2 { font-size: 1.55rem; }

    .event-item { grid-template-columns: 76px 1fr; gap: 14px; padding: 14px; }
    .event-date .day { font-size: 1.65rem; }

    .contact-form-panel, .contact-info-panel { padding: 22px; }
    .contact-map-frame iframe { height: 300px !important; }
    .contact-detail { gap: 10px; }
    .contact-detail-icon { width: 32px; height: 32px; flex: 0 0 32px; }

    .footer-grid h4 { font-size: .95rem; margin-bottom: 8px; }
    .footer-verse { font-size: 1rem; padding: 16px; }

    /* Make data tables horizontally scrollable on small screens */
    .table-responsive, .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
    .hero { padding: 38px 0; }
    .hero p { font-size: .98rem; }
    .section-title h2 { font-size: 1.35rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 18px; text-align: left; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .card-body { padding: 14px 14px; }
    .card-body h3 { font-size: 1.05rem; }
    .event-item { grid-template-columns: 64px 1fr; }
    .event-date .day { font-size: 1.45rem; }
    .event-date .month { font-size: .75rem; }
    .btn { width: auto; }
    .btn-block-sm { display: block; width: 100%; }
    .contact-form-panel, .contact-info-panel { padding: 18px; border-radius: var(--radius); }
    .filter-pills { gap: 6px; }
    .filter-pills a { padding: 5px 12px; font-size: .85rem; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes uf-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes uf-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Hero contents animate immediately on page load */
.hero .container > * { animation: uf-fadeUp .8s ease both; }
.hero .container > *:nth-child(2) { animation-delay: .12s; }
.hero .container > *:nth-child(3) { animation-delay: .24s; }
.hero .container > *:nth-child(4) { animation-delay: .36s; }

/* Scroll-reveal: things below the fold start hidden, IntersectionObserver toggles .is-visible */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hover micro-interactions */
.btn { transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s; }
.btn-primary:hover, .btn-outline:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.photo-tile { transition: transform .25s ease, box-shadow .25s ease; }
.photo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero .container > * { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn-primary:hover, .btn-outline:hover, .card:hover, .photo-tile:hover { transform: none; }
}

/* ---------- Footer social icons (Malongwe-style) ---------- */
.footer-socials a { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,0.08); color:inherit; transition:background .25s ease, transform .25s ease, color .25s ease; }
.footer-socials a:hover { background:var(--gold, #c79a3a); color:#fff; transform:translateY(-2px); }
.footer-socials svg { display:block; }

/* -- Home: Upcoming events preview (balanced when few items) -- */
.events-preview-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) {
    .events-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .events-preview-grid { grid-template-columns: 1fr; }
}
.events-preview--count-1 .events-preview-grid {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}
.events-preview--count-2 .events-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .events-preview--count-1 .events-preview-grid,
    .events-preview--count-2 .events-preview-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}
.events-preview .event-card .card-body h3 { font-size: 1.45rem; line-height: 1.25; margin-bottom: 10px; }
.events-preview .event-card .card-meta { font-size: 1rem; margin-bottom: 12px; }
.events-preview .event-card .card-excerpt { font-size: 1.05rem; line-height: 1.55; }
.events-preview--count-1 .event-card .card-body h3 { font-size: 1.9rem; }
.events-preview--count-1 .event-card .card-meta { font-size: 1.1rem; }
.events-preview--count-1 .event-card .card-excerpt { font-size: 1.15rem; }
.events-preview--count-1 .event-card .card-img { max-height: 360px; object-fit: cover; }

/* -- Home: Gallery preview (6 per row desktop x 2 rows = 12; mobile 3 x 2 = 6) -- */
.photo-grid--home {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.photo-grid--home .photo-tile { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); display: block; }
.photo-grid--home .photo-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .35s ease; }
.photo-grid--home .photo-tile:hover img { transform: scale(1.05); }
@media (max-width: 900px) {
    .photo-grid--home { grid-template-columns: repeat(3, 1fr); }
    /* Hide photos 7-12 on mobile so we show 6 only (3x2) */
    .photo-grid--home .photo-tile--7,
    .photo-grid--home .photo-tile--8,
    .photo-grid--home .photo-tile--9,
    .photo-grid--home .photo-tile--10,
    .photo-grid--home .photo-tile--11,
    .photo-grid--home .photo-tile--12 { display: none; }
}

/* ---------- Team page ---------- */
.team-section .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.team-section .team-member {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    text-align: center;
}
.team-section .team-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10,22,40,0.06), rgba(201,168,76,0.12));
    display: flex; align-items: center; justify-content: center;
}
.team-section .team-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .35s ease;
}
.team-section .team-member:hover .team-img img { transform: scale(1.05); }
.team-section .team-img-placeholder { color: rgba(10,22,40,0.25); }
.team-section .team-info { padding: 22px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.team-section .team-info h3 { margin: 0 0 4px; font-size: 1.2rem; color: var(--blue); }
.team-section .team-info .position {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.team-section .team-info p { color: #444; font-size: .92rem; line-height: 1.55; margin: 0 0 16px; flex: 1; }
.team-section .team-social {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: auto;
}
.team-section .team-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(10,22,40,0.06); color: var(--blue);
    transition: background .25s ease, color .25s ease, transform .2s ease;
}
.team-section .team-social a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

.team-intro .prose { color: #444; font-size: 1.02rem; line-height: 1.65; }

.team-cta { background: linear-gradient(135deg, var(--blue), #112742); color: #fff; }
.team-cta h2 { color: #fff; }
.team-cta p { color: rgba(255,255,255,0.85); }

@media (max-width: 600px) {
    .team-section .team-grid { grid-template-columns: 1fr; gap: 20px; }
}
