/* ==========================================================================
   ACK St. Mark Ruringu — Public site refinements

   style.css is an inherited charity template: float-based layout, a global
   0.5s transition on every element, and a heading scale that runs to 60px.
   This file loads after it and corrects those without rewriting page markup.

   Typography follows the same system as the admin (Poppins, 600-weight
   headings, 5px corners, hairline borders), sized one step up for reading.
   ========================================================================== */

:root {
    --church-primary: #064e3b;
    --church-secondary: #dc2626;
    --church-accent: #059669;
    --church-dark: #1f2937;
    --church-muted: #6b7280;
    --church-border: #e5e7eb;
    --church-sunken: #f8fafc;

    --pub-radius: 5px;
    --pub-section-gap: 70px;
    --pub-fs-body: 14px;
    --pub-lh-body: 24px;
}

/* --------------------------------------------------------------------------
   1. Undo the global transition

   `* { transition: ease all 0.5s }` in style.css animates every property on
   every element, including layout on load and resize. Reset it, then put
   transitions back only where they mean something.
   -------------------------------------------------------------------------- */

* { transition: none; }

a,
button,
.btn,
input,
select,
textarea,
.box_main,
.overlay,
.container_main img,
.date_text a,
.read_bt a,
.join_bt a,
.readmore_bt a,
.readmore_btn a,
.readmore_btn_1 a,
.donate_bt a,
.send_bt a,
.send_bt_1 a,
.get_bt {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   2. Typography

   Sizes track the reference scale (h1 40, h2 30, h3 26, h4 20, h5 16) at
   weight 600 instead of the template's 700-uppercase-everything.
   -------------------------------------------------------------------------- */

body {
    font-size: var(--pub-fs-body);
    line-height: var(--pub-lh-body);
    color: var(--church-muted);
}

p {
    margin: 0 0 14px;
    font-size: var(--pub-fs-body);
    font-weight: 400;
    line-height: var(--pub-lh-body);
}

p:last-child { margin-bottom: 0; }

/* Section headings — were 40px/700 uppercase */
.news_taital,
.mission_taital,
.about_taital,
.donate_taital,
.contact_taital,
.events_taital {
    font-size: 30px;
    line-height: 40px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    padding-bottom: 6px;
}

/* Section intro paragraph under a heading */
.news_text,
.mission_text,
.about_text {
    font-size: 15px;
    line-height: 26px;
    max-width: 68ch;
}

/* Sub-headings — were 26px/700 uppercase */
.give_taital,
.give_taital_1,
.volunteer_text,
.client_name_text,
.donation_taital {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    text-transform: none;
    padding-top: 0;
}

.raised_text,
.raised_text_1 {
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    padding-top: 8px;
}

.ipsum_text,
.ipsum_text_1,
.lorem_text,
.dummy_text,
.alteration_text {
    font-size: var(--pub-fs-body);
    line-height: var(--pub-lh-body);
    padding-top: 8px;
}

/* Banner — was a fixed 60px in a 45%-wide column */
.banner_taital {
    width: min(100%, 20ch);
    font-size: clamp(28px, 4.4vw, 40px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.banner_text {
    width: min(100%, 62ch);
    font-size: 15px;
    line-height: 26px;
    padding: 16px 0 4px;
}

/* --------------------------------------------------------------------------
   3. Section rhythm

   `.layout_padding` was 90px top / 0 bottom, so adjacent sections collided.
   -------------------------------------------------------------------------- */

.layout_padding {
    padding-top: var(--pub-section-gap);
    padding-bottom: var(--pub-section-gap);
}

.about_section.layout_padding,
.events_section.layout_padding,
.contact_section.layout_padding,
.donate_section.layout_padding {
    padding-bottom: var(--pub-section-gap);
}

/* The banner carried 70px of top padding plus a 56px gap before the panel,
   for ~140px of actual headline. That pushed the first real section almost
   950px down the page. Tighten both. */
.banner_section.layout_padding {
    padding-top: 40px;
    padding-bottom: 0;
}

/* The template's carousel indicators targeted `li` elements and pushed them
   -60px below the slide — under the fundraise section, invisible. Bootstrap 5
   uses <button> indicators; restyle them as dots inside the banner. */
.banner_section .carousel-indicators {
    position: static;
    margin: 22px 0 0;
    justify-content: center;
}

.banner_section .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    margin: 0 5px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background-color: transparent;
    text-indent: -999px;
    opacity: 1;
}

.banner_section .carousel-indicators .active {
    background-color: #fff;
    border-color: #fff;
    width: 11px;
    height: 11px;
}

/* The template pulled the banner up 70px with `top`, which leaves an equal
   run of dead space at the foot of the section because `top` does not affect
   flow. The fixed header already reserves its own space via body padding. */
.banner_section { top: 0; }

/* `.mission_section_2` sits outside the page `.container`, so its grid rows
   had nothing to cancel their negative gutter margins against and bled past
   the container edge. Give it the same measure. */
.mission_section_2 {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 12px 0;
}

/* Section heads now handle their own bottom spacing — the template's extra
   24px on the content row would double the gap. */
.news_section_2,
.events_section_2 { padding-top: 0; }

/* --------------------------------------------------------------------------
   4. Event date badge

   `.date_bt` is absolutely positioned but its parent column is not
   positioned, so it resolved against the viewport at width:100% and pushed
   the whole page into horizontal scroll. Confine it to its column and make
   it read as a badge on the image.
   -------------------------------------------------------------------------- */

.events_section_2 .row > [class*="col-"] { position: relative; }

.date_bt {
    position: absolute;
    top: 16px;
    left: 28px;
    width: auto;
    float: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--pub-radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.date_text {
    display: block;
    margin: 0;
    width: auto;
}

.date_text a {
    display: block;
    width: 54px;
    padding: 5px 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.date_text.active a { background-color: var(--church-secondary); }
.date_text:not(.active) a { background-color: var(--church-primary); }
.date_text a:hover { background-color: var(--church-dark); }

.img_7 img,
img.img_7 {
    width: 100%;
    border-radius: var(--pub-radius);
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   4b. Un-float the text blocks

   style.css sets `float: left; width: 100%` on nearly every heading and
   paragraph. Any flex container that follows them establishes its own
   formatting context, so instead of stacking below it gets placed *beside*
   the float — which is what pushed the homepage button rows off the right
   edge of the page. These blocks are inside a Bootstrap grid already and do
   not need to float at all.
   -------------------------------------------------------------------------- */

.banner_taital,
.banner_text,
.about_taital,
.about_text,
.mission_taital,
.mission_text,
.news_taital,
.news_text,
.contact_taital,
.donation_taital,
.give_taital,
.give_taital_1,
.ipsum_text,
.ipsum_text_1,
.raised_text,
.raised_text_1,
.volunteer_text,
.lorem_text,
.some_text,
.alteration_text,
.icon_1,
.footer_taital,
.footer_text,
.copyright_text {
    float: none;
    width: auto;
}

/* Rows that follow floated media still need to start on a clean line */
.donate_btn_main,
.btn_main,
.mail_box,
.send_bt,
.readmore_bt {
    clear: both;
}

/* --------------------------------------------------------------------------
   5. Buttons

   The template ships eight near-identical button classes at 150px fixed
   width. Give them one shape and let them size to their label.
   -------------------------------------------------------------------------- */

.read_bt,
.join_bt,
.readmore_bt,
.readmore_btn,
.readmore_btn_1,
.donate_bt,
.send_bt,
.send_bt_1 {
    width: auto;
    display: inline-flex;
    float: none;
    margin: 0;
}

.read_bt a,
.join_bt a,
.readmore_bt a,
.readmore_btn a,
.readmore_btn_1 a,
.donate_bt a,
.send_bt a,
.send_bt_1 a {
    width: auto;
    float: none;
    display: inline-block;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.02em;
    border-radius: var(--pub-radius);
    white-space: nowrap;
}

.donate_btn_main {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
}

.readmore_btn_1 { margin-left: 0; }

.btn_main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.donate_bt a { border-width: 1px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--church-accent) !important;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   6. Donation strip on the banner
   -------------------------------------------------------------------------- */

.donation_box {
    width: min(100%, 920px);
    margin: 30px auto 0;
    padding: 22px 24px;
    border-radius: var(--pub-radius);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.10);
}

/* ---- Verse of the day (panel under the banner) --------------------------
   Sits in the slot the donation form used to occupy. Deep green so it reads
   as a quiet pause between the banner and the rest of the page.
   -------------------------------------------------------------------------- */

.donation_box.verse_panel {
    position: relative;
    background: var(--church-primary);
    background-image:
        radial-gradient(circle at 92% 8%, rgba(5, 150, 105, 0.42), transparent 58%),
        radial-gradient(circle at 4% 96%, rgba(3, 45, 34, 0.60), transparent 46%);
    box-shadow: 0 10px 34px rgba(3, 45, 34, 0.26);
    padding: 22px 30px 22px 96px;
    overflow: hidden;
}

/* Oversized quotation mark, bled off the corner — the one flourish on the
   panel, and what stops it reading as a plain green box. */
.vp_mark {
    position: absolute;
    left: 14px;
    top: -26px;
    font-size: 150px;
    line-height: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.10);
    pointer-events: none;
    user-select: none;
}

.vp_inner { position: relative; z-index: 1; }

.vp_label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6ee7b7;
    margin-bottom: 8px;
}

.vp_label i { font-size: 11px; }

.vp_text {
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.5;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    max-width: 68ch;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

/* Reference and actions share one baseline row, which keeps the panel
   short — it sits above the fold and should not eat the banner. */
.vp_foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.vp_ref {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

/* Small dash before the reference, the way a pull quote is attributed */
.vp_ref::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--church-secondary);
    border-radius: 1px;
}

.vp_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vp_btn {
    display: inline-block;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: var(--church-secondary);
    border: 1px solid var(--church-secondary);
    border-radius: var(--pub-radius);
}

.vp_btn:hover { background: #fff; border-color: #fff; color: var(--church-primary); }

.vp_btn_ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

.vp_btn_ghost:hover { background: #fff; border-color: #fff; color: var(--church-primary); }

.donation_taital { padding-bottom: 14px; }

.mail_box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

.mail_text {
    flex: 1 1 180px;
    width: auto;
    float: none;
    margin: 0;
    padding: 9px 12px;
    font-size: var(--pub-fs-body);
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    box-shadow: none;
}

.mail_text:focus {
    border-color: var(--church-accent);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.13);
    outline: none;
}

/* Full-width flex so the button centres under the fields */
.send_bt {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.send_bt a { margin-top: 0; padding: 9px 30px; }

/* --------------------------------------------------------------------------
   7. Fundraise / mission cards
   -------------------------------------------------------------------------- */

/* Holds a grid row but sits outside the page `.container`, so it has to
   supply the 12px padding the row's negative gutter margins cancel against.
   Without it the row is 24px wider than the viewport. */
.fundraise_section_main {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 12px;
}

/* The clip-path notch needs some bottom room, but 58px was more than the
   shape uses. Three of these stack full-width on a phone, so every pixel
   here is multiplied by three. */
.box_main { padding: 20px 18px 44px; height: 100%; }

.icon_1 img { width: 42px; height: auto; }

/* Fundraise boxes now use Font Awesome icons — keep them the same visual
   weight as the template PNGs they replaced. */
.icon_1 i {
    font-size: 36px;
    line-height: 46px;
    color: #fff;
    opacity: 0.95;
}

.volunteer_text { font-size: 17px; line-height: 24px; padding-top: 12px; }

.lorem_text {
    width: min(100%, 32ch);
    font-size: 13.5px;
    line-height: 21px;
}

.join_bt { margin-top: 14px; }

.container_main {
    position: relative;
    overflow: hidden;
    border-radius: var(--pub-radius);
}

.container_main .image { border-radius: var(--pub-radius); }

/* ---- Featured sermon / announcement image blocks -------------------------
   `.news_img` had no styles at all — the image rendered at whatever size the
   browser decided, unbordered and unrounded. `.img_7` similarly renders the
   announcement photo raw. Give both a consistent media-card treatment. */

.news_img,
.img_7 {
    border-radius: var(--pub-radius);
    overflow: hidden;
    background: var(--church-sunken);
}

.news_img img,
.img_7 img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* `.img_7` carries `float: left` from the template; inside Bootstrap grid
   columns it does nothing but pin the block left — float it off cleanly. */
.img_7 { float: none; }

/* The announcement date badge sits absolutely over the image column.
   When the column has no image (empty announcements) it would float over
   empty space — it is already hidden by PHP in that case. */
.date_bt { top: 16px; left: 28px; width: auto; }

.overlay { background-color: rgba(6, 78, 59, 0.90); }

.some_text { font-size: 18px; font-weight: 600; text-transform: none; padding-bottom: 6px; }

/* --------------------------------------------------------------------------
   8. Testimonial slider

   `.donate_left` (25%) and `.donate_right` (100%) sat side by side inside a
   flex row and overflowed. The nav arrows were parked 89px outside the
   container, which also spilled on narrow viewports.
   -------------------------------------------------------------------------- */

.donate_taital_main {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--pub-radius);
    padding: 28px 24px;
    margin-top: 22px;
}

#main_slider .carousel-item.active,
#main_slider .carousel-item-next,
#main_slider .carousel-item-prev {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.donate_left { width: 120px; flex: 0 0 auto; float: none; }
.donate_right { flex: 1 1 320px; width: auto; }
.client_img img { width: 100%; border-radius: 50%; }

#main_slider a.carousel-control-next,
#main_slider a.carousel-control-prev {
    position: absolute;
    right: 8px;
    left: auto;
    width: 38px;
    height: 38px;
    border-radius: var(--pub-radius);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#main_slider a.carousel-control-prev { top: auto; bottom: 8px; }
#main_slider a.carousel-control-next { top: 8px; }

/* --------------------------------------------------------------------------
   9. Contact form
   -------------------------------------------------------------------------- */

.mail_text_1,
.massage-bt {
    width: 100%;
    float: none;
    font-size: var(--pub-fs-body);
    padding: 10px 12px;
    margin-top: 12px;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    color: var(--church-dark);
}

.massage-bt { height: 130px; padding-top: 10px; }

.mail_text_1:focus,
.massage-bt:focus {
    border-color: var(--church-accent);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.13);
    outline: none;
}

.send_bt_1 { margin-top: 20px; }
.send_bt_1 a { margin-top: 0; }

/* Submit control for the events / sermons filter rows. Replaces an <a>
   nested inside a <button>, which was invalid and left the button's own
   grey box showing beside the link. */
.filter_bt {
    width: 100%;
    margin-top: 12px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.02em;
    color: #fff;
    background-color: var(--church-accent);
    border: 1px solid var(--church-accent);
    border-radius: var(--pub-radius);
    cursor: pointer;
}

.filter_bt:hover {
    background-color: var(--church-primary);
    border-color: var(--church-primary);
}

.map_main { padding-top: 44px; }
.map_main iframe { display: block; width: 100%; border: 0; border-radius: var(--pub-radius); }

/* --------------------------------------------------------------------------
   10. Footer

   The subscribe row used a 200px right padding plus a control pulled back up
   56px to fake an overlay. Lay it out instead.
   -------------------------------------------------------------------------- */

.footer_section.layout_padding { padding-bottom: 44px; }

.footer_taital {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    padding-bottom: 12px;
    letter-spacing: 0.02em;
}

.footer_text {
    font-size: var(--pub-fs-body);
    line-height: 23px;
    color: #b7bcc4;
    margin: 0 0 6px;
}

.footer_menu li {
    font-size: var(--pub-fs-body);
    padding-bottom: 7px;
    line-height: 21px;
}

.footer_menu li::before { width: 6px; height: 6px; top: 9px; left: -16px; }
.footer_menu ul { padding-left: 16px; }
.footer_menu li a:hover { color: #fff; }

.footer_section_2 {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.social_icon li { padding-top: 0; padding-right: 10px; }

.social_icon li a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social_icon li a:hover { background: var(--church-secondary); }
.social_icon li a i { font-size: 14px !important; color: #fff !important; }

/* Subscribe field + button as a single row */
.footer_section_2 .row > [class*="col-"]:last-child {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.address_text {
    flex: 1 1 220px;
    width: auto;
    float: none;
    height: 40px;
    margin: 0;
    padding: 8px 12px;
    font-size: var(--pub-fs-body);
    color: #d7dade;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--pub-radius);
}

.address_text:focus {
    border-color: var(--church-accent);
    outline: none;
}

.get_bt {
    width: auto;
    float: none;
    position: static;
    top: auto;
    right: auto;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background-color: var(--church-secondary);
    border-radius: var(--pub-radius);
}

.get_bt:hover { background-color: var(--church-accent); }

.copyright_section { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; }
.copyright_text { font-size: 13px; margin: 0; }

/* --------------------------------------------------------------------------
   11. Generic content surfaces used by the inner pages
   -------------------------------------------------------------------------- */

.card {
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    box-shadow: none;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--church-border);
    font-size: 15px;
    font-weight: 600;
    color: var(--church-dark);
}

.form-control,
.form-select {
    font-size: var(--pub-fs-body);
    border-radius: var(--pub-radius);
    border-color: var(--church-border);
    padding: 9px 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--church-accent) !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.13);
}

.badge { font-size: 11px; font-weight: 600; border-radius: 10px; padding: 3px 9px; }

.btn { font-size: 13px; font-weight: 600; border-radius: var(--pub-radius); padding: 8px 16px; }

/* --------------------------------------------------------------------------
   11a. Page hero — the banner strip on every inner page
   -------------------------------------------------------------------------- */

.page_hero {
    clear: both;
    width: 100%;
    float: none;
    position: relative;
    background: var(--church-primary);
    background-image:
        radial-gradient(circle at 88% 12%, rgba(5, 150, 105, 0.42), transparent 46%),
        radial-gradient(circle at 8% 96%, rgba(4, 61, 46, 0.55), transparent 40%);
    padding: 44px 0 46px;
    overflow: hidden;
}

/* Photo layer — the wash and the photo are stacked in one pseudo-element so
   ::after stays free for the accent rule. The source images are only ~650px
   wide, so a heavy tint pushes them back to read as texture, not subject,
   and keeps the white text legible over any of them. */
.page_hero.has_image { padding: 62px 0 64px; }

.page_hero.has_image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(4, 61, 46, 0.94) 0%, rgba(6, 78, 59, 0.78) 42%, rgba(6, 78, 59, 0.52) 100%),
        var(--hero-img) center / cover no-repeat;
}

/* Content sits above the photo layer; the accent rule above both */
.page_hero > .container { position: relative; z-index: 1; }
.page_hero::after { z-index: 2; }

/* A faint rule at the foot, so the hero reads as a band rather than a slab */
.page_hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--church-secondary) 0 22%, var(--church-accent) 22% 100%);
}

