/* =========================================
   MISSION PAGE STYLES (mission.css)
   ========================================= */

/* --- 1. HERO SECTION (High Contrast Fix) --- */
.mission-hero {
    background: linear-gradient(rgba(20, 39, 33, 0.85), rgba(20, 39, 33, 0.75)), 
                url('/images/honoring-jodie-brackett.webp') no-repeat center center/cover;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Ensure all text in here starts as white */
    color: #ffffff;
    background-attachment: fixed;
}

.mission-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    /* Force White Color */
    color: #ffffff !important; 
    /* Add shadow for extra legibility */
    text-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.mission-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 1; /* Increased from 0.9 */
    font-weight: 400;
    color: #f0f0f0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Mobile size adjustment */
@media (max-width: 768px) {
    .mission-hero h1 { font-size: 2.5rem; }
}

/* --- 2. ORIGIN STORY (Split Layout) --- */
.story-section {
    padding: 80px 0;
    background-color: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-content h2 {
    color: var(--brand-dark);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.story-content p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--brand-light); /* Offset shadow */
}

/* --- 3. TIMELINE (Growth Stats) --- */
.growth-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.timeline-container {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
    padding: 20px 0;
}

/* Vertical Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 4px;
    background: var(--brand-gold);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    position: relative;
}

/* Dots on the line */
.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--brand-dark);
    border: 4px solid var(--brand-gold);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto; /* Push to right */
}

.timeline-year {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(20, 39, 33, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.timeline-stat {
    font-size: 1.5rem;
    color: var(--brand-dark);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

/* --- 4. TRANSPARENCY (Icons) --- */
.transparency-section {
    padding: 80px 0;
    background-color: var(--brand-dark);
    color: var(--white);
    text-align: center;
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.transparency-card i {
    font-size: 3rem;
    color: var(--brand-gold);
    margin-bottom: 20px;
}

.transparency-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.transparency-card p {
    opacity: 0.8;
    line-height: 1.6;
}

/* --- 5. NOMINATION CTA --- */
.nominate-section {
    background: var(--white);
    padding: 100px 0;
    text-align: center;
}

.nominate-box {
    border: 2px dashed var(--brand-dark);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 8px;
}
/* --- UPDATED: ORIGIN STORY COLLAGE --- */
.story-image {
    position: relative;
    min-height: 450px; /* Increased height to fit two images */
}

.story-image .main-img {
    width: 85%;
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--brand-light);
    position: relative;
    z-index: 1;
}

.story-image .secondary-img {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: 40%; /* Smaller overlay image */
    border: 8px solid var(--white);
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 2;
}

/* --- NEW: VISUAL PHOTO STRIP --- */
.mission-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 300px; /* Fixed height strip */
}

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

/* Hover effect for the strip */
.mission-strip div {
    overflow: hidden;
}
.mission-strip div:hover img {
    transform: scale(1.1);
}

/* --- UPDATED: NOMINATION WITH BACKGROUND --- */
.nominate-section {
    /* Adding a soft background image */
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
                url('/images/starting-group-2025.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
}

.nominate-box {
    background: var(--white); /* White box on top of the image */
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); /* Soft shadow */
    padding: 50px;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 8px;
    border-top: 5px solid var(--brand-gold);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .mission-strip { grid-template-columns: 1fr; height: auto; }
    .mission-strip img { height: 250px; }
    .story-image { min-height: auto; margin-bottom: 40px; }
    .story-image .secondary-img { position: relative; width: 200px; bottom: auto; right: auto; margin-top: -100px; margin-left: 180px; }
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .story-grid { grid-template-columns: 1fr; }
    
    .timeline-container::before { left: 20px; } /* Move line to left */
    .timeline-dot { left: 20px; }
    .timeline-content { width: 85%; margin-left: 50px !important; }
    
    .transparency-grid { grid-template-columns: 1fr; }
    
    .mission-hero h1 { font-size: 2.5rem; }
}
/* --- FIX: VISIBILITY FOR EMAIL BUTTON --- */
.nominate-box .btn-outline {
    color: var(--brand-dark) !important;       /* Dark Green Text */
    border: 2px solid var(--brand-dark) !important; /* Dark Green Border */
    font-weight: 700;
}

.nominate-box .btn-outline:hover {
    background-color: var(--brand-dark) !important; /* Dark Background on Hover */
    color: var(--white) !important;            /* White Text on Hover */
}