/* ==========================================================================
   ALL GRACE HOUSEHOLD MINISTRY (AGHM) DESIGN SYSTEM & STYLESHEET
   Spacious, Human-Designed & Ultra-Responsive Mobile & Tablet Edition
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR SYSTEM & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    --navy-primary: #0A1128;
    --navy-dark: #050915;
    --navy-card: #0F172A;
    --royal-blue: #1C3FAA;
    --royal-blue-hover: #153288;
    
    --gold-primary: #D4AF37;
    --gold-hover: #C59E27;
    --gold-soft: #FFF9E6;
    --gold-gradient: #D4AF37;
    
    --bg-slate: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --border-gold: rgba(212, 175, 55, 0.3);
    
    --text-navy: #0F172A;
    --text-slate: #475569;
    --text-muted: #64748B;
    --text-white: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 10px rgba(10, 17, 40, 0.04);
    --shadow-md: 0 10px 30px rgba(10, 17, 40, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 17, 40, 0.16);
    --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.25);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. BASE & TYPOGRAPHY STYLES
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-navy);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 100px 0;
}

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

.bg-navy {
    background-color: var(--navy-primary);
    color: var(--text-white);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: var(--text-white); }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Section Headers */
.section-header {
    margin-bottom: 50px;
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--gold-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.main-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--navy-primary);
    letter-spacing: -0.5px;
}

.sub-desc {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-top: 10px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.heading-line {
    width: 60px;
    height: 4px;
    background: var(--gold-primary);
    margin: 18px auto 0;
    border-radius: var(--radius-full);
}

.highlight-gold {
    color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   3. REFINED BUTTONS & UI CONTROLS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.btn-hero {
    padding: 14px 28px;
    font-size: 0.98rem;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.85rem;
    min-height: 38px;
}

.btn-xs {
    padding: 6px 14px;
    font-size: 0.78rem;
    min-height: 32px;
}

.btn-block {
    width: 100%;
}

.btn-primary-solid {
    background-color: var(--royal-blue);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(28, 63, 170, 0.2);
}
.btn-primary-solid:hover {
    background-color: var(--royal-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 63, 170, 0.3);
}

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

.btn-navy-outline {
    border-color: var(--navy-primary);
    color: var(--navy-primary);
}
.btn-navy-outline:hover {
    background-color: var(--navy-primary);
    color: var(--text-white);
}

.btn-gold-solid {
    background: var(--gold-primary);
    color: var(--navy-primary);
    font-weight: 700;
}
.btn-gold-solid:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-gold-outline {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}
.btn-gold-outline:hover {
    background: var(--gold-primary);
    color: var(--navy-primary);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text-white);
}

.btn-youtube-brand {
    background-color: #FF0000;
    color: #FFFFFF;
    font-weight: 700;
}
.btn-youtube-brand:hover {
    background-color: #D60000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.btn-facebook-brand {
    background-color: #1877F2;
    color: #FFFFFF;
    font-weight: 700;
}
.btn-facebook-brand:hover {
    background-color: #1464CC;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

/* --------------------------------------------------------------------------
   4. TOP BAR & NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.top-announcement-bar {
    background: var(--navy-dark);
    color: var(--text-white);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.announcement-text {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.bar-actions {
    display: flex;
    gap: 24px;
    white-space: nowrap;
}

.bar-link {
    color: var(--gold-primary);
    font-weight: 600;
}
.bar-link:hover {
    text-decoration: underline;
}

/* Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 46px;
    width: auto;
    background: transparent;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--text-white);
    letter-spacing: 1px;
    line-height: 1;
}

.brand-tagline {
    font-size: 0.68rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    color: var(--gold-primary);
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    background: var(--navy-card);
    min-width: 250px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gold);
    padding: 12px 0;
    z-index: 1010;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.dropdown-menu a i {
    color: var(--gold-primary);
    width: 16px;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-primary);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.menu-toggle-btn {
    display: none;
    color: var(--text-white);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
    background: transparent;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION & REFINED TAGS
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    background: url('../images/hero.png') no-repeat center center/cover;
    min-height: 82vh;
    display: flex;
    align-items: center;
    color: var(--text-white);
    padding: 90px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 40, 0.92);
    z-index: 1;
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.milestone-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.hero-heading {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    color: var(--text-white);
    line-height: 1.18;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 35px;
    max-width: 620px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 45px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--gold-primary);
    display: block;
    line-height: 1;
}

.metric-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
    display: block;
}

.hero-card-widget {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.widget-badge {
    display: inline-block;
    background: var(--royal-blue);
    color: var(--text-white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.widget-title {
    color: var(--text-white);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.widget-meta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-footer {
    margin-top: 22px;
}

/* --------------------------------------------------------------------------
   6. SENIOR PASTOR SECTION
   -------------------------------------------------------------------------- */
.pastor-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 55px;
    align-items: center;
}

.pastor-img-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.pastor-img-frame img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: var(--transition);
}

