/* ==========================================================================
   CSS VARIABLES - Custom Color Themes & Tokens
   ========================================================================== */
:root {
    --primary-red: #A30000;
    --gold: #D4AF37;
    --yellow: #FFD700;
    --black: #111111;
    --dark-grey: #222222;
    --white: #FFFFFF;
    --off-white: #F4F4F6;
    --luxury-cream: #FAF8F5;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

section[id],
.values-section,
.overseer-section,
.faith-section,
.future-section {
    scroll-margin-top: 110px;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--black);
    background: radial-gradient(circle at 50% 0%, var(--white) 0%, var(--luxury-cream) 100%);
    background-attachment: fixed;
    padding-top: 95px;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
}

header,
.navbar {
    width: 100%;
    box-sizing: border-box;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--black);
    text-transform: uppercase;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--gold);
    margin: 10px auto 0 auto;
}

.gold-text {
    color: var(--gold);
}

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

.btn-premium {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--gold) 0%, #b89324 100%);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--yellow) 0%, var(--gold) 100%);
}

.btn-secondary-dark {
    display: inline-block;
    padding: 13px 30px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-secondary-dark:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    background-color: var(--black);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#top-page {
    scroll-margin-top: 0px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    color: var(--gold);
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: var(--yellow);
}

.navbar-logo {
    height: 65px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

@media (min-width: 769px) and (max-width: 1024px) {
    body { padding-top: 50px !important; }
    html { scroll-padding-top: 80px; }
    .nav-container { padding: 10px 0; }
    .navbar-logo { height: 45px; }
    .logo-text { font-size: 1.5rem; }
    .nav-links li { margin-left: 12px; }
    .nav-links a { font-size: 0.78rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .overseer-section .overseer-text h2 { text-align: center; }
    .overseer-section .overseer-text h2::after { margin: 10px auto 0 auto; }
}

/* ==========================================================================
   MOBILE NAVIGATION OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
    html { scroll-padding-top: 100px !important; }
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    body { padding-top: 100px !important; }
    .nav-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 12px 8px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 6px;
    }
    .logo {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: auto !important;
    }
    .navbar-logo {
        height: 34px !important;
        width: auto !important;
        margin: 0 !important;
    }
    .logo-text {
        font-size: 1.7rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        line-height: 1.0 !important;
        margin: 0 !important;
    }
    .nav-links {
        display: grid !important;
        grid-template-columns: repeat(3, auto) !important;
        justify-content: center !important;
        column-gap: 16px !important;
        row-gap: 5px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    .nav-links li {
        margin-left: 0 !important;
        text-align: center !important;
        width: auto !important;
    }
    .nav-links a {
        display: block !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        padding: 2px 0 !important;
        width: auto !important;
    }
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(17, 17, 17, 0.85), rgba(163, 0, 0, 0.45)), url('hero-bg.jpg') no-repeat center center/cover;
    background-color: var(--black);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

.hero.secondary-hero {
    min-height: 55vh;
    padding: 60px 20px; /* Changed from '120px 20px 60px 20px' to equal top and bottom padding */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.tagline {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.vision-mission-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.vm-box {
    background-color: rgba(17, 17, 17, 0.9);
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--primary-red);
    padding: 35px;
    border-radius: 8px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.vm-box h3 {
    color: var(--yellow);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.scripture {
    display: block;
    margin-top: 15px;
    font-style: italic;
    color: var(--gold);
    font-weight: bold;
}

/* ==========================================================================
   WORD OF THE YEAR THEME BANNER
   ========================================================================== */
.word-year-banner {
    background: linear-gradient(135deg, var(--black) 0%, var(--primary-red) 100%);
    color: var(--white);
    padding: 50px 30px;
    text-align: center;
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.word-year-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 700;
}

.word-year-declaration {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.word-year-verse {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.8;
    font-style: italic;
    color: #f0f0f0;
    border-left: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
    padding: 0 20px;
}

.word-year-reference {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--yellow);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background-color: transparent;
}

.about-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: justify;
}

.about-img-placeholder {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background-color: var(--off-white);
    border: 2px dashed var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    color: #888;
}

/* ==========================================================================
   CORE VALUES SECTION
   ========================================================================== */
.values-section {
    background: linear-gradient(rgba(244, 244, 246, 0.65), rgba(250, 248, 245, 0.85));
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.values-grid,
.gateway-grid,
.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.value-card,
.gateway-card,
.connect-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: transform 0.3s;
    border-left: 3px solid var(--primary-red);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gateway-card,
.connect-card {
    border-left: none;
    border-bottom: 4px solid var(--gold);
}

.value-card:hover,
.gateway-card:hover,
.connect-card:hover {
    transform: translateY(-5px);
}

.value-icon,
.gateway-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.value-card h3,
.gateway-card h3,
.connect-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.value-card p,
.gateway-card p,
.connect-card p {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.gateway-card .btn-premium {
    margin: 15px auto 0 auto;
    display: inline-block;
}

/* ==========================================================================
   OVERSEER SECTION
   ========================================================================== */
.overseer-section {
    background-color: transparent;
}

.overseer-grid {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.overseer-img-container {
    flex: 1;
    min-width: 280px;
}

.overseer-photo {
    width: 100%;
    max-width: 360px;
    height: 450px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    border: 4px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

.overseer-text {
    flex: 2;
    min-width: 320px;
}

.overseer-text h2 {
    text-align: left;
}

.overseer-text h2::after {
    margin: 10px 0 0 0;
}

.overseer-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.closing {
    margin-top: 30px;
    border-left: 4px solid var(--gold);
    padding-left: 15px;
    font-style: italic;
}

/* ==========================================================================
   STATEMENT OF FAITH & MINISTRIES
   ========================================================================== */
.faith-section,
.ministries-page-section {
    background-color: transparent;
    padding: 20px 0 60px 0;
}

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

.faith-card,
.ministry-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ministry-card {
    border-top: 4px solid var(--gold);
}

.faith-card:hover,
.ministry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.faith-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    margin: 0 auto 10px auto;
    text-align: center;
}

.faith-card h3,
.ministry-card h3 {
    font-size: 1.25rem;
    color: var(--black);
    margin: 0 auto 12px auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
}

.ministry-card h3 {
    color: var(--primary-red);
}

.faith-card p,
.ministry-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.faith-scripture {
    display: block;
    margin: 12px auto 0 auto;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--primary-red);
    font-weight: 600;
    text-align: center;
}

.faith-footer-notes {
    margin-top: 50px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.note-box {
    flex: 1;
    min-width: 280px;
    background-color: var(--black);
    color: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.note-box h4 {
    color: var(--yellow);
    margin-bottom: 8px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #444;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   DYNAMIC CARD REVEAL FIX (Removes Black Canvas, Expands on Hover)
   ========================================================================== */
.theme-verse, 
.timeline-item .timeline-theme,
.timeline-item .theme-label,
.timeline-item [class*="theme"] {
    opacity: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item:hover .theme-verse,
.timeline-item:hover .timeline-theme,
.timeline-item:hover .theme-label,
.timeline-item:hover [class*="theme"] {
    opacity: 1 !important;
    max-height: 150px !important;
    margin-top: 10px !important;
    pointer-events: auto;
    transform: translateY(0);
}

.poster-preview-box {
    position: relative;
    width: 100%;
    height: 0 !important;
    margin-top: 0 !important;
    opacity: 0 !important;
    border: none !important;
    background-color: var(--dark-grey) !important;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item:hover .poster-preview-box {
    height: 220px !important;
    margin-top: 15px !important;
    opacity: 1 !important;
    background-color: var(--black) !important;
    border: 2px solid rgba(214, 175, 55, 0.4) !important;
    pointer-events: auto;
}

@media (max-height: 720px) {
    .timeline-item:hover .poster-preview-box {
        height: 130px !important;
    }
}

.poster-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; 
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.poster-preview-box * {
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.poster-click-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.9) 20%, transparent);
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
}

.poster-preview-box:hover .poster-click-hint {
    color: var(--white);
}

.poster-overlay, 
.timeline-item.main-event:hover .poster-overlay {
    display: none !important;
}

.timeline-item:hover .poster-preview-box * {
    opacity: 1;
    pointer-events: auto; 
}

.timeline-item:hover .poster-preview-box img {
    visibility: visible;
    transform: scale(1.03); 
}

.theme-verse,
.theme-verse * {
    color: var(--gold) !important;
    -webkit-text-fill-color: var(--gold) !important;
}

/* ==========================================================================
   LIGHTBOX RENDER FIX
   ========================================================================== */
#posterLightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important; 
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

#posterLightbox.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#lightboxImg {
    max-width: 90% !important;
    max-height: 85% !important;
    object-fit: contain !important;
    border: 3px solid var(--gold); 
    border-radius: 6px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute !important;
    top: 25px !important;
    right: 35px !important;
    color: var(--white) !important;
    font-size: 45px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 1000000 !important;
}

/* ==========================================================================
   HORIZONTAL EVENT CARDS & 3D CAROUSEL TRACK (Merged & Unified)
   ========================================================================== */
.future-section {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 30px 0 60px 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

#future-features h2 {
    color: var(--white);
}

.calendar-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.calendar-header-row {
    display: flex;
    justify-content: center; /* Changed from space-between */
    align-items: center;
    flex-direction: column;  /* Stacks the icon/title and subtitle vertically */
    text-align: center;      /* Ensures the text is centered */
    margin-bottom: 25px;
    gap: 15px;
}

.timeline-outer-wrapper {
    position: relative;
    width: 100%;
    padding: 0 50px;
    box-sizing: border-box;
    overflow: visible !important;
}

/* Update your existing global timeline-container rule to include these two lines */
.timeline-container {
    margin-top: 15px;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 580px;
    perspective: 1400px;
    transform-style: preserve-3d;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
    scrollbar-width: none;       /* Hides scrollbar in Firefox */
    -ms-overflow-style: none;    /* Hides scrollbar in IE and Edge */
}

/* Add this right below the .timeline-container rule to hide it in Chrome/Safari/Edge */
.timeline-container::-webkit-scrollbar {
    display: none;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 30;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slide-btn#slideLeft { left: 0; }
.slide-btn#slideRight { right: 0; }

.slide-btn:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-50%) scale(1.1);
}

.timeline-item {
    position: absolute;
    width: 420px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-top: 4px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.25s ease, box-shadow 0.25s ease, opacity 0.6s ease, z-index 0.6s;
    height: auto !important; 
}

.timeline-container {
    align-items: flex-start !important; 
}

.timeline-item:hover {
    background: var(--black) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    border-color: var(--gold);
    transform: translateY(-8px);
}

.timeline-item:hover .timeline-content h4,
.timeline-item:hover .timeline-content p,
.timeline-item:hover .timeline-theme,
.timeline-item:hover .theme-label {
    color: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
}

.timeline-item:hover .theme-verse,
.timeline-item:hover .theme-verse * {
    color: var(--gold) !important;
    -webkit-text-fill-color: var(--gold) !important;
}

.timeline-item:hover .theme-label { color: var(--yellow) !important; }
.timeline-item:hover .timeline-badge { color: #111111 !important; }

/* Event Modifiers */
.timeline-item.past-event { border-top-color: #999999; opacity: 0.65; }
.timeline-item.past-event:hover { opacity: 1; }
.timeline-item.special-event { border-top-color: var(--primary-red); background: #fffcfc; }
.timeline-item.special-event:hover { background: var(--black); }

.timeline-item.main-event {
    border-top-color: var(--gold);
    background: linear-gradient(135deg, #fdfaf2 0%, var(--white) 100%) !important;
    border: 1px solid rgba(214, 175, 55, 0.6);
    border-top: 4px solid var(--gold);
}
.timeline-item.main-event:hover {
    background: var(--black) !important;
    border-color: var(--gold);
}

.timeline-date {
    background: var(--black);
    color: var(--white);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
    padding: 14px 22px;
    box-sizing: border-box;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-date {
    background: #1a1a1a !important;
    border-bottom: 2px solid var(--gold);
}

.timeline-item.past-event .timeline-date { background: #555555; }
.timeline-item.special-event .timeline-date { background: var(--primary-red); }
.timeline-item.main-event .timeline-date { background: linear-gradient(to right, var(--primary-red), #7a0000); }

.date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    font-weight: 700;
}
.timeline-item.special-event .date-month,
.timeline-item.main-event .date-month { color: var(--yellow); }
.timeline-item.main-event .timeline-date .date-month { color: var(--white); }

.date-days {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--white);
    margin: 0;
}

.timeline-content {
    padding: 24px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.timeline-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.35rem;
    color: var(--black);
    transition: var(--transition-smooth);
    line-height: 1.3;
}
.timeline-item.main-event .timeline-content h4 { font-weight: 800; }

.timeline-theme {
    margin: 0;
    font-size: 0.95rem;
    color: #444444;
    font-style: italic;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.theme-label {
    font-weight: bold;
    color: var(--primary-red);
    font-style: normal;
    transition: var(--transition-smooth);
}
.timeline-item.main-event .theme-label { color: var(--gold); }
.timeline-item.past-event .theme-label { color: #666666; }

.timeline-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}
.badge-upcoming { background: #eef9ee; color: #2e7d32; }
.badge-special { background: #fff0f0; color: #c62828; }
.badge-past { background: #eeeeee; color: #616161; }
.badge-main {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 2px 6px rgba(214, 175, 55, 0.35);
}

.main-event-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE OVERRIDES (Merged 3D Swiper Fixes)
   ========================================================================== */
@media (max-width: 768px) {
    #future-features .container,
    .calendar-wrapper,
    .future-box {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .calendar-header-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .timeline-outer-wrapper {
        width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .timeline-container {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 15px 10px !important;
        gap: 20px !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        perspective: none !important;
        transform-style: flat !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none;
    }
    
    .timeline-container::-webkit-scrollbar {
        display: none;
    }

    .timeline-item {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex: 0 0 290px !important;
        width: 290px !important;
        min-width: 290px !important;
        min-height: 420px !important;
        box-sizing: border-box !important;
        scroll-snap-align: center !important;
    }

    .slide-btn,
    #slideLeft,
    #slideRight {
        display: none !important;
    }

    .timeline-date {
        width: 100%;
        min-width: auto;
        flex-direction: row;
        gap: 8px;
        padding: 10px;
        border-right: none;
    }
    .date-days { margin-top: 0; }
    .timeline-content { padding: 15px; }
}

@media (max-width: 992px) {
    .timeline-container {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .timeline-container > .scroll-reveal,
    .timeline-container > .timeline-item {
        flex: 0 0 290px !important;
        width: 290px !important;
        scroll-snap-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .timeline-container > .scroll-reveal,
    .timeline-container > .timeline-item {
        flex: 0 0 340px !important;
        width: 340px !important;
    }
    .timeline-container {
        padding: 20px calc(50% - 170px) 40px calc(50% - 170px);
        gap: 20px;
    }
}

@media (max-height: 720px) {
    .timeline-content {
        padding: 14px 18px; 
    }
    .timeline-content h4 {
        font-size: 1.15rem; 
        margin-bottom: 6px;
    }
    .main-event-tag, .upcoming-tag {
        margin-bottom: 8px;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   VISIT & CONNECT SECTION
   ========================================================================== */
.connect-section {
    background-color: transparent;
    padding: 60px 0 20px 0;
}

.connect-card>i {
    margin-bottom: 20px;
    color: var(--primary-red);
}

.connect-card h3 {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--black);
}

.connect-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.connect-card a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.connect-card a:hover {
    color: var(--gold);
}

.branch-highlight {
    margin-top: 10px;
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid var(--gold);
}

/* ==========================================================================
   FOOTER SYSTEM
   ========================================================================== */
footer {
    background-color: var(--black);
    border-top: 4px solid var(--primary-red);
    color: var(--white);
    padding: 50px 0 0 0;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
}

.footer-info a i,
.footer-info a svg {
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition-smooth);
    margin-right: 5px;
    display: inline-block;
}

.footer-info a:hover i,
.footer-info a:hover svg {
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-social-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;
}

.footer-social-row a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--dark-grey);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.footer-social-row a i,
.footer-social-row a svg {
    margin-right: 0 !important;
    color: var(--white) !important;
    font-size: 1.2rem !important;
}

.footer-social-row a:hover {
    background-color: var(--gold);
    transform: translateY(-4px) scale(1.05);
}

.footer-social-row a:hover i,
.footer-social-row a:hover svg {
    color: var(--black) !important;
}

.footer-container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.footer-info {
    flex: 2;
    min-width: 300px;
}

.footer-info h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-info p {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-info p strong {
    color: var(--white);
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    color: var(--yellow);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

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

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

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.social-tray {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.social-tray a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--dark-grey);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.social-tray a i {
    color: inherit;
    font-size: 1.2rem;
}

.social-tray a svg {
    font-size: 1.2rem;
}

.social-tray a:hover {
    background-color: var(--gold);
    color: var(--black);
    transform: translateY(-3px) scale(1.08);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    font-size: 0.95rem;
    color: #888888;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   PREMIUM SMOOTH ANIMATIONS SYSTEM 
   ========================================================================== */
@keyframes pageEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: pageEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@view-transition {
    navigation: auto;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.values-grid>.scroll-reveal:nth-child(2),
.connect-grid>.scroll-reveal:nth-child(2),
.future-grid>.scroll-reveal:nth-child(2),
.faith-grid>.scroll-reveal:nth-child(2),
.ministries-grid>.scroll-reveal:nth-child(2),
.home-nav-grid>.scroll-reveal:nth-child(2),
.conference-tracks>.scroll-reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.values-grid>.scroll-reveal:nth-child(3),
.connect-grid>.scroll-reveal:nth-child(3),
.future-grid>.scroll-reveal:nth-child(3),
.faith-grid>.scroll-reveal:nth-child(3),
.ministries-grid>.scroll-reveal:nth-child(3),
.home-nav-grid>.scroll-reveal:nth-child(3),
.conference-tracks>.scroll-reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.values-grid>.scroll-reveal:nth-child(4),
.connect-grid>.scroll-reveal:nth-child(4),
.future-grid>.scroll-reveal:nth-child(4),
.home-nav-grid>.scroll-reveal:nth-child(4),
.conference-tracks>.scroll-reveal:nth-child(4) {
    transition-delay: 0.24s;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.3rem; }
    .word-year-declaration { font-size: 2rem; }
    .overseer-text h2 { text-align: center; }
    .overseer-text h2::after { margin: 10px auto 0 auto; }
    .hero.secondary-hero {
        min-height: 30vh;
        padding: 60px 20px;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* Center the calendar header text and icon on mobile */
@media (max-width: 992px) {
    .calendar-header-row,
    .calendar-header-row > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Targets the heading with the icon */
    .calendar-header-row h1,
    .calendar-header-row h2,
    .calendar-header-row h3,
    .calendar-header-row h4 {
        display: flex !important;
        flex-direction: column !important; /* Stacks the icon above the text for perfect centering */
        align-items: center !important;
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Fixes the icon spacing so it floats nicely above the text */
    .calendar-header-row i,
    .calendar-header-row svg {
        margin-right: 0 !important;
        margin-bottom: 12px !important;
        display: block !important;
    }

    /* Centers the 'Leading You To Your Inheritance' paragraph */
    .calendar-header-row p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
}

