/* ==========================================================================
   UI/UX COLOR PALETTE & VARIABLES (Refined & Unified)
   ========================================================================== */
:root {
    /* Foundation Colors */
    --color-dark: #0f172a;       /* Deep Navy/Slate for high contrast */
    --color-dark-alt: #1e293b;
    --color-light: #ffffff;      /* Pure White */
    --color-light-gray: #f8fafc; /* Very soft gray for section alternation */
    --color-soft-blue: #f1f5f9;  /* Soft icy blue for subtle backgrounds */
    --color-text: #334155;       /* Highly readable slate for body text */
    --color-text-muted: #64748b; 
    
    /* Unified Ministry Palette (Replaced the rainbow with Navy, Gold, Burgundy, and Slate) */
    --color-gold: #d97706;       /* Main classic elegant gold */
    
    --color-blue: #1e40af;       --color-blue-light: #eff6ff; /* Deep Navy */
    --color-indigo: #1e40af;     --color-indigo-light: #eff6ff; /* Mapped to Navy */
    
    --color-orange: #d97706;     --color-orange-light: #fffbeb; /* Mapped to Gold */
    
    --color-red: #9f1239;        --color-red-light: #fff1f2; /* Deep Burgundy */
    --color-rose: #9f1239;       --color-rose-light: #fff1f2; /* Mapped to Burgundy */
    
    --color-teal: #0f766e;       --color-teal-light: #f0fdfa; /* Subtle Earthy Teal */
    --color-green: #0f766e;      --color-green-light: #f0fdfa; /* Mapped to Earthy Teal */
    
    --color-purple: #475569;     --color-purple-light: #f8fafc; /* Professional Slate Gray */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* UX Elements */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--color-dark); line-height: 1.3; }
p { margin-bottom: 1rem; font-size: 1rem; color: var(--color-text); }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* Utility Classes */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 90px 0; }
.bg-white { background-color: var(--color-light); }
.bg-light-gray { background-color: var(--color-light-gray); }
.bg-soft-blue { background-color: var(--color-soft-blue); }
.bg-dark { background-color: var(--color-dark); color: var(--color-light); }
.text-white { color: var(--color-light) !important; }
.text-dark { color: var(--color-dark) !important; }

/* Color Utilities */
.text-blue { color: var(--color-blue); } .bg-blue-light { background-color: var(--color-blue-light); }
.text-green { color: var(--color-green); } .bg-green-light { background-color: var(--color-green-light); }
.text-red { color: var(--color-red); } .bg-red-light { background-color: var(--color-red-light); }
.text-purple { color: var(--color-purple); } .bg-purple-light { background-color: var(--color-purple-light); }
.text-orange { color: var(--color-orange); } .bg-orange-light { background-color: var(--color-orange-light); }
.text-teal { color: var(--color-teal); } .bg-teal-light { background-color: var(--color-teal-light); }
.text-rose { color: var(--color-rose); } .bg-rose-light { background-color: var(--color-rose-light); }
.text-indigo { color: var(--color-indigo); } .bg-indigo-light { background-color: var(--color-indigo-light); }
.text-gold { color: var(--color-gold); } .icon-accent-gold { color: var(--color-gold); }

/* Margin/Spacing Utilities */
.mb-15 { margin-bottom: 15px; } .mb-20 { margin-bottom: 20px; } .mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; } .mt-40 { margin-top: 40px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; } .w-100 { width: 100%; }
.ml-10 { margin-left: 10px; }
.flex-column { display: flex; flex-direction: column; } .gap-30 { gap: 30px; }

/* Typography Formatting */
.section-title { font-size: 2.4rem; margin-bottom: 25px; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 4px; background: var(--color-gold); border-radius: 2px; }
.title-center { text-align: center; }
.title-center::after { left: 50%; transform: translateX(-50%); }
.text-large { font-size: 1.15rem; }

