html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #f7f7f7;
    color: #333;
}

main {
    flex: 1;
}

/* NAVBAR */
.navbar {
    background: #1c2a4a;
    color: white;
    padding: 18px 0;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* HERO */
.hero {
    background: url('https://images.unsplash.com/photo-1507692049790-de58290a4334?q=80&w=1974&auto=format&fit=crop') center/cover no-repeat;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    background: rgba(0, 0, 0, 0.55);
    padding: 40px;
    border-radius: 8px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    margin-top: 15px;
    background: #f4c430;
    padding: 12px 22px;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
}

/* SERVICE TIMES */
.service-times {
    padding: 60px 20px;
    text-align: center;
}

.times {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.time-card {
    background: white;
    padding: 25px;
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* ABOUT PREVIEW */
.about-preview {
    padding: 60px 20px;
    text-align: center;
}

.learn-more {
    display: inline-block;
    margin-top: 15px;
    color: #1c2a4a;
    font-weight: 700;
}

/* PAGE HEADER */
.page-header {
    background: #1c2a4a;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

/* ABOUT SECTION */
.about-section {
    padding: 60px 20px;
}

.about-container {
    max-width: 1000px;
    margin: auto;
}

.about-text h3 {
    margin-top: 20px;
    color: #1c2a4a;
}

/* PASTOR SECTION */
.pastor-section {
    padding: 60px 20px;
    background: #f1f3f7;
}

.pastor-container {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
    align-items: center;
}

.pastor-image img {
    width: 300px;
    border-radius: 10px;
}

@media(max-width:768px) {
    .pastor-container {
        flex-direction: column;
        text-align: center;
    }
}

/* FOOTER */
.footer {
    background: #1c2a4a;
    color: white;
    padding: 25px 0;
    margin-top: auto;
}

.footer-container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ABOUT PREVIEW SECTION */
.about-preview {
    padding: 70px 20px;
    background: #ffffff;
    text-align: center;
}

.about-preview-container {
    max-width: 800px;
    margin: auto;
}

.about-preview h2 {
    margin-bottom: 15px;
    color: #1c2a4a;
}

.about-preview p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
}

.learn-more-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #1c2a4a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.learn-more-btn:hover {
    background: #15213b;
}

/* MINISTRIES PAGE */

.ministries {
    padding: 70px 20px;
    background: #f7f7f7;
}

.ministry-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.ministry-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
}

.ministry-card:hover {
    transform: translateY(-6px);
}

.ministry-card h3 {
    margin-bottom: 10px;
    color: #1c2a4a;
}

.ministry-card p {
    line-height: 1.6;
    color: #555;
}

/* SERMONS PAGE */

.sermons {
    padding: 70px 20px;
    background: #f7f7f7;
}

.sermon-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sermon-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.sermon-card iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.sermon-card h3 {
    margin-top: 10px;
    color: #1c2a4a;
}

.sermon-card p {
    color: #666;
    font-size: 14px;
}

.sermon-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
}

/* EVENTS PAGE */

.events {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.event-card {
    display: flex;
    gap: 25px;
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    align-items: center;
}

.event-date {
    background: #1c2a4a;
    color: white;
    padding: 18px 16px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.event-date .month {
    font-size: 14px;
    letter-spacing: 1px;
}

.event-details h3 {
    color: #1c2a4a;
    margin-bottom: 6px;
}

.event-details p {
    color: #555;
    margin: 4px 0;
}

@media(max-width:700px) {
    .event-card {
        flex-direction: column;
        text-align: center;
    }
}

/* CONTACT PAGE */

.contact-section {
    padding: 60px 20px;
    background: #f7f7f7;
}

.contact-container {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    color: #1c2a4a;
    margin-bottom: 10px;
}

.contact-info p {
    margin: 6px 0;
    color: #555;
}

.contact-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.contact-form button {
    background: #1c2a4a;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #15213b;
}

@media(max-width:800px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}