/*
   Rebirth City Sapulpa - Styles
   Tech Stack: Modern CSS3 (Variables, Flexbox, Grid)
*/

:root {
    /* Color Palette */
    --primary-color: #2C3E50;
    /* Dark Blue - Text, Headings, Footer */
    --secondary-color: #3498DB;
    /* Bright Blue - Buttons, Accents */
    --bg-color: #ECF0F1;
    /* Light Gray - Section Backgrounds */
    --accent-color: #F39C12;
    /* Orange - Alerts/Call to Actions */
    --white: #FFFFFF;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: var(--spacing-sm) auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background-color: #2980b9;
}

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

.btn-accent:hover {
    background-color: #d35400;
}

/* Header / Navigation */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
}

/* Hero Section (Slider) */
.hero {
    height: 100vh;
    /* Full viewport height */
    min-height: 600px;
    position: relative;
    margin-top: 100px;
    /* Offset for fixed header */
    overflow: hidden;
    background-color: #000;
    /* Fallback */
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay for text readability */
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Services Section */
.services {
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform var(--transition-speed);
}

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

.icon-wrapper {
    margin-bottom: var(--spacing-md);
}

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

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.about-text {
    flex: 1;
}

.about-text .section-title {
    text-align: left;
    margin-left: 0;
}

.about-text .section-title::after {
    margin-left: 0;
}

.feature-list {
    margin-top: var(--spacing-md);
}

.feature-list li {
    margin-bottom: var(--spacing-sm);
    padding-left: 25px;
    position: relative;
    font-weight: 600;
}

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

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Fundraiser Section */
.fundraiser {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.white-text {
    color: var(--white);
}

.white-text::after {
    background-color: var(--accent-color);
}

.progress-wrapper {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.progress-bar-container {
    background-color: rgba(255, 255, 255, 0.2);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;
    transition: width 1s ease-out;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-bottom: var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    color: var(--white);
    font-weight: 600;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-speed);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
    }

    .about-text .section-title {
        text-align: center;
    }

    .about-text .section-title::after {
        margin: var(--spacing-sm) auto 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }
}

/* --- Multi-Page Styles --- */

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 120px 0 60px;
    /* Top padding accounts for fixed header */
    text-align: center;
    margin-top: 100px;
}

.page-header h1 {
    font-size: 3rem;
    margin: 0;
}

/* Active Nav Link */
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* About Page Content */
.about-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.about-content .text-block {
    flex: 1;
}

.about-content .image-block {
    flex: 1;
}

.about-content .image-block img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.bg-light {
    background-color: var(--bg-color);
}

/* Beliefs Grid */
.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.belief-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.belief-card h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    border: 4px solid var(--bg-color);
}

.team-member h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-member .role {
    color: var(--secondary-color);
    font-weight: 600;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

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

    .ministry-item,
    .ministry-item.reverse {
        flex-direction: column;
    }

    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
}

/* Give Options */
.give-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.give-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--secondary-color);
}

.give-card h3 {
    margin-bottom: var(--spacing-md);
}

.give-card p {
    margin-bottom: var(--spacing-md);
}

/* --- Redesign Styles --- */

/* Hero Small (Enhanced Page Header) */
.hero-small {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.7);
    /* Primary color with opacity */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Intro Text */
.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.2rem;
    color: #555;
}

/* Ministries Grid (Modern) */
.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.ministry-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-content p {
    margin-bottom: 20px;
    color: #666;
    flex: 1;
}

.btn-text {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .ministries-grid {
        grid-template-columns: 1fr;
    }
}

/* Events Grid (Modern) */
.events-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.event-card-modern {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    border-left: 5px solid var(--secondary-color);
}

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

.event-card-modern .content {
    padding: 20px;
}

.event-card-modern .date-badge {
    display: inline-block;
    background-color: var(--bg-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.event-card-modern h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.event-card-modern .meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.event-card-modern .description {
    color: #444;
    margin-bottom: 15px;
}

.give-card p {
    margin-bottom: var(--spacing-md);
}

/* --- Auto-Scrolling Gallery --- */
.gallery-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 40px 0;
    background: #f8f9fa;
    position: relative;
}

.gallery-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.gallery-track img {
    height: 250px;
    width: 350px;
    object-fit: cover;
    margin: 0 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-track img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}