/* UI Components */
.ui-card { background: var(--color-light); border-radius: var(--radius-md); padding: 35px; box-shadow: var(--shadow-soft); transition: var(--transition); border: 1px solid #e2e8f0; }
.card-hover:hover, .shadow-hover:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: var(--transition); font-family: var(--font-body); border: 2px solid transparent; }
.btn-primary { background: var(--color-blue); color: var(--color-light); box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3); }
.btn-primary:hover { background: #1e3a8a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4); }
.btn-outline-light { border-color: var(--color-light); color: var(--color-light); }
.btn-outline-light:hover { background: var(--color-light); color: var(--color-dark); }
.btn-facebook { background: #1877F2; color: white; }
.btn-youtube { background: #FF0000; color: white; }
.btn-facebook i, .btn-youtube i { margin-right: 10px; font-size: 1.2rem; }
.btn:hover { opacity: 0.9; }

/* Grids */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.align-center { align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

/* ==========================================================================
   SPECIFIC SECTIONS
   ========================================================================== */
/* Header */
#header { background: rgba(255, 255, 255, 0.98); position: fixed; top: 0; width: 100%; z-index: 1000; box-shadow: var(--shadow-soft); backdrop-filter: blur(10px); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo a { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--color-dark); display: flex; align-items: center; gap: 10px; }
.nav-menu ul { display: flex; gap: 25px; align-items: center; }
.nav-menu a { color: var(--color-text); font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--color-gold); }
.nav-btn { background: var(--color-blue); color: var(--color-light) !important; padding: 10px 20px; border-radius: 6px; }
.nav-btn:hover { background: #1e3a8a; }
.hamburger { display: none; font-size: 1.5rem; color: var(--color-dark); cursor: pointer; }

/* Hero */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.85) 100%), url('assets/images/hero-bg.jpg') center/cover; }
.hero-content { position: relative; z-index: 1; max-width: 900px; color: var(--color-light); }
.logo-box { width: 90px; height: 90px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; border: 1px solid rgba(255, 255, 255, 0.2); transition: var(--transition); }
.hero h1 { font-size: 3.8rem; color: var(--color-light); margin-bottom: 25px; }
.hero-subheading { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 30px; }
.verse-box { padding: 20px; border-left: 4px solid var(--color-gold); background: rgba(255,255,255,0.05); display: inline-block; margin-bottom: 40px; text-align: left; }
.verse-box p { font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; margin-bottom: 5px; color: var(--color-light); }
.verse-box span { font-size: 0.9rem; color: var(--color-gold); font-weight: 600; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 50px; }

/* About & Stats */
.stats-list li { display: flex; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid #f1f5f9; }
.stats-list li:last-child { border: none; }
.icon-circle { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.icon-circle-large { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }

/* Badges & Icons */
.icon-badge { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px; }
.icon-card { background: var(--color-light); padding: 30px 20px; border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-soft); transition: var(--transition); border-top: 4px solid #e2e8f0; }
.icon-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.icon-card i { font-size: 2.5rem; margin-bottom: 20px; }
.icon-card p { font-weight: 500; margin: 0; color: var(--color-dark); }

/* Colored Top Borders for Cards */
.border-top-orange { border-top-color: var(--color-gold); } .border-top-blue { border-top-color: var(--color-blue); }
.border-top-purple { border-top-color: var(--color-purple); } .border-top-red { border-top-color: var(--color-red); }
.border-top-green { border-top-color: var(--color-teal); } .border-top-teal { border-top-color: var(--color-teal); }
.border-top-rose { border-top-color: var(--color-red); } .border-top-indigo { border-top-color: var(--color-blue); }

.value-card { background: var(--color-light); padding: 25px; border-radius: 12px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-soft); transition: var(--transition); }
.value-card:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }
.value-card i { font-size: 1.8rem; }
.value-card h4 { font-family: var(--font-body); font-size: 1rem; margin: 0; }

/* Statement of Faith */
.faith-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.faith-grid li { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 8px; display: flex; gap: 15px; align-items: flex-start; }
.faith-grid i { margin-top: 4px; font-size: 1.2rem; flex-shrink: 0; }


/* ==========================================================================
   IMAGE OPTIMIZATION (Perfect 1200x800 Fit & No Text Gaps)
   ========================================================================== */
   /* ==========================================================================
   YOUTUBE RESPONSIVE EMBED
   ========================================================================== */
.media-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Automatically calculates the perfect YouTube height */
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-dark); /* Dark background while loading */
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.media-video-container:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.media-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.activity-card { background: var(--color-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: var(--transition); border: 1px solid #f1f5f9; }
.activity-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

/* The Placeholder Container */
.img-placeholder, .media-placeholder { 
    display: block; 
    width: 100%;
    background: #e2e8f0; 
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; 
    overflow: hidden; 
    padding: 0; 
    /* The trick to hide leftover text while letting images show */
    font-size: 0; 
    line-height: 0; 
    text-align: center;
}

.media-placeholder { border-radius: var(--radius-lg); }

/* Hide leftover icons and line breaks inside the placeholder if they exist */
.img-placeholder i, .img-placeholder br,
.media-placeholder i, .media-placeholder br {
    display: none;
}

/* The Exact Aspect Ratio Lock for 1200x800 Images */
.img-placeholder img,
.media-placeholder img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2; /* Perfectly shapes the box to your 1200x800 images */
    object-fit: cover; /* Ensures no weird white lines appear on edges */
    display: block;
}

/* Leader Photo specific rounding */
/* Leader Photo specific rounding */
.leader-photo { 
    width: 200px; 
    height: 200px; 
    background: #e2e8f0; 
    border-radius: 50%; 
    overflow: hidden; 
    margin: 0 auto; 
    font-size: 0; 
    line-height: 0;
    flex-shrink: 0; /* This prevents the image from squishing! */
}.leader-photo i, 
.leader-photo br { display: none; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* Rest of the original code */
.activity-body { padding: 30px; }
.activity-tag { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 15px; text-transform: uppercase; }

.button-group { display: flex; gap: 15px; flex-wrap: wrap; }

/* Goals Timeline & Lists */
.timeline-list { list-style: none; border-left: 2px solid #e2e8f0; margin-left: 20px; padding-left: 30px; }
.timeline-list li { position: relative; padding-bottom: 25px; font-weight: 500; color: var(--color-dark); }
.timeline-list li i { position: absolute; left: -43px; top: 0; background: var(--color-light); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--color-light); font-size: 0.9rem; }
.border-left-blue { border-left: 4px solid var(--color-blue); }
.border-left-rose { border-left: 4px solid var(--color-red); }
.custom-list li { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05); position: relative; padding-left: 20px; }
.custom-list li::before { content: '•'; position: absolute; left: 0; color: var(--color-gold); font-size: 1.5rem; line-height: 1; top: 8px; }

/* Partner Cards */
.partner-card { background: var(--color-light); padding: 40px 30px; border-radius: var(--radius-lg); transition: var(--transition); }
.partner-card:hover { transform: translateY(-10px); }

/* Leadership */
.leadership-card { display: flex; align-items: center; gap: 40px; padding: 40px; }
.leader-role { display: inline-block; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; margin-top: 5px; color: var(--color-blue); }

/* Contact Section */
.contact-item { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.contact-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-item h4 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 2px; }
.contact-item a { font-weight: 500; }

.contact-form-wrapper { padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: var(--font-body); background: var(--color-light-gray); transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-blue); background: var(--color-light); box-shadow: 0 0 0 4px var(--color-blue-light); }

