/* ==========================================================================
   Central Baptist Church Theme
   Clean, simple, straightforward design
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
    --color-blue: #2856A3;
    --color-blue-dark: #1e4380;
    --color-red: #A41E35;
    --color-red-dark: #8a1a2d;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f5f5f5;
    --color-bg-alt: #f8f9fa;
    --color-border: #e0e0e0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-blue-dark);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1em; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }

/* ---------- Utility ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }

.lead {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto;
    position: fixed;
    top: 5px;
    left: 5px;
    background: #fff;
    padding: 1rem;
    z-index: 100000;
    height: auto;
    width: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    line-height: 1.4;
}

.btn--primary {
    background: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
}

.btn--primary:hover {
    background: var(--color-red-dark);
    border-color: var(--color-red-dark);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--color-blue);
    border-color: var(--color-blue);
}

.btn--outline:hover {
    background: var(--color-blue);
    color: #fff;
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn--small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-branding img {
    max-height: 50px;
    width: auto;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-title-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
}

.site-title-link:hover {
    color: var(--color-blue-dark);
}

/* ---------- Navigation ---------- */
.primary-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    color: var(--color-blue);
    background: var(--color-bg-light);
}

/* CTA nav item — the "I'm New" link gets the red button automatically */
.primary-menu > li.menu-item-cta > a {
    background: var(--color-red);
    color: #fff;
    border-radius: var(--radius);
}

.primary-menu > li.menu-item-cta > a:hover {
    background: var(--color-red-dark);
    color: #fff;
}

/* Dropdowns */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 100;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 400;
}

.primary-menu .sub-menu a:hover {
    background: var(--color-bg-light);
    color: var(--color-blue);
}

/* Submenu toggle (mobile) */
.submenu-toggle {
    display: none;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.menu-toggle.is-active .hamburger {
    background: transparent;
}

.menu-toggle.is-active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.is-active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-blue);
    background-size: cover;
    background-position: center;
    padding: 4rem 1.5rem;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Lowered hero: text sits toward the bottom so faces in the photo aren't overlaid */
.hero--lowered {
    align-items: flex-end;
    padding-bottom: 3rem;
}

.hero__overlay--bottom {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 100%);
}

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

.hero__title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* ---------- Sections ---------- */
.section {
    padding: 4rem 0;
}

.section--light {
    background: var(--color-bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-blue);
}

.section-cta {
    margin-top: 2rem;
}

/* ---------- Page Header ---------- */
.page-header {
    background: var(--color-blue);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* Banner variant: photo behind the page title (smaller than the homepage hero) */
.page-header--image {
    background-size: cover;
    background-position: center;
    padding: 4.5rem 0;
}

.page-header__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.page-header__content {
    position: relative;
    z-index: 1;
}


/* ---------- Content Area ---------- */
.content-area {
    padding: 3rem 0;
}

.content-area--narrow {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.5em;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    border-radius: var(--radius);
    width: 100%;
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card__image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card__body {
    padding: 1.25rem;
}

.card__title {
    margin-bottom: 0.5rem;
}

.card__title a {
    color: var(--color-text);
}

.card__title a:hover {
    color: var(--color-blue);
}

.card__meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.card__tag {
    display: inline-block;
    background: var(--color-bg-light);
    color: var(--color-blue);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-top: 0.5rem;
}

.card__date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-red);
    color: #fff;
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    float: left;
    margin-right: 1rem;
}

.card__date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.card__date-day {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ---------- Latest Sermon (homepage) ---------- */
.latest-sermon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.latest-sermon__image img {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.latest-sermon__content h3 {
    font-size: 1.5rem;
}

.latest-sermon__content h3 a {
    color: var(--color-text);
}

.latest-sermon__content h3 a:hover {
    color: var(--color-blue);
}

.sermon-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.sermon-meta span + span::before {
    content: ' · ';
}

/* ---------- Sermon Video ---------- */
.sermon-video {
    margin-bottom: 2rem;
}

.sermon-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    border: 0;
}

.sermon-audio {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--radius);
}

/* ---------- Service Times ----------
   Day titles stay left-aligned; the times list is right-aligned,
   one time per line (no "|" separators). */
