/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Color Palette - Blue, White, Gold */
    --primary-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --sky-blue: #93c5fd;
    --pale-blue: #dbeafe;
    --gold: #D4AF37;
    --dark-gold: #B8941F;
    --white: #ffffff;
    --off-white: #f8fafc;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 60px 0;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Crisper light-on-dark text throughout the dark theme */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===================================
   Accessibility: Skip Link
   =================================== */
.skip-link {
    position: fixed;
    top: 0;
    left: 12px;
    z-index: 10000;
    background: var(--gold);
    color: #1a1200;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid #1a1200;
    outline-offset: 2px;
}

/* ===================================
   Glassmorphism Effect
   =================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

body:not(.dark-portal-page) .glass:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
    transform: translateY(-5px);
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

/* ===================================
   About Us Header Blocks
   =================================== */
.about-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.about-block {
    padding: 8px 12px;
    border-radius: 16px;
    width: 100%;
    text-align: left;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(135deg,
        rgba(219, 234, 254, 0.4) 0%,
        rgba(147, 197, 253, 0.2) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.about-block:hover {
    background: linear-gradient(135deg,
        rgba(219, 234, 254, 0.5) 0%,
        rgba(147, 197, 253, 0.3) 100%);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 25px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
}

.about-block h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.about-block p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 0;
}

#about-us .container {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#about-us .section-header {
    text-align: center;
    margin-bottom: 30px;
}

#about-us .content-grid {
    width: 100%;
}

#about-us .content-text {
    width: 100%;
}

#about-us .content-image {
    display: none;
}

.about-block h4 {
    font-size: 1.1rem;
    color: var(--gold);
    margin: 12px 0 8px;
    font-weight: 600;
    line-height: 1.3;
}

.about-block ul {
    padding-left: 20px;
    margin-top: 0;
    margin-bottom: 0;
}

.about-block ul li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 6px;
    list-style-position: outside;
}

.about-block p + p,
.about-block p + ul,
.about-block ul + p {
    margin-top: 12px;
}

.about-block h3 + p {
    margin-top: 0;
}

@media (max-width: 900px) {
    .about-blocks {
        grid-template-columns: 1fr;
        gap: 18px 20px;
    }

    .about-block {
        min-height: 180px;
        padding: 16px 18px;
    }
    
    .about-block h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .about-block p,
    .about-block ul li {
        font-size: 0.95rem;
    }
}


/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    overflow: visible;
    z-index: 2100;
    /* Dark glass bar — cohesive with the site's near-black/gold theme
       and works on every page. Replaces the flat royal-blue band. */
    background: rgba(10, 10, 12, 0.82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    transition: background 0.35s ease, border-color 0.35s ease,
                box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/* At the very top of a page that has a hero, the bar dissolves into the
   photo — the hero's top scrim keeps the logo and links legible. */
.header.nav-transparent {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}

.navbar {
    height: 100%;
    box-sizing: border-box;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.nav-container {
    width: 100%;
    padding: 0 28px 0 60px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.logo-placeholder {
    height: 100%;              /* fills full navbar height — header overflow:hidden is the clamp */
    width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-placeholder svg,
.logo-placeholder img {
    /* Rendered much taller than the 70px bar; the logo PNG's transparent
       padding (~72% of its height) overflows invisibly, so the visible
       emblem+text grows without clipping or changing the header height. */
    height: 200px;
    width: auto;
    max-width: 640px;
    object-fit: contain;
    display: block;
}

.church-name h1 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.church-name p {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 500;
    margin: 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2200;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    gap: 5px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active {}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 6px 14px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 50px;
    border: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50px;
}

/* Partner With Us - Gold CTA pill */
.nav-link[href="partner-with-us.html"] {
    position: relative;
    background: linear-gradient(135deg, #e8c96a 0%, #c9a84c 100%);
    color: #1a1200 !important;
    padding: 7px 18px;
    border-radius: 25px;
    margin-left: 12px;
    border: 2px solid transparent;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
}

.nav-link[href="partner-with-us.html"]:hover {
    background: linear-gradient(135deg, #f0d47e 0%, #d8b756 100%);
    color: #1a1200 !important;
    border: 2px solid transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.5);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin: 4px 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: 2px solid transparent;
}

.dropdown-menu a:hover {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.nav-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff2222;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(255, 34, 34, 0.5);
    animation: liveBeep 1.4s ease-in-out infinite;
}

/* ===================================
   Hero Section with Slider
   =================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
}

/* Hero Slide Backgrounds */
.slide-1 {
    background-image: url('assets/images/hero1.jpg');
}

.slide-2 {
    background-image: url('assets/images/hero2.jpg');
}

.slide-3 {
    background-image: url('assets/images/hero3.jpg');
}

.slide-4 {
    background-image: url('assets/images/hero4.jpg');
}

.slide-5 {
    background-image: url('assets/images/hero5.jpg');
}

.slide-6 {
    background-image: url('assets/images/hero6.jpg');
}

/* Cinematic scrim: darkens overall for legibility, heavier at the
   bottom-left where the hero content sits, and along the top so the
   navbar reads cleanly over the photo. */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0) 22%),
        linear-gradient(90deg, rgba(10, 10, 10, 0.70) 0%, rgba(10, 10, 10, 0.15) 55%, rgba(10, 10, 10, 0) 100%),
        linear-gradient(0deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0) 45%);
}

/* Hero Content */
.hero-content {
    position: absolute;
    left: 5%;
    bottom: 12%;
    z-index: 10;
    text-align: left;
    padding: 0;
    max-width: 620px;
    /* The scrim now carries the contrast, so the hero copy sits directly
       on the photo instead of inside a frosted box. */
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: 0.5px;
    overflow-wrap: break-word;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 32px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

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

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.slider-dots {
    display: none;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    /* Dark ink on gold — gold-on-white failed contrast (WCAG) */
    background: linear-gradient(135deg, #e8c96a 0%, #c9a84c 100%);
    color: #1a1200;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f0d47e 0%, #d8b756 100%);
    border-color: transparent;
    color: #1a1200;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(201, 168, 76, 0.42);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

/* ===================================
   Section Styles
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* ===================================
   Welcome Section
   =================================== */
.welcome-section {
    background: var(--white);
}

.welcome-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 900px;
    margin: 0 auto 50px;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.welcome-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.welcome-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.welcome-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--dark-gold);
    text-decoration: underline;
}

/* ===================================
   Service Times Section
   =================================== */
.service-times-section {
    background: linear-gradient(135deg, var(--pale-blue) 0%, var(--sky-blue) 100%);
}

.service-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-time-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
}

.service-time-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-time-card .time {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 15px;
}

.service-time-card .description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===================================
   Hero Announcement Slider
   =================================== */
.hero-announcements {
    position: absolute;
    bottom: 60px;
    right: 40px;
    width: 300px;
    z-index: 15;
}

.announce-strip {
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.announce-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.announce-track {
    position: relative;
    height: 148px;
    overflow: hidden;
    background: rgba(5, 5, 15, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 0 0 12px 12px;
}

.announce-card {
    position: absolute;
    inset: 0;
    padding: 16px 18px 14px;
    transform: translateX(110%);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.55s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.announce-card.active {
    transform: translateX(0);
    opacity: 1;
}

.announce-card.leaving {
    transform: translateX(-110%);
    opacity: 0;
}

.announce-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #c9a84c;
}

.announce-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.announce-card p {
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
    overflow-wrap: break-word;
    /* Keep long admin-entered copy from spilling the fixed-height card */
    overflow: hidden;
}

.announce-date {
    font-size: 0.7rem;
    color: rgba(212, 175, 55, 0.85);
    font-weight: 600;
    margin-top: auto;
    padding-top: 4px;
}

.announce-nav {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
    margin-top: 9px;
}

.announce-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.announce-dot.active {
    background: #c9a84c;
    border-color: #c9a84c;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .hero-announcements {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 30px;
    }

    .announce-track {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .hero-announcements {
        width: calc(100% - 32px);
        right: 16px;
        left: 16px;
        bottom: 20px;
    }
}

/* ===================================
   Home Page — Dark Below-Hero Sections
   =================================== */

/* Wider section-content for 3-card grids */
.about-section .section-content.home-wide {
    max-width: 1160px;
    padding: 100px 40px;
}

/* 3-column card grid used in both home sections */
.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
    text-align: left;
}

/* Welcome / feature cards */
.home-feature-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid rgba(212, 175, 55, 0.55);
    border-radius: 20px;
    padding: 36px 26px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(212, 175, 55, 0.1);
}

.home-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 4px;
}

.home-feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.home-feature-card p {
    font-size: 0.93rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
    flex-grow: 1;
}

