/* ==========================================================================
   1. GLOBAL RESETS & CSS VARIABLES & DARK MODE
   ========================================================================== */
:root {
    /* Color Palette (Light Mode Defaults) */
    --primary-blue: #1e3a8a;      /* Deep, trustworthy blue anchor */
    --accent-blue: #2563eb;       /* Vibrant blue for links/actions */
    --text-main: #1f2937;         /* Charcoal dark for crisp text readability */
    --text-muted: #4b5563;        /* Muted slate for body descriptions */
    --bg-light: #f8fafc;          /* Off-white background for grid sections */
    --bg-white: #ffffff;          /* Pure white for card components */
    --bg-body: #f7f6f2;           /* Soft eggshell background tone */
    --card-border: #e2e8f0;       /* Card border default */
    
    /* Ministry Color Coding */
    --color-men: #1e3a8a;       /* Deep Blue (matches primary-blue) */
    --color-women: #ec4899;     /* Vibrant Pink */
    --color-outreach: #059669; /* Emerald Green */
    --color-admin: #64748b;     /* Slate Gray */

    /* Layout & Utility Variables */
    --max-width: 1200px;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-lg: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Overrides */
body[data-theme="dark"] {
    --primary-blue: #60a5fa;
    --accent-blue: #38bdf8;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --bg-body: #090d16;
    --card-border: #334155;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Combined Category Modifiers */
.event-men { border-top: 5px solid var(--color-men) !important; background-color: #eff6ff !important; }
.event-women { border-top: 5px solid var(--color-women) !important; background-color: #fdf2f8 !important; }
.event-outreach { border-top: 5px solid var(--color-outreach) !important; background-color: #ecfdf5 !important; }
.event-admin { border-top: 5px solid var(--color-admin) !important; background-color: #f8fafc !important; }

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body); /* Uses variable for dynamic switching */
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Update cards to use variables so they switch dynamically */
.media-panel,
.feature-card,
.giving-card,
.ministry-card,
.dashboard-card,
.event-card {
    background-color: var(--bg-white) !important;
    border-color: var(--card-border) !important;
    color: var(--text-main) !important;
}

/* ==========================================================================
   2. GLOBAL NAVIGATION HEADER
   ========================================================================== */
.global-header-wrapper {
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--card-border);
}

.global-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    background-color: transparent; /* Allows full-width wrapper background to show */
}

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

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

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

/* High-visibility Give Button CTA */
.nav-links .btn-nav-give {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.nav-links .btn-nav-give:hover {
    background-color: var(--accent-blue);
    color: var(--bg-white);
    transform: translateY(-1px);
}

/* ==========================================================================
   MODERN SLIDER THEME TOGGLE
   ========================================================================== */
.btn-theme-toggle {
    background-color: var(--bg-light);
    border: 1px solid var(--card-border);
    width: 52px;
    height: 28px;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 3px;
    transition: var(--transition-smooth);
    vertical-align: middle;
}

.btn-theme-toggle:hover {
    border-color: var(--accent-blue);
}

/* The sliding circle container */
.btn-theme-toggle .slider-thumb {
    width: 20px;
    height: 20px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    transform: translateX(0);
}

/* When dark mode is active, slide the thumb to the right and change color */
body[data-theme="dark"] .btn-theme-toggle .slider-thumb {
    transform: translateX(24px);
    background-color: var(--accent-blue);
}

/* Icon adjustments inside the thumb */
.btn-theme-toggle i {
    line-height: 1;
}

/* ==========================================================================
   3. HERO VIEWPORT LAYER WITH TEXT OVERLAY
   ========================================================================== */
.hero-viewport {
    background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.7)), 
                url('../images/church-hero-placeholder.jpg') no-repeat center center/cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    padding: 40px 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-backdrop {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../assets/images/events/singles_ministry_backdrop.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.btn-primary {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--primary-blue);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
#beliefs {
    scroll-margin-top: 120px;
}

/* Modern Logistics Cards */
.logistics-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 30px auto;
}

.logistics-detail-card {
    background-color: var(--bg-white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.logistics-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-blue);
}

.logistics-detail-card h4 {
    color: var(--primary-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.logistics-detail-card p {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

/* ==========================================================================
   HIGH-ENERGY BENTO POWER GRID
   ========================================================================== */
.singles-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: 40px auto 60px auto;
}

.bento-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ambient color background glows */
.bento-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(40px);
    transition: opacity 0.4s ease;
}

.bento-time .bento-glow { background: #38bdf8; }
.bento-loc .bento-glow { background: #ec4899; }
.bento-connect .bento-glow { background: #10b981; }

/* Hover States - Aggressive Lift & Glow */
.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 40px -15px rgba(56, 189, 248, 0.25);
}

.bento-card:hover .bento-glow {
    opacity: 0.35;
}

/* Floating Icon Badges */
.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.bento-time .bento-icon { color: #38bdf8; }
.bento-loc .bento-icon { color: #ec4899; }
.bento-connect .bento-icon { color: #10b981; }

/* Typography & Content */
.bento-content {
    display: flex;
    flex-direction: column;
}

.bento-pill {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.bento-time .bento-pill { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.bento-loc .bento-pill { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.bento-connect .bento-pill { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.bento-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.bento-content p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

/* High-contrast Action Button Link */
.bento-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    width: fit-content;
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.bento-action-btn:hover {
    background: #10b981;
    color: #ffffff;
    gap: 15px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   6. GLOBAL FOOTER
   ========================================================================== */
.global-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 20px 20px 12px 20px; /* Slim, compact padding */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: var(--max-width);
    margin: 0 auto 15px auto;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        text-align: left;
    }
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 0.95rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.footer-col a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Bottom Bar: Aligns Copyright and Social Quicklinks Inline */
.footer-bottom {
    border-top: 1px solid #334155;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 10px;
    display: flex;
    justify-content: center; /* Centered on mobile */
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        justify-content: space-between; /* Space-between on desktop */
    }
}

/* Inline Quick Link Icons Container */
.footer-social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social-links a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

/* ==========================================================================
   7. RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
    .global-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .logistics-bar {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   8. DONATE PAGE SPECIFIC LAYOUTS
   ========================================================================== */
.donate-container {
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 20px;
}

.donate-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.donate-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    letter-spacing: -0.025em;
}

.donate-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

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

.giving-card {
    background-color: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

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

.giving-card.general-fund {
    border-top: 5px solid #3b82f6;
}

.giving-card.fellowship-hall {
    border-top: 5px solid #d97706;
    background: linear-gradient(to bottom, #fffdfa 0%, var(--bg-white) 100%);
}

.giving-card.highlighted {
    border-top: 5px solid #e11d48;
    background: linear-gradient(to bottom, #fff5f5 0%, var(--bg-white) 100%);
}

.giving-card.mortgage-fund {
    border-top: 5px solid #0891b2;
}

.giving-card.sacrificial-giving {
    border-top: 5px solid #8b5cf6;
    background: linear-gradient(to bottom, #faf5ff 0%, var(--bg-white) 100%);
}

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

.giving-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.benevolence-list {
    list-style-position: inside;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.btn-give {
    display: block;
    text-align: center;
    background-color: var(--primary-blue);
    color: var(--bg-white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-smooth);
    margin-top: 15px;
}

.btn-give:hover {
    background-color: var(--accent-blue);
}

.read-more-details {
    margin-top: 15px;
}

.read-more-toggle {
    color: var(--primary-blue, #1e3a8a);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.read-more-toggle::-webkit-details-marker {
    display: none;
}

.read-more-toggle:hover {
    color: var(--accent-blue, #3b82f6);
    text-decoration: underline;
}

.read-more-details[open] .read-more-toggle {
    margin-bottom: 10px;
}
.read-more-details[open] .read-more-toggle::after {
    content: " Show less";
    font-weight: normal;
    font-size: 0.9em;
    color: var(--text-muted);
}

.guest-btn {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.guest-btn:hover {
    background-color: #5a6268;
}

.nav-btn {
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: opacity 0.2s;
}

.btn-nav-guest {
    background: #e2e8f0;
    color: #475569;
}

.btn-nav-give {
    background: #1e3a8a;
    color: white;
}

.btn-nav-sign-in {
    background: #38bdf8;
    color: #0f172a;
}

.nav-btn:hover {
    opacity: 0.9;
}

.mail-banner {
    background-color: var(--bg-light);
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mail-banner h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.mail-banner p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto 25px auto;
}

.address-box {
    background-color: var(--bg-white);
    border: 1px solid #e2e8f0;
    display: inline-block;
    padding: 20px 40px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
    box-shadow: var(--card-shadow);
}

/* ==========================================================================
   9. MINISTRIES DIRECTORY GRID LAYOUTS
   ========================================================================== */
.ministries-container {
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 20px;
}

.ministries-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

.ministries-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    letter-spacing: -0.025em;
}

.ministries-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.ministry-card {
    background-color: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}
.ministry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: #cbd5e1;
}

.ministry-icon {
    font-size: 2.2rem;
    display: inline-block;
    background-color: var(--bg-light);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.ministry-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.ministry-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0px;
}

.btn-ministry-contact {
    display: block;
    text-align: center;
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-ministry-contact:hover {
    background-color: var(--primary-blue);
    color: var(--bg-white);
}

.rolodex-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

.rolodex-container .ministry-card {
    min-width: 250px;
    flex: 0 0 auto;
}

#member-directory {
    text-align: center;
    margin-bottom: 40px;
}

#member-directory h2 {
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.directory-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ==========================================================================
   HORIZONTAL 6-CARD ROW LAYOUT & HOVER ZOOM EFFECT
   ========================================================================== */
.events-flex-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: space-between;
    align-items: stretch;
    overflow-x: auto;
    padding: 15px 5px; /* Added slightly more top/bottom padding to give room for the larger hover lift */
    scroll-behavior: smooth;
}

.events-flex-row::-webkit-scrollbar {
    height: 6px;
}

.events-flex-row::-webkit-scrollbar-thumb {
    background: var(--accent-blue, #38bdf8);
    border-radius: 10px;
}

.events-flex-row .ministry-card {
    flex: 1 1 0px;
    min-width: 170px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, z-index 0.3s;
    position: relative;
    z-index: 1;
}

.events-flex-row .ministry-card:hover {
    transform: translateY(-12px) scale(1.12); /* Lifted higher and scaled up more noticeably */
    z-index: 10;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.4); /* Stronger shadow and vibrant blue ambient glow */
}

/* ==========================================================================
   10. MEDIA & RESOURCES HUB LAYOUTS
   ========================================================================== */

.media-split-row,
.dashboard-grid {
    align-items: start !important;
}

.media-panel,
.dashboard-card,
.event-card {
    height: fit-content !important;
    align-self: flex-start !important;
    flex: 0 0 auto !important;
}

.media-container {
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 20px;
}

.media-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.media-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.media-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.media-split-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.media-panel {
    background-color: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.panel-badge, .panel-badge-alt {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.panel-badge {
    background-color: #e0f2fe;
    color: #0369a1;
}

.panel-badge-alt {
    background-color: #fef2f2;
    color: #b91c1c;
}

.media-panel h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.media-panel p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.media-placeholder-box {
    background-color: var(--bg-light);
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 15px 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.media-placeholder-box.alt-bg {
    background-color: #fff8f8;
    border-color: #fca5a5;
}

.btn-media-action {
    display: inline-block;
    text-align: center;
    background-color: var(--primary-blue);
    color: var(--bg-white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.btn-media-action:hover {
    background-color: #1e293b;
}

.reading-plan-banner {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: var(--card-shadow);
}

.reading-plan-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 280px;
}

.plan-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.reading-plan-content h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.reading-plan-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-plan-download {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.15s ease;
}

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

/* ==========================================================================
   11. ABOUT US & STAFF LAYOUTS
   ========================================================================== */
.about-container {
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 20px;
}

.about-section {
    padding: 40px 0;
}

.about-section h2, 
.about-section h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: -0.025em;
}

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

.section-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 40px 0;
}

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

.logistics-detail-card {
    background-color: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--card-shadow);
}

.logistics-detail-card h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.logistics-detail-card p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mission-statement {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 25px;
    font-style: italic;
}

.beliefs-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
}

.beliefs-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.belief-item h5 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.belief-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.staff-profile-card {
    background-color: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-profile-card .staff-photo {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    max-width: 150px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    margin-bottom: 20px !important;
    border: 3px solid var(--bg-light) !important;
    display: block !important;
}

.staff-profile-card h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.staff-role {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

/* ==========================================================================
   12. ANNOUNCEMENT SYSTEM UTILITIES (INFINITE NO-GAP LOOPS)
   ========================================================================== */
.ticker-wrap {
    width: 100%;
    background-color: #0f172a;
    padding: 14px 0;
    overflow: hidden;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.15);
    display: flex;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: marqueeContinuous 160s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #f8fafc;
    letter-spacing: 0.025em;
}

.ticker-item strong {
    color: #38bdf8;
}

@keyframes marqueeContinuous {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.slideshow-viewport {
    width: 100%;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 40px;
}
.slideshow-viewport::-webkit-scrollbar {
    height: 6px;
}
.slideshow-viewport::-webkit-scrollbar-thumb {
    background: var(--accent-blue, #38bdf8);
    border-radius: 10px;
}
.graphic-slide {
    flex: 0 0 100%;
    snap-align: start;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}
.slide-image-frame {
    flex: 1.2;
    min-width: 300px;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.slide-text-frame {
    flex: 1;
    min-width: 280px;
    padding: 40px;
}

.suttons-support-image {
    margin-top: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.suttons-support-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    transition: transform .35s ease, box-shadow .35s ease;
}

.suttons-support-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,.30);
}

.mission-gallery-section {
    width:100%;
    padding:40px 20px;
}

.gallery-wrapper {
    position:relative;
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
}

.mission-gallery-scroll {
    display:flex;
    flex-wrap:nowrap;
    gap:20px;
    overflow-x:hidden;
    scroll-behavior:smooth;
    width:100%;
    padding:35px 10px;
}

.mission-gallery-scroll img {
    flex:0 0 260px;
    width:260px;
    height:190px;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,.18);
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        filter .35s ease;
    cursor:pointer;
}

.mission-gallery-scroll img:hover {
    transform:scale(1.08)
    translateY(-8px);
    box-shadow:0 18px 35px rgba(0,0,0,.35);
    filter: brightness(1.08)
    contrast(1.05);
    z-index:10;
}

.gallery-arrow {
    position:absolute;
    z-index:20;
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    background:var(--primary-blue);
    color:white;
    font-size:24px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gallery-arrow.left {
    left:-20px;
}

.gallery-arrow.right {
    right:-20px;
}

.gallery-arrow:hover {
    background:var(--accent-blue);
}

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

.video-card-sync {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.video-card-sync:hover {
    transform: translateY(-4px);
}

.calendar-frame {
    background: var(--bg-white);
    padding: 15px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
}

.calendar-frame iframe {
    border-radius: 10px;
}

/* ==========================
   Dashboard Grid & Cards
   ========================== */
.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

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

.dashboard-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.webmaster-panel {
    background: linear-gradient(to bottom right, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
}

/* ==========================
   Form Controls
   ========================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

/* ==========================
   Buttons & Actions
   ========================== */
.btn-primary {
    background-color: #0284c7;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}
.btn-primary:hover { 
    background-color: #0369a1; 
}

/* ==========================
   Webmaster Control Panel Actions
   ========================== */
.webmaster-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn-webmaster, 
.btn-webmaster-sub, 
.btn-secondary {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    color: white;
}

.btn-webmaster {
    background-color: #d97706;
}
.btn-webmaster:hover { 
    background-color: #b45309; 
}

.btn-webmaster-sub {
    background-color: #0284c7;
}
.btn-webmaster-sub:hover {
    background-color: #0369a1;
}

.btn-secondary {
    background-color: #0f172a;
}
.btn-secondary:hover { 
    background-color: #1e293b; 
}

/* ==========================================================================

   EVENT CARD SYSTEM & MODIFIERS

   ========================================================================== */

 .event-card {
    background-color: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    
} 

.event-card img {
    max-width: 280px;      /* Set your desired size limit */
    width: 100%;           /* Keeps it responsive on small mobile screens */
    height: auto;
    display: block;
    margin: 20px auto 0;  /* Centers the image and adds space at the top */
    border-radius: var(--radius-lg); /* Optional: rounds image corners slightly */
}

.event-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: var(--primary-blue);
}

.event-details {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.event-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 10px;
}

.event-badge.upcoming {
    background: #f0fdf4;
    color: #15803d;
}

.event-badge.archive {
    background: #f1f5f9;
    color: #475569;
}

.event-action-btn {
    margin-top: auto;
    text-align: center;
    display: block;
    text-decoration: none;
}

.event-archive {
    opacity: 0.95;
}

.event-concluded-banner {
    margin-top: auto;
    padding: 10px 16px;       /* Balanced padding so it's not too tall */
    background: #e2e8f0;
    text-align: center;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    box-sizing: border-box;
    width: 100%;             /* Ensures predictable sizing inside the flex body */
}

.hero-viewport h1,
.hero-viewport p,
.hero-content h1,
.hero-content p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
