/* ==========================================================================
   NEW UI REDESIGN — Vithayathil Charities
   All selectors are scoped under .theme-site (set on <body> in
   layouts/app.blade.php) so they win over single-class Tailwind utilities
   injected at runtime by the Tailwind CDN, without needing !important.

   Images referenced here live in public/images/theme/. Every image layer
   has a gradient fallback, so the page still looks finished until the
   Figma exports are added.
   ========================================================================== */

:root {
    --rd-navy-950: #061630;
    --rd-navy-900: #081c36;
    --rd-navy-800: #0b2545;
    --rd-navy-700: #12345f;
    --rd-blue-600: #1e4b8f;
    --rd-gold-100: #fff4d6;
    --rd-gold-300: #fbd977;
    --rd-gold-400: #f8c846;
    --rd-gold-500: #f2b632;
    --rd-gold-600: #d8981a;
    --rd-ink: #10233f;
    --rd-body: #55667c;
    --rd-muted: #8494a8;
    --rd-line: #e4eaf2;
    --rd-bg-soft: #f4f7fb;
    --rd-white: #ffffff;

    --rd-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --rd-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --rd-ui: "Manrope", "Inter", system-ui, sans-serif;
    --rd-script: "Parisienne", "Cormorant Garamond", cursive;

    --rd-radius-sm: 10px;
    --rd-radius: 16px;
    --rd-radius-lg: 22px;
    --rd-shadow: 0 10px 30px -12px rgba(11, 37, 69, 0.18);
    --rd-shadow-lg: 0 24px 50px -20px rgba(11, 37, 69, 0.35);

    --rd-container: 1240px;
    --rd-gutter: 20px;
    --rd-section-y: 56px;
    --rd-header-h: 72px;
}
.header-logo{
    height: 40px;
}
.text-gold-400{
    color:var(--rd-gold-400);
}
@media (min-width: 768px) {
    :root { --rd-gutter: 32px; --rd-section-y: 72px; }
}
@media (min-width: 1024px) {
    :root { --rd-gutter: 40px; --rd-section-y: 96px; --rd-header-h: 84px; }
}

/* ---------- Base ---------- */
.theme-site {
    font-family: var(--rd-sans);
    color: var(--rd-ink);
    background-color: var(--rd-white);
}

.theme-site .theme-container {
    width: 100%;
    max-width: calc(var(--rd-container) + var(--rd-gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--rd-gutter);
}

.theme-site .theme-section {
    position: relative;
    padding-block: var(--rd-section-y);
    overflow: hidden;
}

.theme-site .theme-section--soft { background-color: var(--rd-bg-soft); }
.theme-site .theme-section--navy { background-color: var(--rd-navy-800); color: var(--rd-white); }

/* Eyebrow label: "— WELCOME TO OUR FAMILY" */
.theme-site .theme-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--rd-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rd-navy-700);
    margin-bottom: 16px;
}
.theme-site .theme-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background-color: var(--rd-gold-500);
    flex-shrink: 0;
}
.theme-site .theme-eyebrow--light { color: var(--rd-gold-400); }
.theme-site .theme-eyebrow--center { justify-content: center; }

.theme-site .theme-heading {
    font-family: var(--rd-serif);
    font-weight: 500;
    font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--rd-ink);
    margin: 0;
}
.theme-site .theme-heading em { font-style: italic; color: var(--rd-gold-500); }
.theme-site .theme-heading--light { color: var(--rd-white); }

.theme-site .theme-lead {
    font-size: 15px;
    line-height: 1.75;
    color: var(--rd-body);
    margin: 16px 0 0;
}
.theme-site .theme-lead--light { color: rgba(255, 255, 255, 0.75); }

.theme-site .theme-script {
    font-family: var(--rd-script);
    font-style: normal;
    font-weight: 400;
    color:#0F4F93;
    line-height: 1.2;
}

.theme-site .theme-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 40px;
}
.theme-site .theme-section-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.theme-site .theme-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rd-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--rd-navy-700);
    white-space: nowrap;
    transition: color 0.2s ease, gap 0.2s ease;
}
.theme-site .theme-link-arrow:hover { color: var(--rd-gold-600); gap: 12px; }
.theme-site .theme-link-arrow--light { color: var(--rd-white); }
.theme-site .theme-link-arrow--light:hover { color: var(--rd-gold-400); }