.home-card-link {
    color: #c9a84c;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.4px;
    transition: color 0.25s ease;
    display: inline-block;
    margin-top: 4px;
}

.home-card-link:hover {
    color: #e8c96a;
}

/* Service time cards */
.home-service-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid rgba(212, 175, 55, 0.55);
    border-radius: 20px;
    padding: 40px 26px 34px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(212, 175, 55, 0.1);
}

.home-service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.service-time-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.service-time-hours {
    font-size: 1.25rem;
    font-weight: 700;
    color: #c9a84c;
    margin: 0;
    line-height: 1.2;
}

.service-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    padding-top: 6px;
}

/* Responsive — home cards */
@media (max-width: 960px) {
    .home-cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-section .section-content.home-wide {
        max-width: 100%;
        padding: 80px 24px;
    }

    .home-service-card {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .about-section .section-content.home-wide {
        padding: 60px 16px;
    }
}

/* ===================================
   Page Header (Internal Pages)
   =================================== */
.page-header {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    background-image: url('assets/images/about.jpg');
    background-size: cover;
    background-position: center top;
    margin-top: 80px;
}

.join-us-header {
    background-image: url('assets/images/joinus.jpg');
    background-position: center top;
    height: 400px;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
    display: none;
}

.page-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    display: none;
}

.page-header-content h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.page-header-content p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ===================================
   About Page - Flowing Background Sections
   =================================== */
.about-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-section .section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about-section .section-bg .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

.about-section .section-bg .bg-image.active {
    opacity: 1;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(1.1) translateX(-2%);
    }
}

.about-section .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.about-section:nth-child(even) .section-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.55) 30%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.55) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.about-section .section-fade-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 2;
    background: linear-gradient(to bottom, #0a0a0a, transparent);
}

.about-section .section-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 2;
    background: linear-gradient(to top, #0a0a0a, transparent);
}

.about-section .section-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 100px 40px;
    text-align: center;
}

.about-section .section-content h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.about-section .section-content .title-line {
    width: 60px;
    height: 3px;
    background: #c9a84c;
    margin: 0 auto 30px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.about-section .section-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 40px 36px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.9s ease 0.35s, transform 0.9s ease 0.35s;
}

.about-section .section-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.about-section .section-content p:last-child {
    margin-bottom: 0;
}

.about-section .section-content ul {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 20px;
}

.about-section .section-content ul:last-child {
    margin-bottom: 0;
}

.about-section .section-content ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.about-section .section-content ul li::before {
    content: '\2726';
    position: absolute;
    left: 0;
    color: #c9a84c;
}

/* About Page - Identity Grid */
.section-content--wide {
    max-width: 1320px;
    width: 96%;
    padding-top: 60px;
    padding-bottom: 60px;
}

.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    width: 100%;
}

.identity-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(10px);
}

.identity-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: #c9a84c;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.identity-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 0.6rem 0;
}

.identity-card p:last-child {
    margin-bottom: 0;
}

.identity-card ul {
    margin: 0 0 0.6rem 0;
    padding: 0;
    list-style: none;
}

.identity-card ul:last-child {
    margin-bottom: 0;
}

.identity-card ul li {
    padding: 3px 0 3px 18px;
    position: relative;
    font-size: 0.83rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
}

.identity-card ul li::before {
    content: '\2726';
    position: absolute;
    left: 0;
    color: #c9a84c;
    font-size: 0.55rem;
    top: 7px;
}

.identity-card--full {
    grid-column: 1 / -1;
}

.identity-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 900px) {
    .identity-grid--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .identity-grid {
        grid-template-columns: 1fr;
    }
}

/* Visible state when scrolled into view */
.about-section.visible .section-content h2 {
    opacity: 1;
    transform: translateY(0);
}

.about-section.visible .section-content .title-line {
    opacity: 1;
    transform: scaleX(1);
}

.about-section.visible .section-glass {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Founder Blue Effects
   =================================== */
.founder-intro-section .section-overlay,
.about-section.founder-section .section-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 8, 30, 0.9) 0%,
        rgba(10, 30, 80, 0.55) 30%,
        rgba(15, 40, 100, 0.4) 50%,
        rgba(10, 30, 80, 0.55) 70%,
        rgba(0, 8, 30, 0.9) 100%
    );
}

.founder-intro-section .section-fade-top,
.about-section.founder-section .section-fade-top {
    background: linear-gradient(to bottom, #050a1a, transparent);
}

.founder-intro-section .section-fade-bottom,
.about-section.founder-section .section-fade-bottom {
    background: linear-gradient(to top, #050a1a, transparent);
}

.founder-intro-section .section-glass,
.about-section.founder-section .section-glass {
    background: rgba(30, 80, 180, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 0;
    box-shadow: 0 0 30px rgba(30, 100, 220, 0.08), inset 0 0 30px rgba(30, 100, 220, 0.03);
}

.founder-intro-section .title-line,
.about-section.founder-section .title-line {
    background: linear-gradient(90deg, #4a90d9, #7bb8f5, #4a90d9);
}

/* ===================================
   Founder Intro Layout
   =================================== */
.founder-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.founder-row.reverse {
    flex-direction: row-reverse;
}

.founder-glass {
    flex: 1;
}

.founder-image-wrapper {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(80, 140, 255, 0.5);
    box-shadow: 0 0 50px rgba(30, 100, 220, 0.3), 0 0 100px rgba(30, 100, 220, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1s ease, transform 1s ease;
}

.about-section.visible .founder-image-wrapper {
    opacity: 1;
    transform: scale(1);
}

.founder-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.founder-role {
    font-size: 0.95rem;
    color: #7bb8f5;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ===================================
   Database Cards Grid
   =================================== */
.db-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.about-section.visible .db-intro {
    opacity: 1;
    transform: translateY(0);
}

.database-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.db-card {
    text-align: left;
}

.db-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.db-card p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.db-btn {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid #c9a84c;
    color: #c9a84c;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.db-btn:hover {
    background: #c9a84c;
    color: #0a0a0a;
}

/* ===================================
   Content Sections
   =================================== */
.content-section {
    background: var(--white);
}

.content-section.alt-bg {
    background: var(--pale-blue);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    align-items: center;
}

.content-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.content-image {
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    padding: 40px;
}

/* ===================================
   Vision & Mission
   =================================== */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.vm-card {
    padding: 50px 40px;
    border-radius: 16px;
}

.vm-card h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.vm-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* ===================================
   Leadership
   =================================== */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.leader-card {
    padding: 30px;
    text-align: center;
    border-radius: 16px;
}

.leader-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold);
}

.leader-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pale-blue);
    font-size: 3rem;
}

.leader-card h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    font-weight: 600;
}

.leader-title {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.leader-bio {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   Beliefs
   =================================== */
.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.belief-card {
    padding: 35px 30px;
    border-radius: 16px;
}

.belief-card h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.belief-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   Media Page Styles
   =================================== */
.sermon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.sermon-card {
    border-radius: 16px;
    overflow: hidden;
}

.sermon-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sermon-thumbnail .image-placeholder {
    font-size: 3rem;
    color: white;
}

.sermon-info {
    padding: 25px;
}

.sermon-info h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.sermon-date {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.sermon-speaker {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.livestream-container {
    border-radius: 16px;
    overflow: hidden;
}

.livestream-video {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.video-placeholder {
    text-align: center;
    color: white;
    font-size: 1.3rem;
}

.livestream-info {
    padding: 40px;
    text-align: center;
}

.livestream-info h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.livestream-info p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pale-blue) 0%, var(--sky-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item .image-placeholder {
    font-size: 3rem;
}

/* Testimonies */
.testimonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimony-card {
    padding: 40px 35px;
    border-radius: 16px;
}

.testimony-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 20px;
}

.testimony-author {
    color: var(--gold);
    font-weight: 600;
    text-align: right;
}

/* ===================================
   Contact Page — Dark Glass
   =================================== */
.contact-dark-page {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.contact-dark-container {
    width: 100%;
    max-width: 1100px;
    padding: 0 32px;
    margin: 0 auto;
}

.contact-dark-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-dark-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.contact-title-line {
    width: 60px;
    height: 3px;
    background: #c9a84c;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.contact-dark-header p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Two-column layout */
.contact-dark-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Form panel */
.contact-dark-form {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 44px 40px;
}

.contact-form-group {
    margin-bottom: 22px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Info cards column */
.contact-dark-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-dark-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid rgba(212, 175, 55, 0.55);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-dark-card:hover {
    border-left-color: #c9a84c;
    transform: translateX(4px);
}

.contact-dark-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-dark-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px;
}

.contact-dark-card p {
    font-size: 0.9rem;
    color: var(--gold);
    line-height: 1.6;
    margin: 0 0 4px;
}

.contact-dark-card p a {
    color: inherit;
}

.contact-dark-sub {
    font-size: 0.78rem;
    color: rgba(212, 175, 55, 0.75);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 860px) {
    .contact-dark-grid {
        grid-template-columns: 1fr;
    }

    .contact-dark-header h1 {
        font-size: 2.2rem;
    }

    .contact-dark-form {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .contact-dark-page {
        padding: 100px 0 60px;
    }

    .contact-dark-container {
        padding: 0 16px;
    }

    .contact-dark-header h1 {
        font-size: 1.8rem;
    }
}

/* ===================================
   Contact Page Styles (legacy)
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-form {
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: rgba(100, 116, 139, 0.85);
    font-style: italic;
}

body:not(.dark-portal-page) .form-group input,
body:not(.dark-portal-page) .form-group textarea,
body:not(.dark-portal-page) .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--pale-blue);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

body:not(.dark-portal-page) .form-group input:focus,
body:not(.dark-portal-page) .form-group textarea:focus,
body:not(.dark-portal-page) .form-group select:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    padding: 30px;
    border-radius: 16px;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Location & Hours */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.map-container {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pale-blue) 0%, var(--sky-blue) 100%);
}

.map-placeholder {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-blue);
}

.hours-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hours-card {
    padding: 30px;
    border-radius: 16px;
}

.hours-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.hours-card ul {
    list-style: none;
}

.hours-card li {
    padding: 10px 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--pale-blue);
}

.hours-card li:last-child {
    border-bottom: none;
}

/* Newsletter */
.newsletter-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
}

.newsletter-container p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    border: 2px solid var(--pale-blue);
    border-radius: 50px;
    font-size: 1rem;
}

/* Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    padding: 30px;
    border-radius: 16px;
    display: flex;
    gap: 25px;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: white;
    border-radius: 12px;
    padding: 20px;
    min-width: 80px;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.event-time {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.event-desc {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ===================================
   Join Us Page Styles
   =================================== */
.service-details {
    padding: 50px 40px;
    border-radius: 16px;
}

.service-details h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.service-details > p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.service-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-box {
    background: var(--pale-blue);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--gold);
}

.info-box h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-box p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Ministries */
.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ministry-card {
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
}

.ministry-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.ministry-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.ministry-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Small Groups */
.small-groups-list {
    padding: 40px;
    border-radius: 16px;
}

.small-groups-list h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 600;
}

