/* ============================================================
   OFFICIAL PARISH WEBSITE — MASTER STYLESHEET (FIXED)
   Palette : Navy Blue · Khaki · Gold · White
   Type    : Linux Libertine for titles / Open Sans for body
   ============================================================
   CHANGES IN THIS VERSION:
   1. Fixed low-contrast GOLD TEXT ON LIGHT/WHITE BACKGROUNDS
      (was unreadable) — changed to NAVY text in these spots:
        - #global-timer-display (Mass Schedule countdown banner)
        - .ann-date / .event-date (Announcements & Events cards)
        - .section-badge (Contact form badge)
        - .person-title (Priest card title label)
      Gold text on NAVY backgrounds (hero, footer, dropdown, etc.)
      was left untouched — contrast there is already good.
   2. Reinforced the title/body font tokens on dynamically-injected
      content so it cannot fall back to a different font.
   3. ALL TITLES/HEADINGS now use BLACK (on light backgrounds) or
      WHITE (on dark backgrounds) only — no navy or gold text on
      headings anywhere. Title font stays Linux Libertine, body
      font stays Open Sans.
   ============================================================ */

/* ------------------------------------------------------------
   0. FONT IMPORTS (keep at the very top of the file)
------------------------------------------------------------ */
@import url('https://fonts.cdnfonts.com/css/linux-libertine');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
@import url('page-motion.css');
/* ------------------------------------------------------------
   1. GLOBAL DESIGN TOKENS (single source of truth)
   Every color, radius, shadow, and font in the site should pull
   from these variables — never hard-code a hex value again.
------------------------------------------------------------ */
:root {
    /* ---------- Navy (primary brand color) ---------- */
    --navy-darkest: #06122d;
    --navy-dark: #0a1930;
    --navy-main: #0b1f3a; /* primary brand navy */
    --navy-light: #16325c;
    --navy-lighter: #123d6b;

    /* ---------- Gold (accent / call-to-action) ---------- */
    --gold-deep: #b99a4a;
    --gold: #c9a227; /* primary accent gold */
    --gold-soft: #d8c27a;
    --gold-light: #e8d3aa;
    --gold-pale: #f3e5ab;

    /* ---------- Khaki (secondary warm neutral) ---------- */
    --khaki-dark: #8c8163;
    --khaki: #c3b091;
    --khaki-light: #e0d5be;
    --khaki-pale: #e8dcc3;

    /* ---------- Backgrounds ---------- */
    --bg-cream: #f8f6f0; /* primary page background */
    --bg-khaki: #f5f1e8;
    --bg-panel: #faf8f5;
    --white: #ffffff;

    /* ---------- Text ---------- */
    --text-dark: #1e2a3a;
    --text-body: #2c3440;
    --text-muted: #5a6472;
    --text-on-navy: #f5f1e8;
    --text-on-navy-muted: rgba(245, 241, 232, 0.82);

    /* ---------- Titles (black on light bg, white on dark bg — no navy/gold) ---------- */
    --title-dark: #000000;
    --title-light: #ffffff;

    /* ---------- Borders ---------- */
    --border-color: #ddd2ba;
    --border-gold: rgba(201, 162, 39, 0.35);

    /* ---------- Typography ---------- */
    --font-serif: 'Linux Libertine', Georgia, 'Times New Roman', serif;
    --font-display: 'Linux Libertine', Georgia, 'Times New Roman', serif;
    --font-heading: 'Linux Libertine', Georgia, 'Times New Roman', serif;
    --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

    /* ---------- Elevation ---------- */
    --shadow-sm: 0 4px 16px rgba(11, 31, 58, 0.06);
    --shadow-md: 0 12px 32px rgba(11, 31, 58, 0.1);
    --shadow-lg: 0 22px 45px rgba(11, 31, 58, 0.16);
    --shadow-gold-glow: 0 0 22px rgba(201, 162, 39, 0.22);

    /* ---------- Shape ---------- */
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --radius-pill: 50px;

    /* ---------- Motion ---------- */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
   2. BASE RESETS
------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    color: var(--title-dark);
}

a {
    color: inherit;
}

/* ------------------------------------------------------------
   3. NAVBAR & DROPDOWN
------------------------------------------------------------ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 45px;
    background: rgba(11, 31, 58, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 1000;
}

nav.scrolled {
    background: var(--navy-main);
    padding: 10px 45px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-display);
    text-decoration: none;
}

.logo img {
    width: 120px;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

#nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

#nav-links li {
    position: relative;
}

#nav-links a {
    font-family: var(--font-body);

    color: var(--white);

    text-decoration: none;

    font-size: 18px;

    font-weight: 600;

    transition: var(--transition);
}

#nav-links a:hover,
#nav-links a.active {
    color: var(--white);
}
.menu-toggle {
    display: none;
    color: #ffffff !important;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* CLOSED = WHITE */
.menu-toggle:not(.active) {
    color: #ffffff !important;
}

/* OPENED = GOLD */
.menu-toggle.active {
    color: #d4af37 !important;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #nav-links a {
        color: #ffffff !important;
    }

    #nav-links a:hover,
    #nav-links a.active {
        color: #d4af37 !important;
    }
}
/* Dropdown Menu (Desktop Glassmorphism) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 230px;
    background: rgba(11, 31, 58, 0.65); /* ← ITO ANG BABAGUHIN */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-family: var(--font-body);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.dropdown-menu li a:hover {
    background: rgba(212, 166, 30, 0.35);
    color: var(--white);
    padding-left: 24px;
}

/* ------------------------------------------------------------
   4. HERO SECTION
------------------------------------------------------------ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--navy-darkest);
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transform: scale(1.08);
    animation: videoReveal 1.8s ease forwards;
}

@keyframes videoReveal {
    from {
        opacity: 0;
        transform: scale(1.08);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 58, 0.88) 0%, rgba(6, 18, 45, 0.62) 50%, rgba(0, 0, 0, 0.82) 100%);
    z-index: 1;
}

.overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero h1 {
    font-size: clamp(42px, 5.5vw, 76px);
    font-weight: 700;
    line-height: 1.15;
    max-width: 1100px;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: var(--title-light);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.hero p {
    font-family: var(--font-body);
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.8;
    max-width: 850px;
    margin-bottom: 20px;
    color: #f5f5f5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero .welcome {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 700;
    color: var(--title-light);
    margin-bottom: 35px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary,
.btn-secondary,
.hero-btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 15px 35px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: var(--transition);
}

.btn-primary::before,
.btn-secondary::before,
.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
    pointer-events: none;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.hero-btn:hover::before {
    left: 130%;
}

.btn-primary,
.hero-btn {
    background: linear-gradient(135deg, var(--gold), var(--khaki-light));
    color: var(--navy-main);
}

.btn-primary:hover,
.hero-btn:hover {
    background: var(--navy-main);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--navy-main);
    color: var(--white);
    border: 2px solid var(--gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-main);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(201, 162, 39, 0.4);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

/* =========================================
   CHURCH IN ACTION (ENHANCED & ENLARGED)
========================================= */

.church-action {
    width: 100%;
    padding: 50px 0 55px;
    background: #f5f3ee;
    overflow: hidden;
    box-sizing: border-box;
}

/* =========================================
   TITLE
========================================= */

.church-action-title {
    width: 100%;
    padding: 0 12px;
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: left;
}

.church-action-title h2 {
    margin: 0;
    color: var(--title-dark);
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 1.5px;

    /* SMOOTH TEXT RENDERING */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* =========================================
   CAROUSEL
========================================= */

.church-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

/* =========================================
   TRACK
========================================= */

.church-carousel-track {
    display: flex;
    width: max-content;
    gap: 0;
    margin: 0;
    padding: 0;

    animation: churchInfinite 60s linear infinite;

    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.church-carousel:hover .church-carousel-track {
    animation-play-state: paused;
}

/* =========================================
   STANDARD IMAGE 
========================================= */

.church-card {
    position: relative;
    flex: 0 0 340px;
    width: 340px;
    height: 285px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #dcd7ce;
    box-sizing: border-box;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* =========================================
   IMAGE (STATIC / NO ZOOM)
========================================= */

.church-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;

    image-rendering: auto;
}

/* =========================================
   SUBTLE IMAGE DEPTH
========================================= */

.church-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    opacity: 0.75;
}

/* =========================================
   INFINITE CAROUSEL
========================================= */

@keyframes churchInfinite {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* =========================================
   PARTICIPATE BUTTON (PWERSAHANG NASA KANAN)
========================================= */

.participate-btn {
    display: block !important;
    width: fit-content !important;

    /* Ginamitan ng !important para masigurong mapupunta sa kanan */
    margin: 18px 12px 0 auto !important;

    padding: 12px 26px;
    background: #d9c7a9;
    color: var(--navy-main);
    font-family: var(--font-body);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-radius: 24px;

    position: relative;
    overflow: hidden;
    z-index: 1;

    box-shadow: 0 4px 12px rgba(217, 199, 169, 0.3);

    transition:
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.4s ease;
}

/* Subtle glowing sliding sheen overlay */
.participate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.participate-btn:hover {
    background: #c7b28f;
    color: var(--navy-main);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(217, 199, 169, 0.5);
}

.participate-btn:hover::before {
    left: 100%;
}

.participate-btn:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 768px) {
    .participate-btn {
        margin-left: auto !important;
        margin-right: 10px !important;
    }
}

/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 480px) {
    .participate-btn {
        margin-left: auto !important;
        margin-right: 8px !important;
    }
}

/* ================================================================
   PRIESTS SECTION — Complete Code (Auto-Expanding White Cards, Image Untouched)
   ENHANCED: layout/grid untouched — visual polish only
================================================================ */

.priests {
    position: relative;
    left: 50%;
    width: 100vw;
    min-height: 100vh;
    margin-left: -50vw;
    padding: 130px 0 140px;
    box-sizing: border-box;
    overflow-x: hidden;
    text-align: center;
    background-color: var(--bg-khaki, #f4f1ea);
    background-image:
        radial-gradient(circle at 10% 10%, rgba(11, 31, 58, 0.08), transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(201, 162, 39, 0.14), transparent 45%),
        linear-gradient(150deg, #ffffff 0%, var(--bg-khaki, #f4f1ea) 100%);
}

/* Top accent line */
.priests::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--navy-main, #0b1f3a) 15%,
        var(--gold, #c9a227) 50%,
        var(--navy-main, #0b1f3a) 85%,
        transparent 100%
    );
    box-shadow:
        0 1px 0 rgba(201, 162, 39, 0.55),
        0 4px 28px rgba(11, 31, 58, 0.32);
}

#clergy-page > #clergy.priests::before {
    display: none;
}

/* ------------------------------ Title ------------------------------ */

.priests > h2 {
    position: relative;
    display: inline-block;
    margin: 0 auto 70px;
    padding: 0;
    color: var(--title-dark);
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 5px;
    font-variant: small-caps;
    text-shadow: 0 3px 6px rgba(11, 31, 58, 0.12);
}

.priests > h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -120px;
    width: 85px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold, #c9a227));
}

.priests > h2::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: var(--gold, #c9a227);
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.45);
}

/* ------------------------------ Grid ------------------------------ */

.clergy-data-loading > section {
    visibility: hidden;
}