/* ---------- Buttons ---------- */
.theme-site .theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--rd-ui);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.theme-site .theme-btn:hover { transform: translateY(-1px); }
.theme-site .theme-btn i { font-size: 12px; }

.theme-site .theme-btn--gold { background-color: var(--rd-gold-400); color: var(--rd-ink); box-shadow: 0 10px 24px -12px rgba(242, 182, 50, 0.9); }
.theme-site .theme-btn--gold:hover { background-color: var(--rd-gold-500); }
.theme-site .theme-btn--navy { background-color: var(--rd-navy-800); color: var(--rd-white); }
.theme-site .theme-btn--navy:hover { background-color: var(--rd-navy-700); }
.theme-site .theme-btn--white { background-color: var(--rd-white); color: var(--rd-ink); }
.theme-site .theme-btn--white:hover { background-color: var(--rd-gold-100); }
.theme-site .theme-btn--ghost { background-color: transparent; color: var(--rd-white); border-color: rgba(255, 255, 255, 0.45); }
.theme-site .theme-btn--ghost:hover { background-color: rgba(255, 255, 255, 0.1); border-color: var(--rd-white); }
.theme-site .theme-btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }

.theme-site .theme-btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Decorations ---------- */
.theme-site .theme-deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 14px solid var(--rd-gold-400);
    pointer-events: none;
    z-index: 0;
}
.theme-site .theme-deco-dots {
    position: absolute;
    width: 96px;
    height: 96px;
    background-image: radial-gradient(var(--rd-blue-600) 2.5px, transparent 3px);
    background-size: 16px 16px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.theme-site .theme-deco-dots--gold { background-image: radial-gradient(var(--rd-gold-500) 2.5px, transparent 3px); }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.theme-site .theme-topbar {
    background-color: var(--rd-navy-900);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}
.theme-site .theme-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    min-height: 38px;
    padding-block: 8px;
}
.theme-site .theme-topbar__info,
.theme-site .theme-topbar__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
}
.theme-site .theme-topbar__links { gap: 6px 12px; }
.theme-site .theme-topbar i { color: var(--rd-gold-400); margin-right: 6px; }
.theme-site .theme-topbar__link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}
.theme-site .theme-topbar__link:hover { color: var(--rd-gold-400); }
.theme-site .theme-topbar__sep { color: rgba(255, 255, 255, 0.25); }
.theme-site .theme-topbar__form { display: inline; margin: 0; }

@media (max-width: 767px) {
    .theme-site .theme-topbar__inner { justify-content: center; text-align: center; }
    .theme-site .theme-topbar__phone,
    .theme-site .theme-topbar__support,
    .theme-site .theme-topbar__support + .theme-topbar__sep { display: none; }
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.theme-site .theme-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rd-line);
    box-shadow: 0 6px 20px -16px rgba(11, 37, 69, 0.4);
}
.theme-site .theme-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--rd-header-h);
}
.theme-site .theme-header__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.theme-site .theme-header__brand .header-logo { height: 44px; width: auto; }
.theme-site .theme-header__actions { display: flex; align-items: center; gap: 12px; }

.theme-site .theme-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--rd-line);
    background: var(--rd-white);
    color: var(--rd-ink);
    font-size: 18px;
    cursor: pointer;
}

.theme-site .theme-nav { display: none; }

.theme-site .theme-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    background: none;
    border: 0;
    font-family: var(--rd-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--rd-ink);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.theme-site .theme-nav__link i { font-size: 10px; transition: transform 0.2s ease; }
.theme-site .theme-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--rd-gold-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.theme-site .theme-nav__link:hover { color: var(--rd-navy-700); }
.theme-site .theme-nav__link:hover::after,
.theme-site .theme-nav__link.is-active::after { transform: scaleX(1); }
.theme-site .theme-nav__link.is-active { color: var(--rd-navy-800); }

.theme-site .theme-nav__dropdown { position: relative; }
.theme-site .theme-nav__dropdown.is-open .theme-nav__link i { transform: rotate(180deg); }
.theme-site .theme-nav__menu {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 220px;
    padding: 10px;
    margin-top: 8px;
    background: var(--rd-white);
    border: 1px solid var(--rd-line);
    border-radius: 14px;
    box-shadow: var(--rd-shadow-lg);
    z-index: 50;
}
.theme-site .theme-nav__menu::before {
    /* hover bridge so the menu does not close while moving the pointer */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}