.ph_crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 14px;
}

.ph_crumb a { color: rgba(255, 255, 255, 0.82); }
.ph_crumb a:hover { color: #fff; }
.ph_crumb i { font-size: 8px; opacity: 0.55; }
.ph_crumb span { color: #fff; font-weight: 500; }

.ph_eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6ee7b7;
    margin-bottom: 8px;
}

.ph_title {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.18;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    padding: 0 0 10px;
    margin: 0;
}

.ph_desc {
    font-size: 15px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.80);
    max-width: 62ch;
    margin: 0;
}

/* The hero already carries the page's opening space, so the first section
   after it starts tighter than a mid-page section would. */
.page_hero + .news_section.layout_padding,
.page_hero + .events_section.layout_padding,
.page_hero + .mission_section.layout_padding,
.page_hero + .contact_section.layout_padding,
.page_hero + .about_section.layout_padding,
.page_hero + .bible-container,
.page_hero + .container {
    padding-top: 38px;
}

/* --------------------------------------------------------------------------
   11b. Homepage sections — plan your visit, about facts, ministries
   -------------------------------------------------------------------------- */

.section_head { margin-bottom: 26px; }
.section_cta { margin-top: 26px; display: flex; justify-content: center; }

/* ---- Plan your visit ---------------------------------------------------- */