.small-groups-list ul {
    list-style: none;
}

.small-groups-list li {
    padding: 15px;
    font-size: 1.05rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.small-groups-list li:last-child {
    border-bottom: none;
}

/* Get Involved */
.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.involvement-card {
    padding: 40px 35px;
    border-radius: 16px;
    text-align: center;
}

.involvement-card h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.involvement-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ===================================
   Partner With Us Page Styles
   =================================== */
.giving-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.giving-info h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.giving-info p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.giving-ways {
    padding: 30px;
    border-radius: 16px;
}

.giving-ways h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.giving-ways ul {
    list-style: none;
}

.giving-ways li {
    padding: 12px 0;
    font-size: 1.05rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.giving-ways li:last-child {
    border-bottom: none;
}

.giving-form {
    padding: 40px;
    border-radius: 16px;
}

.giving-form h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.secure-notice {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Volunteer */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.volunteer-card {
    padding: 35px 30px;
    border-radius: 16px;
    text-align: center;
}

.volunteer-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.volunteer-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Missions */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.mission-card {
    padding: 35px 30px;
    border-radius: 16px;
}

.mission-location {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.mission-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.mission-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.missions-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
}

.missions-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.missions-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Sponsorship */
.sponsorship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.sponsorship-card {
    padding: 40px 35px;
    border-radius: 16px;
    text-align: center;
}

.sponsorship-card h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.sponsorship-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e293b 100%);
    color: white;
    padding: 20px 0 8px;
}

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

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--gold);
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--gold);
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-quick-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 10px;
}

.footer-section li {
    font-size: 0.82rem;
    margin-bottom: 5px;
}

.footer-section a {
    font-size: 0.82rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .giving-container {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    /* The navbar must never carry a transform on mobile: a non-'none'
       transform makes it the containing block for the fixed #navMenu,
       collapsing the full-screen menu overlay to the navbar's height. */
    .navbar {
        transform: none !important;
        animation: none !important;
    }

    /* Same trap via the header's backdrop-filter (transform/filter/
       backdrop-filter all establish a containing block for fixed children).
       While the menu is open it covers the screen, so dropping the header's
       blur then is invisible and keeps #navMenu anchored to the viewport. */
    body.menu-open .header,
    body.menu-open .navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        filter: none !important;
        /* Kill the header's backdrop-filter transition so the containing
           block is removed instantly — otherwise the menu stays collapsed
           for the 0.35s fade before snapping open. */
        transition: none !important;
    }

    .nav-container {
        padding: 0 16px 0 16px;
    }

    .logo-placeholder img {
        height: 130px;
        max-height: 130px;
        max-width: 340px;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        flex-direction: column;
        background: rgba(5, 5, 15, 0.97);
        padding: 100px 32px 40px;
        gap: 0;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 2000;
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: all;
    }

    /* No separate backdrop needed — menu itself is the overlay */
    .nav-menu-backdrop { display: none !important; }

    .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 0.95rem;
        letter-spacing: 0.12em;
        color: #fff !important;
        border-radius: 0;
        border: none !important;
        transition: color 0.2s;
        font-weight: 600;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #c9a84c !important;
        background: none;
        border: none !important;
        border-radius: 0;
    }

    .nav-link[href="partner-with-us.html"] {
        background: transparent;
        color: #c9a84c !important;
        border-radius: 0;
        margin: 0;
        padding: 16px 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
        border: none;
        padding: 0 0 8px 0;
        min-width: unset;
        margin: 0;
    }

    .dropdown-menu li a {
        display: block;
        padding: 8px 0 8px 16px;
        font-size: 0.8rem;
        color: rgba(255,255,255,0.55);
        border-bottom: none;
        transition: color 0.2s;
        letter-spacing: 0.05em;
    }

    .dropdown-menu li a:hover {
        color: #c9a84c;
    }

    .nav-search-trigger {
        border-bottom: none;
        padding: 16px 0;
    }

    .search-nav-btn {
        color: rgba(255,255,255,0.6);
    }
    
    /* Hero */
    /* Strong bottom gradient over the hero photo */
    .hero-slider::after {
        content: '';
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 70%;
        background: linear-gradient(to bottom, transparent 0%, rgba(5,5,15,0.6) 40%, rgba(5,5,15,0.95) 100%);
        z-index: 6;
        pointer-events: none;
    }

    /* Hero content: text directly on gradient, no floating box */
    .hero-content {
        left: 20px;
        right: 20px;
        max-width: none;
        top: auto;
        bottom: 270px;
        transform: none;
        padding: 0;
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0;
        z-index: 10;
    }

    .hero-title {
        font-size: 1.6rem !important;
        margin-bottom: 10px;
        line-height: 1.15;
        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 18px;
        opacity: 0.9;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    
    .slider-controls {
        bottom: 20px;
        gap: 15px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .page-header {
        height: 250px;
        margin-top: 70px;
    }

    .join-us-header {
        height: 300px;
    }

    .page-header-content h1 {
        font-size: 2rem;
    }

    .page-header-content p {
        font-size: 1.1rem;
    }
    
    /* Grids */
    .welcome-grid,
    .service-times-grid,
    .leadership-grid,
    .beliefs-grid,
    .sermon-grid,
    .gallery-grid,
    .testimonies-grid,
    .events-grid,
    .ministries-grid,
    .volunteer-grid,
    .missions-grid,
    .sponsorship-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-mission-grid,
    .location-grid,
    .service-info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        min-width: 100%;
    }

    /* About flowing sections */
    .about-section .section-content h2 {
        font-size: 2rem;
    }

    .about-section .section-content p {
        font-size: 0.95rem;
    }

    .about-section .section-content {
        padding: 80px 20px;
    }

    .about-section .section-glass {
        padding: 30px 20px;
    }

    /* Founder row responsive */
    .founder-row {
        flex-direction: column;
        align-items: center;
    }

    .founder-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .database-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem !important;
        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 0.78rem !important;
    }

    .about-section .section-content h2 {
        font-size: 1.6rem;
    }

    .founder-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .hero-content {
        left: 16px;
        right: 16px;
        bottom: 258px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .church-name h1 {
        font-size: 1.1rem;
    }
    
    .church-name p {
        font-size: 0.8rem;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        width: 100%;
        padding: 15px;
    }
}