.theme-site .theme-nav__menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rd-ink);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-site .theme-nav__menu a i { width: 16px; color: var(--rd-gold-500); font-size: 13px; }
.theme-site .theme-nav__menu a:hover,
.theme-site .theme-nav__menu a.is-active { background-color: var(--rd-bg-soft); color: var(--rd-navy-700); }

/* Mobile panel */
.theme-site .theme-mobile-menu {
    border-top: 1px solid var(--rd-line);
    background: var(--rd-white);
    padding: 12px var(--rd-gutter) 24px;
    max-height: calc(100vh - var(--rd-header-h));
    overflow-y: auto;
}
.theme-site .theme-mobile-menu__group-label {
    display: block;
    margin: 16px 12px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rd-gold-600);
}
.theme-site .theme-mobile-menu__link {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    font-family: var(--rd-ui);
    font-size: 15px;
    font-weight: 600;
    color: var(--rd-ink);
}
.theme-site .theme-mobile-menu__link:hover,
.theme-site .theme-mobile-menu__link.is-active { background-color: var(--rd-bg-soft); color: var(--rd-navy-700); }
.theme-site .theme-mobile-menu__footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rd-line); }
.theme-site .theme-mobile-menu__footer .theme-btn { width: 100%; }

@media (max-width: 639px) {
    .theme-site .theme-header__donate { display: none; }
    .theme-site .theme-header__brand .header-logo { height: 38px; }
}

/* ---------- Brand wordmark (emblem + name set in Cinzel) ---------- */
.theme-site .theme-header__brand { gap: 14px; text-decoration: none; }
.theme-site .theme-brand__mark {
    height: 64px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(11, 37, 69, 0.28));
    transition: transform 0.25s ease;
}
.theme-site .theme-header__brand:hover .theme-brand__mark { transform: rotate(-6deg) scale(1.04); }
.theme-site .theme-brand__text { display: flex; flex-direction: column; line-height: 1; }
.theme-site .theme-brand__name {
    font-family: "Cinzel", var(--rd-serif);
    font-weight: 700;
    font-size: 27px;
    letter-spacing: 0.04em;
    color: var(--rd-navy-900, #0b2545);
}
.theme-site .theme-brand__tag {
    /* letters spread edge to edge: same width as the name above */
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    padding: 0 0.04em 0 0.06em;   /* optical alignment with the serif caps */
    font-family: var(--rd-ui);
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--rd-gold-600, #b8860b);
}
.theme-site .theme-header__brand:hover .theme-brand__name { color: var(--rd-blue-600, #1d4ed8); }
@media (max-width: 1279px) and (min-width: 1024px) {
    .theme-site .theme-brand__name { font-size: 23px; }
    .theme-site .theme-brand__mark { height: 56px; }
}
@media (max-width: 639px) {
    .theme-site .theme-brand__mark { height: 50px; }
    .theme-site .theme-brand__name { font-size: 21px; }
    .theme-site .theme-brand__tag { font-size: 9px; margin-top: 4px; }
}

@media (min-width: 1024px) {
    .theme-site .theme-nav { display: flex; align-items: center; gap: 22px; }
    .theme-site .theme-header__toggle,
    .theme-site .theme-mobile-menu { display: none; }
}
@media (min-width: 1280px) {
    .theme-site .theme-nav { gap: 30px; }
}

/* Flash alerts keep their existing markup; only soften the look */
.theme-site .theme-alert { font-family: var(--rd-ui); }

/* ==========================================================================
   HOME — HERO  (light overlay, navy text — matches Figma)
   ========================================================================== */
.theme-site .theme-hero {
    position: relative;
    background-color: var(--rd-bg-soft);
    color: var(--rd-ink);
    overflow: hidden;
}
.theme-site .theme-hero__stage { position: relative; width: 100%; height: 600px; }
.theme-site .theme-hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center right; }
.theme-site .theme-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg,
        rgba(244, 247, 251, 0.97) 0%,
        rgba(244, 247, 251, 0.92) 32%,
        rgba(244, 247, 251, 0.6) 52%,
        rgba(244, 247, 251, 0.15) 70%,
        rgba(244, 247, 251, 0) 82%);
}
.theme-site .theme-hero__content { max-width: 640px; }
.theme-site .theme-hero .theme-eyebrow { color: var(--rd-blue-600); margin-bottom: 20px; }
.theme-site .theme-hero .theme-eyebrow::before { background-color: var(--rd-blue-600); height: 1px; }
.theme-site .theme-hero__title {
    font-family: var(--rd-serif);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: var(--rd-navy-900);
    margin: 0;
}
.theme-site .theme-hero__title em { color: var(--rd-blue-600); }
.theme-site .theme-hero__text {
    max-width: 500px;
    margin: 24px 0 0;
    font-size: 15px;
    line-height: 1.75;
    color: #3b4a5e;
}
.theme-site .theme-hero .theme-btn-group { margin-top: 30px; }
.theme-site .theme-hero__quote {
    display: block;
    margin-top: 44px;
    margin-left: -8px;
    font-family: var(--rd-script);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
    line-height: 1.15;
    color: var(--rd-blue-600);
    transform: rotate(-4deg);
    transform-origin: left center;
}