/* The template's sections are `float: left`, so any new section must clear
   them or its grid/flex children get placed beside the float instead of
   below it. See the note in section 4b. */
.visit_band,
.ministries_home {
    clear: both;
    width: 100%;
    float: none;
}

.visit_band {
    background: var(--church-sunken);
    border-top: 1px solid var(--church-border);
    border-bottom: 1px solid var(--church-border);
    padding: 44px 0;
}

.visit_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.visit_eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--church-accent);
    margin-bottom: 8px;
}

.visit_title {
    font-size: 26px;
    line-height: 34px;
    font-weight: 600;
    color: var(--church-dark);
    padding: 0 0 10px;
}

.visit_copy {
    font-size: 15px;
    line-height: 26px;
    max-width: 46ch;
    margin-bottom: 14px;
}

.visit_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--church-primary);
}

.visit_link i { font-size: 11px; transition: transform 0.2s ease; }
.visit_link:hover { color: var(--church-secondary); }
.visit_link:hover i { transform: translateX(3px); }

.visit_times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.visit_time_card {
    background: #fff;
    border: 1px solid var(--church-border);
    border-left: 3px solid var(--church-accent);
    border-radius: var(--pub-radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vt_day {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--church-muted);
}

.vt_time { font-size: 17px; font-weight: 600; color: var(--church-dark); }
.vt_note { font-size: 13px; color: var(--church-muted); }

/* ---- About facts and figures -------------------------------------------- */

.about_points {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.about_points li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 26px;
    color: #fff;
    padding: 3px 0;
}

.about_points i {
    flex-shrink: 0;
    margin-top: 7px;
    font-size: 10px;
    color: #6ee7b7;
}

.about_stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about_stat {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--pub-radius);
    padding: 18px 16px;
    text-align: center;
}