.service-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.service-time {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.service-time h4 {
    color: var(--color-blue);
    margin-bottom: 0;
    text-align: left;
}

.service-time__times {
    text-align: right;
}

.service-time__times p,
.service-time p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- Location Block ---------- */
.location-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.location-block__info {
    padding: 1.5rem 0;
}

.google-map {
    border-radius: var(--radius);
    overflow: hidden;
}

.google-map iframe {
    width: 100%;
    min-height: 300px;
    border: 0;
}

/* ---------- Filters ---------- */
.sermon-filters {
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-form select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 0.95rem;
    background: var(--color-bg);
    cursor: pointer;
}

/* ---------- Staff ---------- */
.staff-section {
    margin-top: 3rem;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.staff-card {
    text-align: center;
}

.staff-card__photo img {
    border-radius: 50%;
    width: 160px;
    height: 160px;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.staff-card__name {
    margin-bottom: 0.25rem;
}

.staff-card__position {
    color: var(--color-blue);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.staff-card__email {
    font-size: 0.875rem;
}

/* ---------- Visit Page ---------- */
.visit-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.visit-section:last-of-type {
    border-bottom: none;
}

/* ---------- Give Page ---------- */
.give-cta {
    margin: 2rem 0;
}

.give-methods {
    margin-top: 3rem;
    text-align: left;
}

.give-method {
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.give-method h3 {
    margin-bottom: 0.5rem;
    color: var(--color-blue);
}

.give-method p {
    margin: 0;
}

/* ---------- Contact Page ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.contact-detail {
    margin-bottom: 1.5rem;
}

.contact-detail h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

/* ---------- Event Details Box ---------- */
.event-details-box {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.event-details-box p {
    margin-bottom: 0.5rem;
}

.event-details-box p:last-child {
    margin-bottom: 0;
    margin-top: 1rem;
}

/* ---------- Posts Grid ---------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ---------- Back Link ---------- */
.back-link {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* ---------- Pagination ---------- */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.page-numbers.current {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
}

/* ---------- Social Links ---------- */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    transition: background 0.2s, color 0.2s;
}

.social-link:hover {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Two columns (Connect removed) — remaining info sits centered */
.footer-inner--2col {
    grid-template-columns: repeat(2, minmax(0, 320px));
    justify-content: center;
    gap: 4rem;
}

/* Single-spaced contact info — consistent with Service Times */
.footer-contact p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: #fff;
}

.footer-col .service-times {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: none;
    margin: 0;
}

.footer-col .service-time {
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.footer-col .service-time h4 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.15rem;
}

.footer-col .service-time__times {
    text-align: left;
}

.footer-col .service-time p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Social links + footer menu live in the footer-bottom bar */
.footer-bottom .social-links {
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-bottom .social-link {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .social-link:hover {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: #fff;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-menu a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-menu a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 0;
}

/* ---------- Forms (basic styling) ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-blue);
}

/* ---------- Comments ---------- */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

/* ---------- WordPress Alignment ---------- */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* ---------- Livestream ---------- */
.livestream-section {
    padding: 2rem 0 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.livestream-section h2 {
    color: var(--color-blue);
    margin-bottom: 1.5rem;
}

.livestream-embed {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.livestream-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.livestream-placeholder {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
}

.livestream-placeholder__inner {
    text-align: center;
}

.livestream-placeholder__heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.livestream-placeholder__inner p {
    color: var(--color-text-light);
}

.livestream-placeholder__inner .btn {
    margin-top: 1rem;
}

/* ---------- Featured Events ---------- */
.featured-events {
    margin-bottom: 2rem;
}

.featured-sermon {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

/* ---------- Ministry Children ---------- */
.ministry-children {
    margin-top: 3rem;
}

/* ---------- Beliefs Page ---------- */
.belief-nav-section {
    padding: 2.5rem 0;
}

.belief-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.belief-section {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* Scripture stands apart from surrounding text */
.scripture,
.beliefs-content em,
.beliefs-content cite,
.entry-content .scripture {
    font-style: italic;
    color: var(--color-text-light);
}

.scripture {
    font-size: 1.05rem;
}

/* ---------- Contact CTA ---------- */
.contact-cta .btn {
    margin-top: 0.5rem;
}

/* ---------- Leadership Page ---------- */
.leader-profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.leader-profile:last-child {
    margin-bottom: 0;
}

.leader-profile__photo img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
}

.leader-profile__name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.leader-profile__position {
    color: var(--color-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.deacon-list {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 1rem auto 0;
}

.deacon-list__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
}

.deacon-list__name {
    font-weight: 600;
}

.deacon-list__years {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.staff-card__years {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* ---------- Livestream Fallback ---------- */
.livestream-fallback {
    margin-top: 1.5rem;
}

.livestream-fallback p {
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.livestream-fallback .btn {
    margin: 0 0.35rem 0.5rem;
}

/* ---------- Give Page Extras ---------- */
.give-secure-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
}

/* ---------- Post Navigation ---------- */
.post-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
    justify-content: space-between;
}

.post-navigation .nav-links a {
    font-size: 0.95rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
        padding: 1rem;
    }

    .main-navigation.is-open {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-menu > li > a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color-bg-light);
    }

    .primary-menu .menu-item-has-children {
        position: relative;
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
        width: 32px;
        height: 32px;
        background: none;
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        cursor: pointer;
        font-size: 1.1rem;
        color: var(--color-text-light);
        line-height: 1;
    }

    .submenu-toggle:hover {
        background: var(--color-bg-light);
    }

    .primary-menu .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: var(--color-bg-light);
        border-radius: 0;
    }

    .primary-menu .sub-menu.is-open {
        display: block;
    }

    .primary-menu .sub-menu a {
        padding-left: 2rem;
    }

    .primary-menu > li.menu-item-cta > a {
        text-align: center;
        margin-top: 0.5rem;
    }

    .card-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-sermon {
        grid-template-columns: 1fr;
    }

    .location-block {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner,
    .footer-inner--2col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .leader-profile {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .leader-profile__photo img {
        max-width: 280px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 64px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .hero {
        min-height: 400px;
        padding: 3rem 1rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .card-grid--2,
    .card-grid--3 {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-form {
        flex-direction: column;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header--image {
        padding: 3rem 0;
    }

    .hero--lowered {
        padding-bottom: 2rem;
    }

    .service-time {
        flex-direction: column;
        gap: 0.25rem;
    }

    .service-time__times {
        text-align: left;
    }

    .footer-menu {
        gap: 0.75rem 1.5rem;
    }
}