.theme-site .theme-hero__controls {
    position: absolute;
    right: max(var(--rd-gutter), calc((100% - var(--rd-container)) / 2));
    bottom: 32px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-site .theme-hero__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background-color: var(--rd-gold-400);
    color: var(--rd-ink);
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.theme-site .theme-hero__arrow:hover { background-color: var(--rd-gold-500); transform: scale(1.05); }
.theme-site .theme-hero__dots { display: flex; align-items: center; gap: 6px; margin-right: 6px; }
.theme-site .theme-hero__dot { height: 6px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; transition: width 0.3s ease, background-color 0.3s ease; }
.theme-site .theme-hero__dot.is-active { width: 26px; background-color: var(--rd-gold-400); }
.theme-site .theme-hero__dot:not(.is-active) { width: 6px; background-color: rgba(255, 255, 255, 0.8); }

@media (min-width: 768px) { .theme-site .theme-hero__stage { height: 620px; } }
@media (min-width: 1024px) {
    .theme-site .theme-hero__stage { height: 680px; }
    .theme-site .theme-hero__controls { bottom: 96px; }
}
@media (max-width: 767px) {
    /* image sits behind a stronger wash so the navy text stays readable */
    .theme-site .theme-hero__overlay {
        background: linear-gradient(180deg, rgba(244, 247, 251, 0.94) 0%, rgba(244, 247, 251, 0.86) 70%, rgba(244, 247, 251, 0.7) 100%);
    }
    .theme-site .theme-hero__quote { margin-top: 32px; margin-left: 10px; transform: rotate(-3deg); }
    .theme-site .theme-hero__controls { bottom: 20px; }
    .theme-site .theme-hero__dot:not(.is-active) { background-color: rgba(11, 37, 69, 0.3); }
}

/* ---------- Marquee ribbon ---------- */
.theme-site .theme-marquee {
    background-color: var(--rd-navy-800);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    white-space: nowrap;
}
.theme-site .theme-marquee__track {
    display: inline-flex;
    animation: theme-marquee 40s linear infinite;
}
.theme-site .theme-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 14px 11px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rd-white);
}
.theme-site .theme-marquee__item::after { content: "\2726"; color: var(--rd-gold-400); letter-spacing: 0; }
@keyframes theme-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .theme-site .theme-marquee__track { animation: none; } }

/* ==========================================================================
   HOME — WELCOME
   ========================================================================== */
.theme-site .theme-welcome__grid { display: grid; gap: 48px; align-items: center; }
.theme-site .theme-welcome__script { display: block; margin: 24px 0 28px; font-size: 1.6rem; }
.theme-site .theme-welcome__cards { display: grid; grid-template-columns: 1fr; gap: 20px; }