.as_num {
    display: block;
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    color: #fff;
}

.as_label {
    display: block;
    font-size: 12px;
    line-height: 17px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
}

/* The about section paints its own dark green ground, so text inside it
   is light — override the template's blanket white-on-white paragraph. */
.about_section .about_text { color: rgba(255, 255, 255, 0.88); padding: 14px 0 4px; }

/* ---- Ministry tiles ------------------------------------------------------
   Photo behind a dark wash, white text on top, a short rule and an arrow
   link — the program-area tile pattern from act.or.ke, in church colours.
   -------------------------------------------------------------------------- */

.ministry_tile {
    position: relative;
    display: block;
    height: 100%;
    min-height: 268px;
    border-radius: var(--pub-radius);
    overflow: hidden;
    text-decoration: none;
    isolation: isolate;
}

.mt_photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.55s ease;
}

.ministry_tile:hover .mt_photo { transform: scale(1.06); }

/* The wash: dark at the foot where the text sits, lighter at the top so
   the photo still reads. Deepens on hover. */
.mt_veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(4, 61, 46, 0.55) 0%,
        rgba(4, 61, 46, 0.78) 52%,
        rgba(3, 45, 34, 0.95) 100%
    );
    transition: background 0.3s ease;
}

.ministry_tile:hover .mt_veil {
    background: linear-gradient(
        180deg,
        rgba(4, 61, 46, 0.58) 0%,
        rgba(4, 61, 46, 0.84) 52%,
        rgba(3, 45, 34, 0.96) 100%
    );
}

