/* 
* Hillside Discipleship Church - Main Stylesheet
* Modern religious theme with elegant typography and refined aesthetics
*/

/* Base Styles and Variables */
:root {
    --primary-color: #d01621;
    /* Deep Blue */
    --primary-light: #ff5555;
    /* Lighter blue for hover states */
    --secondary-color: #AB0000;
    /* Medium Blue (trust/stability) */
    --accent-color: #A80e03;
    /* Bright Blue (joy/connection) */
    --light-color: #F0F8FF;
    /* Alice Blue (background) */
    --dark-color: #2a2a2a;
    /* Almost black */
    --text-color: #333333;
    /* Dark gray for text */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-pattern: repeating-linear-gradient(45deg, var(--accent-color), var(--accent-color) 1px, transparent 1px, transparent 5px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
    background-image: url('https://www.transparenttextures.com/patterns/parchment.png');
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', 'Raleway', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.bible-verse {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 2rem 0;
    padding: 0 1.5rem;
    border-left: 3px solid var(--accent-color);
    position: relative;
}

.bible-verse::before {
    content: '"';
    font-size: 3.5rem;
    line-height: 0;
    position: absolute;
    left: 0.3rem;
    top: 1rem;
    color: var(--accent-color);
    opacity: 0.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.7rem;
    margin-bottom: 3.5rem;
    position: relative;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.section-title::after {
    content: '✝';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
}

.subtitle {
    text-align: center;
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-style: italic;
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(43, 87, 151, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 87, 151, 0.3);
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%);
    transform: translateX(-100%);
    transition: 0.6s;
}

.btn:hover::after {
    transform: translateX(100%);
}

section {
    padding: 7rem 0;
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--border-pattern);
    opacity: 0.3;
}

