/* styles.css - House Of God Church Website */
:root {
    --primary: #1a4b8c; /* Blue */
    --secondary: #ffffff; /* White */
    --accent: #d32f2f; /* Red */
    --light-blue: #e8f0fe;
    --dark-blue: #0d2b52;
    --gray: #f5f5f5;
    --dark-gray: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 5px;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 2px; /* Reduced spacing */
    line-height: 1.2;
}

.logo-text .tagline {
    font-family: 'cursive', 'Brush Script MT', sans-serif;
    font-size: 1rem;
    opacity: 0.9;
    letter-spacing: 1px;
    margin-top: 0; /* Reduced spacing */
    line-height: 1.2;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 75, 140, 0.8), rgba(13, 43, 82, 0.9)), url('https://images.unsplash.com/photo-1518509562904-e7ef99cdcc86?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: var(--secondary);
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--secondary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.pastor-info {
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 4px solid var(--accent);
}

.pastor-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Ministries Section */
.ministries {
    background-color: var(--gray);
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ministry-card {
    background-color: var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.ministry-card:hover {
    transform: translateY(-10px);
}

.ministry-image {
    height: 200px;
    overflow: hidden;
}

.ministry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ministry-card:hover .ministry-image img {
    transform: scale(1.1);
}

.ministry-content {
    padding: 25px;
}

.ministry-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* YouTube Section */
.youtube-section {
    background-color: var(--dark-blue);
    color: var(--secondary);
    text-align: center;
}

.youtube-section .section-title h2 {
    color: var(--secondary);
}

.youtube-section .section-title p {
    color: rgba(255,255,255,0.8);
}

.youtube-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.youtube-channel {
    background-color: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
}

.youtube-channel h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.youtube-channel a {
    display: inline-block;
    background-color: var(--accent);
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.youtube-channel a:hover {
    background-color: #b71c1c;
}

.youtube-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Events Section */
.events-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.event-date {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 100px;
    margin-right: 30px;
    z-index: 1;
}

.event-date.special {
    background-color: var(--accent);
}

.event-date .day {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-content {
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.event-content.special {
    background-color: #ffe6e6;
    border-left: 4px solid var(--accent);
}

.event-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.event-content .time {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

/* Sermons Section */
.sermons {
    background-color: var(--gray);
}

.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sermon-card {
    background-color: var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sermon-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.sermon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255,255,255,0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.play-btn i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-left: 5px;
}

.play-btn:hover {
    background-color: var(--secondary);
    transform: translate(-50%, -50%) scale(1.1);
}

.sermon-content {
    padding: 20px;
}

.sermon-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.sermon-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--secondary);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
}

.footer-column p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: flex-start;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-img {
        margin-right: 0;
        margin-bottom: 10px;
    }
}