.pastor-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 17, 40, 0.95);
    padding: 40px 24px 20px;
    color: var(--text-white);
}

.pastor-caption h3 {
    color: var(--text-white);
    font-size: 1.5rem;
}

.pastor-caption p {
    color: var(--gold-primary);
    font-size: 0.88rem;
}

.pastor-content h3 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 18px;
}

.pastor-quote {
    font-style: italic;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--royal-blue);
    border-left: 4px solid var(--gold-primary);
    padding-left: 18px;
    margin-bottom: 22px;
    line-height: 1.7;
}

.pastor-body-text {
    color: var(--text-slate);
    margin-bottom: 28px;
    font-size: 1rem;
}

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

.pillar-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pillar-icon {
    font-size: 1.4rem;
    color: var(--gold-primary);
    background: var(--gold-soft);
    padding: 12px;
    border-radius: var(--radius-md);
}

.pastor-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* --------------------------------------------------------------------------
   7. SERVICES & LOCATION SECTION
   -------------------------------------------------------------------------- */
.schedules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.schedule-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-primary);
}

.featured-card {
    border: 2px solid var(--gold-primary);
}

.schedule-day {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    background: var(--gold-soft);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}

.schedule-header h3 {
    font-size: 1.3rem;
    margin-top: 14px;
}

.schedule-body {
    margin: 18px 0;
}

.time-info, .location-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 6px;
}

.desc-info {
    font-size: 0.9rem;
    color: var(--text-slate);
    margin-top: 10px;
}

.link-btn {
    font-weight: 700;
    color: var(--royal-blue);
    font-size: 0.9rem;
}