.theme-site .theme-feature-card {
    display: flex;
    flex-direction: column;
    background: var(--rd-white);
    border-radius: var(--rd-radius);
    box-shadow: var(--rd-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.theme-site .theme-feature-card:hover { transform: translateY(-4px); box-shadow: var(--rd-shadow-lg); }
.theme-site .theme-feature-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}
.theme-site .theme-feature-card__icon {
    position: absolute;
    left: 16px;
    bottom: -18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--rd-white);
    color: var(--rd-navy-700);
    font-size: 14px;
    box-shadow: var(--rd-shadow);
}
.theme-site .theme-feature-card__body { padding: 28px 18px 20px; }
.theme-site .theme-feature-card__title { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--rd-ink); }
.theme-site .theme-feature-card__text { margin: 0; font-size: 13px; line-height: 1.6; color: var(--rd-body); }

.theme-site .theme-media--kudumbayogam { background-image: url("../images/theme/welcome-kudumbayogam.jpg"), linear-gradient(135deg, #1e4b8f, #0b2545); }
.theme-site .theme-media--endowments { background-image: url("../images/theme/welcome-endowments.jpg"), linear-gradient(135deg, #f8c846, #d8981a); }
.theme-site .theme-media--medical { background-image: url("../images/theme/welcome-medical.jpg"), linear-gradient(135deg, #12345f, #1e4b8f); }
.theme-site .theme-media--archives { background-image: url("../images/theme/welcome-archives.jpg"), linear-gradient(135deg, #0b2545, #061630); }

@media (min-width: 640px) {
    .theme-site .theme-welcome__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .theme-site .theme-welcome__grid { grid-template-columns: 5fr 7fr; gap: 64px; }
    .theme-site .theme-welcome__cards { gap: 24px; }
}

/* ==========================================================================
   HOME — BRANCHES
   ========================================================================== */
.theme-site .theme-branches { background-color: var(--rd-bg-soft); }
.theme-site .theme-branches .theme-container { position: relative; z-index: 1; }
.theme-site .theme-branches__ring { width: 200px; height: 200px; top: -80px; left: -90px; }
.theme-site .theme-branches__people {
    position: absolute;
    right: 0px;
    bottom: 0px;
    font-size: 72px;
    color: var(--rd-blue-600);
    pointer-events: none;
}
.theme-site .theme-branches__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.theme-site .theme-branch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    background: var(--rd-white);
    border: 1px solid var(--rd-line);
    border-radius: 14px;
    box-shadow: 0 6px 20px -14px rgba(11, 37, 69, 0.3);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.theme-site .theme-branch-card__label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 99px;
    background-color: var(--rd-gold-100);
    color: var(--rd-gold-600);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.theme-site .theme-branch-card__name {
    display: block;
    font-family: var(--rd-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--rd-ink);
}
.theme-site .theme-branch-card__sub { display: block; margin-top: 4px; font-size: 12px; color: var(--rd-muted); }
.theme-site .theme-branch-card__arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--rd-gold-400);
    color: var(--rd-ink);
    font-size: 12px;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.theme-site .theme-branch-card:hover {
    background: linear-gradient(135deg, var(--rd-gold-300), var(--rd-gold-400));
    border-color: var(--rd-gold-400);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -16px rgba(216, 152, 26, 0.7);
}
.theme-site .theme-branch-card:hover .theme-branch-card__label { background-color: rgba(255, 255, 255, 0.6); color: var(--rd-ink); }
.theme-site .theme-branch-card:hover .theme-branch-card__arrow { background-color: var(--rd-white); }
.theme-site .theme-branch-card:hover .theme-branch-card__sub { color: var(--rd-ink); }

@media (min-width: 640px) { .theme-site .theme-branches__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .theme-site .theme-branches__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (max-width: 767px) { .theme-site .theme-branches__people { display: none; } }

/* ==========================================================================
   HOME — STATS BAND
   ========================================================================== */
.theme-site .theme-stats { background-color: var(--rd-navy-800); color: var(--rd-white); }
.theme-site .theme-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.theme-site .theme-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 12px;
}
.theme-site .theme-stat__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(248, 200, 70, 0.7);
    color: var(--rd-gold-400);
    font-size: 15px;
}
.theme-site .theme-stat__value { display: block; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.1; }
.theme-site .theme-stat__label { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

@media (max-width: 1023px) {
    .theme-site .theme-stat:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
}
@media (min-width: 1024px) {
    .theme-site .theme-stats__grid { grid-template-columns: repeat(4, 1fr); }
    .theme-site .theme-stat { padding: 36px 28px; }
    .theme-site .theme-stat + .theme-stat { border-left: 1px solid rgba(255, 255, 255, 0.1); }
}

/* ==========================================================================
   HOME — DONATE BANNER
   ========================================================================== */
.theme-site .theme-donate {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 460px;
    padding-block: var(--rd-section-y);
    color: var(--rd-white);
    background-color: var(--rd-navy-800);
    background-image:
        linear-gradient(90deg, rgba(6, 22, 48, 0.95) 0%, rgba(8, 28, 54, 0.72) 50%, rgba(8, 28, 54, 0.25) 100%),
        url("../images/theme/donate-building.jpg");
    background-size: cover;
    background-position: center 40%;
}
.theme-site .theme-donate__content { max-width: 560px; }
.theme-site .theme-donate .theme-btn-group { margin-top: 30px; }
@media (min-width: 1024px) { .theme-site .theme-donate { min-height: 560px; } }

/* ==========================================================================
   HOME — PHOTO HIGHLIGHTS
   ========================================================================== */
.theme-site .theme-gallery .theme-container { position: relative; z-index: 1; }
.theme-site .theme-gallery__ring { width: 220px; height: 220px; top: -90px; right: -80px; }
.theme-site .theme-gallery__dots { left: 20px; bottom: 40px; }
.theme-site .theme-gallery__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.theme-site .theme-photo-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 240px;
    padding: 22px;
    border-radius: var(--rd-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--rd-navy-700);
    color: var(--rd-white);
    isolation: isolate;
}
.theme-site .theme-photo-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6, 22, 48, 0) 35%, rgba(6, 22, 48, 0.85) 100%);
    transition: background-color 0.3s ease;
}
.theme-site .theme-photo-tile:hover::before { background-color: rgba(6, 22, 48, 0.2); }
.theme-site .theme-photo-tile__label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rd-gold-400);
}
.theme-site .theme-photo-tile__caption {
    display: block;
    margin-top: 4px;
    font-family: var(--rd-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .theme-site .theme-gallery__grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, 250px); gap: 20px; }
    .theme-site .theme-photo-tile { min-height: 0; }
    .theme-site .theme-photo-tile--large { grid-row: span 2; }
}
@media (min-width: 1024px) {
    .theme-site .theme-gallery__grid { grid-template-rows: repeat(2, 280px); }
    .theme-site .theme-photo-tile--large .theme-photo-tile__caption { font-size: 30px; }
}
@media (max-width: 767px) { .theme-site .theme-gallery__dots { display: none; } }