/* Footer */
.footer { background: var(--color-dark); color: var(--color-light); padding: 60px 0 20px; }
.footer-logo { font-size: 1.5rem; margin-bottom: 5px; }
.footer-location { color: var(--color-text-muted); margin-bottom: 30px; }
.footer-verse { max-width: 400px; margin: 0 auto 30px; font-style: italic; color: #94a3b8; }
.footer-verse span { color: var(--color-gold); font-style: normal; font-size: 0.9rem; }
.footer-social { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.social-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-light); transition: var(--transition); }
.social-icon:hover { background: var(--color-blue); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; color: var(--color-text-muted); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile First adjustments)
   ========================================================================== */
@media (max-width: 1024px) {
    .split-grid { grid-template-columns: 1fr; gap: 40px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hamburger { display: block; }
    .nav-menu { position: absolute; top: 80px; left: -100%; width: 100%; background: var(--color-light); flex-direction: column; text-align: center; box-shadow: var(--shadow-soft); transition: var(--transition); padding: 30px 0; border-top: 1px solid #f1f5f9; }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 20px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .grid-3, .grid-4, .faith-grid { grid-template-columns: 1fr; }
    .leadership-card { flex-direction: column; text-align: center; padding: 30px 20px; }
    .contact-form-wrapper { padding: 25px; }
}