.location-box {
    background: var(--navy-primary);
    color: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 45px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.loc-badge {
    color: var(--gold-primary);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.location-details h3 {
    color: var(--text-white);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-bottom: 14px;
}

.loc-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.map-box-inner {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 35px 20px;
    text-align: center;
}

.map-pin-icon {
    font-size: 2.8rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   8. MEDIA & DUAL LIVESTREAM HUB (SLEEK ERROR-FREE CARDS)
   -------------------------------------------------------------------------- */
.media-player-wrapper {
    background: var(--navy-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-lg);
}

.player-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 14px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.12);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.status-dot {
    width: 9px;
    height: 9px;
    background-color: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 10px #22C55E;
}

.source-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toggle-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.source-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.source-btn.active {
    background: var(--royal-blue);
    border-color: var(--royal-blue);
    color: var(--text-white);
}

/* Custom Live Stream Broadcast Hub Poster */
.stream-hub-card {
    position: relative;
    background: url('../images/hero.png') no-repeat center center/cover;
    min-height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hub-overlay {
    position: absolute;
    inset: 0;
    background: #0A1128;
    z-index: 1;
}

.hub-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.hub-live-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hub-title {
    color: var(--text-white);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-top: 10px;
}

.hub-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-top: 8px;
}

.hub-action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.player-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    color: var(--text-white);
    flex-wrap: wrap;
    gap: 15px;
}

.sermons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.sermon-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.sermon-thumb-box {
    position: relative;
    height: 175px;
}

.sermon-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #FFF;
    font-size: 0.72rem;
    padding: 3px 7px;
    border-radius: 4px;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 40, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.sermon-card:hover .play-overlay {
    opacity: 1;
}

.sermon-card-content {
    padding: 18px;
}

.sermon-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sermon-card-content h4 {
    font-size: 1.05rem;
    margin: 6px 0 4px;
}

.speaker {
    font-size: 0.85rem;
    color: var(--royal-blue);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. GIVING BANNER & PAYSTACK MODAL
   -------------------------------------------------------------------------- */
.giving-banner {
    background: #0A1128;
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gold);
    gap: 30px;
}

.banner-sub {
    color: var(--gold-primary);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
}

.giving-banner-text h2 {
    color: var(--text-white);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 10px 0 14px;
}

.banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   10. DAILY AUDIO PROGRAM PORTAL
   -------------------------------------------------------------------------- */
.audio-widget-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.audio-player-core {
    background: var(--navy-primary);
    color: var(--text-white);
    border-radius: var(--radius-md);
    padding: 24px;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.audio-icon-box {
    width: 65px;
    height: 65px;
    background: var(--gold-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--navy-primary);
    flex-shrink: 0;
}

.meta-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
}

.audio-meta h3 {
    color: var(--text-white);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.audio-seekbar {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
}

.range-slider {
    flex: 1;
    accent-color: var(--gold-primary);
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.btn-play-pause {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gold-primary);
    color: var(--navy-primary);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
}

.btn-ctrl {
    background: none;
    border: none;
    color: #FFF;
    font-size: 1.2rem;
    cursor: pointer;
}

.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.playlist-track-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--bg-slate);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    gap: 12px;
}

.playlist-track-row:hover,
.playlist-track-row.active {
    background: rgba(28, 63, 170, 0.08);
    border-left: 4px solid var(--royal-blue);
}

/* --------------------------------------------------------------------------
   11. EVENTS & CONVENTIONS SECTION
   -------------------------------------------------------------------------- */
.events-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 26px;
}

.event-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.featured-event {
    border: 2px solid var(--gold-primary);
}

.event-thumb {
    position: relative;
    height: 195px;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold-primary);
    color: var(--navy-primary);
    font-weight: 800;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.free-tag {
    background: var(--royal-blue);
    color: #FFF;
}

.event-content {
    padding: 20px;
    display: flex;
    gap: 16px;
}

.event-date {
    background: rgba(28, 63, 170, 0.08);
    color: var(--royal-blue);
    padding: 10px;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 60px;
    height: fit-content;
    flex-shrink: 0;
}

.event-date .month {
    font-size: 0.72rem;
    font-weight: 800;
    display: block;
}

.event-date .day {
    font-size: 1.3rem;
    font-weight: 900;
}

.event-info h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.loc-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.desc-text {
    font-size: 0.88rem;
    color: var(--text-slate);
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   12. DEVOTIONALS & LUXURIOUS EMAIL SUBSCRIPTION BOX
   -------------------------------------------------------------------------- */
.devotional-date-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-slate);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.date-picker-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-picker-box label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy-primary);
}

.devotional-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.devotional-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--gold-primary);
}

.dev-date {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
}

.dev-scripture {
    background: var(--bg-slate);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.dev-scripture p {
    font-size: 1.08rem;
    font-style: italic;
    color: var(--navy-primary);
    line-height: 1.7;
}

.dev-scripture cite {
    display: block;
    font-weight: 700;
    color: var(--royal-blue);
    margin-top: 8px;
    font-style: normal;
}

.dev-prayer {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 24px;
}

.dev-prayer h4 {
    color: var(--royal-blue);
    font-size: 1rem;
    margin-bottom: 6px;
}

/* Luxurious Devotional Newsletter Email Subscription Box */
.newsletter-card {
    background: #050915;
    color: var(--text-white);
    padding: 50px 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gold);
    position: relative;
    overflow: hidden;
}

