/* Additional Styles for Inner Pages - Design 5 (Classic Charity) */

/* ===== Page Hero ===== */
.page-hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest-green) url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=1920&q=80') center/cover no-repeat;
    margin-bottom: 4rem;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.40) 0%, rgba(30, 64, 18, 0.45) 50%, rgba(15, 36, 9, 0.50) 100%);
    pointer-events: none;
}

.page-hero .hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-family: 'Lato', sans-serif;
}

/* Page-specific hero backgrounds */
.hero-about {
    background-image: url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?w=1920&q=80');
}

.hero-programs {
    background-image: url('https://images.unsplash.com/photo-1593113598332-cd288d649433?w=1920&q=80');
}

.hero-events {
    background-image: url('https://images.unsplash.com/photo-1593113646773-028c64a8f1b8?w=1920&q=80');
}

.hero-ways-to-give {
    background-image: url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?w=1920&q=80');
}

.hero-testimonials {
    background-image: url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?w=1920&q=80');
}

.hero-contact {
    background-image: url('https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?w=1920&q=80');
}

.hero-gallery {
    background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1920&q=80');
}

/* ===== Programs Page ===== */
.program-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: center;
}

.program-item.reverse {
    direction: rtl;
}

.program-item.reverse > * {
    direction: ltr;
}

.program-item.full-width {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.program-image {
    border-radius: 16px;
    overflow: hidden;
}

.placeholder-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.program-content h2 {
    margin-bottom: 1.5rem;
    color: #2D5016;
    font-family: 'Merriweather', serif;
}

.program-content p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
    font-family: 'Lato', sans-serif;
}

.program-content-full p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1rem;
    font-family: 'Lato', sans-serif;
}

/* ===== Testimonials Page ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.15);
}

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

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2D5016, #4a7d2a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-avatar svg {
    width: 40px;
    height: 40px;
    color: white;
}

.testimonial-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    font-family: 'Merriweather', serif;
    color: #2D5016;
}

.testimonial-rating {
    color: #B8860B;
    font-size: 1.125rem;
}

.testimonial-text {
    color: #555;
    line-height: 1.8;
    font-style: italic;
    font-family: 'Lato', sans-serif;
}

/* ===== Ways to Give Page ===== */
.donation-section {
    background: #f9f9f9;
}

.donation-form-wrapper {
    max-width: 600px;
    margin: 3rem auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.donation-form-wrapper h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-family: 'Merriweather', serif;
    color: #2D5016;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2D5016;
    font-family: 'Lato', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2D5016;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-submit .btn {
    min-width: 200px;
}

/* Volunteer Section */
.volunteer-section {
    background: white;
}

.volunteer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.volunteer-image {
    border-radius: 16px;
    overflow: hidden;
}

.volunteer-info h2 {
    margin-bottom: 1.5rem;
    font-family: 'Merriweather', serif;
    color: #2D5016;
}

.volunteer-info p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-family: 'Lato', sans-serif;
}

/* ===== Contact Page ===== */
.contact-section {
    background: #f9f9f9;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-family: 'Merriweather', serif;
    color: #2D5016;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2D5016, #4a7d2a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.contact-details h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-family: 'Merriweather', serif;
    color: #2D5016;
}

.contact-details p {
    color: #555;
    font-family: 'Lato', sans-serif;
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-form-wrapper h3 {
    margin-bottom: 2rem;
    font-family: 'Merriweather', serif;
    color: #2D5016;
}

/* ===== About Page ===== */
.about-intro {
    background: white;
}

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

.about-content p {
    font-size: 1.125rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
}

.about-values {
    background: #f9f9f9;
}

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

.value-item {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2D5016, #4a7d2a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.value-item h3 {
    margin-bottom: 1rem;
    font-family: 'Merriweather', serif;
    color: #2D5016;
}

.value-item p {
    color: #555;
    line-height: 1.8;
    font-family: 'Lato', sans-serif;
}

/* ===== Events Page ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.15);
}

.event-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.event-content {
    padding: 2rem;
}

.event-date {
    color: #B8860B;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
}

.event-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'Merriweather', serif;
    color: #2D5016;
}

.event-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
}

.event-link {
    color: #2D5016;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lato', sans-serif;
}

.event-link:hover {
    gap: 0.75rem;
    color: #4a7d2a;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .page-hero {
        height: 250px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .program-item,
    .program-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .donation-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .volunteer-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional mobile optimizations for smaller screens */
@media (max-width: 640px) {
    .contact-section {
        overflow-x: hidden;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-wrapper {
        gap: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        width: 100%;
        overflow: hidden;
    }
}

/* Mobile responsive styles for About page */
@media (max-width: 968px) {
    /* What We Do cards - stack in single column on tablets and mobile */
    .what-we-do div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 600px !important;
    }

    /* Who We Are section - stack in single column */
    section[style*="background: white"] div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Our Journey section - stack in single column */
    section:has(h2:contains("Our Journey")) div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Journey image order fix */
    section div[style*="position: relative; border-radius: 20px; overflow: hidden"] {
        order: -1;
    }

    section div[style*="position: relative; border-radius: 20px; overflow: hidden"] img {
        height: 300px !important;
    }

    /* Stats boxes in Who We Are */
    div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem"] {
        grid-template-columns: 1fr !important;
    }

    /* Adjust padding on sections for mobile */
    .section {
        padding: 3rem 0 !important;
    }

    .what-we-do,
    section[style*="padding: 5rem 0"] {
        padding: 3rem 0 !important;
    }
}
