/* Faith Lutheran Antioch WFEL & Sermons
   Pale-blue site framework plus sermon-table styling. */

:root {
    --blue-950: #123e5a;
    --blue-800: #1f5174;
    --blue-700: #0a5ea8;
    --blue-500: #2d7fc3;
    --blue-100: #dcecf7;
    --blue-50: #eef7fd;
    --gold-700: #a9781f;
    --gold-500: #c9a55c;
    --gold-300: #f0dcab;
    --gold-100: #f6ecd8;
    --green-700: #2f6b45;
    --green-50: #eaf5ee;
    --line: #d7e8f5;
    --text: #171717;
    --muted: #52616d;
    --white: #fff;
    --shadow: 0 4px 18px rgba(25, 65, 91, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(145deg, var(--blue-50), var(--blue-100));
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-950); text-decoration: underline; }

.site { min-height: 100vh; display: flex; flex-direction: column; }

.site-header { width: 100%; }

.responsive-img {
    max-width: 100%;   /* never wider than its container */
    height: auto;     /* keep the aspect ratio */
}

.banner {
    position: relative;
    display: grid;
    min-height: 230px;
    color: var(--white);
    text-align: center;
    text-decoration: none;
    background:
/*        linear-gradient(rgba(18, 62, 150, .1), rgba(18, 62, 150, .2)), */
        url("/images/parts/banner.jpeg") left / cover no-repeat,
        linear-gradient(135deg, #78b3da, #275f87);
}
.banner:hover { color: var(--white); text-decoration: none; }
.banner-overlay { display: grid; align-content: center; justify-items: center; gap: .45rem; padding: 2rem 1.25rem; }
.banner-title { max-width: 850px; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.12; text-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
.banner-subtitle { font-size: clamp(.98rem, 2vw, 1.15rem); line-height: 1.45; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }

.main-nav { position: sticky; z-index: 20; top: 0; background: rgba(255, 255, 255, .97); box-shadow: 0 2px 10px rgba(18, 62, 90, .13); }
.nav-inner { width: min(1160px, calc(100% - 2rem)); min-height: 58px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: .55rem; color: var(--blue-800); font-weight: 750; text-decoration: none; }
.nav-brand:hover { color: var(--blue-700); text-decoration: none; }
.nav-brand-mark { height: 46px; width: auto; }
.nav-brand-text { font-size: 1.15rem; white-space: nowrap; }
.menu { display: flex; align-items: stretch; align-self: stretch; margin: 0; padding: 0; list-style: none; }
.menu-item { position: relative; display: flex; align-items: stretch; }
.menu-link-row { display: flex; align-items: stretch; }
.menu-link, .submenu-toggle { display: flex; align-items: center; border: 0; color: var(--blue-950); background: transparent; font: inherit; font-weight: 650; appearance: none; -webkit-appearance: none; cursor: pointer; }
.menu-link { padding: 0 1rem; }
.submenu-toggle { padding: 0 .7rem 0 0; font-size: 1.25rem; }
/* Hover and active-section both highlight the whole label+arrow row as one
   shape, not the text and the arrow as two independently-lit boxes — active
   has to be a row-level class (set in navigation.php) rather than living on
   just .menu-link, since a dropdown item's arrow is a sibling, not a child. */
.menu-link-row:hover, .menu-link-row.active { background: var(--blue-50); }
.menu-link-row:hover .menu-link, .menu-link-row:hover .submenu-toggle,
.menu-link-row.active .menu-link, .menu-link-row.active .submenu-toggle { color: var(--blue-700); text-decoration: none; }
.submenu { position: absolute; top: 100%; right: 0; width: max-content; min-width: 190px; max-height: min(70vh, 530px); overflow-y: auto; margin: 0; padding: .45rem 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu, .has-submenu.open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a, .menu-note { display: block; padding: .55rem 1rem; color: var(--text); white-space: nowrap; }
.submenu a:hover, .submenu a.active { color: var(--blue-950); background: var(--blue-50); text-decoration: none; }
.menu-note { color: var(--muted); font-size: .9rem; }
.menu-toggle { display: none; border: 0; color: var(--blue-950); background: none; font: inherit; font-weight: 700; appearance: none; -webkit-appearance: none; cursor: pointer; }
.menu-toggle span:last-child { margin-left: .45rem; font-size: 1.35rem; }

.page-content { width: min(1160px, calc(100% - 2rem)); flex: 1; margin: 2rem auto; }
.content-card { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--white); border-radius: 14px; box-shadow: var(--shadow); }
.page-heading { margin-bottom: 1.35rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
h1, h2, h3 { color: var(--blue-800); line-height: 1.25; }
.content-card > h1:first-child, .page-heading h1 { margin: 0; }
.lead { margin: .4rem 0 0; color: var(--muted); font-size: 1.12rem; }

/* Site style: extra breathing room between bullet/numbered list items. */
.content-card li { margin-bottom: .65rem; }
.content-card li:last-child { margin-bottom: 0; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { display: block; padding: 1.25rem; color: var(--text); border: 1px solid var(--line); border-radius: 10px; background: var(--blue-50); transition: transform .16s, box-shadow .16s; }
.feature-card:hover { color: var(--text); text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(25, 65, 91, .12); }
.feature-card h2 { margin: 0 0 .35rem; font-size: 1.25rem; }.feature-card p { margin: 0; }
.site-footer { padding: 1rem; color: var(--muted); text-align: center; font-size: .9rem; }.site-footer p { margin: 0; }

/* Existing sermon-table styling. Use class="table" on sermon tables. */
.table { width: 100%; border-spacing: 0; border-collapse: separate; overflow: hidden; background: var(--white); border-radius: 12px; box-shadow: 0 3px 12px rgba(0, 0, 0, .12); }
.table tr:nth-child(even) { background: #f7fbfe; }
.table tr:hover { background: #eef7ff; }
.table td, .table th { padding: 18px 20px; color: #111; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { width: 190px; color: var(--blue-800); font-weight: 600; }
.table td:last-child { width: 180px; color: #555; white-space: nowrap; }
.table td p { margin: .35em 0; }
.table th { font-weight: 700; }
.fa, .fa-solid, .fa-brands { margin-right: .35em; color: var(--blue-500); }

/* Visually hidden but still announced by screen readers (e.g. table captions). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* /videos — embedded YouTube grids for Sermons and Bible Class. */
.video-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin: 1.5rem 0 .5rem; }
.video-section-heading h2 { margin: 0; }
.video-more-link { font-size: .95rem; white-space: nowrap; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin: 0 0 1.5rem; }
.video-card { margin: 0; }
.video-embed { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption { margin-top: .6rem; font-weight: 600; }
.video-date { font-weight: 400; color: var(--muted); font-size: .9rem; }
.video-channel-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* The nav's own collapse point is wider than the general mobile breakpoint
   below: once "I'm New" and "Contact Us" were locked to one line (nbsp, so
   they don't wrap mid-phrase), the full desktop menu needs ~835px of width
   to avoid overflowing its container, well above 700px. */
@media (max-width: 880px) {
    .nav-inner { position: relative; min-height: 56px; }
    .menu-toggle { display: inline-flex; align-items: center; padding: .65rem 0 .65rem .75rem; }
    .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: .35rem 0; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 7px 12px rgba(18, 62, 90, .12); }
    .menu.open { display: flex; }
    .menu-item, .menu-link-row { display: block; }
    .menu-link-row { position: relative; }
    .menu-link { min-height: 48px; padding: .75rem 1rem; }
    .submenu-toggle { position: absolute; top: 0; right: .6rem; min-height: 48px; padding: 0 .65rem; }
    .submenu { position: static; display: none; width: 100%; max-height: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
    .has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { display: none; }
    .has-submenu.open > .submenu { display: block; }
    .submenu a, .menu-note { padding-left: 2rem; white-space: normal; }
}

/* Shown only on mobile — e.g. the "New here?" prompt on the home page,
   which would be redundant with the "I'm New" nav item on desktop. */
.mobile-only { display: none; }

@media (max-width: 700px) {
    .banner { min-height: 190px; }
    .home-grid { grid-template-columns: 1fr; }
    .mobile-only { display: block; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table { overflow: visible; background: transparent; box-shadow: none; }
    /* Each stacked card is already self-describing, so the header row is redundant on mobile. */
    .table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .table tr { display: block; margin-bottom: 1rem; overflow: hidden; background: var(--white); border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
    .table td { width: auto !important; white-space: normal !important; border: 0; border-bottom: 1px solid #e5eef5; }
    .table td:last-child { border-bottom: 0; }
}

/* Between the hamburger breakpoint (880px, where the full menu is hidden
   and there's ample room) and ~980px, the full desktop menu plus the
   brand text don't both fit — so the text is the first thing to go. */
@media (min-width: 881px) and (max-width: 1050px) {
    .nav-brand-text { display: none; }
}

/* Give button — a persistent call-to-action, not a nav tab. The pill
   (align-self: center) doesn't fill the full-height menu-link-row it sits
   in, so the row's own square hover highlight would show as a rectangle
   around the rounded button — cancel it here and let .nav-give:hover
   supply the only hover feedback, shaped to the pill itself. */
.menu-item-give .menu-link-row:hover { background: transparent; }
.nav-give { margin-left: .35rem; padding: .4rem 1.15rem; color: var(--white) !important; font-weight: 700; background: var(--gold-500); border-radius: 999px; align-self: center; }
.nav-give:hover { color: var(--white) !important; background: var(--gold-700); text-decoration: none; }

/* Grouped heading inside a dropdown, e.g. "WFEL 99.9 FM" inside Media. */
.submenu-heading { margin-top: .3rem; padding: .5rem 1rem .2rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.submenu-heading:first-child { margin-top: 0; }
.submenu-divider { margin: .3rem .9rem; border: 0; border-top: 1px solid var(--line); }

/* ---- Hero slideshow (Welcome page) ----------------------------------
   Same basic shape as the site's plain .banner (a landscape strip, not a
   full-viewport hero) — just tall enough to also hold the info overlay. */
.hero-slideshow { position: relative; min-height: clamp(360px, 42vw, 460px); overflow: hidden; background: var(--blue-950); }
.hero-slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-slideshow::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,40,.32) 0%, rgba(10,25,40,.1) 45%, rgba(10,25,40,.75) 100%); z-index: 1; }
.hero-mark { position: absolute; top: 1rem; left: 1rem; z-index: 2; width: clamp(64px, 9vw, 110px); height: auto; opacity: .95; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.banner .hero-mark { top: .75rem; left: .75rem; width: clamp(46px, 7vw, 72px); }
.hero-copy { position: relative; z-index: 2; display: grid; align-content: end; min-height: clamp(360px, 42vw, 460px); padding: 1rem 1.25rem 0; }
.hero-title { max-width: 900px; margin: 0; color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.12; text-shadow: 0 2px 8px rgba(0,0,0,.28); }
.hero-subtitle { max-width: 700px; margin: .4rem 0 0; color: var(--white); font-size: clamp(1rem, 2vw, 1.25rem); font-style: italic; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.hero-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem 1rem; margin: 1.1rem auto 0; padding: .9rem 1.1rem; color: var(--white); background: rgba(10, 20, 32, .55); backdrop-filter: blur(2px); border-radius: 10px 10px 0 0; justify-content: center; max-width: fit-content; }
.hero-info h2 { margin: 0 0 .25rem; color: var(--gold-500); font-size: .98rem; text-align: center; }
.hero-info p { margin: 0; line-height: 1.42; font-size: .94rem; text-align: center; }
.hero-info a { color: var(--white); text-align: center; }
.hero-dots { position: relative; z-index: 2; display: flex; justify-content: center; gap: .5rem; padding: .65rem 0; background: rgba(10, 20, 32, .55); }
.hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dot.is-active { background: var(--gold-500); }
.wels-badge-row { display: flex; justify-content: center; padding: 1.75rem 0 .5rem; }
.wels-badge-row img { max-width: 220px; height: auto; opacity: .9; }

@media (max-width: 700px) {
    .hero-slideshow { min-height: 520px; }
    .hero-copy { min-height: 520px; }
    .hero-info { grid-template-columns: 1fr; text-align: center; }
}

/* ---- Photo / logo grids (Associated Ministries, Ministry Staff) ----- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 1.75rem; margin-top: 1rem; }
.logo-card { display: grid; justify-items: center; gap: .9rem; padding: 1.9rem 1.5rem; text-align: center; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: var(--blue-50); transition: transform .16s, box-shadow .16s; }
.logo-card:hover { color: var(--text); text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(25,65,91,.12); }
.logo-card img { max-width: 150px; max-height: 135px; width: auto; height: auto; object-fit: contain; }
.logo-card span { font-weight: 650; font-size: 1.4rem; }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.staff-card { display: block; padding: 1.1rem; text-align: center; color: var(--text); border: 1px solid var(--line); border-radius: 10px; background: var(--blue-50); text-decoration: none; transition: transform .16s, box-shadow .16s; }
a.staff-card:hover, a.pastor-card:hover { color: var(--text); text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(25,65,91,.12); }
.staff-card img { width: 180px; height: 180px; margin-bottom: .75rem; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }

.pastor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 1rem; }
.pastor-card { display: block; padding: 1.5rem; text-align: center; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: var(--blue-50); text-decoration: none; transition: transform .16s, box-shadow .16s; }
.pastor-card img { width: 260px; height: 260px; max-width: 100%; margin-bottom: 1rem; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.pastor-card h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.pastor-card .role { margin: 0; color: var(--gold-700); font-weight: 650; }
.staff-card h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.staff-card .role { margin: 0 0 .4rem; color: var(--gold-700); font-weight: 650; }
.staff-card a { display: block; font-size: .92rem; }

.council-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; margin-top: 1rem; }
.council-card { padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--blue-50); }
.council-card h3 { margin: 0 0 .15rem; font-size: 1.02rem; }
.council-card .role { margin: 0 0 .3rem; color: var(--gold-700); font-weight: 650; font-size: .92rem; }

/* ---- Staff bio pages -------------------------------------------------- */
.bio-page { max-width: 720px; margin: 0 auto; }
.bio-page .bio-photo { display: block; width: 220px; height: 220px; margin: 0 auto 1rem; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.bio-page .role { margin: 0; text-align: center; color: var(--gold-700); font-weight: 650; font-size: 1.1rem; }
.bio-page > p:nth-of-type(2) { text-align: center; color: var(--muted); margin: .3rem 0 1.5rem; }
.council-card a { font-size: .9rem; }

/* ---- Single feature photos & liturgical-season cards (Worship) ------ */
.page-photo { width: 100%; height: auto; margin: 1rem 0; border-radius: 12px; box-shadow: var(--shadow); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1rem 0 1.5rem; }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.photo-pair figcaption { margin-top: .4rem; text-align: center; color: var(--muted); font-size: .92rem; }

/* The six liturgical colors — their meaning doesn't map one-to-one to a
   single season, so they get their own 3x2 grid of solid color blocks. */
.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1rem 0 2rem; }
.color-block { padding: 1.75rem 1.5rem; border-radius: 14px; box-shadow: var(--shadow); background: var(--season-color, var(--blue-950)); }
.color-block h3 { margin: 0 0 .5rem; color: var(--season-title, var(--gold-300)); font-size: 1.35rem; }
.color-block p { margin: 0; color: var(--season-text, var(--white)); font-size: .92rem; line-height: 1.55; }
.color-block-light { border: 1px solid var(--line); }
@media (max-width: 900px) { .color-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .color-grid { grid-template-columns: 1fr; } }

/* /schedule — three day-type columns (Weekday / Saturday / Sunday), each a
   list of time blocks. Every block always shows its own time and program
   name; color is a secondary, at-a-glance grouping cue, never the only way
   to tell what's on — unlike the old half-hour grid this replaced, where a
   blank cell's background color was the sole indicator a program continued. */
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.25rem 0 2rem; }
.schedule-day { padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.schedule-day h3 { margin: 0 0 .9rem; padding-bottom: .65rem; color: var(--blue-800); text-align: center; border-bottom: 1px solid var(--line); }
.schedule-blocks { display: flex; flex-direction: column; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.schedule-block { padding: .55rem .75rem; border-left: 4px solid var(--accent, var(--muted)); border-radius: 0 8px 8px 0; background: var(--bg, var(--blue-50)); }
.schedule-time { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.schedule-program { display: block; font-weight: 650; }
.slot-sacred { --bg: var(--blue-50); --accent: var(--blue-700); }
.slot-sermon { --bg: var(--gold-100); --accent: var(--gold-700); }
.slot-music { --bg: var(--green-50); --accent: var(--green-700); }
.slot-otr { --bg: var(--white); --accent: var(--muted); }
@media (max-width: 900px) { .schedule-grid { grid-template-columns: 1fr; } }

/* Program guide table — a small colored dot ties each row back to its
   category in the schedule grid above. */
.format-dot { display: inline-block; width: .65rem; height: .65rem; margin-right: .5rem; border-radius: 50%; background: var(--accent, var(--muted)); }
/* .table's own td:first-child/td:last-child rules assume the 3-column
   sermon-table shape (date | details | narrow preacher name) — this table
   is only 2 columns, so its last child is the long description, not a
   narrow column. Override both back to normal, wrapping width. */
.program-guide-table td:first-child { width: 1%; white-space: nowrap; }
.program-guide-table td:last-child { width: auto; white-space: normal; }
/* Nothing here is clickable, so the row hover (meant to track sermon-table
   rows with download links) is just noise — cancel it back to each row's
   own resting background instead of the usual hover tint. */
.program-guide-table tr:hover { background-color: transparent; }
.program-guide-table tr:nth-child(even):hover { background-color: #f7fbfe; }

/* The six church-year seasons — a self-paced slideshow (no auto-rotation:
   these triptychs reward a slow, deliberate look, not a timed glance) so
   all six are reachable without turning the page into a long scroll. The
   title updates from whichever season tab is active — see script.js. */
.season-slideshow { margin: 1.5rem 0; }
.season-slide-title { margin: 0 0 .85rem; color: var(--blue-800); text-align: center; font-size: 1.75rem; font-weight: 750; }
.season-stage { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--blue-50); }
.season-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s ease; }
.season-slide.is-active { opacity: 1; }
.season-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; padding: 0; color: var(--white); font-size: 1.5rem; line-height: 1; background: rgba(10, 20, 32, .5); border: 0; border-radius: 50%; cursor: pointer; transform: translateY(-50%); }
.season-arrow:hover { background: rgba(10, 20, 32, .75); }
.season-prev { left: .75rem; }
.season-next { right: .75rem; }
.season-zoom { position: absolute; right: .75rem; bottom: .75rem; z-index: 2; display: flex; align-items: center; gap: .4rem; padding: .55rem .95rem; color: var(--white); font-size: .85rem; font-weight: 650; background: rgba(10, 20, 32, .55); border: 0; border-radius: 999px; cursor: pointer; }
.season-zoom:hover { background: rgba(10, 20, 32, .8); }
/* Zoom only earns its keep where pinch-zoom can actually drive it. A mouse
   has no equivalent gesture, so the button (and the lightbox it opens) would
   just be a bigger picture with no way to zoom — hide it for pointer:fine
   devices rather than fake a feature that doesn't work there. */
@media (hover: hover) and (pointer: fine) {
    .season-zoom { display: none; }
}
.season-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; max-width: 1100px; margin: 1.1rem auto 0; }
.season-tab { padding: 1rem 1.05rem; color: var(--blue-800); font-size: 1.05rem; font-weight: 650; background: var(--blue-50); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.season-tab:hover { background: var(--blue-100); }
.season-tab.is-active { color: var(--white); background: var(--blue-700); border-color: var(--blue-700); }

/* Full-screen zoom lightbox — lets mobile visitors pinch-zoom into the
   triptych's side-panel details at a much larger size than the inline
   slideshow frame allows. */
.season-lightbox { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 3rem 1rem 1rem; background: rgba(8, 14, 22, .94); }
.season-lightbox[hidden] { display: none; }
.season-lightbox-img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.season-lightbox-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 44px; height: 44px; color: var(--white); font-size: 1.6rem; line-height: 1; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; cursor: pointer; }
.season-lightbox-close:hover { background: rgba(255, 255, 255, .25); }
.season-lightbox-caption { position: absolute; top: 1.1rem; left: 1rem; right: 4rem; color: var(--white); font-size: 1.1rem; font-weight: 650; }

/* ---- Community Events / Soccer Camp photo strips --------------------- */
.event-section { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.event-section:first-of-type { border-top: 0; padding-top: 0; }
.event-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.event-photos img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
@media (max-width: 700px) { .photo-pair { grid-template-columns: 1fr; } .event-photos { grid-template-columns: 1fr 1fr; } }

.event-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.event-row:first-of-type { border-top: 0; padding-top: 0; }
.event-row-reverse .event-media { order: -1; }
.event-media .mini-carousel, .event-media .page-photo { margin: 0; max-width: 100%; }
.event-photo-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.event-media-badged { position: relative; }
.event-media-badge { position: absolute; right: .75rem; bottom: .75rem; z-index: 2; width: 56px; height: auto; padding: 3px; background: var(--white); border-radius: 6px; box-shadow: var(--shadow); }

/* Hearing-loop bullet in the "Our Worship" list — the T-Loop graphic sits
   beside its own paragraph, sized to roughly 4 lines of text (line-height
   1.6 * 4), rather than as a badge over the photo. */
.hearing-loop-item { display: flex; align-items: flex-start; gap: 1rem; }
.hearing-loop-img { flex-shrink: 0; width: auto; height: 6.4em; border-radius: 6px; box-shadow: var(--shadow); }
@media (max-width: 760px) {
    .event-row { grid-template-columns: 1fr; gap: 1rem; }
    .event-row-reverse .event-media { order: 0; }
}

/* Small photo slideshow — event galleries, soccer camp. Auto-advances,
   with arrows and dots, similar to the old Wix slider widgets. */
.mini-carousel { position: relative; max-width: 520px; margin: 1rem auto 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: #111; }
.mini-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.mini-slide.is-active { opacity: 1; }
.mini-arrow { position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; padding: 0; color: var(--white); font-size: 1.15rem; line-height: 1; background: rgba(10,20,32,.45); border: 0; border-radius: 50%; cursor: pointer; transform: translateY(-50%); }
.mini-arrow:hover { background: rgba(10,20,32,.7); }
.mini-prev { left: .6rem; }
.mini-next { right: .6rem; }
.mini-dots { position: absolute; z-index: 2; bottom: .55rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; }
.mini-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.mini-dot.is-active { background: var(--gold-500); }

.stat-strip { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1rem 0 1.5rem; padding: 1rem 1.25rem; background: var(--gold-100); border-radius: 10px; }
.stat-strip div { min-width: 140px; }
.stat-strip strong { display: block; color: var(--blue-800); }

/* A pair (or few) of short highlighted facts — e.g. Soccer Camp Info's Cost
   / Who Can Participate. Narrower and centered than .stat-strip, meant for
   just a couple of items rather than a full-width row. */
.info-highlights { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 1.25rem; max-width: 560px; margin: 1rem auto 1.75rem; }
.info-highlight-card { padding: 1.5rem 1.25rem; text-align: center; background: linear-gradient(160deg, var(--gold-100), var(--white)); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.info-highlight-card i { font-size: 1.9rem; color: var(--gold-700); }
.info-highlight-card h3 { margin: .6rem 0 .3rem; color: var(--blue-800); font-size: 1.05rem; }
.info-highlight-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) { .info-highlights { grid-template-columns: 1fr; } }

/* Event countdown timer — e.g. Soccer Camp's "time until camp" widget. */
.countdown { max-width: 480px; margin: 1.5rem auto 0; text-align: center; }
.countdown-label { margin: 0 0 .6rem; color: var(--blue-800); font-weight: 650; }
.countdown-units { display: flex; justify-content: center; gap: .6rem; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; min-width: 68px; padding: .75rem .5rem; background: var(--blue-700); border-radius: 10px; box-shadow: var(--shadow); }
.countdown-value { font-size: 1.6rem; font-weight: 750; color: var(--white); font-variant-numeric: tabular-nums; }
.countdown-name { margin-top: .15rem; font-size: .72rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-300); }
@media (max-width: 420px) {
    .countdown-unit { min-width: 58px; padding: .6rem .35rem; }
    .countdown-value { font-size: 1.3rem; }
}

/* Sub-page tabs — e.g. Soccer Camp's Home/Info/Media, real navigable links
   (page reloads, unlike the JS-driven .season-tab), styled as the same pill
   tab look. */
.subpage-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.75rem; }
.subpage-tab { padding: .65rem 1.6rem; color: var(--blue-800); font-weight: 650; background: var(--blue-50); border: 1px solid var(--line); border-radius: 999px; transition: background .15s, color .15s; }
.subpage-tab:hover { background: var(--blue-100); text-decoration: none; }
.subpage-tab.active { color: var(--white); background: var(--blue-700); border-color: var(--blue-700); }

/* Soccer Camp media page — one block per camp day. Slideshows run full-width
   here (unlike the default .mini-carousel used elsewhere), so a wider
   16:9 crop suits them better than the default 4:3. */
.day-media-block { margin: 0 0 2rem; text-align: center; }
.day-media-block h2 { margin-bottom: 0; }
.day-media-block .mini-carousel { max-width: none; aspect-ratio: 16 / 9; }
.day-cancelled-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; max-width: none; aspect-ratio: 16 / 9; margin: 1rem auto 0; padding: 1.5rem; background: linear-gradient(160deg, var(--blue-50), var(--blue-100)); border-radius: 10px; box-shadow: var(--shadow); }
.day-cancelled-card i { font-size: 2.75rem; color: var(--blue-500); }
.day-cancelled-card p { margin: 0; max-width: 320px; color: var(--blue-800); font-weight: 600; }

/* ---- Home page: upcoming events, quick links, social ------------------ */
.home-section { margin: 1.75rem 0; }
.home-section h2 { margin-bottom: .75rem; }
/* Home page featured-event graphics — auto-populated from /home-feature,
   see includes/home.htm. Plain vertical stack, no carousel: all of them
   show at once, most aren't links. */
.home-feature-stack { display: flex; flex-direction: column; gap: 1.25rem; margin: 0 0 1rem; }
.home-feature-item img { display: block; width: 100%; max-width: 760px; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow); }
.home-feature-caption { max-width: 760px; margin: -.5rem auto 0; color: var(--muted); font-size: .92rem; text-align: center; }
.home-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-pill { display: inline-block; padding: .8rem 1.75rem; color: var(--white); font-weight: 700; text-align: center; background: var(--blue-700); border-radius: 999px; box-shadow: var(--shadow); }
.btn-pill:hover { color: var(--white); background: var(--blue-950); text-decoration: none; }
.btn-cta { display: inline-block; padding: 1.1rem 2.75rem; color: var(--white); font-weight: 750; font-size: 1.15rem; text-align: center; background: var(--gold-500); border-radius: 999px; box-shadow: var(--shadow); }
.btn-cta:hover { color: var(--white); background: var(--gold-700); text-decoration: none; }

.quick-links-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.75rem 0; padding: 1.75rem 1.25rem; background: linear-gradient(135deg, #78b3da, #275f87); border-radius: 14px; }
.icon-link { display: grid; justify-items: center; gap: .6rem; color: var(--white); text-align: center; }
.icon-link:hover { color: var(--white); text-decoration: none; }
.icon-link i { margin-right: 0; font-size: 1.8rem; color: var(--gold-300); }
.icon-link span { padding: .5rem 1.1rem; font-weight: 650; border: 1px solid var(--gold-500); border-radius: 8px; }
.icon-link:hover span { background: rgba(255,255,255,.12); }

.social-row { display: flex; justify-content: center; gap: .9rem; margin: 1.5rem 0; }
.social-row a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--blue-800); font-size: 1.15rem; border: 2px solid var(--blue-800); border-radius: 50%; }
.social-row a i { margin-right: 0; color: inherit; line-height: 1; }
.social-row a:hover { color: var(--white); background: var(--blue-800); text-decoration: none; }

@media (max-width: 700px) {
    .quick-links-band { grid-template-columns: 1fr; }
}

/* ---- Calendar / map embeds --------------------------------------------- */
.calendar-subscribe { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; }
.calendar-subscribe h2 { margin-bottom: .4rem; }
.calendar-subscribe > p { color: var(--muted); max-width: 90ch; margin: 0 auto; }
.calendar-subscribe .home-buttons { margin-top: 1.1rem; }
.subscribe-manual { margin-top: 1.3rem !important; font-size: .88rem; max-width: 90ch !important; }
.subscribe-url { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: .5rem auto 0; }
.subscribe-url code { display: inline-block; max-width: 100%; padding: .5rem .9rem; overflow-x: auto; color: var(--blue-800); font-size: .85rem; background: var(--blue-50); border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.copy-btn { padding: .5rem .9rem; color: var(--white); font: inherit; font-size: .85rem; font-weight: 650; background: var(--blue-700); border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { background: var(--blue-950); }
.copy-btn.copied { background: var(--gold-500); }

.calendar-embed, .map-embed { margin: 1rem auto 0; }
.calendar-embed iframe, .map-embed iframe { display: block; width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.calendar-embed { max-width: 1200px; }
.calendar-embed iframe { max-width: 1200px; height: 900px; }
.map-embed { max-width: 800px; }
.map-embed iframe { max-width: 800px; height: 380px; }

/* ---- Church Info: two columns, Visit Us + map on the right ------------ */
.church-info-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; margin-top: 1rem; }
.church-info-columns .map-embed { margin-top: .75rem; }
@media (max-width: 760px) {
    .church-info-columns { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