/* ===================================
   Scroll Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .header,
    .footer,
    .hero-section,
    .slider-controls,
    .btn {
        display: none;
    }
}

/* ===================================
   Worker Groups Section Styles
   =================================== */
#worker-groups .container {
    max-width: 1400px;
}

    .worker-groups-blocks {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 24px;
        width: 100%;
        margin: 30px 0 0 0;
        align-items: stretch;
    }

    .worker-group-block {
        padding: 0;
        border-radius: 16px;
        width: 100%;
        text-align: center;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        background: linear-gradient(135deg,
            rgba(219, 234, 254, 0.4) 0%,
            rgba(147, 197, 253, 0.2) 100%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(59, 130, 246, 0.3);
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .worker-image-placeholder {
        width: 100%;
        height: 180px;
        overflow: hidden;
        background: linear-gradient(135deg,
            rgba(30, 58, 138, 0.1) 0%,
            rgba(59, 130, 246, 0.1) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    }

    .worker-image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }

    .worker-group-block:hover {
        background: linear-gradient(135deg,
            rgba(219, 234, 254, 0.5) 0%,
            rgba(147, 197, 253, 0.3) 100%);
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.7),
            0 0 25px rgba(59, 130, 246, 0.2);
        transform: translateY(-5px);
        border-color: rgba(59, 130, 246, 0.4);
    }

    .worker-group-block:hover .worker-image-placeholder img {
        transform: scale(1.05);
    }

    .worker-group-block:hover .worker-image-placeholder {
        border-bottom-color: var(--gold);
    }

    .worker-group-block h3 {
        font-size: 1.3rem;
        color: var(--primary-blue);
        margin: 0 20px 12px;
        padding-top: 20px;
        font-weight: 600;
        line-height: 1.3;
    }

    .worker-group-block p {
        font-size: 1rem;
        line-height: 1.7;
        color: var(--text-gray);
        margin: 0 20px;
        padding-bottom: 20px;
    }

    @media (max-width: 900px) {
        .worker-groups-blocks {
            grid-template-columns: 1fr;
            gap: 18px 20px;
        }

        .worker-image-placeholder {
            height: 150px;
        }

        .worker-group-block h3 {
            font-size: 1.2rem;
            margin: 0 18px 10px;
            padding-top: 18px;
        }

        .worker-group-block p {
            font-size: 0.95rem;
            margin: 0 18px;
            padding-bottom: 18px;
        }
    }

    @media (max-width: 480px) {
        .worker-groups-blocks {
            gap: 15px;
        }

        .worker-image-placeholder {
            height: 130px;
        }

        .worker-group-block h3 {
            margin: 0 16px 8px;
            padding-top: 16px;
        }

        .worker-group-block p {
            margin: 0 16px;
            padding-bottom: 16px;
        }
    }

    /* ===================================
       Branches Section Styles
       =================================== */
    .branches-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 24px;
        width: 100%;
        max-width: 1400px;
        margin: 30px auto 40px;
        align-items: stretch;
    }

    .branch-card {
        padding: 0;
        border-radius: 16px;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        background: linear-gradient(135deg,
            rgba(219, 234, 254, 0.4) 0%,
            rgba(147, 197, 253, 0.2) 100%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(59, 130, 246, 0.3);
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .branch-image-placeholder {
        width: 100%;
        height: 200px;
        overflow: hidden;
        background: linear-gradient(135deg,
            rgba(30, 58, 138, 0.1) 0%,
            rgba(59, 130, 246, 0.1) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    }

    .branch-image-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }

    .branch-card:hover {
        background: linear-gradient(135deg,
            rgba(219, 234, 254, 0.5) 0%,
            rgba(147, 197, 253, 0.3) 100%);
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.7),
            0 0 25px rgba(59, 130, 246, 0.2);
        transform: translateY(-5px);
        border-color: rgba(59, 130, 246, 0.4);
    }

    .branch-card:hover .branch-image-placeholder img {
        transform: scale(1.05);
    }

    .branch-card:hover .branch-image-placeholder {
        border-bottom-color: var(--gold);
    }

    .branch-header {
        padding: 20px 20px 0;
    }

    .branch-header h3 {
        font-size: 1.5rem;
        color: var(--primary-blue);
        margin-bottom: 10px;
        font-weight: 600;
    }

    .branch-pastor {
        color: var(--gold);
        font-weight: 500;
        font-size: 0.95rem;
        font-style: italic;
        margin-bottom: 0;
    }

    .branch-details {
        padding: 10px 20px 20px;
        flex-grow: 1;
    }

    .branch-location {
        color: var(--text-gray);
        line-height: 1.7;
        font-size: 0.95rem;
        font-style: italic;
    }

    .branches-cta {
        max-width: 800px;
        margin: 0 auto;
        padding: 40px 30px;
        border-radius: 16px;
        text-align: center;
        background: linear-gradient(135deg,
            rgba(219, 234, 254, 0.5) 0%,
            rgba(147, 197, 253, 0.3) 100%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(59, 130, 246, 0.3);
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    .branches-cta h3 {
        font-size: 1.8rem;
        color: var(--primary-blue);
        margin-bottom: 15px;
        font-weight: 600;
    }

    .branches-cta p {
        font-size: 1.1rem;
        color: var(--text-gray);
        margin-bottom: 25px;
        line-height: 1.7;
    }

    @media (max-width: 900px) {
        .branches-grid {
            grid-template-columns: 1fr;
            gap: 18px;
        }

        .branch-image-placeholder {
            height: 180px;
        }

        .branch-header {
            padding: 18px 18px 0;
        }

        .branch-header h3 {
            font-size: 1.3rem;
        }

        .branch-details {
            padding: 10px 18px 18px;
        }
    }

    @media (max-width: 480px) {
        .branches-grid {
            gap: 15px;
        }

        .branch-image-placeholder {
            height: 150px;
        }

        .branch-header {
            padding: 16px 16px 0;
        }

        .branch-header h3 {
            font-size: 1.2rem;
        }

        .branch-details {
            padding: 8px 16px 16px;
        }

        .branches-cta {
            padding: 30px 20px;
        }

        .branches-cta h3 {
            font-size: 1.5rem;
        }

        .branches-cta p {
            font-size: 1rem;
        }
    }

/* ===================================
   Dark Grid Sections (Join Us - About-feel)
   =================================== */
.dark-grid-section {
    background: #0a0a0a;
    padding: 60px 0 80px;
}

.dark-grid-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Worker Groups Dark Grid */
/* Worker Group Tabs */
.worker-tab-section {
    padding: 0;
}

.worker-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 20px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 0;
}

.worker-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #ccc;
    padding: 8px 18px;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.worker-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.worker-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-weight: 700;
}

.worker-tab-content {
    padding: 32px 0;
}

.worker-tab-panel {
    display: none;
    animation: fadeInPanel 0.3s ease;
}

.worker-tab-panel.active {
    display: block;
}

.worker-panel-inner {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 16px;
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
}

.worker-panel-img {
    width: 100%;
    height: 320px;
}

.worker-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.worker-panel-text {
    padding: 32px;
}

.worker-tab-panel h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.worker-tab-panel p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.9;
    margin-bottom: 12px;
}

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

.worker-dark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.worker-dark-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.worker-dark-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Branch Dark Grid */
.branch-dark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.branch-dark-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.branch-dark-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Shared card image */
.dark-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-card-image.branch-img {
    height: 220px;
}

.dark-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.worker-dark-card:hover .dark-card-image img,
.branch-dark-card:hover .dark-card-image img {
    transform: scale(1.07);
}

.worker-dark-card:hover .dark-card-image,
.branch-dark-card:hover .dark-card-image {
    border-bottom-color: rgba(212, 175, 55, 0.5);
}

/* Shared glass info panel */
.dark-card-glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 22px 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dark-card-glass h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.dark-card-glass p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Branch-specific info */
.branch-info h3 {
    font-size: 1.35rem;
}

.branch-pastor-dark {
    color: #c9a84c !important;
    font-weight: 500;
    font-style: italic;
    font-size: 0.9rem !important;
}

.branch-location-dark {
    color: rgba(255, 255, 255, 0.55) !important;
    font-style: italic;
    font-size: 0.88rem !important;
}

/* Branches dark CTA */
.branches-dark-cta {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.branches-dark-cta h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 14px;
    font-weight: 600;
}