.priest-container {
    display: grid;
    width: 100vw;
    max-width: 100% !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 48px;
    align-items: start;
    justify-items: center;
    margin: 0 0 60px;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ------------------------------ Card base ------------------------------ */

.priest-card {
    position: relative;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.priest-card:nth-child(1) {
    animation-delay: 0.1s;
}
.priest-card:nth-child(2) {
    animation-delay: 0.2s;
}
.priest-card:nth-child(3) {
    animation-delay: 0.3s;
}
.priest-card:nth-child(4) {
    animation-delay: 0.4s;
}
.priest-card:nth-child(5) {
    animation-delay: 0.5s;
}
.priest-card:nth-child(6) {
    animation-delay: 0.6s;
}
.priest-card:nth-child(7) {
    animation-delay: 0.7s;
}

.priest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 32px 74px rgba(11, 31, 58, 0.22);
}

/* ================================================================
   BISHOPS
================================================================ */

.bishop {
    position: relative;
    grid-column: span 3;
    width: calc(100% + 20px);
    height: 470px;
    min-height: 470px;
    max-height: 470px;
    display: grid;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 35px 45px;
    margin-bottom: 15px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(201, 162, 39, 0.12), transparent 60%),
        radial-gradient(circle at bottom left, rgba(201, 162, 39, 0.06), transparent 55%),
        linear-gradient(155deg, var(--navy-main, #0b1f3a) 0%, #061122 100%);
    border-top: 1px solid rgba(201, 162, 39, 0.5);
    border-bottom: 1px solid rgba(201, 162, 39, 0.5);
    box-shadow:
        0 28px 60px rgba(11, 31, 58, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.bishop::after {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: inherit;
    pointer-events: none;
}

.bishop-left {
    grid-column: 1 / span 3;
    grid-template-columns: 38% 62%;
    margin-left: -24px;
    padding-left: 55px;
    border-right: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 0 45px 45px 0;
}

.bishop-right {
    grid-column: 4 / span 3;
    grid-template-columns: 62% 38%;
    margin-right: -24px;
    padding-right: 55px;
    border-left: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 45px 0 0 45px;
}

.bishop > img {
    display: block;
    width: 100%;
    height: 395px;
    min-height: 395px;
    max-height: 395px;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    box-sizing: border-box;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(201, 162, 39, 0.75),
        0 0 0 6px rgba(201, 162, 39, 0.1);
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.bishop:hover > img {
    transform: scale(1.02);
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.55),
        0 0 0 2px rgba(201, 162, 39, 0.9),
        0 0 0 7px rgba(201, 162, 39, 0.18);
}

.bishop-left > img {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}
.bishop-right > img {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

/* Bishop info blocks */

.bishop-left .priest-info,
.bishop-right .priest-info {
    display: flex;
    flex-direction: column;
    grid-row: 1;
    align-self: center !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    min-width: 0;
}

.bishop-left .priest-info {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
    padding-left: 36px;
}

.bishop-right .priest-info {
    grid-column: 1;
    align-items: flex-end;
    text-align: right;
    padding-right: 36px;
}

.bishop .person-title {
    display: inline-block;
    width: fit-content;
    margin: 0 0 16px;
    color: var(--title-light);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.bishop h3 {
    width: 100%;
    margin: 0 0 14px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.bishop .priest-description {
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.bishop p {
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-family: var(--font-body);
    font-size: 16px;
    font-style: italic;
    line-height: 1.7;
    overflow-wrap: break-word;
    white-space: normal;
}

/* ================================================================
   REGULAR PRIESTS (Auto-Expanding, Image Untouched at 415px)
================================================================ */

.regular-priest {
    position: relative;
    grid-column: span 2;
    width: 100%;
    max-width: 410px;
    height: auto; /* Auto para kusa humaba kung sakaling mahaba ang description */
    min-height: 520px; /* Minimum height para maayos pa rin tingnan kung maiksi ang text */
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-self: center;
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 15px;
    padding: 20px 24px 26px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 34px;
    box-shadow: 0 20px 50px rgba(11, 31, 58, 0.13);
    transition: box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.regular-priest:hover {
    box-shadow: 0 26px 60px rgba(11, 31, 58, 0.18);
}

.regular-priest::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 4px;
    opacity: 0.9;
    background: linear-gradient(90deg, transparent, var(--gold, #c9a227), transparent);
}

.regular-priest > img {
    display: block;
    width: 100%;
    height: 415px; /* STRICTLY HINDI GINALAW: Nanatili sa 415px */
    min-height: 415px;
    max-height: 415px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center top;
    border-radius: 24px;
    box-shadow:
        inset 0 0 0 1px rgba(11, 31, 58, 0.08),
        0 10px 24px rgba(11, 31, 58, 0.09);
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.regular-priest:hover > img {
    transform: scale(1.03);
    box-shadow:
        inset 0 0 0 1px rgba(11, 31, 58, 0.1),
        0 14px 30px rgba(11, 31, 58, 0.14);
}

.regular-priest .priest-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: flex-start !important;
    align-self: stretch !important;
    min-height: 0 !important;
    width: 100%;
    padding-top: 18px;
    box-sizing: border-box;
}

.regular-priest .person-title {
    display: inline-block;
    margin: 2px auto 10px;
    color: var(--title-dark);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    line-height: 1.2;
    text-transform: uppercase;
}

.regular-priest h3 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 4px 8px;
    color: var(--title-dark);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    overflow: visible;
    white-space: normal;
    box-sizing: border-box;
}

.regular-priest .priest-description {
    height: auto !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

.regular-priest p {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-style: italic;
    line-height: 1.55;
    overflow: visible;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: normal;
    box-sizing: border-box;
}

/* ------------------------------ Shared name/role rules ------------------------------ */

.clergy-first-name,
.clergy-last-name {
    display: block;
    width: 100%;
    margin: 0;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: normal;
}

.person-role {
    width: 100%;
    margin: 0 0 8px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: break-word;
    white-space: normal;
}

.priest-description + .priest-description {
    margin-top: 10px;
}

.priest-info h3,
.priest-info .person-title,
.priest-info .person-role,
.priest-info .priest-description {
    flex-shrink: 0;
}

.priest-info {
    box-sizing: border-box;
}

/* ------------------------------ Animation ------------------------------ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   TABLET (≤1100px)
================================================================ */

@media (max-width: 1100px) {
    .priest-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 36px;
    }

    .bishop {
        grid-column: span 2 !important;
        width: 100% !important;
        height: 440px;
        margin: 0 !important;
        padding: 28px 34px !important;
    }

    .regular-priest {
        grid-column: span 1 !important;
        width: 100%;
        max-width: 380px;
        height: auto;
        min-height: 480px;
        margin-top: 0;
    }

    .regular-priest > img {
        height: 370px; /* Image size untouched */
        min-height: 370px;
        max-height: 370px;
    }
}

/* ================================================================
   MOBILE (≤600px)
================================================================ */

@media (max-width: 600px) {
    .priests {
        left: 0;
        width: 100%;
        min-height: auto;
        margin: 0;
        padding: 65px 0 80px;
        overflow-x: hidden;
    }

    .priests > h2 {
        margin: 0 auto 42px;
        padding: 0 15px;
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: 2px;
    }

    .priests > h2::before {
        display: none;
    }
    .priests > h2::after {
        width: 75px;
        height: 3px;
        bottom: -16px;
    }

    .priest-container {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        column-gap: 0;
        row-gap: 28px;
        align-items: stretch;
        justify-items: stretch;
        margin: 0 0 36px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .priest-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 0 4px;
        box-sizing: border-box;
        animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .priest-card:hover {
        transform: none;
    }
    .regular-priest:hover > img,
    .bishop:hover > img {
        transform: none;
    }

    /* Bishop */
    .bishop,
    .bishop-left,
    .bishop-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 20px !important;
        overflow: hidden;
        text-align: center !important;
        box-sizing: border-box;
        border: 1px solid rgba(201, 162, 39, 0.45) !important;
        border-radius: 24px !important;
    }

    .bishop > img {
        display: block;
        width: 100% !important;
        aspect-ratio: 4 / 5 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 0 18px !important;
        object-fit: cover;
        object-position: center top;
        border-radius: 16px !important;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .bishop-left .priest-info,
    .bishop-right .priest-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
        min-width: 0;
    }

    .bishop .person-title {
        margin: 0 auto 10px;
        padding: 0 0 3px;
        max-width: 100%;
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: 1.3px;
        box-sizing: border-box;
    }

    .bishop h3 {
        display: block;
        width: 100%;
        margin: 0 0 9px;
        padding: 0;
        font-size: 21px;
        line-height: 1.2;
        letter-spacing: 0.3px;
        overflow: visible;
        box-sizing: border-box;
    }

    .bishop .clergy-first-name,
    .bishop .clergy-last-name {
        display: block;
        width: 100%;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .bishop p {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        font-size: 12px;
        line-height: 1.5;
        overflow: visible;
        overflow-wrap: break-word;
        white-space: normal;
        text-overflow: clip;
        box-sizing: border-box;
    }

    /* Regular priest */
    .regular-priest {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        align-self: stretch;
        justify-self: stretch;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 20px !important;
        overflow: hidden;
        text-align: center;
        background: #ffffff;
        border-radius: 24px !important;
        box-sizing: border-box;
        box-shadow: 0 8px 22px rgba(11, 31, 58, 0.09);
    }

    .regular-priest::before {
        left: 16px;
        right: 16px;
        height: 3px;
    }

    .regular-priest > img {
        display: block;
        width: 100% !important;
        aspect-ratio: 4 / 5 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 0 18px !important;
        object-fit: cover;
        object-position: center top;
        border-radius: 16px !important;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .regular-priest .priest-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
        text-align: center;
        min-width: 0;
        box-sizing: border-box;
    }

    .regular-priest .person-title {
        display: inline-block;
        max-width: 100%;
        margin: 0 auto 10px;
        padding: 0 0 3px;
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: 1.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    .regular-priest h3 {
        display: block;
        width: 100%;
        margin: 0 0 9px;
        padding: 0;
        font-size: 21px;
        line-height: 1.2;
        letter-spacing: 0.3px;
        text-align: center;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        box-sizing: border-box;
    }

    .regular-priest .clergy-first-name,
    .regular-priest .clergy-last-name {
        display: block;
        width: 100%;
        overflow-wrap: break-word;
        white-space: normal;
        word-break: normal;
    }

    .regular-priest p {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        box-sizing: border-box;
    }

    .person-role {
        width: 100%;
        margin: 0 0 9px;
        font-size: 12px;
        line-height: 1.5;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

/* ================================================================
   VERY SMALL MOBILE (≤380px)
================================================================ */

@media screen and (max-width: 380px) {
    .priest-container {
        display: grid !important;
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        column-gap: 0 !important;
        row-gap: 22px !important;
        margin: 0 0 28px !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    .priest-container .regular-priest,
    .priest-container .bishop,
    .priest-container .bishop-left,
    .priest-container .bishop-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 16px !important;
        overflow: hidden !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .priest-container .regular-priest > img,
    .priest-container .bishop > img {
        display: block !important;
        width: 100% !important;
        aspect-ratio: 4 / 5 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 0 16px !important;
        object-fit: cover !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    .priest-container .regular-priest .priest-info,
    .priest-container .bishop-left .priest-info,
    .priest-container .bishop-right .priest-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .priest-container .regular-priest .person-title,
    .priest-container .bishop .person-title {
        max-width: 100% !important;
        margin: 0 auto 7px !important;
        padding: 0 !important;
        font-size: 9px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    .priest-container .regular-priest h3,
    .priest-container .bishop h3 {
        display: block !important;
        width: 100% !important;
        margin: 0 0 7px !important;
        padding: 0 !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: normal !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .priest-container .regular-priest .clergy-first-name,
    .priest-container .regular-priest .clergy-last-name,
    .priest-container .bishop .clergy-first-name,
    .priest-container .bishop .clergy-last-name {
        display: block !important;
        width: 100% !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    .priest-container .regular-priest p,
    .priest-container .bishop p {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        box-sizing: border-box !important;
    }

    .priest-container .regular-priest .person-role {
        width: 100% !important;
        margin: 0 0 7px !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
}
/* ================================================================
   FIX PARA SA MOBILE PABABA NG SECTION
================================================================ */
@media (max-width: 600px) {
    section#priests.priests {
        margin-top: 0 !important;
    }
}

/* ================================
   DEACONS
================================ */

#clergy-page > #clergy.priests {
    min-height: auto;
    padding-bottom: 24px;
}

#clergy-page > #clergy.priests #clergy-container {
    margin-bottom: 20px;
}

.deacons-section {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    padding: 2.5rem 0;
    box-sizing: border-box;
    background-color: var(--bg-khaki, #f4f1ea);
}

.deacons-section > * {
    width: 100%;
    padding-right: 24px;
    padding-left: 24px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.deacons-section h2 {
    margin-bottom: 2rem;
    color: var(--title-dark);
    text-align: center;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 700;
}

#deacons-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.deacon-card {
    position: relative;
    flex: 0 1 17%;
    min-width: 0;
    overflow: hidden;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(11, 31, 58, 0.07);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(11, 31, 58, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.deacon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(11, 31, 58, 0.14);
}

.deacon-card--text-only {
    align-self: center;
    min-height: 84px;
    padding: 16px 12px;
}

.deacon-card--with-image {
    padding: 13px 13px 18px;
}

.deacon-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: center;
    background: #f8f7f4;
    border-radius: 16px;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 14px rgba(11, 31, 58, 0.07);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.deacon-card--with-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(11, 31, 58, 0.12);
}

.deacon-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.4;
    color: var(--title-dark);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    #deacons-container {
        justify-content: center;
        gap: 1rem;
    }

    .deacon-card {
        flex-basis: 45%;
    }
}

@media (max-width: 600px) {
    .deacons-section {
        padding: 2rem 0;
    }

    .deacons-section > * {
        padding-right: 16px;
        padding-left: 16px;
    }

    .deacons-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    #deacons-container {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .deacon-card {
        flex: 0 1 84%;
        width: 84%;
        max-width: 390px;
        padding: 8px;
    }

    .deacon-card--text-only {
        min-height: 72px;
        padding: 14px 10px;
    }

    .deacon-card h3 {
        font-size: 0.9rem;
    }
}

/* ================================================================
   OUR DEARLY DEPARTED SHEPHERDS
   Deep charcoal "in memoriam" section with gold-ring photo frame.
   Grid/positions unchanged — polish only.
================================================================ */

.departed-shepherds {
    width: 100%;
    min-height: 0vh;
    margin: 0;
    padding: 90px 50px 110px;
    color: #ffffff;
    background-color: #1e1e1e;
    background-image: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.07), transparent 55%);
}

.departed-shepherds h2 {
    position: relative;
    width: 100%;
    margin: 0 0 75px;
    padding-bottom: 26px;
    color: var(--title-light);
    font-family: var(--font-heading);
    font-size: 40px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.departed-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    gap: 90px;
    align-items: start;
}

.departed-major-list,
.departed-deacon-list {
    display: grid;
    width: 100%;
    align-items: start;
}

.departed-major-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
}

.departed-deacon-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 70px;
}

.departed-card {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-sizing: border-box;
}

.departed-major-card {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: left;
}

.departed-major-card .departed-info {
    width: 200px;
    flex-shrink: 0;
}

.departed-major-card .departed-info h3,
.departed-deacon-card .departed-info h3 {
    margin: 0;
    color: var(--title-light);
    font-family: var(--font-heading);
    font-size: 26px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.35;
}

/* Photo frame — thin gold ring reads as a memorial locket */

.departed-card img {
    display: block;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
    box-sizing: border-box;
    filter: grayscale(100%) contrast(1.04);
    box-shadow:
        0 0 0 3px #1e1e1e,
        0 0 0 4px rgba(201, 162, 39, 0.6),
        0 14px 32px rgba(0, 0, 0, 0.5);
    transition:
        filter 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.5s ease;
}

.departed-card:hover img {
    filter: grayscale(60%) contrast(1.04) sepia(0.12);
    transform: scale(1.015);
    box-shadow:
        0 0 0 3px #1e1e1e,
        0 0 0 4px rgba(201, 162, 39, 0.85),
        0 14px 32px rgba(0, 0, 0, 0.5);
}

.departed-major-card .departed-info h3 {
    text-align: left;
}

.departed-deacon-card {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    text-align: center;
}

.departed-deacon-card img {
    width: 150px;
    height: 150px;
}

.departed-deacon-card .departed-info {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 60px;
}

.departed-deacon-card .departed-info h3 {
    font-size: 20px;
    text-align: center;
}

/* ------------------------------ Mobile ------------------------------ */

@media (max-width: 700px) {
    .departed-shepherds {
        width: 100%;
        min-height: auto;
        padding: 60px 20px 80px;
        box-sizing: border-box;
    }

    .departed-shepherds h2 {
        margin: 0 0 55px;
        font-size: 28px;
        line-height: 1.3;
        text-align: center;
    }

    .departed-container {
        width: 100%;
        max-width: 550px;
        margin: 0 auto;
        gap: 62px;
    }

    .departed-major-list,
    .departed-deacon-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 30px;
        row-gap: 45px;
    }

    .departed-major-card,
    .departed-deacon-card {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        text-align: center;
    }

    .departed-card {
        display: flex;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .departed-card.departed-major-card img {
        display: block;
        width: 145px;
        height: 145px;
        max-width: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .departed-card.departed-deacon-card img {
        width: 110px;
        height: 110px;
    }

    .departed-card .departed-info {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 58px;
        text-align: center;
        box-sizing: border-box;
    }

    .departed-card .departed-info h3 {
        width: 100%;
        margin: 0;
        padding: 0;
        color: var(--title-light);
        font-family: var(--font-heading);
        font-size: 17px;
        font-style: italic;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
        overflow-wrap: break-word;
    }
}

@media (max-width: 430px) {
    .departed-shepherds {
        padding: 50px 15px 70px;
    }
    .departed-shepherds h2 {
        margin-bottom: 45px;
        font-size: 24px;
    }

    .departed-container {
        width: 100%;
        gap: 50px;
    }

    .departed-major-list,
    .departed-deacon-list {
        column-gap: 20px;
        row-gap: 36px;
    }

    .departed-card.departed-major-card {
        gap: 12px;
    }

    .departed-card.departed-major-card img {
        width: 125px;
        height: 125px;
    }

    .departed-card.departed-deacon-card img {
        width: 104px;
        height: 104px;
    }

    .departed-card .departed-info {
        min-height: 55px;
    }

    .departed-card .departed-info h3 {
        font-size: 15px;
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    .departed-shepherds {
        padding-left: 12px;
        padding-right: 12px;
    }
    .departed-container {
        gap: 45px;
    }

    .departed-major-list,
    .departed-deacon-list {
        column-gap: 15px;
        row-gap: 32px;
    }

    .departed-card.departed-major-card img {
        width: 110px;
        height: 110px;
    }

    .departed-card.departed-deacon-card img {
        width: 90px;
        height: 90px;
    }

    .departed-card .departed-info h3 {
        font-size: 14px;
    }
}

/* ------------------------------------------------------------
   7. CONTACT PAGE (Optimized Text Spacing & Layout)
------------------------------------------------------------ */
.contact-page {
    width: 100%;
    padding-bottom: 90px;
}

.contact-hero {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background:
        linear-gradient(rgba(11, 31, 58, 0.85), rgba(11, 31, 58, 0.92)),
        url('images/contact/connect.jpg') center/cover fixed;
    color: var(--white);
    padding: 130px 20px 80px;
    box-sizing: border-box;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.header-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 14px;
}

.contact-hero .page-title {
    font-family: var(--font-display);
    font-size: 3.2rem;
    color: var(--title-light);
    margin: 0 0 16px;
    line-height: 1.2;
}

.contact-hero .page-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-on-navy-muted);
    margin: 18px 0 0;
    line-height: 1.7;
}

.contact-container {
    width: 100%;
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 25px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* --- Unified contact box --- */
.unified-contact-box-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto 70px auto;
    padding: 0 20px;
}

.page-particles {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: calc(100% + 60px);
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--gold) 0%, rgba(255, 255, 255, 0.6) 60%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--gold);
    animation: fallParticle linear infinite;
}

@keyframes fallParticle {
    0% {
        transform: translateY(-20px) scale(0.5);
        opacity: 0;
    }
    30% {
        opacity: 0.9;
    }
    70% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(750px) scale(1.3);
        opacity: 0;
    }
}

.unified-contact-box {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), var(--shadow-gold-glow);
    border: 1px solid var(--border-gold);
    overflow: hidden;
    z-index: 2;
    transition: var(--transition);
}

.unified-contact-box:hover {
    box-shadow:
        var(--shadow-lg),
        0 0 35px rgba(201, 162, 39, 0.28);
    transform: translateY(-2px);
}

.unified-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.unified-info-panel {
    position: relative;
    background:
        linear-gradient(rgba(11, 31, 58, 0.9), rgba(11, 31, 58, 0.95)),
        url('images/contact/contact.JPG') center/cover no-repeat;
    padding: 60px 50px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.panel-header h2 {
    font-family: var(--font-display);
    font-size: 2.3rem;
    color: var(--title-light);
    margin: 0 0 12px;
    line-height: 1.25;
}

.panel-header p {
    font-family: var(--font-body);
    color: var(--text-on-navy-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 30px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 35px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.info-item .item-icon {
    font-size: 1.3rem;
    color: var(--gold);
    background: rgba(201, 162, 39, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-gold);
    transition: var(--transition);
}

.info-item:hover .item-icon {
    background: var(--gold);
    color: var(--navy-main);
    transform: scale(1.08);
}

.item-text h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--title-light);
    margin: 0 0 6px;
    line-height: 1.3;
}

.item-text p {
    font-family: var(--font-body);
    color: var(--text-on-navy-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.panel-social h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.25);

    /* Dagdag para matanggal ang linya sa ilalim */
    text-decoration: none !important;
    border-bottom: none !important;
}

.social-icons a i {
    font-size: 1.2rem;
    color: var(--white);
}

.social-icons a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.social-icons a:hover i {
    color: var(--navy-main);
}

.unified-form-panel {
    padding: 60px 50px;
    background: var(--white);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-panel);
    color: var(--navy-main);
    font-family: var(--font-body);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid var(--border-gold);
    width: fit-content;
}

.unified-form-panel h3 {
    font-family: var(--font-display);
    color: var(--title-dark);
    font-size: 2.1rem;
    margin: 0 0 10px;
    line-height: 1.25;
}

.unified-form-panel p {
    font-family: var(--font-body);
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 25px;
    font-size: 0.95rem;
}

.prayer-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.prayer-form input,
.prayer-form textarea,
.prayer-form select {
    width: 100%;
    padding: 13px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-panel);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.prayer-form input:focus,
.prayer-form textarea:focus,
.prayer-form select:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    background: var(--navy-main);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    margin-top: 8px;
    width: fit-content;
}

.submit-btn:hover {
    background: var(--gold);
    color: var(--navy-main);
    transform: translateY(-3px);
}

/* --- Map section --- */
.map-section {
    margin-top: 70px;
    margin-bottom: 70px;
    text-align: center;
    width: 100%;
}

.section-title {
    font-family: var(--font-display);
    color: var(--title-dark);
    font-size: 2.3rem;
    margin-bottom: 25px;
}

.map-container {
    width: 100%;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    border-radius: var(--radius-md);
    display: block;
    width: 100%;
}

/* --- Optional scroll reveal ---
   Progressive enhancement:
   - JavaScript adds .js to <html> and .show to observed items.
   - Without JavaScript, content stays visible instead of being hidden.
   - .active remains supported for older markup/scripts. */
.reveal-item {
    opacity: 1;
    transform: none;
}

html.js .reveal-item {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal-item.show,
html.js .reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .unified-grid {
        grid-template-columns: 1fr;
    }
    .unified-info-panel {
        padding: 45px 30px;
    }
    .unified-form-panel {
        padding: 45px 30px;
    }
    .contact-hero .page-title {
        font-size: 2.4rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   9. FOOTER - OFFICIAL CHURCH WEBSITE EDITION
   SECURE / POLISHED / TIMELESS
============================================================ */

.footer {
    width: 100%;
    box-sizing: border-box;

    background: linear-gradient(180deg, var(--navy-main) 0%, var(--navy-darkest) 100%);

    color: var(--white);
    padding: 42px 4% 20px;
    border-top: 2px solid var(--gold);

    position: relative;
    overflow: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.footer-container {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.5fr 1.15fr 1.3fr;
    align-items: start;
    column-gap: 55px;
    min-height: 200px;
}

.footer-about {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
    text-align: left;
}

.footer-logo {
    width: 125px;
    height: 140px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.footer-about-text {
    min-width: 0;
    text-align: left;
}

.footer-about h3 {
    margin: 0 0 10px;
    color: var(--title-light);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: left;
}

.footer-about p {
    margin: 0;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-align: left;
}

.footer-mass {
    text-align: left;
    min-width: 0;
    padding: 0;
    transform: translateX(18px);
}

.footer-mass h3 {
    margin: 0 0 12px;
    color: var(--title-light);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: left;
}

#footer-mass-schedule {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

#footer-mass-schedule p {
    margin: 4px 0;
    text-align: left;
}

.footer-contact {
    min-width: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transform: translateY(110px);
}

.footer-address {
    margin: 0 0 6px;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-align: right;
}

.footer-contact a {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.4px;
    display: inline-block;
    margin-top: 8px;
    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
    text-align: right;
}

.footer-contact a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(201, 162, 39, 0.3);
}

.footer-bottom {
    width: 100%;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    margin: 0;
    font-family: var(--font-body);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.6px;
    opacity: 0.9;
    text-align: left;
    flex: 1 1 auto;
}

.footer .social-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    z-index: 10;
    pointer-events: auto;
    flex-shrink: 0;
}

.footer .social-icons a {
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 11;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer .social-icons a:hover {
    background: var(--gold);
    color: var(--navy-main);
    border-color: var(--gold);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(201, 162, 39, 0.3);
}

@media (min-width: 1200px) {
    .footer {
        padding-left: 5%;
        padding-right: 5%;
        padding-bottom: 22px;
    }
    .footer-container {
        grid-template-columns: 1.5fr 1.15fr 1.3fr;
        column-gap: 65px;
        min-height: 220px;
    }
    .footer-logo {
        width: 135px;
        height: 155px;
    }
    .footer-about {
        gap: 30px;
    }
    .footer-about h3 {
        font-size: 32px;
        text-align: left;
    }
    .footer-about p {
        font-size: 15px;
        text-align: left;
    }
    .footer-mass {
        transform: translateX(22px);
    }
    .footer-mass h3 {
        font-size: 26px;
    }
    #footer-mass-schedule {
        font-size: 15px;
    }
    .footer-contact {
        transform: translateY(95px);
    }
    .footer-address {
        font-size: 15px;
    }
    .footer-contact a {
        font-size: 15px;
    }
    .footer-bottom {
        margin-top: 35px;
        padding-top: 18px;
    }
    .footer-bottom p {
        font-size: 14px;
        text-align: left;
    }
    .footer .social-icons {
        gap: 14px;
    }
    .footer .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

@media (max-width: 900px) {
    .footer {
        padding: 32px 4% 18px;
    }
    .footer-container {
        grid-template-columns: 1.3fr 1fr 1.1fr;
        column-gap: 25px;
        min-height: 180px;
    }
    .footer-logo {
        width: 85px;
        height: 95px;
    }
    .footer-about {
        gap: 15px;
        text-align: left;
    }
    .footer-about-text {
        text-align: left;
    }
    .footer-about h3 {
        font-size: 21px;
        text-align: left;
    }
    .footer-about p {
        font-size: 11px;
        text-align: left;
    }
    .footer-mass {
        transform: translateX(10px);
    }
    .footer-mass h3 {
        font-size: 19px;
    }
    #footer-mass-schedule {
        font-size: 11px;
    }
    .footer-contact {
        transform: translateY(35px);
    }
    .footer-address {
        font-size: 11px;
    }
    .footer-contact a {
        font-size: 11px;
    }
    .footer-bottom {
        margin-top: 24px;
        padding-top: 14px;
    }
    .footer-bottom p {
        font-size: 10px;
        text-align: left;
    }
    .footer .social-icons {
        gap: 10px;
    }
    .footer .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

@media (max-width: 650px) {
    .footer {
        padding: 28px 5% 18px;
        overflow: hidden;
    }
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        min-height: auto;
    }
    .footer-about {
        gap: 14px;
        align-items: center;
        text-align: left;
    }
    .footer-about-text {
        text-align: left;
    }
    .footer-logo {
        width: 65px;
        height: 75px;
    }
    .footer-about h3 {
        font-size: 18px;
        line-height: 1.15;
        margin-bottom: 4px;
        text-align: left;
    }
    .footer-about p {
        font-size: 11px;
        line-height: 1.4;
        text-align: left;
    }
    .footer-mass {
        text-align: left;
        padding: 0;
        transform: none;
    }
    .footer-mass h3 {
        font-size: 18px;
        margin-bottom: 6px;
        text-align: left;
    }
    #footer-mass-schedule {
        font-size: 11px;
        line-height: 1.5;
        text-align: left;
    }
    #footer-mass-schedule p {
        margin: 3px 0;
        text-align: left;
    }
    .footer-contact {
        text-align: left;
        align-items: flex-start;
        transform: none;
        margin-top: 2px;
    }
    .footer-address {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 4px;
        text-align: left;
    }
    .footer-contact a {
        font-size: 11px;
        line-height: 1.5;
        margin-top: 2px;
        text-align: left;
    }
    .footer-bottom {
        margin-top: 20px;
        padding-top: 12px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .footer-bottom p {
        font-size: 10px;
        font-weight: 600;
        text-align: left;
    }
    .footer .social-icons {
        justify-content: flex-end;
        gap: 10px;
        margin-top: 0;
    }
    .footer .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* ------------------------------------------------------------
   SACRAMENTS SECTION (LARGER & BOLD DESIGN)
------------------------------------------------------------ */
.sacraments-page {
    background-color: #fbf9f4;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 60%),
        radial-gradient(circle at 85% 20%, rgba(140, 129, 99, 0.08), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #fbf9f4 100%);
    min-height: 100vh;
    padding: 110px 5% 100px; /* Mas malaking padding sa itaas at ibaba */
    position: relative;
    overflow: hidden;
    border-top: 6px solid var(--navy-main);
}

/* Background Watermark Cross Symbol */
.sacraments-page::before {
    content: '✝';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 650px; /* Mas malaking watermark sa background */
    color: rgba(11, 31, 58, 0.025);
    pointer-events: none;
    user-select: none;
}

/* Title Styling - Mas Malaki */
.title {
    text-align: center;
    margin-bottom: 75px;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.title h1 {
    color: var(--title-dark);
    font-family: var(--font-heading);
    font-size: 60px; /* Mas malaking Title */
    margin-bottom: 18px;
    letter-spacing: 2px;
    font-weight: 700;
}

.title p {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 20px; /* Mas malaking sub-text */
    line-height: 1.7;
}

/* Container Grid - Nilapadan para magkasya ang malaking cards */
.sacrament-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Mas malaking agwat ng bawat card */
    position: relative;
    z-index: 2;
    max-width: 1350px; /* Mas malapad na kabuuang container */
    margin: 0 auto;
}

/* Card - Mas Malaki at Malapad */
.sacrament-card {
    background: #ffffff;
    padding: 50px 32px 42px; /* Mas malaking space sa loob ng card */
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 12px 35px rgba(11, 31, 58, 0.07);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PANG-7 CARD: Center aligned sa 3-column layout */
.sacrament-card.featured-card {
    grid-column: 2 / 3;
}

/* Hover Effect sa Card */
.sacrament-card:hover {
    transform: translateY(-12px);
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow:
        0 24px 50px rgba(11, 31, 58, 0.14),
        0 0 30px rgba(212, 175, 55, 0.18);
}

/* ICON CONTAINER - Mas Malaki ( Mula 150px naging 190px ) */
.icon {
    width: 190px;
    height: 190px;
    margin: 0 auto 28px auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

/* Gold Ring Frame sa Hover */
.icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.45);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.4s ease;
}

.sacrament-card:hover .icon::before {
    opacity: 1;
    transform: scale(1);
}

/* Image Inside Icon - Mas Malaki */
.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.sacrament-card:hover .icon img {
    transform: scale(1.1);
}

/* Card Content Typography - Mas Malaki */
.sacrament-card h3 {
    color: var(--title-dark);
    font-family: var(--font-heading);
    font-size: 27px; /* Mas malaking font size ng pamagat */
    margin-bottom: 14px;
    font-weight: 700;
}

.sacrament-card p {
    font-family: var(--font-body);
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 16px; /* Mas madaling basahing sukat ng deskripsyon */
    margin: 0;
}

/* Responsive adjustments sa mga katamtaman o maliliit na screen */
@media (max-width: 1100px) {
    .sacrament-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .sacrament-card.featured-card {
        grid-column: 1 / -1;
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 650px) {
    .sacrament-container {
        grid-template-columns: 1fr;
    }
    .sacraments-page {
        padding: 32px 5% 60px;
        border-top: 0;
    }
    .sacrament-card.featured-card {
        grid-column: auto;
    }
    .icon {
        width: 160px;
        height: 160px;
    }
    .title h1 {
        font-size: 42px;
    }
}
/* ============================================================
   12. CHURCH HISTORY - REFINED & MOBILE-SPACED SANCTUARY EDITION
============================================================ */

.history-section {
    width: 100vw;
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 150px 0 70px;
    background-color: var(--bg-parchment, #f4f0eb);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(27, 42, 74, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(184, 150, 90, 0.1) 0%, transparent 65%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.history-section::before,
.history-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none !important;
    filter: blur(110px);
    z-index: 0;
    will-change: transform;
}

.history-section::before {
    width: 520px;
    height: 520px;
    background: rgba(27, 42, 74, 0.05);
    top: -200px;
    right: -200px;
}

.history-section::after {
    width: 440px;
    height: 440px;
    background: rgba(184, 150, 90, 0.08);
    bottom: -160px;
    left: -160px;
}

.history-section .page-header {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    margin-bottom: 75px;
}

.history-section .page-header h1 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    line-height: 1.15;
    color: var(--title-dark);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 15px rgba(27, 42, 74, 0.08);
}

.history-section .page-header p {
    max-width: 820px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--text-muted, #5a5a5a);
    font-style: italic;
}

.history-container {
    position: relative;
    z-index: 3;
    width: 100vw;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.history-card {
    position: relative;
    z-index: 4;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    background: #eae2d2;
    overflow: hidden;
    border-top: 1px solid rgba(184, 150, 90, 0.25);
    border-bottom: 1px solid rgba(184, 150, 90, 0.25);
    box-shadow:
        inset 0 0 40px rgba(184, 150, 90, 0.06),
        0 8px 30px rgba(27, 42, 74, 0.04);
    transition:
        background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s ease;
}

.history-card:hover {
    background: #e4dac5;
    box-shadow:
        inset 0 0 50px rgba(184, 150, 90, 0.1),
        0 14px 40px rgba(27, 42, 74, 0.08);
}

.history-card-img-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 350px;
    padding: 30px 4vw;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 42, 74, 0.02);
    overflow: hidden;
    pointer-events: none;
}

.history-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain !important;
    border-radius: 4px;
    transform: none !important;
    filter: brightness(0.99) saturate(0.99);
    transition:
        filter 0.4s ease,
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.history-card:hover img {
    filter: brightness(1.04) saturate(1.02);
    transform: scale(1.015) !important;
}

.history-content {
    position: relative;
    z-index: 10;
    min-width: 0;
    padding: 55px 9vw 55px 4vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    pointer-events: auto;
}

.history-content > span {
    display: none !important;
}

.history-content h2 {
    width: 100%;
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--title-dark);
    overflow-wrap: break-word;
    letter-spacing: -0.3px;
}

.history-text {
    width: 100%;
    position: relative;
    z-index: 5;
}

.history-content p {
    width: 100%;
    max-width: 1050px;
    margin: 0;
    font-family: var(--font-body);
    color: #2c2c2c;
    font-size: 1.12rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.history-content > a {
    position: relative;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin-top: 26px;
    padding: 13px 30px;
    background: var(--navy-main, #1b2a4a);
    color: var(--white, #ffffff);
    border: 1px solid var(--navy-main, #1b2a4a);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto !important;
    transition:
        background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-content > a:hover {
    background: var(--gold-accent, #b8965a);
    border-color: var(--gold-accent, #b8965a);
    color: var(--white, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(184, 150, 90, 0.4);
}

.history-content > a::before,
.history-content > a::after {
    pointer-events: none !important;
}

.history-card:nth-child(even) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.history-card:nth-child(even) .history-card-img-wrapper {
    order: 2;
}

.history-card:nth-child(even) .history-content {
    order: 1;
    padding-left: 9vw;
    padding-right: 4vw;
    align-items: flex-end;
    text-align: right;
}

.history-card:nth-child(even) .history-content h2,
.history-card:nth-child(even) .history-content p {
    text-align: right;
}

.history-card:nth-child(even) .history-content > a {
    align-self: flex-end;
}

@media (max-width: 1000px) {
    .history-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .history-content {
        padding: 40px 6vw;
    }
    .history-card:nth-child(even) .history-content {
        padding: 40px 6vw;
    }
    .history-content h2 {
        font-size: 1.65rem;
    }
    .history-content p {
        font-size: 1rem;
    }
}

@media (max-width: 700px) {
    .history-section {
        margin-top: -70px;
        padding-top: 95px;
    }
    .history-section .page-header {
        margin-bottom: 45px;
    }
    .history-card,
    .history-card:nth-child(even) {
        display: flex;
        flex-direction: column;
        width: 100vw;
        align-items: stretch;
    }
    .history-card-img-wrapper,
    .history-card:nth-child(even) .history-card-img-wrapper {
        order: 1;
        width: 100%;
        min-height: 220px;
        padding: 20px 24px 0;
    }
    .history-card img {
        max-height: 280px;
    }
    .history-content,
    .history-card:nth-child(even) .history-content {
        order: 2;
        width: 100%;
        padding: 24px 24px 44px;
        align-items: flex-start;
        text-align: left;
    }
    .history-card:nth-child(even) .history-content h2,
    .history-card:nth-child(even) .history-content p {
        text-align: left;
    }
    .history-content h2 {
        font-size: 1.45rem;
    }
    .history-content p {
        font-size: 0.95rem;
    }
    .history-content > a,
    .history-card:nth-child(even) .history-content > a {
        align-self: flex-start;
    }
}

/* =========================================
   CEC AFFILIATION SECTION
========================================= */

.cec-section {
    width: 100vw;
    min-height: auto;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 0 40px 0;
    background: #f4f3ef;
    box-sizing: border-box;
}

.cec-container {
    width: calc(100% - 170px);
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 45px 8% 45px 6%;
    box-sizing: border-box;
    background: #152c46;
    color: #ffffff;
    border-radius: 0 50px 50px 0;
    border: none;
    box-shadow: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: none;
}

.cec-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 15px 0;
    width: 100%;
}

.cec-logo {
    width: 110px;
    height: auto;
    flex-shrink: 0;
    margin: 0;
    display: block;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.3));
}

.cec-container h2 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--title-light);
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 700;
    text-align: left;
    text-shadow: none;
}

.cec-container h3 {
    display: none;
}

.cec-container p {
    max-width: 950px;
    margin: 0 0 25px 115px;
    font-family: var(--font-body);
    font-size: clamp(15px, 1.25vw, 19px);
    line-height: 1.55;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.96);
    text-align: left;
}

.cec-container p:last-of-type {
    margin-bottom: 15px;
}

.learn-btn {
    display: inline-block;
    align-self: flex-start;
    margin: 5px 0 0 115px;
    padding: 12px 22px;
    background: #d9c49d;
    color: #152c46;
    text-decoration: none;
    border-radius: 25px;
    border: none;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.learn-btn:hover {
    background: #ffffff;
    color: #152c46;
    transform: translateY(-2px);
    box-shadow: none;
}

@media (max-width: 768px) {
    .cec-section {
        width: 100vw;
        min-height: 100vh;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0;
    }
    .cec-container {
        width: calc(100% - 8px);
        max-width: none;
        min-height: 100vh;
        padding: 20px 7% 60px;
        margin-bottom: 24px;
        border-radius: 0 40px 40px 0;
        justify-content: center;
    }
    .cec-header {
        gap: 15px;
        margin-bottom: 10px;
    }
    .cec-logo {
        width: 75px;
    }
    .cec-container h2 {
        font-size: 34px;
    }
    .cec-container p {
        margin-left: 90px;
        font-size: 14px;
        line-height: 1.45;
        max-width: 100%;
    }
    .learn-btn {
        margin-left: 90px;
    }
}

@media (max-width: 480px) {
    .cec-section {
        width: 100vw;
        min-height: 100vh;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0;
    }
    .cec-container {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        padding: 15px 22px 55px;
        border-radius: 0 24px 24px 0;
        justify-content: center;
        box-sizing: border-box;
    }
    .cec-header {
        gap: 14px;
        margin-bottom: 15px;
        align-items: center;
    }
    .cec-logo {
        width: 58px;
    }
    .cec-container h2 {
        font-size: 24px;
        line-height: 1.2;
    }
    .cec-container p {
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 16px;
        font-size: 13.5px;
        line-height: 1.55;
        max-width: 100%;
    }
    .learn-btn {
        margin-left: 0;
        margin-top: 8px;
        padding: 10px 20px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .cec-container {
        width: 100%;
        padding: 10px 16px 50px;
    }
    .cec-logo {
        width: 48px;
    }
    .cec-container h2 {
        font-size: 21px;
    }
    .cec-container p {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 14px;
    }
    .learn-btn {
        padding: 9px 16px;
        font-size: 10px;
    }
}

/* ------------------------------------------------------------
   13. STICKY NAV / SCROLL BUTTONS
------------------------------------------------------------ */
.home-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    width: 52px;
    height: 52px;
    background: var(--navy-main);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.home-btn:hover {
    background: var(--gold);
    color: var(--navy-main);
    transform: scale(1.1) rotate(-5deg);
}

/* ------------------------------------------------------------
   15. MASS SCHEDULE (Ultra-Masterpiece Ivory & Royal Navy - Pure Static)
------------------------------------------------------------ */
.schedule-section {
    padding: 120px 24px;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(11, 31, 58, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 0% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, #fffdfa 0%, #f7f4ed 100%);
    min-height: 95vh;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.schedule-container {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
    position: relative;
}

.section-header h2 {
    color: var(--title-dark);
    font-size: 52px;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.schedule-intro {
    color: #575044;
    font-size: 1.22rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.85;
    font-weight: 400;
}

#global-countdown-banner {
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--text-body) !important;
    padding: 18px 42px !important;
    border-radius: 100px !important;
    text-align: center;
    margin: 0 auto 55px auto !important;
    max-width: fit-content;
    box-shadow:
        0 20px 45px rgba(35, 30, 20, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
    display: inline-flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 18px !important;
    border: 1.5px solid rgba(212, 175, 55, 0.35) !important;
    font-size: 1.02rem;
    font-family: var(--font-body);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

#global-countdown-banner span {
    color: #5c5243 !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

#global-timer-display {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--navy-main) !important;
    background: linear-gradient(135deg, rgba(11, 31, 58, 0.06) 0%, rgba(212, 175, 55, 0.12) 100%);
    padding: 6px 20px;
    border-radius: 50px;
    border: 1px solid rgba(11, 31, 58, 0.14);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(11, 31, 58, 0.04) inset;
}

.schedule-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 45px;
    gap: 24px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 320px;
}

.search-box i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8170;
    font-size: 1.15rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 19px 28px 19px 62px;
    border: 1.5px solid rgba(195, 180, 155, 0.4);
    border-radius: 22px;
    font-family: var(--font-body);
    font-size: 1.02rem;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(35, 30, 20, 0.025);
    backdrop-filter: blur(12px);
    color: var(--navy-main);
}

.search-box input:focus {
    border-color: var(--gold);
    box-shadow:
        0 0 0 5px rgba(212, 175, 55, 0.2),
        0 18px 45px rgba(35, 30, 20, 0.05);
    background: #ffffff;
}

.search-box input:focus + i {
    color: var(--gold);
}

.filter-box select {
    padding: 19px 46px 19px 28px;
    border: 1.5px solid rgba(195, 180, 155, 0.4);
    border-radius: 22px;
    font-family: var(--font-body);
    font-size: 1.02rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy-main);
    outline: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(35, 30, 20, 0.025);
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.filter-box select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.2);
    background: #ffffff;
}

.table-responsive {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 30px;
    box-shadow:
        0 38px 90px rgba(35, 30, 20, 0.06),
        0 0 0 1px rgba(255, 255, 255, 1) inset;
    overflow-x: auto;
    border: 1.5px solid rgba(212, 175, 55, 0.3);
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(247, 244, 237, 0.6);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 10px;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-family: var(--font-body);
}

.schedule-table th {
    background: linear-gradient(135deg, var(--navy-main) 0%, #051224 100%);
    color: #ffffff;
    padding: 28px 38px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-weight: 700;
    font-family: var(--font-display);
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.schedule-table td {
    padding: 28px 38px;
    border-bottom: 1px solid rgba(230, 222, 205, 0.45);
    color: #363026;
    font-size: 1.04rem;
    vertical-align: middle;
    line-height: 1.7;
    font-family: var(--font-body);
}

.schedule-table tbody tr:hover {
    background-color: #fbf9f4;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 85px 24px;
    color: #7a7060;
    font-size: 1.18rem;
    font-style: italic;
    background: rgba(255, 255, 255, 0.97);
}

@media screen and (max-width: 768px) {
    .schedule-section {
        padding: 28px 16px 105px;
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
    .schedule-intro {
        font-size: 1.1rem;
    }
    #global-countdown-banner {
        max-width: 100%;
        font-size: 0.94rem;
        padding: 18px 24px !important;
        margin-bottom: 45px !important;
        flex-direction: column !important;
        border-radius: 24px !important;
        gap: 12px !important;
    }
    .schedule-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .filter-box select {
        width: 100%;
    }
    .schedule-table thead {
        display: none;
    }
    .schedule-table,
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%;
    }
    .schedule-table tbody tr {
        background: #ffffff;
        margin-bottom: 26px;
        border-radius: 24px;
        box-shadow: 0 16px 40px rgba(35, 30, 20, 0.05);
        border: 1.5px solid rgba(212, 175, 55, 0.35);
        overflow: hidden;
    }
    .schedule-table td {
        background-color: #ffffff !important;
        color: #363026 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 26px;
        border-bottom: 1px solid rgba(235, 227, 212, 0.6);
        font-size: 1rem;
        gap: 18px;
    }
    .schedule-table td[data-label='Service'] {
        font-weight: 700;
        font-size: 1.18rem;
        color: var(--navy-main) !important;
        background: linear-gradient(90deg, #fbf9f4 0%, #ffffff 100%) !important;
        border-bottom: 2.5px solid rgba(212, 175, 55, 0.4);
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .schedule-table tr td:last-child {
        border-bottom: none;
    }
    .schedule-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #8a7e6c;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1.4px;
        flex-shrink: 0;
        font-family: var(--font-display);
    }
}

/* ------------------------------------------------------------
   16. PHOTO GALLERY / ALBUMS (Navy / Light Ivory / Gold — Seamless Enhanced)
------------------------------------------------------------ */
.gallery-section {
    max-width: 1450px;
    margin: 60px auto;
    padding: 80px 20px;
    font-family: var(--font-body);
    background: transparent;
    border: none;
    box-shadow: none;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
}

#albumsContainer {
    flex-grow: 1;
}

.gallery-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-section .section-title h2 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    color: var(--title-dark);
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.gallery-section .section-title p {
    color: #575044;
    font-size: 1.18rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

.albums-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    font-family: var(--font-body);
}

.album-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 16px 40px rgba(35, 30, 20, 0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    font-family: var(--font-body);
}

.album-card:hover {
    border-color: var(--gold);
    background: #ffffff;
}

.album-cover-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f7f4ed;
    overflow: hidden;
    position: relative;
    border-bottom: 1.5px solid rgba(212, 175, 55, 0.2);
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-info {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.album-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--title-dark);
    margin-bottom: 10px;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.album-description {
    font-size: 0.98rem;
    color: #615748;
    line-height: 1.6;
    margin-bottom: 22px;
    font-family: var(--font-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(230, 222, 205, 0.5);
    padding-top: 18px;
    margin-top: auto;
}

.album-photo-count {
    font-size: 0.84rem;
    color: var(--navy-main);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(11, 31, 58, 0.06) 0%, rgba(212, 175, 55, 0.12) 100%);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(11, 31, 58, 0.12);
    letter-spacing: 0.3px;
}

.view-album-btn {
    background: linear-gradient(135deg, var(--navy-main) 0%, #051224 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(11, 31, 58, 0.15);
}

.view-album-btn:hover {
    background: var(--gold);
    color: var(--navy-main);
}

#singleAlbumView {
    padding: 40px 32px;
    border-radius: 32px;
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    background:
        radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(11, 31, 58, 0.03) 0%, transparent 40%),
        linear-gradient(180deg, #fffdfa 0%, #f7f4ed 100%);
    box-shadow: 0 38px 90px rgba(35, 30, 20, 0.05);
}

.back-to-albums-btn {
    background: #ffffff;
    color: var(--navy-main);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 30px;
    cursor: pointer;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    box-shadow: 0 6px 20px rgba(35, 30, 20, 0.04);
}

.back-to-albums-btn:hover {
    background: #f7f4ed;
    border-color: var(--gold);
    color: var(--navy-main);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.photo-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 14px 35px rgba(35, 30, 20, 0.06);
    cursor: pointer;
    position: relative;
}

.photo-item:hover {
    border-color: var(--gold);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 1200px) {
    .albums-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .gallery-section {
        padding: 32px 12px 80px;
        margin: 20px 0;
        min-height: 500px;
    }
    .gallery-section .section-title h2 {
        font-size: 2.2rem;
    }
    .albums-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .album-info {
        padding: 12px;
    }
    .album-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    .album-description {
        font-size: 0.82rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    .album-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 10px;
    }
    .album-photo-count {
        text-align: center;
        font-size: 0.72rem;
        padding: 5px 8px;
    }
    .view-album-btn {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
    #singleAlbumView {
        padding: 24px 16px;
        border-radius: 24px;
    }
    .back-to-albums-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
        margin-bottom: 20px;
    }
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .photo-item {
        border-radius: 14px;
        aspect-ratio: 1 / 1;
    }
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 40px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 18, 36, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 20px;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--white);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.2);
}

@media only screen and (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 70vh;
        border-radius: 14px;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
}

/* ------------------------------------------------------------
   17. PARISH BULLETIN & OFFICIAL EVENTS (Pure Static Executive Polish)
------------------------------------------------------------ */
.parish-bulletin {
    width: 96%;
    max-width: 1440px;
    margin: 100px auto;
    padding: 40px 45px;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(11, 31, 58, 0.03) 0%, transparent 40%),
        linear-gradient(180deg, #fffdfa 0%, #f7f4ed 100%);
    border-radius: 32px;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    font-family: var(--font-body);
    box-sizing: border-box;
    box-shadow: 0 35px 90px rgba(11, 31, 58, 0.06);
    position: relative;
    overflow: hidden;
}

.parish-bulletin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-main), var(--gold), var(--navy-main));
}

.bulletin-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.bulletin-title h2 {
    margin: 0 0 16px;
    color: var(--title-dark);
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.bulletin-title p {
    max-width: 720px;
    margin: 18px auto 0;
    color: #575044;
    font-size: 1.18rem;
    line-height: 1.75;
    font-weight: 400;
}

.bulletin-wrapper {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    width: 100%;
    align-items: start;
    box-sizing: border-box;
    position: relative;
}

.announcement-box,
.events-box {
    min-width: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 28px;
    padding: 38px;
    box-shadow: 0 20px 50px rgba(35, 30, 20, 0.04);
    box-sizing: border-box;
    font-family: var(--font-body);
}

.announcement-box:hover,
.events-box:hover {
    border-color: var(--gold);
    background: #ffffff;
}

.bulletin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 22px;
    margin-bottom: 32px;
    border-bottom: 1.5px solid rgba(230, 222, 205, 0.6);
}

.bulletin-header h3 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    color: var(--title-dark);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.bulletin-header h3 i,
.bulletin-header i {
    color: #ffffff;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--navy-main) 0%, #051224 100%);
    padding: 14px;
    border-radius: 16px;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 20px rgba(11, 31, 58, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bulletin-header:hover h3 i {
    background: linear-gradient(135deg, var(--gold) 0%, #b89223 100%);
    color: var(--navy-main);
    border-color: var(--navy-main);
}

.bulletin-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-body);
}

.bulletin-list > div,
.bulletin-content-card,
.announcement-card,
.event-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1.5px solid rgba(212, 175, 55, 0.28);
    border-left: 5px solid var(--gold);
    border-radius: 18px;
    padding: 28px;
    margin: 0 !important;
    box-shadow: 0 8px 24px rgba(35, 30, 20, 0.03);
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family: var(--font-body);
}

.bulletin-list > div:hover,
.bulletin-content-card:hover,
.announcement-card:hover,
.event-card:hover {
    border-left-color: var(--navy-main);
    border-color: var(--gold);
}

.ann-date,
.event-date,
.bulletin-content-card > span:first-child,
.bulletin-card .date,
.event-item .date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--navy-main);
    background: linear-gradient(135deg, rgba(11, 31, 58, 0.05) 0%, rgba(212, 175, 55, 0.12) 100%);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 1px solid rgba(11, 31, 58, 0.12);
}

.announcement-card h4,
.event-card h4,
.bulletin-card h4,
.event-item h4,
.bulletin-list > div h4,
.bulletin-list > div strong,
.bulletin-list > div b {
    display: block;
    margin: 0 0 10px;
    color: var(--title-dark);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.announcement-card p,
.event-card p,
.event-description,
.bulletin-card p,
.event-item p,
.bulletin-list > div p {
    margin: 0 0 14px;
    color: #383228;
    font-size: 1.04rem;
    line-height: 1.75;
    font-family: var(--font-body);
}

.announcement-card small,
.bulletin-card .author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(200, 190, 170, 0.6);
    color: #736959;
    font-size: 0.9rem;
    font-style: italic;
}

.event-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b3328;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    background: #f7f4ed;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.bulletin-list div i {
    color: var(--navy-main);
    background: #f7f4ed;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-right: 8px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.bulletin-list > div:hover div i {
    background: var(--navy-main);
    color: var(--gold);
    border-color: var(--navy-main);
}