.ministry_tile:focus-visible { outline: 2px solid var(--church-accent); outline-offset: 3px; }

.mt_content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 20px 20px;
}

.mt_name {
    font-size: 19px;
    line-height: 26px;
    font-weight: 600;
    color: #fff;
    /* Pushed to the foot of the tile — the photo carries the top half */
    margin: auto 0 0;
    padding: 0;
}

/* Short accent rule under the title, as on the reference tiles */
.mt_rule {
    display: block;
    width: 38px;
    height: 3px;
    border-radius: 2px;
    background: var(--church-secondary);
    margin: 10px 0 10px;
    transition: width 0.3s ease;
}

.ministry_tile:hover .mt_rule { width: 62px; }

.mt_meta {
    font-size: 13px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 12px;
}

.mt_more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
}

.mt_more i {
    font-size: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ministry_tile:hover .mt_more i {
    background: var(--church-secondary);
    border-color: var(--church-secondary);
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   11c. Service information (sermons page) and shared empty state
   -------------------------------------------------------------------------- */

.services_info {
    clear: both;
    width: 100%;
    float: none;
    background: var(--church-sunken);
    border-top: 1px solid var(--church-border);
}

.service_times_list { margin-bottom: 26px; }

.service_row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    padding: 16px;
    margin-bottom: 10px;
}

.sr_icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: var(--pub-radius);
    background: #f0fdf4;
    color: var(--church-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.sr_body { display: flex; flex-direction: column; min-width: 0; }
.sr_day {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--church-muted);
}
.sr_time { font-size: 17px; font-weight: 600; color: var(--church-dark); line-height: 25px; }
.sr_note { font-size: 13px; color: var(--church-muted); }

.service_place {
    background: #fff;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    padding: 20px;
}

.sp_title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: var(--church-dark);
    padding: 0 0 4px;
}

.sp_intro { font-size: 14px; color: var(--church-muted); margin-bottom: 14px; }

.sp_line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin: 0 0 8px;
    color: var(--church-muted);
}

.sp_line i { width: 15px; text-align: center; color: var(--church-accent); font-size: 13px; }
.sp_line a { color: var(--church-muted); }
.sp_line a:hover { color: var(--church-primary); }

.week_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.week_item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    padding: 13px 15px;
}

.wi_day {
    flex-shrink: 0;
    width: 44px;
    padding: 5px 0;
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--church-primary);
    background: #f0fdf4;
    border-radius: var(--pub-radius);
}

.wi_body { display: flex; flex-direction: column; min-width: 0; }
.wi_name { font-size: 14px; font-weight: 600; color: var(--church-dark); line-height: 20px; }
.wi_meta { font-size: 12.5px; color: var(--church-muted); }

/* --------------------------------------------------------------------------
   11c-2. Single ministry page — fact band and editorial body
   -------------------------------------------------------------------------- */

.fact_band {
    clear: both;
    width: 100%;
    float: none;
    background: #fff;
    border-bottom: 1px solid var(--church-border);
    padding: 26px 0;
}

.fact_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 16px;
    border-left: 2px solid var(--church-accent);
}

.fact_num {
    font-size: 30px;
    line-height: 38px;
    font-weight: 700;
    color: var(--church-primary);
    letter-spacing: -0.01em;
}

.fact_num.fact_icon { font-size: 22px; line-height: 38px; }

.fact_label {
    font-size: 13px;
    line-height: 19px;
    color: var(--church-muted);
}