.branches-dark-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Responsive - Dark Grids */
@media (max-width: 1100px) {
    .worker-dark-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 700px) {
    .dark-grid-section {
        padding: 40px 0 60px;
    }

    .dark-grid-container {
        padding: 0 16px;
    }

    .worker-dark-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .branch-dark-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dark-card-image {
        height: 160px;
    }

    .dark-card-image.branch-img {
        height: 200px;
    }

    .dark-card-glass {
        padding: 16px 18px 18px;
    }

    .dark-card-glass h3 {
        font-size: 1.1rem;
    }

    .branches-dark-cta {
        padding: 35px 24px;
    }

    .branches-dark-cta h3 {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════
   MEDIA PAGE — Dark Gold Theme
═══════════════════════════════════════════ */

/* Page wrapper */
.media-dark-page {
    background: #0a0a0a;
}

/* Section base */
.media-section {
    padding: 90px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.media-section-alt {
    background: #0d0d0d;
}

.media-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Section header */
.media-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.media-section-header h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.15);
}

.media-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.media-gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8a6d1f, #c9a84c, #e8c96a, #c9a84c, #8a6d1f);
    border-radius: 2px;
    margin: 16px auto 20px;
}

.media-section-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}

.media-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #c9a84c;
    display: block;
    margin-bottom: 10px;
}

.media-sub-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 56px 0 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* ── Shared buttons ── */
.media-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.media-btn .btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.media-btn-yt {
    background: #ff0000;
    color: #ffffff;
}

.media-btn-yt:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.35);
}

.media-btn-outline {
    background: transparent;
    color: #c9a84c;
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.media-btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #c9a84c;
    transform: translateY(-2px);
}

/* ── Live badge ── */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 50px;
    padding: 6px 14px;
}

.live-badge-text {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ff4444;
}

.live-pulse-dot {
    width: 10px;
    height: 10px;
    background: #ff2222;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 34, 34, 0.5);
    animation: liveBeep 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.live-pulse-dot.small {
    width: 7px;
    height: 7px;
}

@keyframes liveBeep {
    0%   { box-shadow: 0 0 0 0 rgba(255, 34, 34, 0.6); }
    60%  { box-shadow: 0 0 0 8px rgba(255, 34, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 34, 34, 0); }
}

/* ── Live Streaming layout ── */
.livestream-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.livestream-player {
    position: relative;
}

.yt-thumb-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.08);
}

.yt-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.yt-thumb-frame:hover .yt-thumb-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.yt-play-circle {
    width: 72px;
    height: 72px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 30px rgba(255, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yt-thumb-frame:hover .yt-play-circle {
    transform: scale(1.12);
    box-shadow: 0 6px 40px rgba(255, 0, 0, 0.7);
}

.yt-play-circle svg {
    width: 30px;
    height: 30px;
    color: white;
    margin-left: 4px;
}

.yt-live-corner {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 6px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ff4444;
    backdrop-filter: blur(8px);
}

/* Livestream info panel */
.livestream-info {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 28px 24px;
    align-self: start;
}

.livestream-info h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
}

.livestream-info > p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    margin-bottom: 20px;
}

.livestream-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

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

.livestream-service-card {
    padding: 16px 16px;
    border-radius: 12px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.12);
}

.livestream-service-card:last-child {
    grid-column: 1 / -1;
}

.livestream-service-card h4 {
    font-size: 0.98rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
}

.livestream-service-card .time {
    font-size: 1rem;
    color: #c9a84c;
    font-weight: 600;
    margin-bottom: 0;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.schedule-dot {
    width: 8px;
    height: 8px;
    background: #c9a84c;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.schedule-item strong {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

.schedule-item span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ── Devotionals ── */
.devo-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 56px;
}

.devo-featured-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #1a1200, #2d1f00);
}

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

.devo-today-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    color: #0a0a0a;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 50px;
}

.devo-featured-text {
    padding: 40px 36px 40px 0;
}

.devo-featured-text h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
}

.devo-featured-text blockquote {
    border-left: 3px solid #c9a84c;
    padding-left: 16px;
    margin: 0 0 18px;
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
}

.devo-featured-text blockquote cite {
    display: block;
    font-size: 0.82rem;
    color: #c9a84c;
    font-style: normal;
    font-weight: 600;
    margin-top: 8px;
}

.devo-featured-text p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
}

/* Devotional grid */
.devo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.devo-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.devo-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.4);
}

.devo-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #1a1200, #2d1f00);
}

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

.devo-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #c9a84c;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

.devo-card-body {
    padding: 16px 18px 18px;
}

.devo-card-body h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.devo-ref {
    font-size: 0.78rem;
    color: #c9a84c;
    font-weight: 600;
}

/* ── Picture Quotes ── */

/* Featured */
.pq-featured {
    position: relative;
    aspect-ratio: 21 / 9;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1a1200, #0a0a0a);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.1);
}

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

.pq-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
}

.pq-featured-inner {
    padding: 40px;
    max-width: 700px;
}

.pq-featured-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #c9a84c;
    margin-bottom: 10px;
}

.pq-featured-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.pq-featured-attr {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
}

/* Category filters */
.pq-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.pq-filter {
    padding: 9px 22px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pq-filter:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}

.pq-filter.active {
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    border-color: transparent;
    color: #0a0a0a;
}

/* Gallery grid */
.pq-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.pq-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1200, #0d0900);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.pq-card.dimmed {
    opacity: 0.3;
    transform: scale(0.97);
}

/* Picture Quotes Lightbox */
.pq-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.pq-lightbox.active {
    display: flex;
}

.pq-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pq-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.15);
}

.pq-lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10000;
}

.pq-lightbox-close:hover {
    opacity: 1;
    color: #c9a84c;
}

.pq-card:hover {
    transform: scale(1.03);
    border-color: rgba(212, 175, 55, 0.5);
}

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

.pq-card:hover img {
    transform: scale(1.08);
}

.pq-card-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pq-card:hover .pq-card-hover {
    opacity: 1;
}

.pq-card-hover p {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 8px;
    font-style: italic;
}

