@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Serif+Ethiopic:wght@400;700&display=swap');

/* Top Info Bar */
.top-bar {
    background: transparent;
    /* Initially transparent */
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle divider */
    position: fixed;
    /* Fixed to stay on top */
    top: 0;
    width: 100%;
    z-index: 1002;
    transition: transform 0.3s ease, background 0.3s;
}

.top-bar i {
    color: rgba(255, 255, 255, 0.9);
    /* Subtly off-white */
    margin-right: 5px;
}

.top-bar.hidden {
    transform: translateY(-100%);
    /* Slide away on scroll */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    /* Full Height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    /* Crop video */
    margin-top: 0;
    /* Fallback Image if video fails */
    background: url('../images/church-bg.jpg') center/cover no-repeat;
    background-color: #1a1a1a;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Keep behind content, over fallback */
    overflow: hidden;
}

.hero-video-wrapper iframe {
    width: 100%;
    height: 100%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* Premium Gradient Overlay: Darker at bottom for text readability */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Bring text to front */
    max-width: 900px;
    width: 100%;
    /* Ensure it takes width to allow centering */
    margin: 0 auto;
    /* Force horizontal centering */
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    /* Smoother entrance */
    padding-top: 80px;
    /* More breathing room */
}

.hero h1 {
    font-size: 3.8rem;
    /* Slightly larger */
    margin-bottom: 25px;
    color: #ffffff;
    /* Refined Shadow: Softer spread, less harsh */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: none;
    -webkit-text-fill-color: initial;
    line-height: 1.3;
    font-weight: 700;
    font-style: normal !important;
    /* User requested no italic */
    font-family: 'Inter', sans-serif;
    /* Ensuring non-serif/non-italic look */
}

.hero p {
    font-size: 1.4rem;
    opacity: 1;
    margin-bottom: 35px;
    color: #f8f8f8;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
}

/* Specific Style for the Hero Membership Button (assuming it uses btn-white or similar, we override or target it) */
.hero .btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    /* Green text */
    font-weight: bold;
    border: 1px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.3s ease;
}

.hero .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: white;
    color: var(--color-gold);
    /* Gold on hover */
}

/* Sections */
.section {
    padding: 80px 0;
    background-color: #fffbf5;
    /* Warm background to contrast with header */
}

.section h1 {
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 700;
}

