/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.btn-primary:hover {
    background-color: #1e3f73;
    border-color: #1e3f73;
}

.btn-secondary {
    background-color: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-secondary:hover {
    background-color: #2c5aa0;
    color: white;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2c5aa0;
    margin: 0;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #2c5aa0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.8), rgba(44, 90, 160, 0.6));
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    padding: 40px 30px;
    z-index: 1;
    background-color: rgba(173, 202, 245, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1e3f73;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #2c5aa0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Welcome Section */
.welcome {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-content h2 {
    margin-bottom: 30px;
}

.welcome-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Service Times */
.services {
    padding: 80px 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background-color: #f8f9fa;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
}

.service-card .time {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c5aa0;
}

/* Ministries */
.ministries {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.ministries h2 {
    text-align: center;
    margin-bottom: 50px;
}

.ministry-grid {
    display: grid;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.ministry-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ministry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.ministry-image {
    height: 250px;
    overflow: hidden;
}

.ministry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ministry-card:hover .ministry-image img {
    transform: scale(1.05);
}

.ministry-content {
    padding: 30px;
}

.ministry-content h3 {
    margin-bottom: 10px;
}

.ministry-content ul {
    list-style: none;
    padding-left: 0;
}

.ministry-content li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.ministry-content li:before {
    content: "✓";
    color: #2c5aa0;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
}

.contact-grid {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: #2c5aa0;
}

.contact-item p {
    margin: 0;
    color: #666;
}

/* Articles of Faith Styles */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #2c5aa0, #1e3f73);
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.articles-content {
    padding: 80px 0;
}

.articles-intro {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.articles-intro p {
    font-size: 1.1rem;
}

.articles-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.faith-article {
    display: flex;
    gap: 25px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #2c5aa0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faith-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-number {
    background-color: #2c5aa0;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.article-content h3 {
    margin-bottom: 15px;
}

.article-content p {
    margin: 0;
}

.articles-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.articles-footer p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #2c5aa0;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Mobile */
    .hero-content {
        padding: 30px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
        color: #1e3f73;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    /* Typography Mobile */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Sections Mobile */
    .welcome,
    .services,
    .ministries,
    .contact,
    .articles-content {
        padding: 60px 0;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    /* Service Cards Mobile */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    /* Ministry Cards Mobile */
    .ministry-image {
        height: 200px;
    }

    .ministry-content {
        padding: 25px;
    }

    /* Contact Mobile */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Articles Mobile */
    .faith-article {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
        text-align: center;
    }

    .article-number {
        margin: 0 auto;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus States */
.btn:focus,
.nav-link:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}