.loading-text,
.bulletin-list:empty::before {
    display: block;
    padding: 45px;
    color: #7a7060;
    text-align: center;
    font-size: 1.05rem;
    font-style: italic;
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px dashed rgba(212, 175, 55, 0.4);
}

.bulletin-list:empty::before {
    content: 'No announcements or official events available at this time.';
}

.view-all-btn {
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    background: #ffffff;
    color: var(--navy-main);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(35, 30, 20, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
}

.view-all-btn:hover,
.view-all-btn.active {
    background: linear-gradient(135deg, var(--navy-main) 0%, #051224 100%);
    color: var(--gold-pale);
    border-color: var(--navy-main);
    box-shadow: 0 8px 20px rgba(11, 31, 58, 0.2);
}

@media (max-width: 1024px) {
    .bulletin-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .parish-bulletin {
        padding: 60px 24px;
        border-radius: 24px;
    }
    .bulletin-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .parish-bulletin {
        width: 98%;
        margin: 15px auto;
        padding: 20px 16px 80px;
        border-radius: 20px;
    }
    .bulletin-title {
        margin-bottom: 35px;
    }
    .bulletin-title h2 {
        font-size: 2.1rem;
    }
    .bulletin-title p {
        font-size: 1rem;
    }
    .announcement-box,
    .events-box {
        padding: 24px 16px;
        border-radius: 18px;
    }
    .bulletin-header h3 {
        font-size: 1.4rem;
    }
    .bulletin-header {
        align-items: center;
    }
    .view-all-btn {
        font-size: 0.82rem;
        padding: 8px 16px;
    }
    .bulletin-list > div,
    .announcement-card,
    .event-card {
        padding: 20px 16px;
        border-radius: 14px;
    }
    .announcement-card h4,
    .event-card h4 {
        font-size: 1.25rem;
    }
}
/* ------------------------------------------------------------
   18. SHARED MOBILE NAV & PAGE-LEVEL RESPONSIVE RULES
------------------------------------------------------------ */
@media (max-width: 768px) {
    nav {
        padding: 15px 24px;
    }
    .logo {
        font-size: 24px;
    }
    .menu-toggle {
        display: block;
        color: var(--white);
        font-size: 28px;
        cursor: pointer;
        transition:
            transform 0.3s ease,
            color 0.3s ease;
    }
    .menu-toggle:hover {
        color: var(--gold-pale);
        transform: scale(1.05);
    }
    #nav-links {
        position: absolute;
        top: 75px;
        right: 20px;
        width: 250px;
        background: rgba(8, 26, 51, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-gold);
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
        display: flex;
        flex-direction: column;
        padding: 12px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px) scale(0.98);
        transition: var(--transition-smooth);
        z-index: 9999;
        font-family: var(--font-body);
    }
    #nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    #nav-links li {
        width: 100%;
        text-align: center;
    }
    #nav-links li a {
        display: block;
        padding: 20px 20px;
        color: var(--gold-pale);
        font-size: 17px;
        transition:
            background 0.3s ease,
            color 0.3s ease;
        font-family: var(--font-body);
    }
    #nav-links li a:hover {
        background: rgba(201, 162, 39, 0.15);
        color: var(--white);
    }
    .hero {
        height: 85vh;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 17px;
        line-height: 1.6;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
    .cards,
    .event-container {
        flex-direction: column;
        align-items: center;
    }
    .card,
    .ministry-card,
    .event-card {
        width: 90%;
        max-width: 400px;
    }
    .about {
        padding: 50px 20px;
    }
    .contact-hero {
        padding-top: 32px;
    }
    .page-title {
        font-size: 2.2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .prayer-section {
        padding: 35px 20px;
    }
    .priests {
        padding: 40px 15px;
    }
    .priests h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }
    .priest-card {
        width: 100%;
        max-width: 340px;
    }
    .priest-card img {
        height: 310px;
    }
    .faith-invite h2 {
        font-size: 1.8rem;
    }
    .faith-wall {
        margin: 60px 15px 40px;
        padding: 70px 20px;
    }
    .faith-header h2 {
        font-size: 35px;
    }
    .faith-form {
        padding: 25px;
    }
    iframe {
        height: 250px;
    }
}

