/* ========================================
   ABOUT PAGE STYLES
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.about-page .hero-section {
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    min-height: 100vh; /* Use min-height instead of fixed height */
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-image: url('/img/background-about.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Keep background fixed for parallax effect */
    padding-top: 80px; /* Ensure Fred's head is well below header bottom at 73px */
}

/* Ensure hero section accommodates stacked cards on mobile */
@media (max-width: 900px) {
    .about-page .hero-section {
        min-height: 140vh; /* Increase height to accommodate stacked cards */
    }
}

.about-page .hero-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-page .hero-spacer {
    display: none; /* Remove hero-spacer since hero is no longer fixed */
}

/* ========================================
   AUTHORS GRID
   ======================================== */

.authors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
}

.author-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 3rem;
    text-align: center;
    border: 2px solid var(--forest-green);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.author-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid var(--forest-green);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.author-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.author-title {
    font-size: 1.1rem;
    color: #666; /* Dark gray for better contrast */
    margin-bottom: 1rem;
    font-weight: 500;
}

.author-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333; /* Dark text for readability */
    margin: 0;
}

/* ========================================
   MISSION SECTION
   ======================================== */

.mission-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 4rem 0;
    margin: 0;
}

.mission-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mission-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--forest-green);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.mission-statement {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333; /* Dark text for readability */
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

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

.mission-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(58, 90, 64, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.mission-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.mission-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333; /* Dark text for readability */
    margin: 0;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    margin: 0; /* Remove all margins to eliminate gap */
    border-radius: var(--border-radius-large);
    border: 1px solid rgba(58, 90, 64, 0.1);
    padding: 3rem 2rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 900px) {
    .about-page .hero-container {
        padding: 0 1rem;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Reduced gap to save vertical space */
    }
    
    .author-card {
        padding: 1.5rem; /* Reduced padding to save vertical space */
    }
    
    .author-photo {
        width: 120px;
        height: 120px;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .mission-section {
        padding: 3rem 0;
    }
    
    .mission-section h2 {
        font-size: 2rem;
    }
    
    .mission-statement {
        font-size: 1.1rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mission-card {
        padding: 2rem;
    }
    
    .newsletter-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .about-page .hero-container {
        padding: 0 0.5rem;
    }
    
    .author-card {
        padding: 1.25rem; /* Further reduced padding for small screens */
    }
    
    .author-photo {
        width: 100px;
        height: 100px;
    }
    
    .mission-section {
        padding: 2rem 0;
    }
    
    .mission-section h2 {
        font-size: 1.8rem;
    }
    
    .mission-statement {
        font-size: 1rem;
    }
    
    .mission-card {
        padding: 1.5rem;
    }
}

/* ========================================
   MAIN CONTENT POSITIONING
   ======================================== */

.about-page main {
    position: relative;
    z-index: 1; /* Lowered z-index to allow nav menu to appear */
    margin-top: 0;
    padding-bottom: 0;
}

/* ========================================
   PAGE-SPECIFIC OVERRIDES
   ======================================== */

.about-page .author-card {
    /* Ensure cards don't inherit background */
    background-image: none !important;
}

.about-page .newsletter-section {
    border-radius: 0; /* Square corners */
    margin: 0; /* No gap before footer or after mission section */
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .about-page {
        background: white;
    }
    
    .author-card,
    .mission-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .hero-overlay {
        display: none;
    }
}