/* Header & Navigation */
header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.hillsidedc.com/images/church_outside.jpg?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* These styles help the text stand out better against the background */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
	height: 95px;
	display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(208, 22, 33, 1);
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.logo h1 {
    font-size: 2.5rem;
    color: white;
	display: inline-flex;
	white-space: nowrap;
    margin: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links ul li {
    margin-left: 2.2rem;
}

.nav-links ul li a {
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: var(--transition);
}

.hero {
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.hero-content h1::before,
.hero-content h1::after {
    content: '✝';
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
}

.hero-content h1::before {
    left: -3rem;
}

.hero-content h1::after {
    right: -3rem;
}

.hero-content h2 {
    font-size: 1.3rem;
    color: var(--light-color);
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 span {
    color: var(--accent-color);
    font-weight: 700;
}

/* About Section */
.about {
    background-color: white;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cross-scratches.png');
    opacity: 0.03;
    pointer-events: none;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 0 0 auto;  /* Change from flex: 1 to prevent stretching */
    max-width: 400px; /* Add max-width to control image size */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--accent-color);
    padding: 5px;
    background-color: white;
    transform: rotate(1deg) translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-image:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 8px;
    display: block;
    filter: brightness(1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Services Section */
.services {
    background-color: var(--light-color);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/church.png');
    background-size: 300px;
    opacity: 0.05;
    pointer-events: none;
}

.service-times {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.service-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
    flex: 1;
    min-width: 270px;
    max-width: 320px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-card i {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: var(--secondary-color);
}

/* Pastors Section */
.pastors {
    background-color: white;
    position: relative;
    padding-bottom: 7rem;
}

.pastors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cross.png');
    opacity: 0.03;
    pointer-events: none;
}

.pastor-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.pastor-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.pastor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.pastor-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.pastor-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
}

.pastor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.pastor-card:hover .pastor-img img {
    transform: scale(1.05);
}

.pastor-info {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.pastor-info::before {
    content: '✝';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pastor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.pastor-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary-color);
}

.pastor-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.pastor-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pastor-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light-color);
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.pastor-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Serve Others Section */
.serve-others {
    background-color: #f9f9f9;
    position: relative;
    padding-bottom: 3rem;
}

/* New Serve Section Styles */
.serve-section {
    padding: 5rem 0;
    position: relative;
}

.h3-section {
    background-color: white;
}

.plan-section {
    position: relative;
}

.section-overlay {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.loveworks-section {
    background-color: #f0f8ff;
}

.beaverton-section {
    background-color: white;
}

.section-subtitle {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    text-align: center;
}

.section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .section-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .section-image, .section-images {
        flex: 1;
        max-width: 45%;
    }
    
    .section-text {
        flex: 1;
        padding: 0 1rem;
    }
    
    .h3-section .section-content {
        flex-direction: row-reverse;
    }
    
    .beaverton-section .section-content {
        flex-direction: column;
    }
    
    .beaverton-section .section-images {
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .beaverton-section .section-image {
        width: 100%;
        height: auto;
        transition: transform 0.3s ease;
    }
    
    .beaverton-section .section-image:hover {
        transform: scale(1.05);
    }
}

.section-image {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

.beaverton-images {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.section-text {
    max-width: 800px;
    margin: 0 auto;
}

.h3-list {
    list-style-type: none;
    margin: 1.5rem 0;
    padding-left: 1rem;
}

.h3-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.h3-list li:before {
    content: '✝';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.reach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.text-center {
    text-align: center;
}

/* Community Section */
.community {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('https://images.unsplash.com/photo-1511632765486-a01980e01a18?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
}

.community::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cross.png');
    opacity: 0.05;
    pointer-events: none;
}

.community .section-title,
.community .subtitle {
    color: white;
}

.community .section-title::before {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.community .section-title::after {
    color: var(--accent-color);
}

.community-content {
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

.community-content p {
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-8px) scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cross-scratches.png');
    opacity: 0.03;
    pointer-events: none;
}

.contact-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

.contact-content {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 10px 0 0 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.info-item i {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-right: 1.2rem;
    margin-top: 0.2rem;
}

.info-item p {
    line-height: 1.8;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 0 10px 10px 0;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var (--secondary-color);
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 87, 151, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: linear-gradient(rgba(130, 22, 33, 1), rgba(180, 0, 0, 0.9));
    color: white;
    padding: 5rem 0 1rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cross.png');
    opacity: 0.05;
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-logo h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    position: relative;
    display: inline-block;
    padding-left: 15px;
    font-size: 1.05rem;
}

.footer-links ul li a::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 20px;
}

.footer-links ul li a:hover::before {
    left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* Text center class for Bible verses */
.text-center {
    text-align: center;
    border-left: none;
    padding: 0 2.5rem;
    margin: 0 auto 3rem;
    max-width: 800px;
    position: relative;
}

.text-center::before,
.text-center::after {
    content: '';
    position: absolute;
    height: 2px;
    background-color: var(--accent-color);
    width: 60px;
    top: 50%;
}

.text-center::before {
    left: 0;
}

.text-center::after {
    right: 0;
}

/* Ministry Pillars */
.ministry {
    background-color: white;
    position: relative;
}

.ministry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cross-scratches.png');
    opacity: 0.03;
    pointer-events: none;
}

.pillars {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.pillar-card {
    background-color: var(--light-color);
    padding: 2.8rem 2.5rem;
    border-radius: 10px;
    text-align: left;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.pillar-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.pillar-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    right: 20px;
    transition: var(--transition);
}

.pillar-card:hover .pillar-number {
    opacity: 0.25;
    transform: scale(1.1);
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.pillar-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.pillar-card:hover h3::after {
    width: 70px;
    background-color: var(--accent-color);
}

.pillar-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-right: 30px;
    transition: var(--transition);
}

.pillar-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 0;
    transition: var(--transition);
}

.pillar-link:hover {
    color: var(--accent-color);
    padding-right: 35px;
}

.pillar-link:hover::after {
    right: -5px;
}

/* Family Ministry */
.family-ministry {
    background: linear-gradient(rgba(208, 22, 33, 1), rgba(199, 0, 0, 0.9)), url('https://images.unsplash.com/photo-1470091688221-5a7aab885ef9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.family-ministry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cross.png');
    opacity: 0.05;
    pointer-events: none;
}

.family-ministry .section-title,
.family-ministry .subtitle {
    color: white;
}

.family-ministry .section-title::before {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.family-ministry .section-title::after {
    color: var(--accent-color);
}

.ministry-programs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.program-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-color);
}

.program-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.program-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.program-card:hover i {
    transform: scale(1.1);
}

.program-card h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.program-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.program-card:hover h3::after {
    width: 70px;
    background-color: var(--accent-color);
}

.cta {
    text-align: center;
    margin-top: 2.5rem;
}

.cta .btn {
    background-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(120, 14, 3, 0.25);
}

.cta .btn:hover {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

/* Giving Section */
.giving {
    background-color: var(--light-color);
    text-align: center;
    position: relative;
}

.giving::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cross-scratches.png');
    opacity: 0.03;
    pointer-events: none;
}

.giving-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.giving-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.giving-content::after {
    content: '♥';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.giving address {
    font-style: normal;
    margin: 2rem 0;
    line-height: 1.8;
    display: inline-block;
    padding: 1.5rem 2rem;
    background-color: var(--light-color);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.donate-btn {
    background-color: var(--secondary-color);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.donate-btn:hover {
    background-color: var(--primary-color);
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.4rem;
    }
}

@media screen and (max-width: 992px) {
    section {
        padding: 6rem 0;
    }

    .about-content {
        flex-direction: column;
    }

    .pastor-img {
        height: 300px;
    }

    .hero-content h1::before,
    .hero-content h1::after {
        display: none;
    }

    .text-center::before,
    .text-center::after {
        display: none;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .bible-verse {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .about-image {
        transform: rotate(0);
        margin-top: 2rem;
    }

    .giving-content::before,
    .giving-content::after {
        display: none;
    }

    .contact-info::before,
    .contact-form::before {
        width: 100%;
        height: 5px;
        top: 0;
        left: 0;
        right: auto;
        border-radius: 10px 10px 0 0;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .container {
        width: 95%;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(43, 87, 151, 0.97);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        transition: 0.5s;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
    }

    .nav-links ul li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
        z-index: 1000;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .contact-content {
        gap: 2.5rem;
    }

    .pastor-card {
        min-width: 100%;
    }

    .service-card,
    .pillar-card,
    .program-card {
        min-width: 100%;
        margin-bottom: 1rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-content h2 {
        font-size: 1rem;
    }

    .contact-content {
        flex-direction: column;
    }

    p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo h3 {
        display: inline-block;
    }

    .footer-logo h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-links ul li {
        margin: 0;
    }

    .footer-links ul li a {
        padding: 0.5rem 1rem;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 5px;
    }

    .footer-links ul li a::before {
        display: none;
    }

    .footer-links ul li a:hover {
        padding: 0.5rem 1rem;
        background-color: var(--accent-color);
    }

    .contact-info,
    .contact-form {
        padding: 1.8rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }

    .giving-content {
        padding: 2rem;
    }

    .giving address {
        padding: 1rem 1.5rem;
    }
}