/* Core Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation Bar */
header {
    background-color: #0b1f3a;
    color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 55px;
    width: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4af37;
}

.logo-text h1 {
    font-size: 1.15rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 0.8rem;
    color: #d4af37;
    font-style: italic;
    display: block;
}

nav ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    color: #0b1f3a;
    background-color: #d4af37;
}

/* Hero Image Slider (4-Slide Dynamic Carousel) */
.slider-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background-color: #0b1f3a;
}

.slider {
    display: flex;
    width: 400%;
    height: 100%;
    animation: slideAnimation 20s infinite ease-in-out;
}

.slide {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

.slide1 { background-image: linear-gradient(rgba(11, 31, 58, 0.75), rgba(11, 31, 58, 0.75)), url('../images/slide1.jpg'); }
.slide2 { background-image: linear-gradient(rgba(11, 31, 58, 0.75), rgba(11, 31, 58, 0.75)), url('../images/slide2.jpg'); }
.slide3 { background-image: linear-gradient(rgba(11, 31, 58, 0.75), rgba(11, 31, 58, 0.75)), url('../images/slide3.jpg'); }
.slide4 { background-image: linear-gradient(rgba(11, 31, 58, 0.75), rgba(11, 31, 58, 0.75)), url('../images/slide4.jpg'); }

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.slide-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 25px;
    color: #f0f0f0;
}

@keyframes slideAnimation {
    0%, 20% { transform: translateX(0%); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0%); }
}

.btn {
    display: inline-block;
    background-color: #d4af37;
    color: #0b1f3a;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #f1c40f;
    transform: translateY(-2px);
}

/* Page Containers & Typography */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: #0b1f3a;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #d4af37;
    display: block;
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

/* Grid Layouts & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-top: 5px solid #d4af37;
}

.card h3 {
    color: #0b1f3a;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card .time {
    display: inline-block;
    background-color: #eef2f7;
    color: #0b1f3a;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

/* Photo Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-card p {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #0b1f3a;
    font-size: 0.95rem;
}

/* Pastor Profile & Layout for About Page */
.pastor-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 35px;
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.pastor-image {
    flex-shrink: 0;
}

.pastor-image img {
    width: 100%;
    max-width: 260px;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #d4af37;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.pastor-info {
    flex-grow: 1;
}

.pastor-info h3 {
    font-size: 1.8rem;
    color: #0b1f3a;
    margin-bottom: 5px;
}

.pastor-info .title {
    color: #d4af37;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pastor-info p {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Social Help Point Banner */
.help-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    border-left: 5px solid #d4af37;
}

.help-hero-text {
    flex: 1;
}

.help-hero-text h3 {
    font-size: 1.6rem;
    color: #0b1f3a;
    margin-bottom: 15px;
}

.help-hero-text p {
    color: #444;
    margin-bottom: 12px;
    line-height: 1.7;
}

.help-hero-img {
    flex: 1;
}

.help-hero-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #0b1f3a;
}

/* Social Help Form Styling */
.form-card {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-top: 5px solid #0b1f3a;
    margin-bottom: 50px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #0b1f3a;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    background-color: #fff;
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 6px;
}

/* Story Block */
.story-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #0b1f3a;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #444;
}

/* Branch Cards */
.branch-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #0b1f3a;
    margin-bottom: 15px;
}

.branch-card h4 {
    color: #0b1f3a;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.branch-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer Styling */
footer {
    background-color: #0b1f3a;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

footer p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 6px;
}

footer a {
    color: #d4af37;
    font-weight: 500;
}

/* Responsive Styles for Tablet and Mobile */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    nav ul {
        justify-content: center;
        gap: 10px;
    }

    .slider-container {
        height: 380px;
    }

    .container {
        padding: 0 15px;
        margin: 25px auto;
    }

    .pastor-container,
    .help-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .pastor-image img {
        max-width: 220px;
        height: auto;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}