/* ==========================================================================
   HOME — CHARITY MISSION
   ========================================================================== */
.theme-site .theme-mission {
    background: linear-gradient(135deg, var(--rd-navy-900) 0%, var(--rd-navy-800) 55%, var(--rd-navy-700) 100%);
    color: var(--rd-white);
}
.theme-site .theme-mission .theme-container { position: relative; z-index: 1; }
.theme-site .theme-mission__watermark {
    position: absolute;
    right: -2%;
    bottom: -18%;
    font-family: var(--rd-serif);
    font-size: clamp(260px, 40vw, 560px);
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    user-select: none;
}
.theme-site .theme-mission .theme-heading { max-width: 640px; margin-bottom: 48px; }
.theme-site .theme-mission__grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.theme-site .theme-mission__item { padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.theme-site .theme-mission__num {
    display: block;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rd-gold-400);
}
.theme-site .theme-mission__title { margin: 0 0 10px; font-size: 22px; font-weight: 600; color: var(--rd-white); }
.theme-site .theme-mission__text { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.7); max-width: 340px; }

@media (min-width: 768px) {
    .theme-site .theme-mission__grid { grid-template-columns: repeat(3, 1fr); border-bottom: 0; }
    .theme-site .theme-mission__item { padding: 32px 28px 8px; border-bottom: 0; }
    .theme-site .theme-mission__item:first-child { padding-left: 0; }
    .theme-site .theme-mission__item + .theme-mission__item { border-left: 1px solid rgba(255, 255, 255, 0.14); }
}

/* ==========================================================================
   HOME — NEWS & EVENTS
   ========================================================================== */