.section h1::after {
    background: #009A44;
    /* Green underline for sections */
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-socials {
    display: flex;
    gap: 15px;
}

.top-socials a {
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #222;
    /* Top bar dark subtle bg */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 1;
    /* Override opacity from parent if any */
}

/* Hover Effects - Brand Colors */
.top-socials a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Facebook Hover */
.top-socials a:has(.fa-facebook-f):hover,
.top-socials a:hover .fa-facebook-f {
    background: #1877F2;
}

/* YouTube Hover */
.top-socials a:has(.fa-youtube):hover,
.top-socials a:hover .fa-youtube {
    background: #FF0000;
}

/* Nav Button Highlight */
.nav-btn-highlight {
    border: 2px solid var(--color-gold);
    padding: 8px 20px !important;
    /* Force padding override if nav links have specific padding */
    border-radius: 25px;
    color: var(--color-gold) !important;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-highlight:hover,
.nav-btn-highlight.active {
    background: var(--color-gold);
    color: #000 !important;
}

/* Calendar Buttons - Dropdown */
/* Calendar Buttons - Dropdown */
.calendar-actions {
    display: flex;
    justify-content: center;
    /* ALIGN CENTER */
    margin-top: 20px;
    margin-bottom: 20px;
}

.rsvp-dropdown {
    position: relative;
    display: inline-block;
}

.rsvp-trigger {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-gold);
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.rsvp-trigger:hover {
    background: var(--color-gold);
    color: #000;
}

.rsvp-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border-radius: 4px;
    margin-top: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.rsvp-dropdown:hover .rsvp-menu,
.rsvp-dropdown.active .rsvp-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.rsvp-item {
    color: var(--color-text);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.rsvp-item:last-child {
    border-bottom: none;
}

.rsvp-item:hover {
    background-color: #f9f9f9;
    color: var(--color-gold);
    /* Highlight on hover */
}

/* End Dropdown */

/* Old styles kept for compatibility if needed */
.btn-calendar {
    /* flex: 1; - Remove flex to allow dropdown sizing */
    text-align: center;
    /* ... rest of properties irrelevant now but harmless */
}

.btn-calendar i {
    font-size: 1rem;
}

/* Time Display Block */
.event-time-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-left: 4px solid var(--color-gold);
    /* Branding accent */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.event-time-display .time-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
    background: #fdfdfd;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.event-time-display .time-text {
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    text-align: left;
    /* Ensure Left Align */
    font-size: 1.05rem;
    line-height: 1.3;
}

.event-time-display .time-text strong {
    color: black;
    font-weight: 700;
}

/* Remove inner icon styles */
.top-socials .fa-facebook-f,
.top-socials .fa-youtube {
    background: transparent;
    width: auto;
    height: auto;
    color: white;
}

@media (max-width: 900px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .top-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

:root {
    --color-gold: #D4AF37;
    --color-red: #8b0000;
    --color-green: #006400;
    --fusion-gradient: linear-gradient(135deg, #006400 0%, #D4AF37 50%, #8b0000 100%);

    --color-text: #2c2c2c;
    --color-bg: #fffbf5;
    --color-white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --font-heading: 'Noto Serif Ethiopic', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* TIBEB PATTERN STRIP */
.tibeb-strip {
    height: 8px;
    width: 100%;
    background: repeating-linear-gradient(90deg,
            var(--color-green) 0,
            var(--color-green) 20px,
            var(--color-gold) 20px,
            var(--color-gold) 40px,
            var(--color-red) 40px,
            var(--color-red) 60px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Header (Navbar) */
header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    /* Gradient overlay initially */
    position: fixed;
    top: 0;
    /* Start at top (top-bar overlays it via z-index or padding) */
    width: 100%;
    z-index: 1001;
    transition: all 0.4s ease;
    padding-top: 40px;
    /* Space for top-bar */
}

header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    /* Dark background on scroll */
    padding-top: 0;
    /* Removing top padding since top-bar hides */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

header.scrolled .nav-links a {
    color: #fff;
}

/* Ensure text is white on dark scrolled header */
.nav-links a {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold) !important;
}

/* --- LOGO STYLES (Ported from logo.css) --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Reduced gap from 15 to 10 for tighter fit */
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-am {
    font-family: 'Noto Serif Ethiopic', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    /* White for header contrast */
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.logo-en {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ensure logo image is responsive-friendly */
.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

header.scrolled .logo-img {
    height: 45px;
    /* Slightly smaller on scroll */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    /* Hidden on desktop */
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1002;
}

/* Universal Amharic Font Override */
html[lang="am"] body,
html[lang="am"] h1,
html[lang="am"] h2,
html[lang="am"] h3,
html[lang="am"] h4,
html[lang="am"] h5,
html[lang="am"] h6,
html[lang="am"] input,
html[lang="am"] textarea,
html[lang="am"] button,
html[lang="am"] select,
html[lang="am"] a,
html[lang="am"] span,
html[lang="am"] p,
html[lang="am"] li {
    font-family: 'Ebrima', 'Noto Sans Ethiopic', 'Abyssinica SIL', sans-serif !important;
}

/* 
   EXCEPTIONS: 
   force English elements to keep usage of Inter (font-body) 
   even when in Amharic mode, to preserve boldness/style.
*/
html[lang="am"] .logo-en,
html[lang="am"] .top-bar a,
html[lang="am"] .top-contact a {
    font-family: var(--font-body) !important;
}

/* Specific styling for Amharic Navigation Links 
   Target > li > a to avoid affecting nested elements like the language toggle 
*/
html[lang="am"] .nav-links>li>a {
    font-family: 'Ebrima', 'Noto Sans Ethiopic', sans-serif !important;
    font-weight: 700;
    font-size: 0.95rem;
    /* Adjusted to user request */
}

/* Mobile Navigation */
.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 1100;
}

@media (max-width: 991px) {
    .hamburger-menu {
        display: block;
        order: 3;
        /* Position right */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        /* Takes up 80% of width */
        max-width: 300px;
        height: 100vh;
        background: #111;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-links li {
        margin: 5px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: white;
    }

    /* Mobile Overlay Effect */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
    }
}

/* Mobile Responsive Nav */
@media (max-width: 900px) {


    .btn-donate {
        display: none;
        /* Hide donate button in header on mobile to save space, or move into menu */
    }

    /* Fix Hero Button inheriting header styles */
    .hero .btn-donate {
        display: inline-block !important;
        /* Force show */
        margin: 0 !important;
        /* Reset margin */
        width: auto;
    }

    /* Top Bar Mobile Stacking */
    .top-bar {
        position: relative;
        /* Restored */
        display: block !important;
        background: #000;
        z-index: 900 !important;
        /* LOWER than header */
    }

    .top-bar .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 5px 0;
    }

    .top-contact {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8rem;
    }

    /* Adjust Main Header */
    header {
        position: -webkit-sticky;
        /* Safari */
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        padding-top: 10px !important;
        /* background-color: #0d0d0d !important; */
        /* Removed to allow transparency */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 2000 !important;
        /* HIGHER than top-bar */
        transition: none !important;
        /* Prevent resize glitch on scroll */
    }

    /* Force Overlay on Mobile - Home Only */
    .home-page .hero {
        margin-top: -85px !important;
        /* Pull up under header */
        padding-top: 150px !important;
        /* Push content back down */
        z-index: 10;
        /* Lower than header */
        position: relative;
    }

    /* Inner Pages - Force Solid Background */
    body.inner-page header {
        background-color: #0d0d0d !important;
    }

    /* Global Mobile Clean Up - Fix Scroll/Overflow */
    /* Global Mobile Clean Up - Fix Scroll/Overflow */

    /* Global Mobile Clean Up - Fix Scroll/Overflow */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        /* Prevent horizontal scroll */
        overflow-y: auto !important;
        /* Force vertical scroll */
        height: auto !important;
        /* Allow body to grow */
        min-height: 100vh !important;
        /* Ensure minimal height */
    }

    /* Language Toggle Centering */
    .lang-toggle {
        display: flex;
        justify-content: center !important;
        align-items: center;
        gap: 15px;
        margin: 10px 0;
        width: 100%;
        order: initial;
        /* Default order in list */
    }

    .navbar {
        padding: 10px 15px;
        /* Add side padding for edge spacing */
        justify-content: space-between;
    }

    /* Logo Text Visible on Mobile */
    .logo-container {
        width: auto !important;
    }

    .logo-img {
        height: 40px;
        width: auto;
    }

    .hamburger-menu {
        display: block;
        margin-left: 20px;
        order: 3;
        /* Ensure it's on the right */
    }

    /* Improve Donate Button on Mobile */
    .btn-donate {
        display: inline-block;
        padding: 5px 10px;
        font-size: 0.8rem;
        margin-left: auto;
        order: 2;
    }

    /* Prevent Logo Text Collision */
    /* Prevent Logo Text Collision */
    .logo-text {
        width: auto;
        white-space: nowrap;
        font-size: 0.65em;
        /* Slightly smaller to fit better */
    }

    /* Home Welcome Text Mobile Resize */
    .hero h1 {
        font-size: 3.0rem !important;
    }

    /* Section Headings Mobile Resize */
    .section h1,
    .section-title {
        font-size: 1.5rem !important;
        /* Smaller than desktop */
    }

    /* Historic Year Mobile and Small Device Resize */
    .historic-year .year {
        font-size: 1.5rem !important;
    }
}

/* Menu Links */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
    position: relative;
}

/* Page Layout Fixes */
.inner-page {
    padding-top: 140px;
    /* Space for Fixed Header (TopBar + Navbar) */
    background-color: #f8f8f8;
}

.home-page {
    padding-top: 0;
    /* Hero takes top spot */
}

/* Header Styles Logic */
/* Default Header (Inner Pages) */
.inner-page header {
    background-color: #0d0d0d;
    /* Solid Black to match Homepage/Footer */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.home-page header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.home-page header.scrolled {
    background: rgba(26, 26, 26, 0.98);
}

/* Navigation Links */
.nav-links a {
    color: #ecf0f1;
    /* Light Grey/White */
    font-weight: 500;
}

.inner-page .nav-links a {
    color: #fff;
}

/* Ensure visibility on solid header */
.nav-links a:hover {
    color: #FFD100;
    /* Solid Gold Hover */
}

.nav-links a::after {
    background: #FFD100;
    /* Solid Gold Underline */
}

/* Buttons - SOLID COLORS */
.btn-donate {
    background: #009A44;
    /* Solid Green */
    color: white;
    /* removed !important to allow overrides */
    border: 2px solid #009A44;
    transition: all 0.3s;
    box-shadow: none;
    padding: 10px 25px;
    /* Ensure padding */
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-donate:hover {
    background: #007a36;
    /* Darker Green */
    border-color: #007a36;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Hero Button Variant */
.hero .btn-donate {
    background: white;
    color: #009A44 !important;
    /* Green Text */
    border-color: white;
}

.hero .btn-donate:hover {
    background: #f0f0f0;
    color: #007a36 !important;
}

/* Logo - Simplified */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 60px;
    /* Slightly larger */
    height: 60px;
    flex-shrink: 0;
    /* Prevent squishing */
    background: transparent;
    border: 2px solid #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 30px;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-am {
    color: #EF3340;
    /* Red */
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
}

.logo-en {
    color: #D4AF37;
    /* Gold */
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cards - Solid Borders */
.card:hover {
    border-top-color: #009A44;
    /* Green Top Border */
    border-image: none;
    /* Remove gradient border */
}

/* Section Headings */
.section h1::after {
    background: #EF3340;
    /* Solid Red Underline */
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    height: 200px;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    background: #e0e0e0;
    border-radius: 30px;
    padding: 4px;
    width: 90px;
    justify-content: space-between;
    align-items: center;
}

.lang-toggle a {
    width: 50%;
    text-align: center;
    border-radius: 20px;
    font-size: 12px;
    padding: 6px 0;
    font-weight: 700;
    color: #666;
}

.lang-toggle a.active {
    background: var(--color-white);
    color: var(--color-green);
    /* Active Text Green */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gold);
    /* Subtle Gold Border */
}

/* Footer */
/* Footer Redesign */
footer {
    background: #000000;
    /* Pitch black matches screen */
    color: #888;
    padding: 80px 0 40px;
    text-align: left;
    border-top: none;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* Custom widths */
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-brand {
    padding-right: 30px;
}

.footer-brand .logo-container {
    margin-bottom: 25px;
    justify-content: flex-start;
    /* Align left */
}

.footer-site-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.footer-contact-info p {
    color: #aaa;
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info p i {
    color: #D4AF37;
    width: 20px;
    text-align: center;
}

.footer-contact-info a {
    color: #aaa;
    transition: 0.3s;
}

.footer-contact-info a:hover {
    color: white;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #222;
    color: white;
    font-size: 1.1rem;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.fb:hover {
    background: #1877F2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-icon.yt:hover {
    background: #FF0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.footer-nav-col h3,
.footer-newsletter h3 {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-nav-col ul li {
    margin-bottom: 12px;
}

.footer-nav-col ul li a {
    color: #666;
    transition: 0.3s;
}

.footer-nav-col ul li a:hover {
    color: #D4AF37;
    /* Gold */
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    background: #222;
    border: 1px solid #333;
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    width: 100%;
    outline: none;
    transition: 0.3s;
}

.newsletter-form input:focus {
    border-color: #D4AF37;
}

.newsletter-form button {
    background: #e67e22;
    /* Orange as requested */
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}

.newsletter-form button:hover {
    background: #d35400;
    transform: rotate(-10deg);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: left;
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        padding-right: 0;
    }

    .logo-container {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* About / History Section Creative Styles */
.about-history-section {
    background: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Background Pattern/Texture Optional */
.about-history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#d4af37 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: #222;
    margin-bottom: 20px;
}

.tibeb-divider-small {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #009A44, #D4AF37, #EF3340);
    margin-bottom: 30px;
}

.about-text p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text .highlight-gold {
    color: #D4AF37;
    font-weight: 700;
}

.vision-text {
    font-weight: 600;
    color: #222 !important;
    border-left: 4px solid #D4AF37;
    padding-left: 20px;
    font-style: italic;
}

.btn-text-arrow {
    color: #D4AF37;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 20px;
    display: inline-block;
}

.about-visuals {
    position: relative;
    height: 100%;
}

.image-stack {
    position: relative;
    height: 500px;
    width: 100%;
}

.img-back {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 85%;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 20px 20px 0px rgba(212, 175, 55, 0.1);
    /* Gold shadow offset */
    z-index: 1;
}

.img-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: auto;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.historic-year {
    text-align: center;
    border: 2px solid #D4AF37;
    padding: 20px 40px;
    border-radius: 15px;
}

.historic-year .year {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #222;
    line-height: 1;
}

.historic-year .label {
    display: block;
    color: #D4AF37;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .image-stack {
        height: 400px;
        margin-top: 40px;
    }

    .img-back {
        width: 100%;
        height: 100%;
        right: auto;
        left: 0;
    }

    .img-front {
        display: flex !important;
        position: relative;
        width: 100%;
        bottom: auto;
        margin-top: -30px;
        /* Overlap slightly */
        left: 0;
    }

    /* Ensure logo text is hidden on mobile */
    .logo-text {
        display: none !important;
    }
}

/* Upcoming Events Section (Light Redesign) */
.upcoming-events-section.light-theme {
    background-color: #fffbf5;
    /* Match body bg */
    padding: 100px 0;
    color: #333;
}

/* Reusing for events.php */
.section.light-theme {
    background-color: #fffbf5;
    color: #333;
}

.ue-header-centered {
    text-align: center;
    margin-bottom: 60px;
}

.ue-subtitle {
    color: #D4AF37;
    /* Gold */
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-body);
    display: block;
}

.ue-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: #222;
    margin: 0;
    font-style: italic;
}

.ue-grid-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.ue-list-vertical {
    display: grid;
    /* Create a grid that fits up to 2 items roughly (500px each + gap), centered */
    grid-template-columns: repeat(auto-fit, minmax(400px, 550px));
    justify-content: center;
    /* Center the grid items if only 1 */
    gap: 50px;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
    /* Wider to fit 2 cards */
}

/* New Stacked Card Style */
.ue-card-stacked {
    background: #ffffff;
    border-radius: 40px;
    /* Very rounded options */
    overflow: hidden;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    padding-bottom: 20px;
}

.ue-card-stacked:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.ue-stacked-image {
    width: 100%;
    height: 350px;
    /* Tall image */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 40px 40px 0 0;
    /* Same radius as card top */
}

.ue-stacked-image .ue-date-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(0, 0, 0, 0.65);
    /* Dark Overlay */
    border-radius: 12px;
    padding: 10px 15px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ue-stacked-image .ue-date-badge .ue-day {
    color: #ffffff;
    /* White Text */
    font-size: 2.2rem;
    font-weight: 700;
}

.ue-stacked-image .ue-date-badge .ue-month {
    color: #e0e0e0;
    /* Off-white */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.ue-content-stacked {
    padding: 30px;
    text-align: center;
}

.ue-content-stacked h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #222;
    margin-bottom: 15px;
}

.ue-content-stacked .ue-location {
    display: block;
    color: #D4AF37;
    font-weight: bold;
    margin-bottom: 25px;
}

.ue-content-stacked .ue-btn-details {
    padding: 12px 35px;
    border: 1px solid #ddd;
    border-radius: 30px;
    display: inline-block;
    color: #555;
    background: white;
    font-weight: bold;
}

/* Modern Contact Form */
.modern-form-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Gold Top Border Accent */
.modern-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--color-gold);
    /* Solid Gold */
}

.floating-group {
    position: relative;
    margin-bottom: 30px;
}

.modern-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
    outline: none;
}

.modern-input:focus {
    border-color: var(--color-gold);
    background: #fff;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.floating-label {
    position: absolute;
    left: 20px;
    top: 17px;
    color: #888;
    pointer-events: none;
    transition: 0.3s ease all;
    background: transparent;
    padding: 0 5px;
    font-size: 1rem;
}

/* Float label on focus or valid content */
.modern-input:focus~.floating-label,
.modern-input:not(:placeholder-shown)~.floating-label {
    top: -10px;
    left: 15px;
    font-size: 0.85rem;
    color: var(--color-gold);
    background: #fff;
    font-weight: 600;
}

.btn-modern-submit {
    display: inline-block;
    width: 100%;
    padding: 16px;
    background: var(--color-gold);
    /* Solid Gold */
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ue-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.5s ease forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ue-alert i {
    font-size: 1.2rem;
}

.ue-alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.ue-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ue-card-vertical {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    /* Fill Grid Cell */
    max-width: none;
    /* Remove max-width constraint */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
    /* Horizontal Layout */
    min-height: 200px;
}

.ue-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.ue-image-wrapper {
    width: 200px;
    /* Wider for image visibility */
    height: auto;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #2c2925;
    /* Date Bar Background Fallback */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ue-date-badge {
    position: static;
    /* Centered in flex item */
    background: rgba(0, 0, 0, 0.65);
    /* Dark Overlay */
    border-radius: 12px;
    padding: 10px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 80px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ue-date-badge .ue-day {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    /* White Number */
    line-height: 1;
}

.ue-date-badge .ue-month {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #e0e0e0;
    /* Off-white */
    margin-top: 5px;
    letter-spacing: 1px;
}

.ue-content-vertical {
    padding: 30px 40px;
    text-align: left;
    /* Align text left */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align items left */
    justify-content: center;
}

.ue-content-vertical h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: #222;
    margin-bottom: 15px;
}

.ue-meta {
    margin-bottom: 20px;
}

.ue-location {
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ue-btn-details {
    margin-top: auto;
    display: inline-block;
    color: #D4AF37;
    /* Gold Link */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    background: transparent;
    border: none;
    padding: 0;
}

.ue-btn-details:hover {
    background: transparent;
    color: #bfa030;
    border-color: transparent;
    margin-left: 5px;
    /* Slide effect */
}

/* Adjust for Mobile */
@media (max-width: 768px) {
    .ue-card-vertical {
        flex-direction: column;
        max-width: 400px;
    }

    .ue-image-wrapper {
        width: 100%;
        height: 100px;
        /* Horizontal bar on top */
    }

    .ue-date-badge {
        flex-direction: row;
        display: flex;
        gap: 10px;
        align-items: baseline;
    }

    .ue-content-vertical {
        align-items: center;
        text-align: center;
        padding: 20px;
    }
}

/* Service Card Icons */
.card-icon {
    font-size: 3rem;
    color: #009A44;
    margin-bottom: 20px;
}

.card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid transparent;
    transition: 0.3s;
}

/* =========================================
   Event Detail Page Styles (Hero + Card)
   ========================================= */
.event-hero-overlay {
    height: 60vh;
    min-height: 400px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    margin-top: -80px;
}

/* Ensure header transparency support */
body.event-detail-page {
    padding-top: 0 !important;
}

body.event-detail-page header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent) !important;
    box-shadow: none !important;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.event-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    margin-top: 60px;
}

.back-link {
    color: #D4AF37;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: inline-block;
}

.back-link:hover {
    color: white;
    transform: translateX(-5px);
}

.event-hero-content h1 {
    font-size: 4rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    line-height: 1.1;
    color: white;
}

.hero-meta {
    display: flex;
    gap: 30px;
    font-size: 1rem;
    color: #ddd;
    font-weight: 500;
}

.hero-meta i {
    color: #D4AF37;
    margin-right: 8px;
}

.event-detail-container {
    position: relative;
    z-index: 3;
    margin-top: -100px;
    /* Float overlapping hero */
    margin-bottom: 80px;
}

.event-detail-card {
    background: white;
    border-radius: 30px;
    padding: 60px 80px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.detail-icon-wrap {
    font-size: 3rem;
    color: #A0522D;
    /* Sienna */
    margin-bottom: 30px;
}

.detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Button & Divider */
.card-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

.btn-event-action {
    display: inline-block;
    background: #111;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-event-action:hover {
    background: #D4AF37;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .event-hero-content h1 {
        font-size: 2.5rem;
    }

    .event-detail-card {
        padding: 40px 20px;
    }

    .detail-text {
        font-size: 1rem;
    }
}

/* Live Stream Split Layout */
.ls-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ls-sidebar {
    background: #1a1a1a;
    padding: 20px;
    overflow-y: auto;
    max-height: 500px;
    /* Determine height based on video aspect ratio approx */
    border-right: 1px solid #222;
}

.ls-sidebar-header {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.ls-sidebar-header h3 {
    color: #D4AF37;
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ls-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.ls-item:hover {
    background: #2a2a2a;
}

.ls-item.active {
    background: #252525;
    border-left: 3px solid #D4AF37;
}

.ls-thumb {
    width: 80px;
    height: 45px;
    background: #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.ls-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-thumb i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.ls-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ls-info h4 {
    color: #eee;
    font-size: 0.85rem;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.ls-info span {
    color: #888;
    font-size: 0.75rem;
}

.ls-main {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: black;
}

.ls-main iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Scrollbar for sidebar */
.ls-sidebar::-webkit-scrollbar {
    width: 6px;
}

.ls-sidebar::-webkit-scrollbar-track {
    background: #111;
}

.ls-sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

@media (max-width: 900px) {
    .ls-container {
        grid-template-columns: 1fr;
    }

    .ls-sidebar {
        max-height: 300px;
        order: 2;
    }

    .ls-main {
        order: 1;
    }
}

/* Ensure this override runs last - Center Lang Toggle */
@media (max-width: 900px) {

    .lang-toggle {
        display: flex !important;
        justify-content: space-between !important;
        width: 100px !important;
        /* Restored Width */
        margin: 15px auto !important;
        /* Centered */
        background: #e0e0e0 !important;
        /* Restored Gray Background */
        border-radius: 30px !important;
        padding: 4px !important;
    }

    .lang-toggle a {
        width: 50% !important;
        padding: 6px 0 !important;
        background: transparent;
        /* Remove pill background on links */
        margin: 0;
    }

    .lang-toggle a.active {
        background: white !important;
        color: #009A44 !important;
    }
}

/* Elders Section */
.elders-section {
    background-color: white;
    /* Contrast with off-white body */
    padding-bottom: 80px;
}

.elders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}


.elder-card {
    background: transparent;
    border-radius: 0;
    padding: 10px;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.elder-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
    border-color: transparent;
}

.elder-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    position: relative;
}

.elder-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.elder-card:hover .elder-img {
    transform: scale(1.05);
    border-color: var(--color-gold);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Disable hover for Formers/Static */
.elder-card.simple:hover {
    transform: none;
    cursor: default;
}

.elder-card.simple:hover .elder-img {
    transform: none;
    border-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.elder-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #2c2c2c;
    margin-bottom: 5px;
    font-weight: 700;
}

.elder-title {
    color: var(--color-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
}

/* Remove inline message display */
.elder-message {
    display: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Glassmorphism/Modern Website Modal */
.elder-modal {
    background: rgba(255, 251, 245, 0.9);
    /* Semi-transparent Warm Cream */
    width: 90%;
    max-width: 650px;
    border-radius: 6px;
    padding: 50px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.3);
    /* Strong shadow */
    border: 1px solid rgba(212, 175, 55, 0.6);
    /* Refined Single Border */
    backdrop-filter: blur(20px);
    /* Strong Blur */
    -webkit-backdrop-filter: blur(20px);
}

.modal-overlay.active .elder-modal {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--color-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    z-index: 10;
}

.close-modal:hover {
    background: var(--color-red);
    transform: rotate(90deg);
}

.modal-content-wrap {
    text-align: center;
    position: relative;
}

.modal-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-name {
    font-family: var(--font-heading);
    /* Serif */
    font-size: 2.2rem;
    color: var(--color-red);
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.modal-role {
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 35px;
    display: inline-block;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 5px;
}

.modal-message {
    font-family: var(--font-heading);
    /* Use Serif for message too */
    font-size: 1.25rem;
    color: #444;
    line-height: 1.9;
    position: relative;
    padding: 0 30px;
    font-style: italic;
    display: block;
}

.modal-message::before {
    content: '\201C';
    color: rgba(212, 175, 55, 0.15);
    font-size: 6rem;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: serif;
    z-index: 0;
    pointer-events: none;
}

/* Logo Image Styles */
.logo-img {
    height: 60px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.elder-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
    border-color: transparent;
}

.elder-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    position: relative;
}

.elder-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.elder-card:hover .elder-img {
    transform: scale(1.05);
    border-color: var(--color-gold);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.elder-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #2c2c2c;
    margin-bottom: 5px;
    font-weight: 700;
}

.elder-title {
    color: var(--color-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
}

/* Remove inline message display */
.elder-message {
    display: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Glassmorphism/Modern Website Modal */
.elder-modal {
    background: rgba(255, 251, 245, 0.9);
    /* Semi-transparent Warm Cream */
    width: 90%;
    max-width: 650px;
    border-radius: 6px;
    padding: 50px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.3);
    /* Strong shadow */
    border: 1px solid rgba(212, 175, 55, 0.6);
    /* Refined Single Border */
    backdrop-filter: blur(20px);
    /* Strong Blur */
    -webkit-backdrop-filter: blur(20px);
}

.modal-overlay.active .elder-modal {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--color-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    z-index: 10;
}

.close-modal:hover {
    background: var(--color-red);
    transform: rotate(90deg);
}

.modal-content-wrap {
    text-align: center;
    position: relative;
}

.modal-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-name {
    font-family: var(--font-heading);
    /* Serif */
    font-size: 2.2rem;
    color: var(--color-red);
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.modal-role {
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 35px;
    display: inline-block;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 5px;
}

.modal-message {
    font-family: var(--font-heading);
    /* Use Serif for message too */
    font-size: 1.25rem;
    color: #444;
    line-height: 1.9;
    position: relative;
    padding: 0 30px;
    font-style: italic;
    display: block;
}

.modal-message::before {
    content: '\201C';
    color: rgba(212, 175, 55, 0.15);
    font-size: 6rem;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: serif;
    z-index: 0;
    pointer-events: none;
}

/* Logo Image Styles */
.logo-img {
    height: 70px;
    width: auto;
    margin-right: 3px;
    object-fit: contain;
}

.logo-am {
    font-family: 'Ebrima', 'Noto Sans Ethiopic', sans-serif !important;
}

.logo-en {
    font-family: var(--font-body) !important;
}

@media (max-width: 768px) {
    .logo-img {
        height: 55px;
        margin-right: 3px;
    }
}

.logo-am {
    color: #ffffff;
}

/* Services Page Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: #d4af37;
    /* Gold to match theme */
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: #222;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Faith Page Premium Design (Vertical List) --- */
.faith-intro {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555;
    line-height: 1.8;
}

.faith-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.faith-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.faith-item:last-child {
    border-bottom: none;
}

.faith-img-wrapper {
    width: 200px;
    /* Larger space for images */
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    /* Essential for zoom effect */
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faith-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* Start Zoomed In */
    transition: transform 0.5s ease-out;
}

.faith-item:hover .faith-img {
    transform: scale(1.0);
    /* Zoom Out on Hover */
}

.faith-content {
    transition: transform 0.3s ease-out;
}

.faith-item:hover .faith-content {
    transform: translateY(-5px);
    /* Gentle Lift */
}

.faith-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #D4AF37;
    /* Gold */
    margin-bottom: 15px;
    margin-top: 0;
    transition: color 0.3s ease;
}

.faith-item:hover h3 {
    color: #b59020;
    /* Slightly darker gold on hover */
}

.faith-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
    text-align: justify;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .faith-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .faith-content h3 {
        margin-top: 10px;
    }

    .faith-content p {
        text-align: left;
        /* Keep readable on mobile */
    }
}

/* Mobile Tweaks for Church Page */
@media (max-width: 600px) {
    .leaders-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        /* Centers orphans and grid */
        gap: 15px;
    }

    .elders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .former-grid {
        grid-template-columns: 1fr;
    }

    /* Shrink the circle image for mobile to fit 2 columns */
    .elder-wrapper {
        width: 145px !important;
        /* A bit bigger than 130px */
        height: 145px !important;
    }

    .elder-name {
        font-size: 1.1rem !important;
    }

    .elder-title {
        font-size: 0.8rem !important;
    }
}

/* Main Gold Button */
.btn-main {
    background: var(--color-gold);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    /* Rounded pill shape for consistency */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* Slight shadow for better readability on gold */
}

.btn-main:hover {
    background: #d4af37;
    /* Darker Gold */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-main:active {
    transform: translateY(0);
}

.btn-disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none;
}

/* --- Interactive Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 200px 200px;
    gap: 15px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item.main {
        grid-column: auto;
        grid-row: auto;
        height: 250px;
    }

    .gallery-item {
        height: 180px;
    }
}

/* Section Separator */
.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    position: relative;
}

.section-separator::before,
.section-separator::after {
    content: '';
    height: 1px;
    background: #e0e0e0;
    flex: 1;
    margin: 0 20px;
}

.section-separator .icon-box {
    background: var(--color-gold);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Architecture Section Container */
.arch-section {
    margin-bottom: 60px;
    border: 1px solid #eee;
}

/* Vertical Split Menu */
.arch-link {
    font-size: 1.8rem;
    padding: 15px 0;
    cursor: pointer;
    font-family: var(--font-heading);
    color: #333;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.arch-link:last-child {
    border-bottom: none;
}

.arch-link:hover,
.arch-link.active {
    opacity: 1;
    color: var(--color-gold);
    padding-left: 10px;
}

.arch-link i {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.arch-link:hover i,
.arch-link.active i {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Architecture View */
/* Mobile Architecture View */
@media (max-width: 900px) {
    .arch-section {
        flex-direction: column !important;
        /* Stack vertically */
        height: auto !important;
        box-shadow: none !important;
    }

    .arch-nav {
        order: -1 !important;
        /* Force to VERY TOP */
        padding: 20px !important;
        width: 100%;
        background: white !important;
        margin-bottom: 20px;
        /* Space between List and Image */
    }

    .arch-visual {
        order: 2;
        /* Image BELOW */
        min-height: 250px;
        width: 100%;
    }

    /* Restore Vertical List Look */
    .arch-menu {
        display: block;
        /* Vertical List */
        overflow-x: visible;
        padding-bottom: 0;
    }

    .arch-link {
        font-size: 1rem !important;
        padding: 12px 0 !important;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 0 !important;
        background: transparent !important;
        opacity: 0.8;
        display: flex !important;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 0 !important;
    }

    .arch-link.active {
        background: transparent !important;
        color: var(--color-gold) !important;
        opacity: 1;
        padding-left: 10px !important;
        font-weight: bold;
    }

    .arch-nav h4 {
        display: block;
        /* Show title again */
        margin-bottom: 20px !important;
    }

    .arch-link i {
        display: inline-block !important;
        /* Show arrows */
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .arch-section {
        flex-direction: column;
        height: auto !important;
    }

    .arch-visual {
        height: 300px;
        order: -1;
        /* Image first on mobile */
    }

    .arch-nav {
        padding: 30px !important;
    }

    .arch-link {
        font-size: 1.2rem;
    }
}

/* Zoom Out Effect */
.arch-visual {
    overflow: hidden;
    /* Ensure image doesn't bleed out */
}

.arch-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    /* Smooth easing */
}

.arch-visual:hover img {
    transform: scale(1.0);
}

/* Homepage Upcoming Events (Vertical List) */
.upcoming-events-section {
    padding: 60px 0;
    background: #fff;
}

.ue-header-centered {
    text-align: center;
    margin-bottom: 40px;
}

.ue-subtitle {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.9rem;
}

.ue-title {
    font-size: 2.2rem;
    margin-top: 10px;
    color: #333;
}

.ue-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.ue-card-vertical {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.ue-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ue-image-wrapper {
    width: 35%;
    min-height: 200px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.ue-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.85);
    /* Dark Glass */
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    line-height: 1.2;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ue-day {
    display: block;
    font-size: 1.4rem;
    color: #ffffff !important;
    /* White Text */
    font-weight: 800;
}

.ue-month {
    display: block;
    font-size: 0.9rem;
    color: #ffffff !important;
    /* White Text */
    text-transform: uppercase;
    font-weight: 700;
}

.ue-content-vertical {
    padding: 25px;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ue-content-vertical h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

.ue-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.ue-btn-details {
    align-self: flex-start;
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.ue-btn-details:hover {
    border-bottom-color: var(--color-gold);
}

@media (max-width: 768px) {
    .ue-card-vertical {
        flex-direction: column;
    }

    .ue-image-wrapper {
        width: 100%;
        height: 200px;
    }

    .ue-content-vertical {
        width: 100%;
        padding: 20px;
    }
}

/* Force Non-Italic for Events Section Headers (User Request) */
/* Moving towards Global consistency */
:root {
    --font-heading: 'Inter', sans-serif;
    /* Global Font Update */
}

/* Enforce Global Heading Style (Inter, Non-Italic) */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.ue-title,
.ue-subtitle,
.upcoming-events-section h2,
.upcoming-events-section h4 {
    font-family: var(--font-heading) !important;
    font-style: normal !important;
    letter-spacing: normal;
}