/* ==================================================
   ULTIMATE ELEGANT CHURCH EDITION (LIGHT & LUXURY AURA)
   THEME: ROYAL NAVY, SACRED METALLIC GOLD, & FROSTED GLASS
   FONTS: LINUX LIBERTINE (HEADINGS) & OPEN SANS (BODY)
================================================== */

:root {
    --primary-navy: #0b1f4d;
    --accent-gold: #c3b091;
    --gold-bright: #ebd07b;
    --gold-dark: #997a15;
    --gold-aura: rgba(235, 208, 123, 0.45);
    --gold-subtle-glow: 0 0 25px rgba(195, 176, 145, 0.35);
    --navy-glow: rgba(11, 31, 77, 0.2);
    --bg-light: #fdfbf7;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0%, rgba(235, 208, 123, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(195, 176, 145, 0.15) 0%, transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f4f0e6 100%);
    background-attachment: scroll;
}

/* ============================================================
   ACTIVE RED LINE - MAIN NAV
============================================================ */

nav > ul > li > a.active {
    position: relative !important;
}

nav > ul > li > a.active::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 3px;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    background: #ff0000;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

nav ul.dropdown-menu li a.active::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 3px;
    left: 50% !important;
    right: auto !important;
    bottom: 8px;
    transform: translateX(-50%) !important;
    background: linear-gradient(90deg, #ff4d4d, #ff0000, #ff4d4d);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.6);
    animation: lineFastPulse 1s infinite ease-in-out;
}

