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

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f4a261;
    --dark-color: #2a2a2a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 5px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(44, 90, 160, 0.8)), url('../images/church-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #e09346;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: #234580;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.lead {
    font-size: 1.125rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
}

/* Welcome Section */
.welcome-section {
    background: var(--light-color);
}

.pastor-info {
    text-align: center;
    margin-top: 2rem;
}

.pastor-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Service Times */
.service-times {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card .time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Ministries Preview */
.ministries-preview {
    background: var(--light-color);
}

.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.ministry-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: var(--shadow);
}

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

.ministry-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ministry-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Location Section */
.location-section {
    background: white;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.location-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

address a {
    color: var(--primary-color);
    text-decoration: none;
}

.map-placeholder {
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

/* Giving Page Styles */
.giving-intro {
    background: var(--light-color);
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.giving-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.giving-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.giving-card:hover {
    transform: translateY(-5px);
}

.giving-card.featured {
    border: 2px solid var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.giving-form-section {
    background: var(--light-color);
    padding: 3rem 0;
}

.giving-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.giving-form h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.amount-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.payment-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input[type="radio"] {
    margin-right: 0.5rem;
}

.payment-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.security-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.stripe-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    gap: 0.5rem;
}

.stripe-badge .security-note {
    margin: 0;
}

.stripe-logo {
    opacity: 0.8;
}

.form-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.input-with-icon {
    position: relative;
}

.card-brand {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.card-brand.visa {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='20' viewBox='0 0 32 20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='32' height='20' rx='4' fill='%23F6F6F6'/%3E%3Cpath d='M13.8 6.5h-1.6l-1 6.5h1.6l1-6.5zm-3.3 0l-1.5 4.4-.2-1c-.3-1-.9-2-1.8-2.5v4.6h1.7l2.5-6.5h-1.7zm-4.7 0h-2.5l-.1.1c2 .5 3.3 1.7 3.8 3.2l-.5-3c-.1-.2-.3-.3-.7-.3zm10.5 0c-.3 0-.5.1-.7.4l-2.3 5.6h1.6l.3-.9h2l.2.9h1.4l-1.2-6h-1.3zm.2 1.8l.5 2.4h-1.3l.8-2.4zm8.2-1.8l-1 6.5h1.5l1-6.5h-1.5zm3.7 0c-.3 0-.5.1-.6.4l-2.4 5.6h1.7l.3-.9h2l.2.9h1.5l-1.3-6h-1.4zm.2 1.8l.5 2.4H27l.9-2.4z' fill='%231A1F71'/%3E%3C/svg%3E");
}

.card-brand.mastercard {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='20' viewBox='0 0 32 20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='32' height='20' rx='4' fill='%23F6F6F6'/%3E%3Ccircle cx='12' cy='10' r='5' fill='%23EB001B'/%3E%3Ccircle cx='20' cy='10' r='5' fill='%23F79E1B'/%3E%3Cpath d='M16 14.5c1.2-1.1 2-2.7 2-4.5s-.8-3.4-2-4.5c-1.2 1.1-2 2.7-2 4.5s.8 3.4 2 4.5z' fill='%23FF5F00'/%3E%3C/svg%3E");
}

.card-brand.amex {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='20' viewBox='0 0 32 20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='32' height='20' rx='4' fill='%23006FCF'/%3E%3Cpath d='M8 9l1-3h2l1 3-1 3h-2l-1-3zm8-3h2l2 6h-2l-.3-1h-2.4l-.3 1h-2l2-6zm1 1l-.7 2h1.4l-.7-2zm7 0h-2v4h2v1h-3v-6h3v1z' fill='white'/%3E%3C/svg%3E");
}

.card-brand.discover {
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='20' viewBox='0 0 32 20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='32' height='20' rx='4' fill='%23F6F6F6'/%3E%3Cpath d='M13 10c0 1.7 1.3 3 3 3V7c-1.7 0-3 1.3-3 3z' fill='%23FF6000'/%3E%3Cpath d='M16 7v6c1.7 0 3-1.3 3-3s-1.3-3-3-3z' fill='%23FFA200'/%3E%3C/svg%3E");
}

.payment-secure {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

#submitButton {
    position: relative;
    min-width: 150px;
}

#submitButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.faq-section {
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(44, 90, 160, 0.8)), url('../images/page-header.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
}

/* About Page Styles */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.content-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.beliefs-section {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.beliefs-list {
    list-style: none;
    margin-top: 1.5rem;
}

.beliefs-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.beliefs-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.pastor-section {
    text-align: center;
    margin: 3rem 0;
}

.pastor-bio {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.value-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Ministries Page Styles */
.ministries-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ministry-detail {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.ministry-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ministry-detail ul {
    margin-top: 1rem;
    margin-left: 2rem;
}

/* Sermons Page Styles */
.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.sermon-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.sermon-date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.sermon-card h3 {
    margin-bottom: 0.5rem;
}

.sermon-speaker {
    color: #666;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.sermon-scripture {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.sermon-actions {
    margin-top: 1.5rem;
}

.sermon-series {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 10px;
    margin: 3rem 0;
    text-align: center;
}

.archive-notice {
    text-align: center;
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 2rem;
}

/* Events Page Styles */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    align-items: start;
}

.event-date {
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
}

.event-date .month {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-time {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-location {
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

.weekly-events, .annual-events {
    margin-top: 4rem;
}

.weekly-grid, .annual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.weekly-card, .annual-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
}

.weekly-card h4, .annual-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.weekly-card ul {
    list-style: none;
}

.weekly-card ul li {
    padding: 0.25rem 0;
}

/* Connect Page Styles */
.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    margin-bottom: 2rem;
}

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

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.25rem 0;
}

.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.social-link:hover {
    background: #234580;
}

.prayer-request-section {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 4rem;
}

.prayer-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visitor-section {
    text-align: center;
    margin-bottom: 4rem;
}

.visitor-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.visitor-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.visitor-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.map-section {
    margin-top: 0;
}

/* CTA Section */
.cta-section {
    background: var(--light-color);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .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: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .connect-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        margin: 0 auto;
    }
}