:root {
    --primary-color: #10194a;
    --primary-dark: #080d29;
    --primary-light: #1f2b6e;
    --accent-color: #e0a730;
    --accent-light: #f4cf7a;
    --accent-dark: #96650f;
    --secondary-color: #c1502e;
    --secondary-dark: #9c3e21;
    --text-color: #24262f;
    --text-muted: #5b5f6d;
    --bg-color: #f7f6f2;
    --surface: #ffffff;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-quote: 'Playfair Display', serif;

    --radius: 18px;
    --shadow-sm: 0 2px 10px rgba(16, 25, 74, 0.08);
    --shadow-md: 0 12px 32px rgba(16, 25, 74, 0.14);
    --shadow-lg: 0 24px 56px rgba(16, 25, 74, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
}

/* Keyboard focus: a dark ring (16:1 on the light page) - the old gold ring was only 2.2:1.
   On the dark header/footer/hero areas the ring turns white so it stays visible there. */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.header :focus-visible,
.footer :focus-visible,
.page-hero :focus-visible,
.hero :focus-visible {
    outline-color: #fff;
}

[tabindex="-1"]:focus {
    outline: none;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 0.6rem;
}

.section-intro {
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 2.25rem;
    font-size: 1.05rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

.header {
    color: white;
    padding: 1.1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(8, 13, 41, 0.65), rgba(8, 13, 41, 0));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.header.scrolled,
.header.solid {
    background: rgba(8, 13, 41, 0.94);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo a {
    display: inline-flex;
}

.logo img {
    height: 46px;
    width: 46px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: var(--shadow-sm);
    background: white;
}

.nav-toggle {
    display: none;
}

.nav {
    display: flex;
    align-items: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.nav a {
    position: relative;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--accent-light);
}

.nav a:hover::after,
.nav a.active::after {
    transform: scaleX(1);
}

.btn-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.15rem;
    margin-left: 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.btn-live:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn-live .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 0 rgba(255, 77, 77, 0.6);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .btn-live .live-dot {
        animation: none;
    }
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1.85rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

main {
    padding: 4rem 0;
}

section {
    margin-bottom: 4.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: stretch;
    gap: 2rem;
}

.grid-capped {
    grid-template-columns: repeat(auto-fit, minmax(250px, 420px));
    justify-content: center;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.card h3 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.ministry-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: linear-gradient(165deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-top: 2.5rem;
}

.vision-mission-item .eyebrow {
    color: var(--accent-light);
}

.vision-mission-item p {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 768px) {
    .vision-mission {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

.pastor-block {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    margin-top: 2.5rem;
}

.pastor-photo {
    width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--accent-light);
}

.pastor-bio h3 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.pastor-bio p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .pastor-block {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .pastor-photo {
        width: 200px;
        height: 200px;
    }
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 1.5rem;
}

.contact-card {
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    margin-top: auto;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-outline-dark:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.map-container {
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: block;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.social-card {
    flex: 1 1 340px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-card > p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.social-card .btn,
.social-card .btn-outline-dark {
    width: 100%;
    justify-content: center;
}

.social-card .btn + .btn-outline-dark,
.social-card .btn-outline-dark + .btn-outline-dark {
    margin-top: 0.9rem;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: #000;
    box-shadow: var(--shadow-sm);
}

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

.testimonial {
    position: relative;
    padding-top: 3rem;
}

.testimonial::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--accent-light);
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
}

.testimonial blockquote {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.testimonial p {
    color: var(--accent-dark);
    font-weight: 600;
}

.footer {
    background: linear-gradient(165deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

@media (max-width: 600px) {
    .footer-content {
        text-align: center;
    }
}

.footer h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--accent-light);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 0.35rem;
    font-size: 1.2rem;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}


.next-date {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent-dark);
    background: rgba(224, 167, 48, 0.14);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-align: left;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    text-align: left;
}

.faq-question i {
    flex: 0 0 auto;
    color: var(--accent-dark);
    transition: transform 0.25s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.qr-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 2rem;
    text-decoration: none;
}

.qr-card img,
.qr-code-img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    border: 1px solid rgba(16, 25, 74, 0.08);
    background: white;
}

.qr-code-img {
    display: block;
    margin: 0.5rem auto 0;
}

.qr-card span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--primary-color);
    text-align: center;
}

.qr-card small {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

.video-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.video-tab {
    padding: 0.55rem 1.15rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    background: var(--surface);
    color: var(--primary-color);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.video-tab:hover {
    background: rgba(16, 25, 74, 0.08);
}

.video-tab.active {
    background: var(--primary-color);
    color: white;
}

.video-stage video {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: #000;
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.85rem;
    text-align: center;
    padding: 2rem;
}

.video-placeholder i {
    font-size: 2.5rem;
    color: var(--accent-light);
}

.video-placeholder span {
    font-weight: 600;
}

.video-placeholder small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.download-btn:hover {
    background: var(--primary-color);
    color: white;
}

.download-btn.coming-soon {
    border-color: rgba(16, 25, 74, 0.2);
    color: var(--text-muted);
    cursor: not-allowed;
    pointer-events: none;
}

.class-card h3 {
    margin-bottom: 0.5rem;
}

.class-card .class-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 0.6rem;
}

/* Exam */
.exam-panel {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .exam-panel {
        padding: 1.5rem;
    }
}

.exam-instructions {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.exam-instructions strong {
    color: var(--primary-color);
}

.exam-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

@media (max-width: 600px) {
    .exam-fields {
        grid-template-columns: 1fr;
    }
}

.exam-fields label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.exam-fields input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(16, 25, 74, 0.12);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
}

.exam-fields input:focus-visible {
    border-color: var(--accent-color);
}

.exam-timer {
    position: sticky;
    top: 90px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-sm);
}

.exam-timer.warning {
    background: var(--secondary-color);
}

.exam-section-heading {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.25rem;
}

.exam-section-heading:first-of-type {
    margin-top: 0;
}

.exam-class-heading {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-dark);
    margin: 1.75rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(224, 167, 48, 0.25);
}

.question-block {
    background: var(--bg-color);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.question-block p {
    font-weight: 600;
    margin-bottom: 0.85rem;
    color: var(--text-color);
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.95rem;
}

.option-label:hover {
    background: #f0ebe0;
}

.option-label input {
    margin-top: 0.2rem;
    accent-color: var(--primary-color);
}

.question-block.answered {
    box-shadow: inset 3px 0 0 var(--accent-color);
}

.question-block.correct {
    box-shadow: inset 3px 0 0 #2e8b57;
}

.question-block.incorrect {
    box-shadow: inset 3px 0 0 var(--secondary-color);
}

.option-label.was-correct {
    background: rgba(46, 139, 87, 0.12);
    font-weight: 600;
}

.option-label.was-wrong {
    background: rgba(193, 80, 46, 0.1);
}

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

.score-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.score-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 1.75rem 2.25rem;
    min-width: 160px;
}

.score-card .score-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.score-card .score-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.9rem;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        padding: 1rem 1.5rem 1.5rem;
    }

    .nav.show {
        display: flex;
    }

    .nav a {
        padding: 0.6rem 0;
        width: 100%;
    }

    .btn-live {
        margin: 0.75rem 0 0;
    }

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

/* ---- Portal menu: a wrapping row on desktop, a "Menu" toggle on phones ---- */
.pn-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: var(--surface);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.7rem 1.25rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.pn-links {
    display: contents;
}

@media (max-width: 720px) {
    .top-nav,
    .top-nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .pn-toggle {
        display: inline-flex;
    }

    .pn-links {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .pn-open .pn-links {
        display: flex;
    }

    .pn-links .btn-outline-dark {
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }
}

/* ---- Current page in the leaders' portal navigation ---- */
.btn-outline-dark[aria-current="page"] {
    background: var(--primary-color);
    color: white;
}

/* ---- Click-to-load embeds (nothing is requested from YouTube or Google until tapped) ---- */
.embed-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    color: white;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.embed-placeholder i {
    font-size: 2.6rem;
    color: var(--accent-light);
}

.embed-placeholder strong {
    font-size: 1.05rem;
}

.embed-placeholder small {
    max-width: 30ch;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.embed-placeholder:hover i,
.embed-placeholder:focus-visible i {
    color: white;
}

.map-container .embed-placeholder {
    position: relative;
    min-height: 300px;
}

.embed-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* ---- Photo slider: pause control ---- */
.slide-pause {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(16, 25, 74, 0.6);
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.slide-pause:hover {
    background: var(--accent-dark);
}

/* ---- Announcements ("What's on") ---- */
.announcements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}

.announcement {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem 1.75rem;
    text-align: left;
}

.announcement .when {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 0.4rem;
}

.announcement h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.announcement p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.announcement a {
    color: var(--primary-light);
    font-weight: 600;
}

/* ---- Forms on the public pages (prayer request) ---- */
.public-form {
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.public-form .field {
    margin-bottom: 1.25rem;
}

.public-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.public-form input[type="text"],
.public-form input[type="email"],
.public-form input[type="tel"],
.public-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(16, 25, 74, 0.12);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    background: #fff;
}

.public-form textarea {
    min-height: 140px;
    resize: vertical;
}

.public-form input:focus-visible,
.public-form textarea:focus-visible {
    border-color: var(--accent-color);
}

.public-form .hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.form-alert {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}

.form-alert.error {
    background: rgba(193, 80, 46, 0.1);
    color: var(--secondary-dark);
}

.form-alert.success {
    background: rgba(46, 139, 87, 0.12);
    color: #1f5c3a;
}

@media (max-width: 600px) {
    .public-form {
        padding: 1.5rem 1.25rem;
    }
}

/* ---- Text pages (privacy notice, giving) ---- */
.prose {
    max-width: 760px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.5rem;
    margin: 2.25rem 0 0.75rem;
}

.prose p,
.prose li {
    color: var(--text-color);
    margin-bottom: 0.85rem;
}

.prose ul {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.prose a {
    color: var(--primary-light);
    font-weight: 600;
}

/* ---- Footer contact lines ---- */
.footer-contact p {
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-legal {
    margin-top: 0.6rem;
    font-size: 0.85rem;
}

.footer-legal a {
    margin: 0 0.5rem;
    text-decoration: underline;
}