@keyframes lineFastPulse {
    0%,
    100% {
        transform: translateX(-50%) scaleX(1);
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.5);
    }
    50% {
        transform: translateX(-50%) scaleX(1.25);
        box-shadow: 0 4px 18px rgba(255, 0, 0, 1);
    }
}

@media (max-width: 768px) {
    nav ul li a.active::after {
        display: none !important;
    }
}

.previous-stream {
    width: 94%;
    max-width: 1580px;
    margin: 40px auto 90px;
    padding: 40px 20px;
}

.previous-stream h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 52px;
    color: var(--title-dark);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-top: 10px;
    margin-bottom: 16px;
    position: relative;
    text-shadow: 0 4px 15px rgba(11, 31, 77, 0.12);
}

.previous-stream h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-bright) 50%, var(--gold-dark) 100%);
    margin: 18px auto 0;
    border-radius: 20px;
    box-shadow:
        0 0 12px var(--gold-aura),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.previous-stream p {
    text-align: center;
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 720px;
    line-height: 1.65;
    margin: 0 auto 50px;
}

.stream-search {
    display: flex;
    justify-content: center;
    margin-bottom: 55px;
}

.stream-search input {
    width: 100%;
    max-width: 680px;
    padding: 18px 32px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 50px;
    border: 2px solid var(--accent-gold);
    outline: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-navy);
    box-shadow: 0 8px 32px rgba(11, 31, 77, 0.06);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.stream-search input:focus {
    border-color: var(--primary-navy);
    box-shadow:
        0 12px 35px rgba(11, 31, 77, 0.14),
        0 0 20px var(--gold-aura);
    background: #ffffff;
    transform: translateY(-2px);
}

.stream-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stream-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    border: 1.5px solid rgba(195, 176, 145, 0.5);
    border-top: 4.5px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(11, 31, 77, 0.07);
    transition: var(--transition-smooth);
}

.stream-card:hover {
    border-color: var(--gold-bright);
    border-top-color: var(--primary-navy);
    box-shadow:
        0 18px 45px rgba(11, 31, 77, 0.15),
        0 0 25px var(--gold-aura);
    transform: translateY(-6px);
}

.stream-card img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-gold);
    transition: filter 0.4s ease;
    transform: none !important;
}

.stream-card:hover img {
    filter: brightness(1.05) contrast(1.02);
}

.stream-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    pointer-events: none;
}

.stream-card:hover::after {
    left: 150%;
    transition: left 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.stream-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stream-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--title-dark);
    margin: 0 0 10px;
    line-height: 1.35;
    font-weight: 700;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stream-card:hover .stream-content h3 {
    color: var(--navy-light);
}