.newsletter-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.newsletter-inner h3 {
    color: var(--text-white);
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    margin-top: 8px;
}

.newsletter-form-box {
    display: flex;
    gap: 12px;
    max-width: 620px;
    margin: 28px auto 0;
    position: relative;
}

.input-with-icon {
    position: relative;
    flex: 1;
}

.input-lead-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.newsletter-input {
    width: 100%;
    padding: 15px 20px 15px 48px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(5, 9, 21, 0.6);
    color: var(--text-white);
    font-size: 1rem;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
    background: rgba(5, 9, 21, 0.85);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-newsletter {
    padding: 15px 30px;
    font-size: 0.98rem;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   13. CLOUD VAULT PHOTO GALLERY
   -------------------------------------------------------------------------- */
.gallery-controls {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
}

.gallery-controls::-webkit-scrollbar {
    display: none;
}

.gallery-filter-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    max-width: 100%;
}

.gallery-filter-btn.active {
    background: var(--royal-blue);
    color: #FFF;
    border-color: var(--royal-blue);
}

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

.gallery-tile {
    position: relative;
    height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-tile:hover img {
    transform: scale(1.05);
}

.tile-caption {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 40, 0.9);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition);
    color: #FFF;
}

.gallery-tile:hover .tile-caption {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   14. DEPARTMENT PORTAL
   -------------------------------------------------------------------------- */
.dept-workspace-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.dept-navigation {
    display: flex;
    background: var(--navy-primary);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dept-navigation::-webkit-scrollbar {
    display: none;
}

.dept-nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    padding: 16px 24px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.dept-nav-btn.active {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.05);
}

.dept-content-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
    padding: 30px;
}

.dept-announcements {
    border-right: 1px solid var(--border-color);
    padding-right: 25px;
}

.announcement-card {
    background: var(--bg-slate);
    padding: 14px;
    border-radius: var(--radius-md);
    margin-top: 12px;
    border-left: 3px solid var(--royal-blue);
}

.announcement-card .date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dept-chat-room {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.online-indicator {
    font-size: 0.78rem;
    color: #22C55E;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-bubble {
    background: var(--bg-slate);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    max-width: 90%;
}

.sender {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--royal-blue);
    display: block;
}