.theme-site .theme-updates__grid { display: grid; gap: 56px; }
.theme-site .theme-updates__col .theme-section-head { margin-bottom: 28px; }
.theme-site .theme-updates__col .theme-heading { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem); }
.theme-site .theme-updates__list { display: grid; gap: 20px; }

.theme-site .theme-news-card { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.theme-site .theme-news-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: var(--rd-bg-soft);
}
.theme-site .theme-news-card__media--empty { background-image: linear-gradient(135deg, var(--rd-navy-700), var(--rd-blue-600)); }
.theme-site .theme-news-card__title {
    margin: 0;
    font-family: var(--rd-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--rd-ink);
}
.theme-site .theme-news-card__title a:hover { color: var(--rd-blue-600); }
.theme-site .theme-news-card__date { display: block; margin: 6px 0 8px; font-size: 12px; font-weight: 600; color: var(--rd-gold-600); }
.theme-site .theme-news-card__excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--rd-body);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-site .theme-event {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rd-line);
}
.theme-site .theme-event:last-child { border-bottom: 0; padding-bottom: 0; }
.theme-site .theme-date-tile {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background-color: var(--rd-gold-400);
    color: var(--rd-ink);
}
.theme-site .theme-date-tile__day { font-size: 26px; font-weight: 700; line-height: 1; }
.theme-site .theme-date-tile__month { margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.theme-site .theme-event__title { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--rd-blue-600); }
.theme-site .theme-event__title a:hover { color: var(--rd-gold-600); }
.theme-site .theme-event__meta { display: block; font-size: 13px; line-height: 1.6; color: var(--rd-body); }
.theme-site .theme-event__meta i { width: 14px; margin-right: 6px; color: var(--rd-muted); font-size: 11px; }
.theme-site .theme-empty { font-size: 14px; font-style: italic; color: var(--rd-muted); }

@media (min-width: 640px) {
    .theme-site .theme-news-card { grid-template-columns: 180px 1fr; gap: 20px; }
    .theme-site .theme-news-card__media { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) {
    .theme-site .theme-updates__grid { grid-template-columns: 1.15fr 1fr; gap: 0; }
    .theme-site .theme-updates__col:first-child { padding-right: 48px; }
    .theme-site .theme-updates__col + .theme-updates__col { padding-left: 48px; border-left: 1px solid var(--rd-line); }
}

/* ==========================================================================
   HOME — MEMBER CTA
   ========================================================================== */
.theme-site .theme-cta {
    position: relative;
    padding-block: calc(var(--rd-section-y) + 16px);
    text-align: center;
    color: var(--rd-white);
    background-color: var(--rd-navy-800);
    background-image:
        linear-gradient(180deg, rgba(8, 28, 54, 0.86) 0%, rgba(8, 28, 54, 0.74) 100%),
        url("../images/theme/cta-family.jpg");
    background-size: cover;
    background-position: center center;
}
.theme-site .theme-cta .theme-heading { max-width: 720px; margin-inline: auto; }
.theme-site .theme-cta .theme-lead { max-width: 620px; margin-inline: auto; }
.theme-site .theme-cta .theme-btn-group { justify-content: center; margin-top: 30px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.theme-site .theme-footer {
    background-color: var(--rd-navy-900);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 64px;
    font-size: 14px;
}
.theme-site .theme-footer__grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
.theme-site .theme-footer__logo { height: 48px; width: auto; }
.theme-site .theme-footer__logo--fallback { filter: brightness(0) invert(1); }
.theme-site .theme-footer__about { margin: 18px 0 22px; max-width: 360px; line-height: 1.75; }
.theme-site .theme-footer__social { display: flex; gap: 10px; }
.theme-site .theme-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--rd-white);
    font-size: 13px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.theme-site .theme-footer__social a:hover { background-color: var(--rd-gold-400); border-color: var(--rd-gold-400); color: var(--rd-ink); }
.theme-site .theme-footer__heading {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rd-gold-400);
}
.theme-site .theme-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.theme-site .theme-footer__links a { color: rgba(255, 255, 255, 0.78); transition: color 0.2s ease; }
.theme-site .theme-footer__links a:hover { color: var(--rd-gold-400); }
.theme-site .theme-footer__text { margin: 0 0 16px; line-height: 1.7; }
.theme-site .theme-newsletter { display: grid; gap: 10px; }
.theme-site .theme-newsletter__input {
    width: 100%;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--rd-white);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}