.stream-date {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.25);
    transition: var(--transition-smooth);
    margin-top: auto;
    align-self: flex-start;
}

.watch-btn:hover {
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    box-shadow:
        0 6px 20px rgba(229, 57, 53, 0.45),
        0 0 12px rgba(229, 57, 53, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 1300px) {
    .stream-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .stream-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .stream-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   OUR MINISTRIES section - SUPREME HAUTE HORLOGERIE GLASS EDITION
========================================================= */

:root {
    --navy: #0b1f4d;
    --navy-deep: #050d21;
    --gold-shimmer: rgba(223, 183, 56, 0.55);
    --cream: #f4f0e6;
    --black: #111111;
    --text: #171717;
    --muted: #5c6573;
    --ministry-gold: #dfb738;
    --shadow-glass:
        0 30px 70px rgba(3, 10, 26, 0.16), 0 10px 25px rgba(11, 31, 77, 0.08),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -1.5px 0 rgba(195, 176, 145, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.4);
    --shadow-glass-hover:
        0 45px 95px rgba(11, 31, 77, 0.28), 0 15px 35px rgba(195, 176, 145, 0.2), inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 0 35px rgba(223, 183, 56, 0.22);
    --shadow-glass-mobile:
        0 18px 45px rgba(3, 10, 26, 0.24), inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    --radius-glass-lg: 32px;
    --radius-glass-md: 22px;
    --transition-glass: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
    border-radius: 4px;
}

.ministries-page {
    min-height: 100vh;
}

#categorySelectionView {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f4f0e6 100%);
    position: relative;
    overflow-x: hidden;
}

.landing-header {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(120px, 8vh, 90px) 7% 0;
    color: var(--navy);
    position: relative;
    overflow: hidden;
}

.landing-content {
    max-width: 850px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.landing-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    line-height: 1.12;
    font-weight: 700;
    color: var(--title-dark);
    margin-bottom: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 10px 30px rgba(11, 31, 77, 0.08);
}

.category-section {
    padding: 30px 7% 120px;
}

.category-grid {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.category-card {
    position: relative;
    overflow: hidden;
    padding: 48px 42px 38px;
    min-height: 310px;
    border-radius: var(--radius-glass-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.74) 100%);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    cursor: pointer;
    transition: var(--transition-glass);
}

.category-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.94) 100%);
    border-color: rgba(195, 176, 145, 0.85);
    box-shadow: var(--shadow-glass-hover);
    transform: translateY(-6px);
}

.category-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.9vw, 2.4rem);
    line-height: 1.15;
    font-weight: 600;
    color: var(--title-dark);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.category-card p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.85;
    font-weight: 400;
    max-width: 620px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(11, 31, 77, 0.09);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.category-link span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(195, 176, 145, 0.22);
    color: var(--navy);
    transition: var(--transition-glass);
    box-shadow: 0 8px 20px rgba(195, 176, 145, 0.3);
}

.category-card:hover .category-link span {
    background: var(--ministry-gold);
    color: var(--navy-dark);
    transform: translateX(8px) scale(1.08);
    box-shadow: 0 12px 25px rgba(223, 183, 56, 0.4);
}

.ministry-view {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--title-dark);
    background: linear-gradient(135deg, #071629 0%, #102740 62%, #183754 100%);
}

.ministry-background {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    overflow: hidden;
    z-index: 1;
    background: var(--navy-dark);
    isolation: isolate;
}

.bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-slide.active {
    opacity: 1;
    visibility: visible;
}

.bg-slide img,
.bg-slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
    display: block;
}

.bg-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.bg-slide video {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.035);
    transition:
        opacity 900ms ease,
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-slide.active video {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ministry-video-sound-toggle {
    position: absolute;
    right: clamp(18px, 4vw, 48px);
    bottom: clamp(18px, 4vw, 48px);
    z-index: 4;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(3, 10, 18, 0.58);
    font-size: 1.15rem;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.ministry-video-sound-toggle:hover {
    background: rgba(3, 10, 18, 0.82);
    transform: scale(1.06);
}

.ministry-video-sound-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.ministry-hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    min-height: clamp(440px, 72vh, 720px);
    min-height: clamp(440px, 72svh, 720px);
    padding: 140px 7% 90px;
}

.ministry-hero-content .hero-inner {
    position: relative;
    z-index: 3;
    max-width: 620px;
}

.hero-inner {
    max-width: 800px;
    animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ministry-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.2vw, 4.8rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    max-width: 780px;
    color: var(--title-light) !important;
    -webkit-text-fill-color: unset !important;
    text-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.ministry-hero-content p {
    font-size: clamp(1rem, 2.1vw, 1.08rem);
    line-height: 1.85;
    font-weight: 300;
    color: #f0f4f8;
    max-width: 670px;
}

.ministry-content {
    position: relative;
    z-index: 5;
    padding: 74px 7% 120px;
    background:
        radial-gradient(circle at 5% 5%, rgba(195, 176, 145, 0.18), transparent 40%),
        linear-gradient(180deg, #f8f5ee 0%, #f4f0e6 100%);
}

.ministry-container {
    max-width: 1380px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.ministry-link {
    display: none;
}

.ministry-link.show {
    display: block;
    animation: showCard 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ministry-card {
    height: 100%;
    min-height: 280px;
    padding: 34px 30px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.72) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: var(--radius-glass-lg);
    box-shadow: var(--shadow-glass);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-glass);
}

.ministry-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.94) 100%);
    border-color: rgba(195, 176, 145, 0.85);
    box-shadow: var(--shadow-glass-hover);
    transform: translateY(-6px);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--title-dark);
    margin-bottom: 16px;
}

.card-content h3 small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 9px;
}

.card-content p {
    font-size: 0.94rem;
    line-height: 1.85;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 30px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid rgba(11, 31, 77, 0.09);
}

.explore-btn {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--navy);
    transition: var(--transition-glass);
}

.arrow-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(195, 176, 145, 0.22);
    color: var(--navy);
    transition: var(--transition-glass);
    box-shadow: 0 8px 20px rgba(195, 176, 145, 0.3);
}

.ministry-card:hover .arrow-icon {
    background: var(--ministry-gold);
    color: var(--navy-dark);
    transform: translateX(8px) scale(1.08);
    box-shadow: 0 12px 25px rgba(223, 183, 56, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes showCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .category-grid,
    .ministry-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-header {
        min-height: auto;
        padding: 32px 6% 0;
    }
    .category-section {
        padding: 20px 6% 75px;
    }
    .ministry-hero-content {
        display: block;
        min-height: clamp(420px, 68svh, 620px);
        padding: 120px 6% 48px;
    }
    .ministry-hero-content .hero-inner {
        position: relative;
        z-index: 3;
    }
    .ministry-content {
        padding: 58px 6% 88px;
    }
    .category-grid,
    .ministry-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ministry-container {
        grid-auto-rows: 1fr;
    }
    .category-card,
    .ministry-card {
        padding: 34px 26px;
        min-height: auto;
        border-radius: var(--radius-glass-md);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.9) 100%);
        box-shadow: var(--shadow-glass-mobile);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
    .category-card:active,
    .ministry-card:active {
        transform: scale(0.978);
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 10px 25px rgba(3, 10, 26, 0.18);
    }
    .landing-content h1 {
        font-size: 2.5rem;
        letter-spacing: 0.02em;
        margin-bottom: 0;
    }
    .category-card h2 {
        font-size: 1.62rem;
        margin-bottom: 14px;
    }
    .category-card p,
    .card-content p {
        font-size: 0.93rem;
        line-height: 1.8;
        margin-bottom: 24px;
    }
    .ministry-hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }
    .card-content h3 {
        font-size: 1.55rem;
    }
    .category-link,
    .card-footer {
        margin-top: 26px;
        padding-top: 20px;
    }
    .category-link span,
    .arrow-icon {
        width: 48px;
        height: 48px;
    }
    .back-container {
        top: 32px;
        left: 6%;
    }
    .back-btn {
        padding: 12px 24px;
        font-size: 0.7rem;
        background: rgba(4, 12, 22, 0.75);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }
}

@media (max-width: 420px) {
    .landing-header {
        padding-top: 32px;
    }
    .landing-content h1 {
        font-size: 2.25rem;
    }
    .ministry-hero-content h1 {
        font-size: 2.05rem;
    }
    .category-card,
    .ministry-card {
        padding: 30px 22px;
    }
    .ministry-card {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    #ministriesResultView .ministry-container {
        grid-auto-rows: auto;
    }

    #ministriesResultView .ministry-card {
        height: auto;
        min-height: 0;
    }

    #ministriesResultView .card-content {
        flex: 0 0 auto;
    }

    #ministriesResultView .card-content p {
        margin-bottom: 0;
    }

    #ministriesResultView .card-footer {
        margin-top: 18px;
        padding-top: 16px;
    }

    #ministriesResultView .card-footer .explore-btn {
        margin-inline: 0 !important;
        text-align: left;
    }
}

/* ============================================================
   FINAL POLISH LAYER
   Typography: Linux Libertine for titles / Open Sans for body
   Purpose: overrides the older page-specific rules above without
   changing the existing HTML structure.
============================================================ */

:root {
    --font-heading: 'Linux Libertine', Georgia, 'Times New Roman', serif !important;
    --font-display: 'Linux Libertine', Georgia, 'Times New Roman', serif !important;
    --font-body: 'Open Sans', Arial, Helvetica, sans-serif !important;
    --transition-fast: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
    font-family: var(--font-body);
    scroll-padding-top: 86px;
}

