/* --- 1. OUTREACH HERO SECTION --- */
.outreach-hero {
    /* grid-column is not needed here as it is outside the grid container */
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('../images/teamLogo.png');
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid #94d8ff; /* BLUE ACCENT LINE */
    margin-bottom: 40px;
}

.outreach-hero h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.outreach-hero p {
    color: #e0e0e0;
    font-size: 1.3rem;
    max-width: 700px;
    margin: 20px auto 0 auto;
    font-weight: 300;
}

/* --- 2. GRID LAYOUT --- */
.maincontainer {
    display: grid;
    /* CHANGED: 350px -> 290px to fit smaller screens better before stacking */
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    padding: 0 40px 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

/* --- 3. CARD STYLING --- */
.outreach-card {
    background: linear-gradient(145deg, #383838, #2b2b2b);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    
    /* Top Border in YOUR BLUE */
    border-top: 5px solid #94d8ff; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.outreach-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.15); /* Blue glow on hover */
}

/* Titles */
.outreach-card h3 {
    color: #94d8ff; /* BLUE TITLE */
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(148, 216, 255, 0.3);
    padding-bottom: 10px;
    width: 100%;
}

/* Text Content */
.card-content p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-content strong {
    color: white;
    font-weight: 600;
}

/* --- 4. MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* Hero Adjustments */
    .outreach-hero h1 {
        font-size: 2rem;
    }
    
    .outreach-hero {
        padding: 40px 15px;
    }

    /* Grid Adjustments */
    .maincontainer {
        /* CRITICAL FIX: Force single column on mobile */
        grid-template-columns: 1fr;
        /* CRITICAL FIX: Reduce padding to prevent squishing */
        padding: 0 15px 40px 15px;
    }
    
    /* Card Adjustments */
    .outreach-card {
        padding: 25px 20px;
    }
}