/*
Theme Name: Shalom Today's Ministry
Theme URI: https://shalomtodaysministry.org
Author: Shalom Today's Ministry
Author URI: https://shalomtodaysministry.org
Description: A faith-based NGO WordPress theme for education, women's empowerment, prison ministry, and community transformation organizations. Fully dynamic with custom post types for Programs, Projects, Testimonials, Hero Slides, Gallery and Partners, plus a complete set of Customizer options.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shalom-ministry
Tags: charity, non-profit, ngo, church, custom-menu, featured-images, theme-options, translation-ready
*/

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-blue: #0056B3;
    --primary-dark: #003d80;
    --primary-light: #3385d4;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 18px;
}

/* Header */
.site-header {
    background: var(--primary-blue);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background: var(--primary-dark);
}

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

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.logo img.custom-logo {
    max-height: 50px;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-menu .btn {
    padding: 8px 20px;
}

.nav-menu .btn:hover {
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.slide-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.slide-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.slide-btn {
    animation: fadeInUp 1.2s ease;
}

.no-slides-fallback {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 10px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
    border: none;
}

.slider-arrow:hover {
    background: var(--primary-blue);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Welcome Section */
.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.welcome-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Mission Vision Grid */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mv-card {
    background: var(--light-gray);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    transition: var(--transition);
}

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

.mv-card i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.mv-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

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

.program-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-content {
    padding: 25px;
}

.program-content h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

/* Program Detail Page */
.program-detail {
    padding: 50px 0 80px;
    background: var(--white);
}

.program-detail-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    padding: 160px 0 60px;
    text-align: center;
}

.program-detail-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
}

.program-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.program-detail-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.program-detail-text h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 24px;
}

.program-detail-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.program-features {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
}

.program-features h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.program-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.program-features li {
    padding-left: 25px;
    position: relative;
}

.program-features li:before {
    content: "\2713";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.back-to-programs {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.back-to-programs:hover {
    text-decoration: underline;
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

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

.project-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.project-image {
    height: 250px;
}

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

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,86,179,0.95), transparent);
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay .font-semibold {
    font-weight: 600;
}

.gallery-overlay .text-sm {
    font-size: 14px;
}

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

.testimonial-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

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

.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-name {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.testimonial-designation {
    color: #888;
    font-size: 14px;
}

/* Partners Carousel */
.partners-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.partner-item {
    text-align: center;
}

.partner-item img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-item img:hover {
    filter: grayscale(0%);
}

/* Volunteer Section */
.volunteer-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.volunteer-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--white);
}

.volunteer-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Donation Section */
.donation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.bank-details {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
}

.bank-details p {
    margin-bottom: 10px;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
}

.contact-details p {
    margin: 15px 0;
}

.contact-details i {
    width: 30px;
    color: var(--primary-blue);
}

/* Form Styles */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
}

.form-message {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Footer */
.site-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-widget h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--white);
}

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

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-widget a:hover {
    opacity: 1;
}

.footer-widget p {
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
    opacity: 1;
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-blue);
}

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

.footer-bottom p {
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-img {
    width: 100%;
    border-radius: 10px;
}

.modal-caption {
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 18px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Generic page / single content */
.page-content-wrapper {
    padding: 160px 0 80px;
}

.page-content-wrapper h1 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 42px;
}

.page-content-wrapper img {
    max-width: 100%;
    border-radius: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .slide-title {
        font-size: 32px;
    }

    .slide-subtitle {
        font-size: 16px;
    }

    .welcome-content,
    .mv-grid,
    .donation-grid,
    .contact-grid,
    .program-detail-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 50px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .program-features ul {
        grid-template-columns: 1fr;
    }

    .program-detail-hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 500px;
    }

    .slide-title {
        font-size: 24px;
    }
}