body {
    font-family: var(--font-body) !important;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea,
option,
body p,
body li,
body a,
body label,
body small,
body th,
body td {
    font-family: var(--font-body) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.page-title,
.section-title,
.service-title,
.church-action-title h2,
.hero h1,
.footer h3,
.panel-header h2,
.unified-form-panel h3 {
    font-family: var(--font-heading) !important;
    text-rendering: optimizeLegibility;
}

img,
video,
iframe {
    max-width: 100%;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(201, 162, 39, 0.75);
    outline-offset: 3px;
}

.card,
.ministry-card,
.event-card,
.announcement-card,
.regular-priest,
.unified-contact-box,
.map-container,
.container {
    transition:
        transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        border-color var(--transition-fast);
}

.card:hover,
.ministry-card:hover,
.event-card:hover,
.announcement-card:hover {
    transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   FINAL CLEANUP / RESPONSIVE FOUNDATION
   Typography: Linux Libertine for titles, Open Sans for body
   This layer is intentionally last so older page-specific blocks
   cannot undo the final typography and mobile safeguards.
============================================================ */

html {
    width: 100%;
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 82px;
}

body {
    width: 100%;
    min-width: 320px;
    margin: 0;
    background: var(--bg-cream, #f8f6f0) !important;
    color: var(--text-body, #2c3440);
    font-family: var(--font-body) !important;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.page-title,
.section-title,
.service-title,
.title,
[class*='heading'] {
    font-family: var(--font-heading) !important;
    text-rendering: optimizeLegibility;
}

p,
li,
label,
small,
button,
input,
select,
textarea,
option,
table,
th,
td,
body a {
    font-family: var(--font-body) !important;
}

p,
li {
    overflow-wrap: anywhere;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

button,
a,
input,
select,
textarea {
    max-width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.departed-shepherds {
    display: flow-root;
    width: 100%;
    min-height: 0;
    margin: 0 !important;
    padding-bottom: clamp(64px, 8vw, 110px);
    background-color: #1e1e1e !important;
    background-image: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.07), transparent 55%) !important;
}

.departed-shepherds h2,
.departed-card h3 {
    font-family: var(--font-heading) !important;
}

.priests:has(.departed-shepherds) {
    padding-bottom: 0 !important;
}

.departed-shepherds + .footer,
.departed-shepherds + .site-footer,
.departed-shepherds ~ footer {
    margin-top: 0 !important;
}

.departed-container,
.footer-container,
.footer-about,
.footer-about-text,
.footer-mass,
.footer-contact,
.footer-bottom,
.card,
.event-card,
.announcement-card,
.ministry-card,
.regular-priest,
.unified-grid,
.form-row {
    min-width: 0;
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: clip;
    }

    nav,
    nav.scrolled {
        position: sticky;
        top: 0;
        width: 100%;
        padding-inline: clamp(14px, 4vw, 24px);
    }

    .hero,
    .overlay {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2rem, 10vw, 3.5rem);
        overflow-wrap: anywhere;
    }

    .hero p {
        max-width: 100%;
        font-size: clamp(0.95rem, 3.6vw, 1.1rem);
    }

    .hero-buttons {
        width: min(100%, 320px);
    }

    .departed-shepherds {
        padding-inline: clamp(14px, 5vw, 28px);
    }

    .departed-container {
        width: 100%;
        max-width: 100%;
        gap: clamp(42px, 8vw, 60px);
    }

    .departed-major-list,
    .departed-deacon-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(28px, 6vw, 44px);
    }

    .departed-card.departed-major-card img {
        width: min(145px, 34vw);
        height: auto;
        aspect-ratio: 1;
    }

    .departed-card.departed-deacon-card img {
        width: min(110px, 28vw);
        height: auto;
        aspect-ratio: 1;
    }

    .departed-card:nth-child(n) .departed-info {
        width: 100%;
        min-width: 0;
        min-height: 0;
    }

    .departed-card:nth-child(n) .departed-info h3 {
        width: 100%;
        font-size: clamp(0.88rem, 3.4vw, 1.1rem);
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .footer {
        width: 100%;
        padding-inline: clamp(16px, 5vw, 32px);
    }

    .footer-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: clamp(22px, 6vw, 34px);
        min-height: 0;
    }

    .footer-about,
    .footer-mass,
    .footer-contact,
    .footer-about-text {
        width: 100%;
        transform: none !important;
        text-align: left;
    }

    .footer-contact {
        align-items: flex-start;
    }

    .footer-bottom {
        align-items: flex-start;
        gap: 14px;
    }

    .footer-bottom p {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    body {
        font-size: 15px;
    }

    .departed-shepherds {
        padding-top: 50px;
        padding-bottom: 64px;
    }

    .departed-container {
        gap: 38px;
    }

    .departed-major-list,
    .departed-deacon-list {
        gap: 30px 12px;
    }

    .departed-card.departed-major-card img {
        width: min(125px, 36vw);
    }

    .departed-card.departed-deacon-card img {
        width: min(94px, 28vw);
    }

    .departed-card:nth-child(n) .departed-info h3 {
        font-size: clamp(0.82rem, 3.8vw, 1rem);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer .social-icons {
        justify-content: flex-start;
    }
}

/* ============================================================
   FINAL BUTTON ALIGNMENT / MOBILE POLISH
   One dependable button treatment for every page and breakpoint.
============================================================ */

.btn-primary,
.btn-secondary,
.hero-btn,
.participate-btn,
.submit-btn,
.learn-btn,
.view-album-btn,
.back-to-albums-btn,
.view-all-btn,
.watch-btn,
.explore-btn,
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-height: 46px;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary,
.btn-secondary,
.hero-btn,
.participate-btn,
.submit-btn,
.learn-btn,
.view-album-btn,
.back-to-albums-btn,
.view-all-btn,
.watch-btn,
.back-btn {
    flex-wrap: wrap;
}

.hero-buttons {
    align-items: center;
}

.hero-buttons > .btn-primary,
.hero-buttons > .btn-secondary,
.hero-buttons > .hero-btn {
    flex: 0 1 auto;
}

.album-footer,
.card-footer {
    min-width: 0;
    flex-wrap: wrap;
    gap: 12px;
}

.album-footer .view-album-btn,
.card-footer .explore-btn,
.card-footer .arrow-icon {
    flex-shrink: 0;
}

.home-btn,
#topBtn,
.menu-toggle {
    flex: 0 0 auto;
    white-space: nowrap;
    overflow-wrap: normal;
}

.menu-toggle {
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0;
    font: inherit;
    font-size: 34px;
}

@media (max-width: 768px) {
    .hero-buttons {
        width: min(100%, 330px);
        margin-inline: auto;
        align-items: stretch;
    }

    .hero-buttons > .btn-primary,
    .hero-buttons > .btn-secondary,
    .hero-buttons > .hero-btn {
        width: 100%;
        max-width: 330px;
        margin-inline: auto;
    }

    .participate-btn,
    .submit-btn,
    .learn-btn,
    .view-album-btn,
    .back-to-albums-btn,
    .view-all-btn,
    .watch-btn,
    .back-btn {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .participate-btn,
    .submit-btn,
    .watch-btn {
        min-width: min(100%, 190px);
    }

    .submit-btn,
    .watch-btn {
        width: min(100%, 320px);
    }

    .learn-btn {
        min-width: 150px;
    }

    .album-footer,
    .card-footer {
        align-items: center;
    }

    .album-footer .view-album-btn,
    .card-footer .explore-btn {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .view-all-btn {
        min-height: 44px;
    }
}

@media (max-width: 420px) {
    .btn-primary,
    .btn-secondary,
    .hero-btn,
    .participate-btn,
    .submit-btn,
    .learn-btn,
    .view-album-btn,
    .back-to-albums-btn,
    .view-all-btn,
    .watch-btn,
    .back-btn {
        min-height: 44px;
        padding: 11px 16px;
        font-size: 0.84rem;
        letter-spacing: 0.01em;
    }

    .hero-buttons {
        width: min(100%, 300px);
    }

    .hero-buttons > .btn-primary,
    .hero-buttons > .btn-secondary,
    .hero-buttons > .hero-btn {
        max-width: 300px;
    }

    .participate-btn,
    .submit-btn,
    .watch-btn {
        width: min(100%, 280px);
    }

    .home-btn {
        top: 14px;
        left: 14px;
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    #topBtn {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
        font-size: 19px;
    }
}

/* ============================================================
   FULL-WIDTH EDGE-TO-EDGE COSA FOOTER
============================================================ */

.cosa-unique-footer-wrapper {
    width: 100%;
    background-color: #0a1930;
    color: #ffffff;
    border-top: 1px solid rgba(220, 205, 181, 0.15);
    padding: 8px 0;
    box-sizing: border-box;
    margin: 0;
    position: relative;
    z-index: 999;
}

.cosa-unique-footer-inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: 32px;
}

.cosa-unique-footer-copyright {
    margin: 0;
    padding: 0;
    font-family: var(--font-body, 'Open Sans', Arial, sans-serif);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.85);
}

.cosa-unique-footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.cosa-unique-footer-socials a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    border: 1px solid rgba(220, 205, 181, 0.15);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cosa-unique-footer-socials a:hover {
    color: var(--gold, #dccdb5);
    background: rgba(220, 205, 181, 0.12);
    border-color: var(--gold, #dccdb5);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 205, 181, 0.2);
}

@media (max-width: 650px) {
    .cosa-unique-footer-wrapper {
        padding: 12px 0;
    }
    .cosa-unique-footer-inner {
        flex-direction: column;
        padding: 0 20px;
        gap: 8px;
        text-align: center;
        min-height: auto;
    }
    .cosa-unique-footer-copyright {
        font-size: 12px;
    }
    .cosa-unique-footer-socials {
        gap: 14px;
    }
    .cosa-unique-footer-socials a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ============================================================
   BACK TO TOP BUTTON - ENHANCED EDITION
============================================================ */

#topBtn {
    position: fixed;
    bottom: 55px;
    right: 30px;
    z-index: 999;
    width: 45px;
    height: 45px;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    background: var(--navy-main, #1a2b4c);
    color: var(--gold, #c9a227);
    border: 2px solid var(--gold, #c9a227);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#topBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#topBtn:hover {
    background: var(--gold, #c9a227);
    color: var(--navy-main, #1a2b4c);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

#topBtn:active {
    transform: translateY(-1px) scale(0.98);
}

@media (max-width: 650px) {
    #topBtn {
        bottom: 90px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================
   DAILY READINGS PAGE (MODERN KHAKI & ELEVATED LITURGICAL DESIGN)
========================================================== */

/* ----------------------------------------------------------
   0. DESIGN SYSTEM & VARIABLES
---------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-main: #f4f1ea;
    --card-bg: #ffffff;
    --card-subtle: #faf8f5;
    --readings-gold: #c29b38;
    --readings-gold-hover: #a3812b;

    --text-primary: #1c1a17;
    --text-secondary: #5e584f;
    --readings-muted: #8c857b;
    --text-link: #2b547e;

    --border-light: #e8e3da;
    --border-medium: #d6cfc4;

    /* Shadows & Animations */
    --shadow-subtle: 0 4px 12px rgba(28, 26, 23, 0.03);
    --shadow-card: 0 12px 32px rgba(28, 26, 23, 0.06);
    --shadow-hover: 0 8px 24px rgba(28, 26, 23, 0.12);
    --readings-transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------
   1. GLOBAL PAGE LAYOUT
---------------------------------------------------------- */
html,
body.daily-readings-page {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.daily-readings-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 60px 16px 80px;
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   2. HERO CARD CONTAINER
---------------------------------------------------------- */
.readings-container {
    max-width: 840px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    padding: 48px 56px;
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   3. HEADER & TITLE (WITHOUT LINE)
---------------------------------------------------------- */
.readings-header {
    text-align: center;
    margin: 0 auto 36px;
    position: relative;
}

.readings-service-title {
    margin: 0 0 8px;
    color: var(--title-dark);
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.readings-date-title {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ----------------------------------------------------------
   4. DATE SECTION & NAVIGATION BAR
---------------------------------------------------------- */
.readings-date-section {
    margin-bottom: 36px;
    width: 100%;
}

.readings-date-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    background: var(--card-subtle);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    box-shadow: var(--shadow-subtle);
    box-sizing: border-box;
}

.readings-date-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border-medium);
    background: #ffffff;
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--readings-transition-fast);
    user-select: none;
    white-space: nowrap;
}

.readings-date-control:hover {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(28, 26, 23, 0.15);
    transform: translateY(-2px);
}

.readings-date-control:active {
    transform: translateY(0);
}

.readings-arrow {
    font-size: 16px;
    line-height: 1;
}

.readings-current-date {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.2px;
}

/* Date Picker */
.readings-date-picker-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.readings-date-picker-wrapper label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
}

.readings-date-picker-wrapper label i {
    color: var(--readings-gold);
}

.readings-date-picker-wrapper input[type='date'] {
    padding: 8px 16px;
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all var(--readings-transition-fast);
    font-family: inherit;
}

.readings-date-picker-wrapper input[type='date']:hover,
.readings-date-picker-wrapper input[type='date']:focus {
    border-color: var(--readings-gold);
    box-shadow: 0 0 0 3px rgba(194, 155, 56, 0.15);
}

/* ----------------------------------------------------------
   5. SERVICE SELECTOR TABS
---------------------------------------------------------- */
.readings-service-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 40px;
    padding: 6px;
    background: var(--card-subtle);
    border-radius: 40px;
    border: 1px solid var(--border-light);
}

.readings-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--readings-transition-fast);
    white-space: nowrap;
}

.readings-service-btn:hover {
    color: var(--text-primary);
}

.readings-service-btn.active {
    background: var(--text-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(28, 26, 23, 0.15);
}

/* ----------------------------------------------------------
   6. LITURGICAL DAY & HEADING
---------------------------------------------------------- */
.readings-day-heading {
    text-align: center;
    margin-bottom: 40px;
}

#headingFeast {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--title-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}

#headingSeason {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

#openingSentence {
    margin: 28px auto 0;
    padding: 24px 30px;
    background: var(--card-subtle);
    border-radius: 16px;
    border-left: 4px solid var(--readings-gold);
    text-align: left;
    color: #38342e;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    box-shadow: var(--shadow-subtle);
}

/* ----------------------------------------------------------
   7. QUICK INDEX (TODAY'S READINGS LINKS)
---------------------------------------------------------- */
.reading-section.announced-readings {
    margin: 24px 0 48px;
    padding: 30px 24px;
    background: var(--card-subtle);
    border-radius: 18px;
    border: 1px solid var(--border-light);
    text-align: center;
}

.reading-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
}

.reading-links a {
    color: var(--text-link);
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-medium);
    transition: all var(--readings-transition-fast);
}

.reading-block {
    scroll-margin-top: 110px;
}

.reading-block:focus {
    outline: 2px solid var(--readings-gold);
    outline-offset: 6px;
}

.reading-links a:hover {
    color: #ffffff;
    background: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(28, 26, 23, 0.1);
}

.reading-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-medium) 50%, transparent 100%);
    margin: 48px 0;
}

/* ----------------------------------------------------------
   8. SECTIONS & LESSONS CONTENT
---------------------------------------------------------- */
.reading-section {
    margin-bottom: 48px;
}

.reading-section.lessons {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.reading-section h2 {
    margin: 0 0 10px;
    color: var(--title-dark);
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    text-align: center;
}

.reading-version {
    margin: 0 0 24px 0;
    color: var(--readings-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
}

.reading-text,
.actual-readings {
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.85;
    text-align: left;
}

.reading-block {
    margin: 24px 0;
    padding: 0;
}

.reading-block h3 {
    margin: 0 0 16px;
    color: var(--title-dark);
    font-family: var(--font-heading);
    font-size: 21px;
    line-height: 1.35;
}

.reading-content {
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.9;
    white-space: normal;
}

.reading-text p,
.actual-readings p {
    margin: 0 0 20px;
}

.reading-text p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 2.4em;
    float: left;
    line-height: 0.9;
    margin-right: 10px;
    color: var(--readings-gold);
    font-weight: 700;
}

/* ----------------------------------------------------------
   9. VERSICLES & ANTIPHONS
---------------------------------------------------------- */
.reading-antiphon {
    margin-top: 24px;
    padding: 18px 24px;
    background: var(--card-subtle);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    color: #4a443d;
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
    text-align: center;
}

.reading-closing-versicle {
    margin-top: 28px;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
    font-weight: 600;
    text-align: center;
}

/* ----------------------------------------------------------
   10. RESPONSIVE DESIGN (OPTIMIZED FOR MOBILE SPACING)
---------------------------------------------------------- */
@media (max-width: 768px) {
    .daily-readings-wrapper {
        padding: 28px 8px 40px;
    }

    .readings-container {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .readings-header {
        margin-bottom: 24px;
    }

    .readings-service-title {
        font-size: 28px;
    }

    /* Date Navigation Spacing Adjustments */
    .readings-date-navigation {
        padding: 6px 10px;
        gap: 6px;
    }

    .readings-date-control {
        padding: 8px 14px;
        font-size: 11px;
    }

    .readings-current-date {
        font-size: 13.5px;
        line-height: 1.2;
    }

    .readings-service-selector {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        padding: 5px;
        border-radius: 18px;
    }

    .readings-service-btn {
        min-width: 0;
        flex-direction: column;
        gap: 5px;
        padding: 10px 4px;
        font-size: 12px;
        line-height: 1.25;
        white-space: normal;
    }

    #headingFeast {
        font-size: 22px;
    }

    #openingSentence {
        padding: 16px 18px;
        font-size: 15.5px;
    }

    .reading-text,
    .actual-readings {
        font-size: 16.5px;
    }

    .reading-section.lessons {
        margin-top: 44px;
        padding-top: 26px;
    }

    .reading-block {
        padding: 0;
    }

    .reading-block h3 {
        font-size: 19px;
    }

    .reading-content {
        font-size: 16.5px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .readings-container {
        padding: 20px 12px;
    }

    .readings-date-navigation {
        padding: 6px 8px;
    }

    /* Clean Icon Buttons on Small Phones */
    .readings-date-control span:not(.readings-arrow) {
        display: none;
    }

    .readings-date-control {
        padding: 0;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        min-width: 36px;
        flex-shrink: 0;
    }

    .readings-current-date {
        font-size: 13px;
    }

    .reading-links a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .reading-section.announced-readings {
        margin-bottom: 40px;
        padding: 24px 16px;
    }

    .reading-block {
        padding: 0;
    }
}

/* =========================================================
   CHURCH OF ST. ANDREW - DONATE PAGE STYLES (ENHANCED)
   ========================================================= */

/* Font Import for Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Font Face declaration for Linux Libertine */
@font-face {
    font-family: 'Linux Libertine';
    src: local('Linux Libertine O'), local('Linux Libertine'), local('LinuxLibertine');
    font-display: swap;
}

/* ---------------------------------------------------------
   1. GLOBAL & CORE VARIABLES
   --------------------------------------------------------- */
:root {
    --primary-navy: #0b1f3a;
    --primary-navy-hover: #142d4f;
    --accent-gold: #d4af37;
    --accent-gold-hover: #c29f2f;
    --gcash-blue: #0072ff;
    --gcash-blue-hover: #005bb5;
    --text-main: #0b1f3a;
    --text-muted: #5f6772;
    --bg-light: #f8fafc;
    --border-color: #e4e8ed;
    --shadow-soft: 0 12px 32px rgba(11, 31, 58, 0.08);
    --shadow-hover: 0 16px 36px rgba(11, 31, 58, 0.12);

    /* Font Families */
    --font-heading: 'Linux Libertine', Georgia, 'Times New Roman', serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------------------------------------------------------
   2. PAGE LAYOUT & HEADER
   --------------------------------------------------------- */
.donate-page {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    box-sizing: border-box;
    font-family: var(--font-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.donate-header {
    text-align: center;
    margin-bottom: 36px;
}

/* MAS PINALAKING TITLE - LINUX LIBERTINE */
.donate-header h1 {
    margin: 20px 0 16px;
    font-family: var(--font-heading);
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--title-dark);
}

.donate-header p {
    max-width: 660px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---------------------------------------------------------
   3. MAIN CARD & PAYMENT METHODS
   --------------------------------------------------------- */
.donate-card-single {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.donate-card-single .card-header h2 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    color: var(--title-dark);
}

.card-header p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    color: #6b7280;
}

.payment-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.payment-method {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e8ebef;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.payment-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.payment-method.highlight-method {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
}

.method-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.method-info {
    width: 100%;
}

.method-info h3 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--title-dark);
}

.method-info p {
    margin: 4px 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.method-info strong {
    color: var(--primary-navy);
}

/* Accent highlight para sa Account Number */
.account-num {
    margin-top: 10px !important;
    font-size: 22px !important;
    font-weight: 800;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--primary-navy) !important;
    letter-spacing: 0.8px;
    background: #f1f5f9;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
}

/* ---------------------------------------------------------
   4. BUTTONS & ACTIONS
   --------------------------------------------------------- */
.payment-actions {
    display: flex;
    width: 100%;
    gap: 12px;
    margin-top: 22px;
}

.copy-btn,
.app-btn {
    flex: 1;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-btn {
    background: var(--primary-navy);
    color: #ffffff;
}

.copy-btn:hover {
    background: var(--primary-navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 31, 58, 0.2);
}

.copy-btn:active,
.app-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: #16a34a !important;
    color: #ffffff;
}

.gcash-app-btn {
    background: var(--gcash-blue);
    color: #ffffff;
}

.gcash-app-btn:hover {
    background: var(--gcash-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 114, 255, 0.25);
}

.psbank-app-btn {
    background: var(--accent-gold);
    color: #ffffff;
}

.psbank-app-btn:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
}

/* ---------------------------------------------------------
   5. QR CODE & FOOTER NOTES
   --------------------------------------------------------- */
.qr-wrap {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-color);
}

.qr-label {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-wrap img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    background: #ffffff;
    border: 2px solid var(--accent-gold);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.qr-wrap img:hover {
    transform: scale(1.03);
}

/* Shown instead of a QR code image that has not been added yet (see donate.html). */
.qr-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    background: #f8fafc;
    border: 2px dashed var(--accent-gold);
    border-radius: 18px;
    color: #64748b;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.qr-coming-soon[hidden] {
    display: none;
}

.donate-note {
    margin: 32px 0 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    color: #64748b;
}

/* ---------------------------------------------------------
   6. MODAL STYLES
   --------------------------------------------------------- */
#customDonateModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

#customDonateModal.is-visible {
    display: block;
}

.donate-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(11, 31, 58, 0.65);
    backdrop-filter: blur(6px);
}

.donate-modal {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    padding: 32px 28px;
    background: #ffffff;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    animation: donateModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes donateModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.donate-modal-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--gcash-blue);
    font-size: 26px;
    font-weight: 700;
}

.donate-modal h3 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--title-dark);
}