.ministry_body { clear: both; width: 100%; float: none; }

.mb_heading {
    font-size: 27px;
    line-height: 35px;
    font-weight: 600;
    color: var(--church-dark);
    padding: 0 0 14px;
}

/* Body copy runs a step larger than the rest of the site — this is the one
   place on the public pages meant to be read at length. */
.mb_prose {
    font-size: 16px;
    line-height: 28px;
    color: #4b5563;
}

.mb_prose p { font-size: inherit; line-height: inherit; margin-bottom: 16px; }

.mb_pull {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--church-secondary);
    font-size: 18px;
    line-height: 30px;
    font-weight: 500;
    color: var(--church-primary);
}

/* Deliberately not sticky: the header sets `body { overflow-x: hidden }`,
   which makes the body a scroll container and stops position:sticky from
   painting reliably. The card is short enough not to need it. */
.mb_card {
    background: var(--church-sunken);
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    padding: 22px;
}

.mbc_title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--church-dark);
    padding: 0 0 14px;
}

.mbc_list { margin: 0 0 18px; }

.mbc_list > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--church-border);
}

.mbc_list > div:last-child { border-bottom: 0; }

.mbc_list dt {
    font-size: 13px;
    font-weight: 500;
    color: var(--church-muted);
    margin: 0;
}

.mbc_list dd {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--church-dark);
    margin: 0;
    text-align: right;
}

.mbc_btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: var(--church-primary);
    border: 1px solid var(--church-primary);
    border-radius: var(--pub-radius);
    cursor: pointer;
}

.mbc_btn:hover { background: var(--church-accent); border-color: var(--church-accent); color: #fff; }

.mbc_note {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--church-primary);
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: var(--pub-radius);
    padding: 10px 12px;
    margin: 0;
}

.mbc_note i { color: var(--church-accent); }

.mbc_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--church-primary);
}

.mbc_link i { font-size: 10px; transition: transform 0.2s ease; }
.mbc_link:hover { color: var(--church-secondary); }
.mbc_link:hover i { transform: translateX(3px); }

.other_ministries {
    clear: both;
    width: 100%;
    float: none;
    background: var(--church-sunken);
    border-top: 1px solid var(--church-border);
}

/* --------------------------------------------------------------------------
   11c-3. Youth page — next meeting, story blocks, pull band, people
   -------------------------------------------------------------------------- */

.next_meet_wrap { clear: both; width: 100%; float: none; }

.next_meet {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    background: #fff;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    overflow: hidden;
}

/* The date panel — everything in it is computed from the ministry's
   meeting day, so it never goes stale. */
.nm_when {
    background: var(--church-primary);
    color: #fff;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.nm_label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6ee7b7;
}

.nm_dow { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.nm_date { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.nm_day { font-size: 44px; line-height: 48px; font-weight: 700; }
.nm_mon { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.8); }

.nm_body { padding: 24px 26px; }

.nm_count {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--church-secondary);
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.nm_title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: var(--church-dark);
    padding: 0 0 8px;
}

.nm_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--church-primary);
    margin-bottom: 10px;
}

.nm_meta i { color: var(--church-accent); font-size: 12px; margin-right: 2px; }

.nm_note { font-size: 14px; line-height: 24px; color: var(--church-muted); margin-bottom: 16px; }

.nm_actions { display: flex; flex-wrap: wrap; gap: 10px; }

.nm_btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: var(--church-secondary);
    border: 1px solid var(--church-secondary);
    border-radius: var(--pub-radius);
    cursor: pointer;
}

.nm_btn:hover { background: var(--church-primary); border-color: var(--church-primary); color: #fff; }

.nm_btn_ghost {
    color: var(--church-primary);
    background: transparent;
    border-color: var(--church-border);
}

.nm_btn_ghost:hover { background: var(--church-sunken); color: var(--church-primary); border-color: var(--church-primary); }

/* ---- Story blocks --------------------------------------------------------
   Statement headings at a light weight, in a narrative sequence rather than
   a card grid — the rhythm from the Tearfund story page.
   -------------------------------------------------------------------------- */

.story_section {
    clear: both;
    width: 100%;
    float: none;
    background: var(--church-sunken);
    border-top: 1px solid var(--church-border);
    border-bottom: 1px solid var(--church-border);
}

.story_intro { max-width: 46ch; margin-bottom: 34px; }

.story_eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--church-accent);
    margin-bottom: 10px;
}

.story_lede {
    font-size: 26px;
    line-height: 36px;
    font-weight: 500;
    color: var(--church-dark);
    padding: 0;
}

.story_blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    counter-reset: story;
}

.story_block { counter-increment: story; }

/* A quiet numeral marks each step of the narrative */
.story_block::before {
    content: counter(story, decimal-leading-zero);
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--church-accent);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--church-border);
    margin-bottom: 14px;
    width: 34px;
}

.sb_title {
    font-size: 21px;
    line-height: 29px;
    font-weight: 500;
    color: var(--church-dark);
    padding: 0 0 8px;
}

.sb_copy { font-size: 14.5px; line-height: 25px; color: var(--church-muted); margin: 0; }

/* ---- Pull band ----------------------------------------------------------- */

.pull_band {
    position: relative;
    clear: both;
    width: 100%;
    float: none;
    padding: 62px 0;
    overflow: hidden;
    text-align: center;
}

.pull_band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(4, 61, 46, 0.90) 0%, rgba(3, 45, 34, 0.94) 100%),
        var(--pull-img) center / cover no-repeat;
}