.time {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.chat-form {
    display: flex;
    gap: 10px;
    padding-top: 10px;
}

.chat-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   15. BOOKSTORE SECTION
   -------------------------------------------------------------------------- */
.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.book-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.book-header-badge {
    height: 160px;
    background: var(--navy-primary);
    color: var(--gold-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.oil-bg { background: #451A03; }
.audio-bg { background: #064E3B; }

.book-type-icon {
    font-size: 3rem;
    margin-bottom: 6px;
}

.book-body {
    padding: 22px;
}

.author {
    font-size: 0.85rem;
    color: var(--royal-blue);
    font-weight: 600;
}

.desc {
    font-size: 0.88rem;
    color: var(--text-slate);
    margin: 8px 0 16px;
}

.book-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-primary);
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer-section {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gold-primary);
    color: var(--navy-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   17. MODAL OVERLAYS & DIALOGS
   -------------------------------------------------------------------------- */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 21, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalSlide 0.3s ease-out;
}

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

.modal-header {
    background: var(--navy-primary);
    color: #FFF;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 { color: #FFF; font-size: 1.15rem; }

.modal-close-btn {
    background: none;
    border: none;
    color: #FFF;
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control-input, .form-control-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.category-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-radio {
    flex: 1;
    min-width: 90px;
    padding: 9px;
    background: var(--bg-slate);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.cat-radio.active {
    background: rgba(28, 63, 170, 0.1);
    border-color: var(--royal-blue);
    color: var(--royal-blue);
}

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

.preset-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-chip {
    background: var(--bg-slate);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.paystack-secure-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin: 14px 0;
}

.receipt-card {
    text-align: center;
    padding: 15px 0;
}

.receipt-check-icon {
    font-size: 3.5rem;
    color: #22C55E;
    margin-bottom: 10px;
}

.receipt-meta {
    background: var(--bg-slate);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: left;
    font-size: 0.9rem;
}

.barcode-box {
    background: var(--bg-slate);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.barcode-icon {
    font-size: 3.2rem;
    color: var(--navy-primary);
}

/* Lightbox Card */
.lightbox-card {
    max-width: 850px;
    background: transparent;
    box-shadow: none;
    position: relative;
    max-height: 95vh;
}

.lightbox-card img {
    max-height: 70vh;
    border-radius: var(--radius-md);
    margin: 0 auto;
    object-fit: contain;
}

.lightbox-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2.5rem;
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .nav-menu { gap: 24px; }
    .hero-layout { gap: 40px; }
    .pastor-layout { gap: 40px; }
    .schedules-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .events-grid { grid-template-columns: 1fr 1fr; }
    .featured-event { grid-column: span 2; }
}

@media (max-width: 992px) {
    .section-padding { padding: 75px 0; }
    
    .hero-layout,
    .pastor-layout,
    .location-box,
    .dept-content-layout {
        grid-template-columns: 1fr;
    }

    .pastor-img-frame img { height: 380px; }

    .schedules-grid,
    .sermons-grid,
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-container { grid-template-columns: repeat(3, 1fr); }
    
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .footer-col.brand-col { grid-column: span 3; }
    
    .dept-announcements {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .top-announcement-bar { padding: 8px 0; }
    .announcement-text { font-size: 0.75rem; text-align: center; width: 100%; }
    .bar-actions { display: none; }
    
    .navbar { padding: 12px 0; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        align-items: flex-start;
        border-bottom: 1px solid var(--border-gold);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active { display: flex; }
    .menu-toggle-btn { display: block; }
    
    .nav-item { font-size: 1.05rem; width: 100%; justify-content: space-between; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        width: 100%;
        margin-top: 10px;
    }
    
    .header-buttons .btn-header { display: none; }

    .hero-section { padding: 60px 0; min-height: auto; }
    .hero-heading { font-size: 2.1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }

    .hero-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        text-align: center;
    }

    .hero-card-widget { padding: 22px; }

    .schedules-grid,
    .sermons-grid,
    .events-grid,
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-event { grid-column: span 1; }

    .location-box { padding: 28px 20px; }

    .giving-banner {
        flex-direction: column;
        text-align: center;
        padding: 35px 20px;
    }

    .banner-features { justify-content: center; }
    .giving-banner-action { width: 100%; }
    .giving-banner-action .btn { width: 100%; }

    .audio-widget-card { padding: 20px 16px; }
    .audio-player-core { padding: 18px 14px; }
    
    .now-playing { flex-direction: row; gap: 14px; }
    .audio-icon-box { width: 50px; height: 50px; font-size: 1.5rem; }

    .gallery-container { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-tile { height: 160px; }
    .tile-caption { opacity: 1; padding: 12px; }
    .tile-caption h4 { font-size: 0.85rem; }

    .devotional-card { padding: 24px 18px; }
    .newsletter-card { padding: 30px 18px; }
    .newsletter-form-box { flex-direction: column; }
    .newsletter-form-box .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-col.brand-col { grid-column: span 1; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 1.15rem; }
    .brand-tagline { font-size: 0.6rem; }
    
    .hero-heading { font-size: 1.85rem; }
    .sub-title { font-size: 0.78rem; }
    
    .hero-metrics { grid-template-columns: 1fr 1fr 1fr; }
    .metric-value { font-size: 1.6rem; }
    .metric-label { font-size: 0.72rem; }

    .category-radio-group .cat-radio { flex: 1 1 45%; }
    .currency-row { flex-direction: column; }
    .preset-buttons { width: 100%; justify-content: space-between; }
    
    .gallery-container { grid-template-columns: 1fr; }
    .gallery-tile { height: 200px; }
}