.donate-modal p {
    margin: 0 0 24px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

.donate-modal-close {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: var(--primary-navy);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.donate-modal-close:hover {
    background: var(--primary-navy-hover);
}

body.donate-modal-open {
    overflow: hidden;
}

/* ---------------------------------------------------------
   7. ACCESSIBILITY
   --------------------------------------------------------- */
.copy-btn:focus-visible,
.app-btn:focus-visible,
.donate-modal-close:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .donate-page {
        padding: 32px 16px 60px;
    }

    .donate-card-single .card-header h2 {
        font-size: 42px;
    }

    .donate-header p {
        font-size: 16px;
    }

    .donate-card-single {
        padding: 28px 20px;
    }
}

@media (max-width: 560px) {
    .donate-card-single .card-header h2 {
        font-size: 34px;
    }

    .payment-actions {
        flex-direction: column;
        gap: 10px;
    }

    .account-num {
        font-size: 18px !important;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .qr-wrap img {
        max-width: 200px;
    }
}

@media (max-width: 360px) {
    .donate-card-single .card-header h2 {
        font-size: 30px;
    }
}


/* Mobile carousel: show each card and let visitors swipe through every photo. */
@media (max-width: 768px) {
    .church-carousel {
        overflow: hidden;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .church-carousel-track {
        animation: churchInfinite 90s linear infinite;
    }
    .church-card {
        flex-basis: min(82vw, 340px);
        width: min(82vw, 340px);
        height: min(62vw, 285px);
    }
    .church-carousel:active .church-carousel-track {
        animation-play-state: paused;
    }
}

/* Homepage hero typography polish for phones */
@media (max-width: 600px) {
    body:has(.hero video#heroVideo) .hero .overlay {
        padding: clamp(30px, 8vh, 58px) 20px 34px;
    }

    body:has(.hero video#heroVideo) .hero h1 {
        margin: 0 auto 4px;
        font-size: clamp(2rem, 8.5vw, 2.8rem);
        line-height: 1.08;
        letter-spacing: -0.025em;
        text-wrap: balance;
    }

    body:has(.hero video#heroVideo) .hero h1 + h1 {
        margin-bottom: 18px;
    }

    body:has(.hero video#heroVideo) .hero p {
        max-width: 34rem;
        margin: 0 auto 12px;
        line-height: 1.55;
        text-wrap: pretty;
    }

    body:has(.hero video#heroVideo) .hero p:first-of-type {
        font-size: clamp(0.9rem, 3.8vw, 1.05rem);
        letter-spacing: 0.015em;
    }

    body:has(.hero video#heroVideo) .hero p:nth-of-type(2) {
        margin-bottom: 22px;
        font-size: 1.02rem;
        font-weight: 700;
    }
}

@media (max-width: 380px) {
    body:has(.hero video#heroVideo) .hero .overlay {
        padding-inline: 16px;
    }

    body:has(.hero video#heroVideo) .hero h1 {
        font-size: clamp(1.85rem, 8.3vw, 2.2rem);
    }
}

/* Contact page map: larger and edge-to-edge on phones */
@media (max-width: 600px) {
    .contact-page .contact-container {
        padding-inline: 16px;
    }

    .contact-page .map-section {
        width: calc(100% + 32px);
        margin: 44px -16px 48px;
    }

    .contact-page .map-section .section-title {
        padding-inline: 16px;
        font-size: clamp(1.65rem, 7vw, 2rem);
    }

    .contact-page .map-container {
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    .contact-page .map-container iframe {
        height: clamp(460px, 125vw, 580px);
        border-radius: 0;
    }
}

/* Parish bulletin and livestream archive mobile layout */
.parish-bulletin::before {
    display: none;
}

@media (max-width: 600px) {
    #streamContainer:not(.list-view) {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 18px;
    }

    #streamContainer:not(.list-view) .stream-card {
        min-width: 0;
        border-radius: 14px;
    }

    #streamContainer:not(.list-view) .stream-card img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    #streamContainer:not(.list-view) .stream-content {
        min-width: 0;
        padding: 14px 16px 16px;
    }

    #streamContainer:not(.list-view) .stream-content h3 {
        font-size: 0.9rem;
        line-height: 1.35;
        margin-bottom: 8px;
        overflow-wrap: anywhere;
    }

    #streamContainer:not(.list-view) .stream-date {
        font-size: 0.72rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    #streamContainer:not(.list-view) .watch-btn {
        width: 100%;
        padding: 8px 6px;
        font-size: 0.72rem;
        letter-spacing: 0;
        align-self: stretch;
    }
}

@media (max-width: 768px) {
    .parish-bulletin {
        width: 100%;
        max-width: none;
        margin: 32px 0;
        padding: 32px 16px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background:
            radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.09) 0%, transparent 58%),
            linear-gradient(180deg, #fffdfa 0%, #f7f4ed 100%);
    }
}

/* Edge-to-edge page sections on mobile */
@media (max-width: 768px) {
    .gallery-section {
        width: 100%;
        max-width: none;
        margin: 20px 0;
        padding-inline: 16px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .readings-container {
        width: 100%;
        max-width: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .previous-stream {
        width: 100%;
        max-width: none;
        margin-inline: 0;
        padding-inline: 16px;
        box-sizing: border-box;
    }
}

/* Mass schedule desktop refinement */
@media (min-width: 769px) {
    .schedule-section {
        min-height: 0;
        padding: clamp(72px, 8vw, 112px) clamp(32px, 5vw, 88px);
        background:
            radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.1), transparent 52%),
            linear-gradient(180deg, #fffdfa 0%, #f7f4ed 100%);
    }

    .schedule-container {
        max-width: 1360px;
        padding: clamp(30px, 3.5vw, 52px);
        border: 1px solid rgba(212, 175, 55, 0.22);
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.72);
        box-shadow: 0 24px 70px rgba(35, 30, 20, 0.07);
        backdrop-filter: blur(12px);
    }

    .schedule-section .section-header {
        margin-bottom: 38px;
    }

    .schedule-section .section-header h2 {
        margin-bottom: 0;
        font-size: clamp(2.6rem, 4vw, 3.5rem);
        letter-spacing: -0.035em;
    }



    .schedule-controls {
        margin-bottom: 24px;
        padding: 18px;
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 18px;
        background: #fffdfa;
        gap: 16px;
    }

    .schedule-controls .search-box {
        min-width: 360px;
    }

    .schedule-controls .search-box input,
    .schedule-controls .filter-box select {
        min-height: 56px;
        padding-top: 14px;
        padding-bottom: 14px;
        border-radius: 14px;
        box-shadow: none;
    }

    .schedule-controls .filter-box select {
        min-width: 190px;
    }

    .schedule-section .table-responsive {
        border-radius: 20px;
        box-shadow: 0 12px 34px rgba(35, 30, 20, 0.055);
    }

    .schedule-section .schedule-table th {
        padding: 20px 26px;
        border-bottom-width: 3px;
        font-size: 0.78rem;
        letter-spacing: 1.5px;
    }

    .schedule-section .schedule-table td {
        padding: 20px 26px;
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .schedule-section .schedule-table tbody tr:nth-child(even) {
        background: rgba(247, 244, 237, 0.42);
    }

    .schedule-section .schedule-table tbody tr:hover {
        background: #fbf8ee;
    }
}





/* Daily Readings mobile layout refinement */
@media (max-width: 768px) {
    body.daily-readings-page {
        background: #f3f0e9;
    }

    .daily-readings-wrapper {
        min-height: 0;
        padding: 22px 12px 40px;
        background:
            radial-gradient(ellipse at 50% 0, rgba(194, 155, 56, 0.12), transparent 42%),
            linear-gradient(180deg, #faf8f3 0%, #f1eee7 100%);
    }

    .readings-container {
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
        padding: clamp(22px, 5vw, 32px) clamp(16px, 4vw, 26px);
        border: 1px solid rgba(214, 207, 196, 0.8);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 16px 42px rgba(44, 37, 24, 0.09);
    }

    .readings-header {
        margin-bottom: 24px;
    }

    .readings-service-title {
        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.12;
        letter-spacing: -0.035em;
    }

    .readings-date-title {
        margin-top: 8px;
        font-size: 11px;
        letter-spacing: 0.13em;
    }

    .readings-date-section {
        margin-bottom: 26px;
    }

    .readings-date-navigation {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
        padding: 8px;
        border-radius: 17px;
        background: #f8f6f1;
        box-shadow: none;
    }

    .readings-date-control,
    .readings-date-control:hover {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        border-color: #e5dfd4;
        border-radius: 13px;
        background: #fff;
        color: #38342e;
        box-shadow: 0 2px 6px rgba(28, 26, 23, 0.05);
        transform: none;
    }

    .readings-date-control span:not(.readings-arrow) {
        display: none;
    }

    .readings-arrow {
        font-size: 21px;
    }

    .readings-current-date {
        min-width: 0;
        font-size: clamp(12px, 3.5vw, 14px);
        line-height: 1.3;
    }

    .readings-date-picker-wrapper {
        justify-content: space-between;
        gap: 10px;
        margin-top: 12px;
        padding: 0 2px;
    }

    .readings-date-picker-wrapper label {
        font-size: 10px;
        letter-spacing: 0.1em;
        white-space: nowrap;
    }

    .readings-date-picker-wrapper input[type='date'] {
        min-width: 0;
        max-width: 58%;
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 12px;
    }

    .readings-service-selector {
        gap: 6px;
        margin-bottom: 28px;
        padding: 5px;
        border-radius: 17px;
        background: #f8f6f1;
    }

    .readings-service-btn {
        min-height: 62px;
        padding: 9px 4px;
        gap: 6px;
        border-radius: 13px;
        font-size: 11px;
        line-height: 1.2;
    }

    .readings-service-btn i {
        font-size: 15px;
    }

    .readings-service-btn.active {
        background: #292720;
        box-shadow: 0 4px 10px rgba(28, 26, 23, 0.15);
    }

    .reading-section.announced-readings {
        margin: 0 0 30px;
        padding: 16px;
        border-radius: 16px;
        background: #f8f6f1;
        text-align: left;
    }

    .reading-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .reading-links a,
    .reading-links a:hover {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        width: auto;
        box-sizing: border-box;
        padding: 8px 10px;
        border: 1px solid #e5dfd4;
        border-radius: 12px;
        background: #fff;
        color: var(--text-link);
        font-size: 12px;
        line-height: 1.35;
        text-align: center;
        box-shadow: none;
    }

    .reading-divider {
        margin: 30px 0;
    }

    .readings-day-heading {
        margin-bottom: 30px;
    }

    #headingFeast {
        font-size: clamp(21px, 5.5vw, 25px);
    }

    #headingSeason {
        font-size: 14px;
    }

    #openingSentence {
        margin-top: 20px;
        padding: 16px 17px;
        border-left-width: 3px;
        border-radius: 13px;
        font-size: 15px;
        line-height: 1.75;
    }

    .reading-section {
        margin-bottom: 34px;
    }

    .reading-section h2 {
        margin-bottom: 12px;
        font-size: 22px;
        text-align: left;
    }

    .reading-section.lessons {
        margin-top: 38px;
        padding-top: 24px;
    }

    .reading-version {
        margin-bottom: 18px;
        font-size: 10px;
        letter-spacing: 0.12em;
        text-align: left;
    }

    .reading-text,
    .actual-readings,
    .reading-content {
        font-size: 16px;
        line-height: 1.82;
    }

    .reading-text p:first-of-type::first-letter {
        float: none;
        margin-right: 0;
        color: inherit;
        font-size: inherit;
        line-height: inherit;
    }

    .reading-block {
        margin: 22px 0;
    }

    .reading-block h3 {
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.4;
    }

    .reading-antiphon {
        padding: 15px 16px;
        font-size: 14px;
        line-height: 1.7;
    }

    .reading-closing-versicle {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 380px) {
    .daily-readings-wrapper {
        padding-inline: 8px;
    }

    .readings-container {
        padding-inline: 13px;
        border-radius: 20px;
    }

    .readings-service-selector {
        gap: 3px;
    }

    .readings-service-btn {
        font-size: 10px;
    }

    .reading-section.announced-readings {
        padding: 13px;
    }

    .reading-links {
        gap: 6px;
    }
}