.pull_band > .container { position: relative; z-index: 1; }

.pull_quote {
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.45;
    font-weight: 500;
    color: #fff;
    max-width: 26ch;
    margin: 0 auto 14px;
}

.pull_cite {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6ee7b7;
}

/* ---- People cards -------------------------------------------------------- */

.person_card {
    background: #fff;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    overflow: hidden;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.person_card:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07); }

.pc_photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--church-sunken);
}

.pc_body { padding: 14px 14px 16px; text-align: center; }

.pc_name {
    font-size: 15px;
    line-height: 21px;
    font-weight: 600;
    color: var(--church-dark);
    padding: 0 0 2px;
}

.pc_role { font-size: 12.5px; color: var(--church-muted); }

.pc_bio {
    font-size: 13px;
    line-height: 21px;
    color: var(--church-muted);
    margin-top: 8px;
}

.pc_contact {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 10px;
}

.pc_contact a {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--church-primary);
    text-decoration: none;
}

.pc_contact a i { margin-right: 4px; font-size: 11px; }
.pc_contact a:hover { color: var(--church-accent); }

/* ---- Stat cards (About page) ---------------------------------------------
   Clean bordered cards with icon + number + label — replaces the old
   box_main clip-path pattern that needed inline style overrides. */

.stat_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 18px 24px;
    background: #fff;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.stat_card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
    transform: translateY(-3px);
}

.stat_icon {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--church-sunken);
    color: var(--church-primary);
    font-size: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.stat_card:hover .stat_icon {
    background: var(--church-primary);
    color: #fff;
}

.stat_num {
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    color: var(--church-dark);
}

.stat_label {
    font-size: 13px;
    color: var(--church-muted);
    margin-top: 2px;
}

/* ---- Contact info cards ------------------------------------------------- */

.contact_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 24px;
    background: #fff;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact_card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
    transform: translateY(-3px);
}

.cc_icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--church-primary);
    color: #fff;
    font-size: 18px;
}

.cc_label {
    font-size: 15px;
    font-weight: 600;
    color: var(--church-dark);
    padding: 0 0 4px;
}

.cc_value {
    font-size: 14px;
    line-height: 22px;
    color: var(--church-muted);
    margin: 0;
}

.cc_value a { color: inherit; }
.cc_value a:hover { color: var(--church-primary); }

/* ---- "More of the parish" link list -------------------------------------- */

.more_links {
    clear: both;
    width: 100%;
    float: none;
    background: var(--church-sunken);
    border-top: 1px solid var(--church-border);
}

.ml_title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: var(--church-dark);
    padding: 0 0 18px;
}

.ml_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0 28px;
}

.ml_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--church-border);
    font-size: 15px;
    font-weight: 500;
    color: var(--church-dark);
}

.ml_item i { font-size: 11px; color: var(--church-accent); transition: transform 0.2s ease; }
.ml_item:hover { color: var(--church-primary); }
.ml_item:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   11d. News cards and article view
   -------------------------------------------------------------------------- */

.chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--church-accent);
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    padding: 3px 9px;
    border-radius: 10px;
}

.news_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.news_card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.nc_media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--church-sunken);
}

.nc_media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news_card:hover .nc_media img { transform: scale(1.04); }

.nc_flag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--church-secondary);
    padding: 3px 9px;
    border-radius: 10px;
}

.nc_body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
}

.nc_meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.nc_meta time { font-size: 12.5px; color: var(--church-muted); }

.nc_title {
    font-size: 16.5px;
    line-height: 24px;
    font-weight: 600;
    padding: 0 0 8px;
}

.nc_title a { color: var(--church-dark); }
.news_card:hover .nc_title a { color: var(--church-primary); }

.nc_excerpt {
    font-size: 14px;
    line-height: 23px;
    color: var(--church-muted);
    margin-bottom: 14px;
}

.nc_more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--church-primary);
}

.nc_more i { font-size: 10px; transition: transform 0.2s ease; }
.news_card:hover .nc_more i { transform: translateX(3px); }

/* Single article */
.article_single {
    max-width: 780px;
    margin: 0 auto;
}

.as_meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.as_meta time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--church-muted);
}

.as_meta time i { color: var(--church-accent); font-size: 12px; }

.as_image {
    width: 100%;
    border-radius: var(--pub-radius);
    margin-bottom: 22px;
}

.as_body {
    font-size: 15.5px;
    line-height: 28px;
    color: #374151;
    margin-bottom: 26px;
}

/* ---- Gallery grid -------------------------------------------------------- */

.gallery_item {
    position: relative;
    margin: 0;
    border-radius: var(--pub-radius);
    overflow: hidden;
    background: var(--church-sunken);
    border: 1px solid var(--church-border);
}

.gallery_item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.gallery_item:hover img { transform: scale(1.05); }

.gallery_item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 14px 12px;
    background: linear-gradient(180deg, transparent, rgba(3, 45, 34, 0.88));
    color: #fff;
}

