/* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-navy: #0f2c59;
    --primary-light: #2b6cb0;
    --secondary-gold: #d4af37;
    --accent-gold-hover: #b89628;
    --text-dark: #2c3e50;
    --text-muted: #718096;
    --text-light: #f8f9fa;
    --bg-light: #f4f6f9;
    --bg-white: #ffffff;
    --card-bg: #ffffff;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. REUSABLE UTILITIES & BUTTONS
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.text-center { 
    text-align: center; 
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary-gold);
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold {
    background-color: var(--secondary-gold);
    color: #fff;
}

.btn-gold:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-navy);
}

.btn-spacer {
    margin-top: 30px;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-gold);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: auto;
}

.read-more-link:hover {
    color: var(--accent-gold-hover);
    gap: 10px;
}

.location-icon {
    color: var(--secondary-gold);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.top-bar {
    background-color: var(--primary-navy);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-info span, 
.top-motto span {
    margin-right: 20px;
}

.top-info i {
    color: var(--secondary-gold);
    margin-right: 6px;
}

.header {
    background-color: var(--primary-navy);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar, 
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.03);
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--primary-navy);
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--secondary-gold);
    font-weight: 600;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: #333333;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #0056b3;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333333;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 200px;
    min-height: 500px;
    background: linear-gradient(rgba(15, 44, 89, 0.75), rgba(15, 44, 89, 0.75)), 
                url('images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #e0e0e0;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.founded-badge {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-gold);
    color: var(--bg-white);
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.founded-badge .year {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

/* ==========================================================================
   5. CARDS & GRID
   ========================================================================== */
.foundation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-header-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.1) 0%, rgba(26, 54, 93, 0.4) 100%);
}

.bg-charism { background-image: url(../images/IMG-20260424-WA0005\ \(6\).jpg); }
.bg-vision  { background-image: url(../images/IMG-20260425-WA0031\ \(1\).jpg); }
.bg-mission { background-image: url(../images/IMG-20260627-WA0007.jpg); }

.card-body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    margin-bottom: 6px;
}

.card-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.card-body p {
    color: var(--text-dark);
    font-size: 0.975rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.mission-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--primary-navy);
    line-height: 1.6;
    border-left: 3px solid var(--secondary-gold);
    padding: 12px 0 12px 16px;
    margin-bottom: 16px;
    background: #fdfbf7;
    border-radius: 0 8px 8px 0;
}

.mission-author {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right;
    font-style: normal;
}

/* ==========================================================================
   6. MINISTRIES SECTION
   ========================================================================== */
.ministries {
    background-color:whitesmoke;
    color: var(--primary-navy);
}

.ministries .section-title {
    color: navy;
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ministry-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.ministry-box:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.ministry-box i {
    font-size: 2.5rem;
    color: var(--secondary-gold);
    margin-bottom: 15px;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer {
    background-color: #134087;
    color: #a0aab8;
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-gold);
}

.footer-desc {
    font-size: 0.85rem;
    margin-top: 10px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary-gold);
}

.contact-list li {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.contact-list i {
    color: var(--secondary-gold);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary-gold);
    color: var(--bg-white);
}

.footer-bottom {
    background-color:#134087;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 16px;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .foundation-cards,
    .about-grid, 
    .community-display {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .nav-menu {
        display: none;
    }
}