.pq-card-hover span {
    font-size: 0.72rem;
    color: #c9a84c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Podcast platforms ── */
.podcast-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.podcast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 24px 30px;
    border-radius: 20px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.podcast-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.podcast-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.podcast-icon svg {
    width: 36px;
    height: 36px;
}

.podcast-icon-img {
    padding: 6px;
}

.podcast-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Platform colours */
/* TuneIn */
.podcast-tunein { border-color: rgba(22, 164, 219, 0.2); }
.podcast-tunein:hover { border-color: #16a4db; box-shadow: 0 20px 50px rgba(22, 164, 219, 0.15); }
.podcast-tunein .podcast-icon { background: rgba(22, 164, 219, 0.12); color: #16a4db; }

/* Spotify */
.podcast-spotify { border-color: rgba(29, 185, 84, 0.2); }
.podcast-spotify:hover { border-color: #1db954; box-shadow: 0 20px 50px rgba(29, 185, 84, 0.15); }
.podcast-spotify .podcast-icon { background: rgba(29, 185, 84, 0.12); color: #1db954; }

/* Apple Podcasts */
.podcast-apple { border-color: rgba(153, 51, 204, 0.2); }
.podcast-apple:hover { border-color: #9933cc; box-shadow: 0 20px 50px rgba(153, 51, 204, 0.15); }
.podcast-apple .podcast-icon { background: rgba(153, 51, 204, 0.12); color: #9933cc; }

/* Telegram */
.podcast-telegram { border-color: rgba(42, 171, 238, 0.2); }
.podcast-telegram:hover { border-color: #2aabee; box-shadow: 0 20px 50px rgba(42, 171, 238, 0.15); }
.podcast-telegram .podcast-icon { background: rgba(42, 171, 238, 0.12); color: #2aabee; }

/* Listen Notes */
.podcast-listennotes { border-color: rgba(0, 181, 173, 0.2); }
.podcast-listennotes:hover { border-color: #00b5ad; box-shadow: 0 20px 50px rgba(0, 181, 173, 0.15); }
.podcast-listennotes .podcast-icon { background: rgba(0, 181, 173, 0.12); color: #00b5ad; }

/* Podcast Addict */
.podcast-addict { border-color: rgba(255, 69, 0, 0.2); }
.podcast-addict:hover { border-color: #ff4500; box-shadow: 0 20px 50px rgba(255, 69, 0, 0.15); }
.podcast-addict .podcast-icon { background: rgba(255, 69, 0, 0.12); color: #ff4500; }

/* Amazon Music */
.podcast-amazon { border-color: rgba(255, 153, 0, 0.2); }
.podcast-amazon:hover { border-color: #ff9900; box-shadow: 0 20px 50px rgba(255, 153, 0, 0.15); }
.podcast-amazon .podcast-icon { background: rgba(255, 153, 0, 0.12); color: #ff9900; }

.podcast-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.podcast-action {
    font-size: 0.82rem;
    color: #c9a84c;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ── Video Featured (Apostle Andrews & Secrets) ── */
.video-featured-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 16px;
}

.vf-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.08);
}

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

.vf-thumb:hover img {
    transform: scale(1.04);
}

.vf-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.vf-thumb:hover .vf-play-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.vf-play-btn {
    width: 72px;
    height: 72px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 30px rgba(255, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vf-play-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 40px rgba(255, 0, 0, 0.7);
}

.vf-play-btn svg {
    width: 28px;
    height: 28px;
    color: white;
    margin-left: 4px;
}

.vf-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.vf-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vf-info h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.vf-info p {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    margin: 0;
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.video-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

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

.video-card:hover .video-card-thumb img {
    transform: scale(1.07);
}

.vc-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vc-play svg {
    width: 36px;
    height: 36px;
    color: white;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

.video-card:hover .vc-play {
    opacity: 1;
}

.vc-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    backdrop-filter: blur(6px);
}

.video-card-body {
    padding: 14px 16px 16px;
}

.video-card-body h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.35;
}

.vc-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.video-more-cta {
    text-align: center;
    margin-top: 40px;
}

/* ── Social Media Section ── */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.09);
}

.social-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.social-facebook .social-icon-wrap  { background: rgba(24, 119, 242, 0.18); color: #1877f2; }
.social-instagram .social-icon-wrap { background: rgba(225, 48, 108, 0.18);  color: #e1306c; }
.social-tiktok .social-icon-wrap    { background: rgba(255, 255, 255, 0.1);  color: #ffffff; }
.social-twitter .social-icon-wrap   { background: rgba(255, 255, 255, 0.1);  color: #ffffff; }
.social-whatsapp .social-icon-wrap  { background: rgba(37, 211, 102, 0.18);  color: #25d366; }
.social-youtube .social-icon-wrap   { background: rgba(255, 0, 0, 0.18);     color: #ff0000; }

.social-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.social-platform {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.social-handle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-follow-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.social-card:hover .social-follow-btn {
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .pq-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 860px) {
    .media-section-header h2 {
        font-size: 2.1rem;
    }

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

    .livestream-service-grid {
        grid-template-columns: 1fr;
    }

    .devo-featured {
        grid-template-columns: 1fr;
    }

    .devo-featured-text {
        padding: 0 28px 32px;
    }

    .devo-featured-img {
        aspect-ratio: 16 / 9;
    }

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

    .pq-featured {
        aspect-ratio: 16 / 9;
    }

    .pq-featured-text {
        font-size: 1.4rem;
    }

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

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

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

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

@media (max-width: 560px) {
    .media-section {
        padding: 60px 0;
    }

    .media-container {
        padding: 0 16px;
    }

    .media-section-header h2 {
        font-size: 1.75rem;
    }

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

    .pq-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .podcast-platforms {
        grid-template-columns: 1fr;
    }

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

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

/* ===================================
   Coming Soon Section
   =================================== */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 40px 0;
}

.coming-soon-card {
    max-width: 600px;
    width: 100%;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg,
        rgba(219, 234, 254, 0.4) 0%,
        rgba(147, 197, 253, 0.2) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.coming-soon-card h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-weight: 600;
}

.coming-soon-card p {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

@media (max-width: 900px) {
    .coming-soon-card {
        padding: 50px 30px;
    }

    .coming-soon-card h3 {
        font-size: 2rem;
    }

    .coming-soon-card p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .coming-soon-container {
        min-height: 250px;
        padding: 30px 0;
    }

    .coming-soon-card {
        padding: 40px 25px;
    }

    .coming-soon-card h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .coming-soon-card p {
        font-size: 1rem;
    }
}

/* ===================================
   Partner With Us Section
   =================================== */
.partner-ways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 30px auto 40px;
    align-items: stretch;
}

.partner-card {
    padding: 0;
    border-radius: 16px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg,
        rgba(219, 234, 254, 0.4) 0%,
        rgba(147, 197, 253, 0.2) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    overflow: hidden;
}

.partner-image-placeholder {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(30, 58, 138, 0.1) 0%,
        rgba(59, 130, 246, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.partner-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    background: linear-gradient(135deg,
        rgba(219, 234, 254, 0.5) 0%,
        rgba(147, 197, 253, 0.3) 100%);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 25px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
}

.partner-card:hover .partner-image-placeholder img {
    transform: scale(1.05);
}

.partner-card:hover .partner-image-placeholder {
    border-bottom-color: var(--gold);
}

.partner-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin: 20px 20px 12px;
    font-weight: 600;
    line-height: 1.3;
}

.partner-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0 20px 20px;
    flex-grow: 1;
}

.partnership-cta {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(135deg,
        rgba(219, 234, 254, 0.5) 0%,
        rgba(147, 197, 253, 0.3) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.partnership-cta h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
    font-family: var(--font-display);
}

.partnership-cta p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .partner-ways-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .partner-image-placeholder {
        height: 180px;
    }

    .partner-card h3 {
        font-size: 1.3rem;
        margin: 18px 18px 10px;
    }

    .partner-card p {
        font-size: 0.95rem;
        margin: 0 18px 18px;
    }

    .partnership-cta {
        padding: 40px 30px;
    }

    .partnership-cta h3 {
        font-size: 1.8rem;
    }

    .partnership-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .partner-ways-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .partner-image-placeholder {
        height: 160px;
    }

    .partner-card h3 {
        font-size: 1.2rem;
        margin: 16px 16px 8px;
    }

    .partner-card p {
        font-size: 0.9rem;
        margin: 0 16px 16px;
    }

    .partnership-cta {
        padding: 35px 25px;
    }

    .partnership-cta h3 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .partnership-cta p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}

/* ===================================
   Livestream Banner Section
   =================================== */
.livestream-banner {
    max-width: 1200px;
    margin: 30px auto;
}

.youtube-holder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(30, 58, 138, 0.1) 0%,
        rgba(59, 130, 246, 0.1) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.youtube-holder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 480px) {
    .livestream-banner {
        margin: 20px auto;
    }
}

/* ===================================
   Page Headers (New Pages)
   =================================== */
.page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0f2460 100%);
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    padding: 90px 20px 30px;
}

.page-header-content h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.page-header-content p {
    font-size: 1rem;
    color: var(--sky-blue);
    font-weight: 300;
}

/* ===================================
   Portal / Stats Dark Theme Pages
   =================================== */
.portal-page-header,
.stats-page-header,
.auth-page-header {
    background: linear-gradient(135deg, #0a1628 0%, var(--primary-blue) 50%, #0f2460 100%);
}

body.dark-portal-page,
body:has(.auth-page-header) {
    background: #0d1b2a;
}

body.dark-portal-page .content-section,
body:has(.auth-page-header) .content-section {
    background: transparent;
    padding: 30px 0;
}

body.dark-portal-page .content-section:first-of-type,
body.dark-portal-page #dashboardContent .content-section:first-child {
    padding-top: 70px;
}

body.dark-portal-page .footer,
body:has(.auth-page-header) .footer {
    background: #060e18;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

/* ===================================
   Auth Page Styles
   =================================== */
.logged-in-banner {
    max-width: 520px;
    margin: 0 auto 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: #86efac;
    font-size: 0.9rem;
}

.logged-in-banner strong {
    color: #fff;
}

.logged-in-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.auth-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
    background: rgba(15, 25, 50, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.auth-container:hover {
    transform: none;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.auth-tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--sky-blue);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    background: rgba(59, 130, 246, 0.15);
}

.auth-tab.active {
    background: var(--light-blue);
    color: var(--white);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* ===================================
   Form Styles (Shared)
   =================================== */
.form-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
    background: rgba(15, 25, 50, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.form-card:hover {
    transform: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--sky-blue);
}

body.dark-portal-page .form-group input,
body.dark-portal-page .form-group select,
body.dark-portal-page .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(10, 20, 40, 0.6);
}

body.dark-portal-page .form-group input:hover,
body.dark-portal-page .form-group select:hover,
body.dark-portal-page .form-group textarea:hover {
    border-color: var(--gold);
    background: rgba(10, 20, 40, 0.6);
}

body.dark-portal-page .form-group input:focus,
body.dark-portal-page .form-group select:focus,
body.dark-portal-page .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    background: rgba(10, 20, 40, 0.6);
}

.form-group input::placeholder {
    color: rgba(147, 197, 253, 0.5);
    font-weight: 300;
}

.form-group select {
    cursor: pointer;
    appearance: auto;
}

.form-group select option {
    background: #0f1930;
    color: var(--white);
}

.form-actions {
    margin-top: 10px;
}

.btn-full {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
}

.section-subtitle {
    color: var(--sky-blue);
    font-size: 0.95rem;
    margin-top: 10px;
}

/* Profile Info Grid */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-info-grid .full-width {
    grid-column: 1 / -1;
}

.profile-info-item {
    padding: 15px 20px;
    background: rgba(10, 20, 40, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

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

.profile-info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 6px;
}

.profile-info-value {
    display: block;
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
}

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

/* Dark theme section titles */
.form-card .section-title,
.auth-container h2 {
    color: var(--white);
}

.form-card .title-underline {
    background: var(--gold);
}

/* Form Messages */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-message-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Photo Upload */
.photo-upload-area {
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
    background: rgba(10, 20, 40, 0.4);
}

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

.photo-upload-area input[type="file"] {
    border: none;
    padding: 0;
    font-size: 0.85rem;
}

.photo-hint {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 8px;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 15px;
    border: 3px solid var(--gold);
}

/* ===================================
   Nav Auth State
   =================================== */
.nav-auth-item {
    display: flex;
    align-items: center;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
}

.nav-user-name {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-logout:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* ===================================
   Access Denied Card
   =================================== */
.access-denied-card {
    text-align: center;
    padding: 60px 40px;
    border-radius: 16px;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(15, 25, 50, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.access-denied-card:hover {
    transform: none;
}

.access-denied-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.access-denied-card h2 {
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: 15px;
}

.access-denied-card p {
    color: var(--sky-blue);
    margin-bottom: 25px;
}

.access-denied-card .btn {
    margin: 0 8px;
}

/* ===================================
   Status Badges
   =================================== */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.pending {
    background: rgba(212, 175, 55, 0.15);
    color: #b8941f;
}

.status-badge.approved {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* ===================================
   Statistics Dashboard Styles
   =================================== */
.stats-summary-section {
    padding-top: 20px;
    padding-bottom: 0;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stats-card {
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    background: rgba(15, 25, 50, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(12px);
}

.stats-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.stats-card-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.stats-card-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-display);
    line-height: 1.2;
}

.stats-card-label {
    color: var(--sky-blue);
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Filters */
.stats-filters-section {
    padding-top: 10px;
    padding-bottom: 0;
}

.filters-bar {
    display: flex;
    gap: 20px;
    padding: 20px 30px;
    border-radius: 12px;
    align-items: flex-end;
    background: rgba(15, 25, 50, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(12px);
}

.filters-bar:hover {
    transform: none;
}

.filters-bar .form-group {
    margin-bottom: 0;
    min-width: 180px;
}

/* Charts */
.stats-charts-section {
    padding-top: 10px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-card {
    padding: 30px;
    border-radius: 16px;
    background: rgba(15, 25, 50, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(12px);
}

.chart-card:hover {
    transform: none;
}

.chart-card h3 {
    margin-bottom: 20px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.15rem;
}

/* Data Tables */
.table-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 0;
    gap: 0;
}

.table-tab {
    padding: 12px 22px;
    border: none;
    background: none;
    color: rgba(147, 197, 253, 0.6);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.table-tab:hover {
    color: var(--sky-blue);
}

.table-tab.active {
    color: var(--white);
    border-bottom-color: var(--gold);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 0;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.stats-table th {
    background: rgba(30, 58, 138, 0.4);
    color: var(--sky-blue);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

.stats-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Action Buttons */
.action-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: none;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 6px;
}

.action-btn.approve {
    background: #10b981;
    color: var(--white);
}

.action-btn.approve:hover {
    background: #059669;
}

.action-btn.reject {
    background: #ef4444;
    color: var(--white);
}

.action-btn.reject:hover {
    background: #dc2626;
}

/* Request Filter Tabs */
.request-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.request-filter-tab {
    padding: 8px 20px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(10, 20, 40, 0.5);
    color: var(--sky-blue);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.request-filter-tab:hover {
    border-color: var(--gold);
    color: var(--white);
}

.request-filter-tab.active {
    background: var(--light-blue);
    border-color: var(--light-blue);
    color: var(--white);
}

/* ===================================
   Responsive — New Sections
   =================================== */
@media (max-width: 1024px) {
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .page-header-content h1 {
        font-size: 1.8rem;
    }

    .page-header-content p {
        font-size: 0.95rem;
    }

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

    .form-card {
        padding: 25px 20px;
    }

    .auth-container {
        padding: 25px 20px;
        margin: 0 15px;
    }

    .stats-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filters-bar {
        flex-direction: column;
        gap: 15px;
    }

    .filters-bar .form-group {
        min-width: auto;
        width: 100%;
    }

    .table-tab {
        padding: 10px 14px;
        font-size: 0.78rem;
    }

    .nav-user {
        flex-direction: column;
        gap: 8px;
        padding: 10px 15px;
    }

    .stats-table th,
    .stats-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        min-height: 220px;
    }

    .page-header-content h1 {
        font-size: 1.5rem;
    }

    .stats-cards-grid {
        grid-template-columns: 1fr;
    }

    .stats-card-value {
        font-size: 1.8rem;
    }

    .auth-container {
        padding: 20px 15px;
    }

    .stats-table th,
    .stats-table td {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .action-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .request-filter-tab {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}

/* ===================================
   Books Page
   =================================== */

.books-page {
    background: #0a0a0a;
    padding-top: 70px;
}

/* Section headings inside grid containers */
.books-section-header {
    margin-bottom: 32px;
}

.books-section-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #e8c96a;
    margin-bottom: 10px;
}

.books-section-copy {
    max-width: 720px;
    margin-top: 14px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.books-title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, transparent);
    border-radius: 2px;
}

/* Book Cards Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    padding: 20px 0 40px;
}

.book-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.1);
}

/* Book Cover */
.book-cover {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.book-cover-link {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    text-decoration: none;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.book-cover-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(232, 201, 106, 0.78);
}

.book-cover-kicker-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.72);
    border: 1px solid rgba(232, 201, 106, 0.35);
    color: #fff7db;
}

.book-cover-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.35;
    color: #fff7db;
    max-width: 16ch;
}

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

.book-cover-icon {
    font-size: 3rem;
    opacity: 0.85;
}

.bc-1 { background: linear-gradient(135deg, #1a0a00, #3d1a00); }
.bc-2 { background: linear-gradient(135deg, #0a001a, #1e0050); }
.bc-3 { background: linear-gradient(135deg, #001a0a, #003d1a); }
.bc-4 { background: linear-gradient(135deg, #1a0010, #3d0030); }
.bc-5 { background: linear-gradient(135deg, #0a0a00, #2a2a00); }
.bc-6 { background: linear-gradient(135deg, #00101a, #00304d); }

.bc-free-1 { background: linear-gradient(135deg, #0d1a00, #1e3d00); }
.bc-free-2 { background: linear-gradient(135deg, #1a0d00, #3d2200); }
.bc-free-3 { background: linear-gradient(135deg, #00101a, #003040); }

/* Gold top accent bar */
.book-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

/* Book Info */
.book-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.book-info h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #e8c96a;
    margin-bottom: 4px;
    line-height: 1.35;
}

.book-author {
    font-size: 0.75rem;
    color: rgba(212, 175, 55, 0.6);
    margin-bottom: 10px;
    font-style: italic;
}

.book-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 16px;
}

/* Book Buttons */
.book-btn {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
    align-self: flex-start;
}

.book-btn-buy {
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    color: #0a0a0a;
}

.book-btn-buy:hover {
    background: linear-gradient(135deg, #e8c96a, #c9a84c);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.book-btn-free {
    background: transparent;
    color: #c9a84c;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.book-btn-free:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: #c9a84c;
    transform: translateY(-1px);
}

/* ===== Devotional Feature ===== */
.devo-book-feature {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
}

.devo-book-cover {
    background: linear-gradient(135deg, #1a0a00, #3d1a00);
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.devo-book-cover-link {
    text-decoration: none;
    color: #fff;
    padding: 0;
    text-align: center;
}

.devo-book-cover::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, #c9a84c, transparent);
}

.devo-book-cover-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.35;
    color: #fff7db;
    max-width: 12ch;
}

.devo-book-cover-title-overlay {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1;
    max-width: none;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.devo-book-badge {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #e8c96a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    background: rgba(10, 10, 10, 0.64);
}

.devo-book-details {
    padding: 32px 32px 32px 0;
}

.devo-book-details h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #e8c96a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.devo-book-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: 6px;
}

.devo-book-author {
    font-size: 0.8rem;
    color: rgba(212, 175, 55, 0.6);
    margin-bottom: 16px;
}

.devo-book-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 24px;
}

.devo-book-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.devo-library-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.devo-library-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #e8c96a;
    margin-bottom: 10px;
}

.devo-library-copy {
    max-width: 720px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Today's Devotional Preview */
.devo-today-preview {
    margin-top: 8px;
}

.devo-today-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 14px;
}

.devo-today-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-left: 3px solid #c9a84c;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.devo-today-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.devo-today-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #e8c96a;
    margin-bottom: 8px;
}

.devo-today-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 6px;
}

.devo-today-note {
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic;
}

/* Previous Devotional Editions Archive */
.devo-archive {
    margin-top: 40px;
}

.devo-archive-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-bottom: 18px;
}

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

.devo-archive-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.devo-archive-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-3px);
}

.devo-archive-cover {
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.devo-archive-year {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff7db;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.68);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

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

.devo-cover-image-spread {
    object-position: right center;
}

.devo-archive-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.devo-archive-info h4 {
    font-family: var(--font-display);
    font-size: 0.88rem;
    color: #e8c96a;
    line-height: 1.3;
    margin: 0;
}

.devo-archive-edition {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
}

.book-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(212, 175, 55, 0.1);
    color: #e8c96a;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    width: fit-content;
}

.book-btn-download:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #c9a84c;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }

    .devo-book-feature {
        grid-template-columns: 1fr;
    }

    .devo-book-cover {
        min-height: 180px;
    }

    .devo-book-cover::after {
        right: auto;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    }

    .devo-book-details {
        padding: 24px;
    }

    .devo-library-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .devo-today-card {
        flex-direction: column;
    }
}

/* ===================================
   Partner With Us Page
   =================================== */

.partner-dark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.partner-dark-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.partner-dark-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.1);
}

.partner-card-icon-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.partner-card-icon {
    font-size: 2.4rem;
}

.partner-card-glass {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-card-glass h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #e8c96a;
    margin-bottom: 10px;
}

.partner-card-glass p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 18px;
}

.partner-card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #c9a84c;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s, letter-spacing 0.2s;
    align-self: flex-start;
}

.partner-card-link:hover {
    color: #e8c96a;
    letter-spacing: 0.06em;
}

/* CTA block */
.partner-dark-cta {
    text-align: center;
    padding: 48px 24px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
}

.partner-dark-cta h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: #e8c96a;
    margin-bottom: 12px;
}

.partner-dark-cta p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .partner-dark-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Give Page
   =================================== */

.give-page {
    background: #0a0a0a;
    padding-top: 70px;
}

.give-page-header {
    text-align: center;
    padding: 50px 20px 30px;
    max-width: 700px;
    margin: 0 auto;
}

.give-page-header h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: #e8c96a;
    margin-bottom: 12px;
}

.give-title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    border-radius: 2px;
    margin: 0 auto 18px;
}

.give-page-header p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Section sub-header */
.give-section-header {
    margin-bottom: 28px;
}

.give-section-header h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #e8c96a;
    margin-bottom: 10px;
}

.give-section-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

/* Cards grid */
.give-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 36px;
}

.give-cards-grid .give-card {
    width: 280px;
    flex-shrink: 0;
}

/* Give Card */
.give-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.give-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.08);
}

/* Mobile money icon strip */
.give-card-icon-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.give-provider-logo {
    height: 80px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.give-bank-logo .give-provider-logo {
    height: 75px;
}

.give-icon-momo  { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.give-icon-telecel { background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%); }
.give-icon-at    { background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%); }

/* Bank logo strip */
.give-card-bank .give-bank-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1200, #3d2c00);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.give-bank-initial {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #e8c96a;
    letter-spacing: 0.05em;
}

/* Card body */
.give-card-body {
    padding: 20px;
    text-align: center;
}

.give-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: #e8c96a;
    margin-bottom: 14px;
}

.give-detail-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    gap: 2px;
}

.give-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.6);
}

.give-value {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

.give-number {
    font-family: monospace;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.06em;
}

/* Copy button */
.give-copy-btn {
    margin-top: 14px;
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #c9a84c;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.04em;
}

.give-copy-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: #c9a84c;
}

.give-copy-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #22c55e;
}

/* Note block */
.give-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-left: 3px solid #c9a84c;
    border-radius: 10px;
    padding: 18px 22px;
}

.give-note-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.give-note p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.give-note a {
    color: #c9a84c;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.4);
    transition: border-color 0.2s;
}

.give-note a:hover {
    border-color: #c9a84c;
}

@media (max-width: 768px) {
    .give-page-header h1 {
        font-size: 1.8rem;
    }

    .give-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Search
   =================================== */

/* Trigger icon in navbar */
.nav-search-trigger .search-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    color: var(--gold);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-search-trigger .search-nav-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.nav-search-trigger .search-nav-btn svg {
    display: block;
}

/* Overlay backdrop */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Inner panel */
.search-overlay-inner {
    width: 100%;
    max-width: 680px;
    margin: 0 20px;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(-12px);
    transition: transform 0.25s ease;
}

.search-overlay.open .search-overlay-inner {
    transform: translateY(0);
}

/* Search bar row */
.search-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-icon-inline {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    display: flex;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    caret-color: var(--gold);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Hide browser's native ✕ in search inputs */
.search-input::-webkit-search-cancel-button { display: none; }

.search-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.search-close-btn:hover {
    color: #fff;
}

/* Hint text */
.search-hint {
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
    font-family: var(--font-body);
    text-align: center;
    margin: 0;
}

/* Results list */
.search-results {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 420px;
    overflow-y: auto;
}

.search-results:empty {
    display: none;
}

.search-result-item {
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.search-result-item:hover,
.search-result-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--gold);
}

.search-result-link {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 20px;
    text-decoration: none;
}

.search-result-cat {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 4px;
    padding: 3px 7px;
    white-space: nowrap;
}

.search-result-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.search-result-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-title mark,
.search-result-desc mark {
    background: rgba(212, 175, 55, 0.35);
    color: var(--gold);
    border-radius: 2px;
    padding: 0 2px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
    font-family: var(--font-body);
}

.search-no-results strong {
    color: rgba(255, 255, 255, 0.6);
}

/* Prevent body scroll when overlay is open */
body.search-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    .search-overlay {
        padding-top: 70px;
        align-items: flex-start;
    }

    .search-overlay-inner {
        margin: 0;
        border-radius: 0 0 16px 16px;
        border-top: none;
        max-width: 100%;
    }

    .search-result-desc {
        display: none;
    }

    .search-result-link {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto;
    }

    .search-result-cat {
        grid-row: 1;
    }

    .search-result-title {
        grid-row: 1;
    }
}

/* ===================================
   Statistics Gate — Access Screen
   =================================== */

.stats-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #050a18 0%, #0f1f4a 60%, #0a0f2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stats-gate-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 44px 40px 36px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: gateCardIn 0.4s ease both;
}

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

.stats-gate-logo {
    width: 160px;
    margin: 0 auto 16px;
}

.stats-gate-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.stats-gate-ministry {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 10px;
    opacity: 0.85;
}

.stats-gate-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.stats-gate-rule {
    width: 48px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    margin: 18px auto;
    opacity: 0.7;
}

.stats-gate-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    margin: 0 0 28px;
}

/* Form */

.stats-gate-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stats-gate-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.stats-gate-input {
    width: 100%;
    padding: 13px 44px 13px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.stats-gate-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0;
}

.stats-gate-input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.stats-gate-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.stats-gate-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.35);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.stats-gate-eye:hover {
    color: var(--gold);
}

/* Error */

.stats-gate-error {
    min-height: 20px;
    font-size: 0.8rem;
    color: #ff6b6b;
    text-align: left;
    margin: 8px 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stats-gate-error.visible {
    opacity: 1;
}

/* Submit button */

.stats-gate-btn {
    margin-top: 20px;
    width: 100%;
    padding: 13px 20px;
    background: var(--gold);
    color: #0a0f2e;
    border: none;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.stats-gate-btn:hover:not(:disabled) {
    background: var(--dark-gold);
    transform: translateY(-1px);
}

.stats-gate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.stats-gate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Hint */

.stats-gate-hint {
    margin-top: 24px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
    line-height: 1.5;
}

/* Granted state */

.stats-gate-granted .stats-gate-card {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.06);
}

.stats-gate-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 2rem;
    animation: gateCheckPop 0.35s ease both;
}

@keyframes gateCheckPop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* Mobile */

@media (max-width: 480px) {
    .stats-gate-card {
        padding: 36px 24px 28px;
        border-radius: 16px;
    }

    .stats-gate-logo {
        width: 130px;
    }

    .stats-gate-title {
        font-size: 1.35rem;
    }
}