.gi_title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.gi_meta {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

/* Shared empty state for listing pages.
   `clear` matters: the filter form above sits in `.news_section_2`, which
   the template floats left, so without it this panel overlaps the form. */
.empty_panel {
    clear: both;
    text-align: center;
    padding: 46px 24px;
    background: #fff;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    margin-top: 8px;
}

.empty_panel i { font-size: 26px; color: #cbd5e1; display: block; margin-bottom: 12px; }
.empty_panel h3 { font-size: 18px; font-weight: 600; color: var(--church-dark); padding-bottom: 6px; }
.empty_panel p { font-size: 14px; color: var(--church-muted); max-width: 48ch; margin: 0 auto 14px; }
.empty_panel .readmore_bt { justify-content: center; }

/* --------------------------------------------------------------------------
   11b. About — mission & values cards
   The previous section used the template's hover-overlay image cards, which
   hide every word until you hover (and reveal nothing at all on touch).
   These cards keep the text always visible: icon, title, description, link.
   -------------------------------------------------------------------------- */

.value_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--church-border);
    border-radius: var(--pub-radius);
    padding: 30px 24px 26px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.value_card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.vc_icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: var(--church-primary);
    transition: background 0.25s ease, transform 0.25s ease;
}

.value_card:hover .vc_icon {
    background: var(--church-accent);
    transform: scale(1.06);
}

.vc_title {
    font-size: 17px;
    font-weight: 600;
    color: var(--church-dark);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vc_text {
    flex: 1;
    font-size: var(--pub-fs-body);
    line-height: var(--pub-lh-body);
    color: var(--church-muted);
    margin: 0 0 16px;
}

.vc_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--church-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.vc_link i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.vc_link:hover {
    color: var(--church-secondary);
}

.vc_link:hover i { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    :root { --pub-section-gap: 52px; }

    /* The clip-path notch forces ~70px of dead space at the foot of every
       box. That is fine as a flourish on one desktop row, but stacked on a
       phone it cost ~550px of banner. Below desktop they become compact
       rows: icon left, everything else beside it. */
    .box_main {
        clip-path: none;
        border-radius: var(--pub-radius);
        padding: 14px 16px;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-areas:
            "icon title"
            "icon text"
            "icon btn";
        column-gap: 14px;
        text-align: left;
    }

    .box_main .icon_1 {
        grid-area: icon;
        align-self: start;
        width: 46px;
        text-align: left;
    }

    .box_main .icon_1 img { width: 38px; }
    .box_main .icon_1 i { font-size: 28px; line-height: 38px; }

    .box_main .volunteer_text {
        grid-area: title;
        padding-top: 0;
        font-size: 16px;
        line-height: 22px;
    }

    .box_main .lorem_text {
        grid-area: text;
        width: 100%;
        margin: 2px 0 0;
        font-size: 13px;
        line-height: 20px;
    }

    .box_main .join_bt {
        grid-area: btn;
        margin-top: 10px;
        justify-content: flex-start;
    }

    .mission_taital,
    .mission_text { padding-left: 0; }

    /* Keep the 12px inset — the grid rows inside cancel their negative
       gutters against it, and dropping it pushes them past the viewport. */
    .mission_section_2 { padding: 24px 12px 0; }

    .donate_taital_main { padding: 22px 18px; }

    #main_slider a.carousel-control-next,
    #main_slider a.carousel-control-prev { position: static; margin: 4px 4px 0 0; }

    #main_slider .carousel-control-prev,
    #main_slider .carousel-control-next { display: inline-flex; }
}

@media (max-width: 767px) {
    :root { --pub-section-gap: 42px; }

    .news_taital,
    .mission_taital,
    .about_taital,
    .donate_taital,
    .contact_taital {
        font-size: 24px;
        line-height: 32px;
    }

    .give_taital,
    .give_taital_1,
    .volunteer_text,
    .client_name_text { font-size: 18px; line-height: 26px; }

    .about_text { padding: 14px 0 4px; }

    .visit_grid { grid-template-columns: 1fr; gap: 22px; }
    .visit_title { font-size: 22px; line-height: 30px; }
    .visit_band { padding: 34px 0; }
    .about_stats { gap: 10px; }
    .as_num { font-size: 24px; line-height: 30px; }

    /* The banner has no container padding of its own, so inset the panel */
    .donation_box {
        width: calc(100% - 24px);
        margin: 32px 12px 0;
        padding: 18px;
    }

    /* The quote mark would crowd the text at this width */
    .donation_box.verse_panel { padding: 18px 18px 18px; }
    .vp_mark { display: none; }
    .vp_text { font-size: 15.5px; line-height: 1.5; }
    .vp_foot { flex-direction: column; align-items: flex-start; gap: 10px; }
    .vp_actions { width: 100%; }
    .vp_actions .vp_btn { flex: 1 1 auto; text-align: center; }

    .date_bt { top: 10px; left: 22px; }
    .date_text a { width: 46px; font-size: 12px; }

    .donate_left { width: 84px; }

    /* Date panel stacks above the detail on narrow screens */
    .next_meet { grid-template-columns: 1fr; }
    .nm_when { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
    .nm_date { margin-top: 0; }
    .nm_day { font-size: 34px; line-height: 38px; }
    .nm_body { padding: 18px; }
    .nm_title { font-size: 20px; line-height: 28px; }

    .story_lede { font-size: 21px; line-height: 30px; }
    .story_blocks { gap: 24px; }
    .pull_band { padding: 44px 0; }

    .footer_section_2 .row > [class*="col-"]:last-child { margin-top: 16px; }
}

/* The template's `float: left` on nearly every block leaves ancestors with no
   height on some pages; belt-and-braces clearfix for the section wrappers. */
.header_section::after,
.banner_section::after,
.about_section::after,
.mission_section::after,
.news_section::after,
.events_section::after,
.donate_section::after,
.contact_section::after,
.footer_section::after {
    content: "";
    display: table;
    clear: both;
}