.theme-site .theme-newsletter__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.theme-site .theme-newsletter__input:focus { border-color: var(--rd-gold-400); }
.theme-site .theme-newsletter .theme-btn { width: 100%; }
.theme-site .theme-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}
.theme-site .theme-footer__values { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (min-width: 640px) { .theme-site .theme-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .theme-site .theme-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; }
}
@media (max-width: 639px) { .theme-site .theme-footer__bottom { justify-content: center; text-align: center; } }

/* ==========================================================================
   INNER PAGES — theme layer
   The inner pages keep their existing Tailwind markup, buttons and
   controls. These rules only restyle colours, typography and card shape;
   they add no new elements or decorations.

   Scoped to main.theme-inner, which the layout sets on every page
   EXCEPT Family Tree and Branches (those keep their original inner UI).
   ========================================================================== */

/* Page banner (added as class="... theme-page-header") */
.theme-site .theme-page-header {
    background-color: var(--rd-navy-800);
    background-image: linear-gradient(120deg, var(--rd-navy-900) 0%, var(--rd-navy-800) 55%, var(--rd-navy-700) 100%);
}
.theme-site .theme-page-header h1 {
    font-family: var(--rd-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.theme-site .theme-page-header p { color: rgba(255, 255, 255, 0.75); }

/* One banner style for every inner page (matches About Us): same spacing,
   eyebrow, title and intro size whatever utility classes a page uses.
   Family Tree and Branches keep their own header (no main.theme-inner). */
.theme-site main.theme-inner .theme-page-header { padding-top: 56px; padding-bottom: 56px; }
.theme-site main.theme-inner .theme-page-header span.uppercase.block {
    display: block;
    margin-bottom: 10px;
    font-family: var(--rd-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--rd-gold-400);
}
.theme-site main.theme-inner .theme-page-header h1 {
    font-family: var(--rd-serif);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
}
.theme-site main.theme-inner .theme-page-header h1 + p {
    margin-top: 16px;
    max-width: 42rem;
    font-family: var(--rd-sans);
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}
.theme-site main.theme-inner .theme-page-header.text-center h1 + p { margin-inline: auto; }
@media (min-width: 640px) {
    .theme-site main.theme-inner .theme-page-header { padding-top: 80px; padding-bottom: 80px; }
    .theme-site main.theme-inner .theme-page-header h1 { font-size: 48px; }
    .theme-site main.theme-inner .theme-page-header h1 + p { font-size: 18px; }
}

/* Serif headings: the new serif is lighter than the old Cinzel, so
   normalise the heavy weights used across the inner pages. */
.theme-site main.theme-inner :is(h1, h2, h3, h4).font-serif { font-weight: 600; letter-spacing: -0.01em; }

/* Buttons & links styled as buttons → pill shape like the new design */
.theme-site main.theme-inner :is(a, button).rounded-xl,
.theme-site main.theme-inner :is(a, button).rounded-lg.font-bold { border-radius: 999px; }

/* Light cards only (dark panels keep their own borders) */
.theme-site main.theme-inner :is(.rounded-2xl, .rounded-3xl).border.bg-white {
    border-color: var(--rd-line);
    box-shadow: var(--rd-shadow);
}

/* Form controls */
.theme-site main.theme-inner :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
    border-color: var(--rd-gold-500);
    box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.25);
    outline: none;
}

/* Auth pages (login / register) */
.theme-site .theme-auth { background-color: var(--rd-bg-soft); }

/* Centered section heads use flex gap for spacing */
.theme-site .theme-section-head--center .theme-eyebrow,
.theme-site .theme-section-head--center .theme-lead { margin: 0; }

/* ==========================================================================
   NEWS — featured images (news listing + article page)
   ========================================================================== */
.theme-site .theme-news-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--rd-bg-soft);
}
.theme-site .theme-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.theme-site .theme-news-thumb:hover img { transform: scale(1.04); }

.theme-site .theme-news-hero-image {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: var(--rd-bg-soft);
}
.theme-site .theme-news-hero-image img { width: 100%; height: 100%; object-fit: cover; }
