/* ==========================================================================
   Sinai Assembly of God Church - Official Stylesheet
   Theme: Royal Blue (#0A4D9A), Bright Gold (#FFD214), Pure White (#FFFFFF)
   ========================================================================== */

/* 1. Global Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #fcfcfc;
}

/* 2. Header and Navigation */
header {
    background-color: #0A4D9A; /* Royal Blue from logo border */
    color: #FFFFFF;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid #FFD214; /* Bright Gold accent line */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* Active / Current Page Link Highlight */
nav a.active {
    background-color: #FFD214; /* Logo Gold */
    color: #0A4D9A;            /* Logo Royal Blue */
    font-weight: 700;          /* Bold typography text boost */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.church-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #FFD214; /* Gold background on hover */
    color: #0A4D9A;            /* Dark blue text on hover */
}
nav a:active {
    background-color: #FFD214; /* Gold background on hover */
    color: #0A4D9A;            /* Dark blue text on hover */
}


/* 3. Hero Section (Welcome Area) */
.hero {
    background: linear-gradient(rgba(10, 77, 154, 0.9), rgba(10, 77, 154, 0.8)), url('images/church-bg.jpg') no-repeat center center/cover;
    color: #FFFFFF;
    text-align: center;
    padding: 5rem 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #FFD214; /* Highlight English Title in Gold */
}

.hero h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-style: italic;
}

/* Buttons */
.cta-button {
    background-color: #FFD214;
    color: #0A4D9A;
    padding: 0.8rem 2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    margin: 0.5rem;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s, background-color 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #e0b80F;
}
.cta-button:active {
    transform: translateY(-2px);
    background-color: #e0b80F;
}

.cta-button.secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.cta-button.secondary:hover {
    background-color: #FFFFFF;
    color: #0A4D9A;
}

/* 4. Main Structural Content */
main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

section {
    margin-bottom: 3rem;
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h2.section-title {
    color: #0A4D9A;
    border-left: 5px solid #FFD214;
    padding-left: 0.8rem;
    margin-bottom: 1.5rem;
}

/* 5. Bilingual Layout Helpers (Tables & Grid lists) */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.schedule-table th {
    background-color: #0A4D9A;
    color: #FFFFFF;
    text-align: left;
    padding: 1rem;
}

.schedule-table td {
    padding: 1rem;
    border-bottom: 1px solid #dddddd;
}

.schedule-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Ministry & Group Cards Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    border: 1px solid #e0e0e0;
    border-top: 4px solid #0A4D9A;
    padding: 1.5rem;
    border-radius: 6px;
    background: #ffffff;
}

.card h3 {
    color: #0A4D9A;
    margin-bottom: 0.5rem;
}

.lang-block {
    margin-bottom: 0.8rem;
}

.lang-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #777777;
    text-transform: uppercase;
    display: block;
}

/* 6. Footer Styles */
footer {
    background-color: #222222;
    color: #bbbbbb;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* 7. Responsive adjustments for Phones */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero h3 {
        font-size: 1.4rem;
    }
}
