/* ======================= Page Header Banner ======================= */
.page-header {
    background-image: linear-gradient(rgba(3, 109, 182, 0.85), rgba(3, 109, 182, 0.85)), url('https://images.pexels.com/photos/9048742/pexels-photo-9048742.jpeg');
    background-size: cover;
    background-position: center;
    padding: 140px 0 80px 0;
    text-align: center;
    color: var(--white);
}
.page-header h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; }
.page-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; opacity: 0.9; }

/* ======================= Resource Section General Styles ======================= */
.resource-section { padding: 80px 0; }
.resource-section.shaded-bg { background-color: var(--bg-light); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem auto; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.section-header h2 i { margin-right: 10px; color: var(--primary-blue); }

/* ======================= FINAL BUTTON-BASED CARD DESIGN ======================= */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    text-align: center;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.resource-card h3 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.resource-card p {
    font-size: 1rem;
    color: var(--body-text);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1; /* Pushes the button to the very bottom */
}

.resource-btn {
    margin-top: 1.5rem;
    display: inline-block;
    padding: 12px 28px;
    font-weight: 500;
}
.resource-btn i {
    margin-left: 8px;
    font-size: 0.9em;
}


/* ======================= Responsive Design ======================= */
@media (max-width: 768px) {
    .page-header h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    /* Design is already responsive due to auto-fit grid. No specific changes needed. */
    .resource-card {
        padding: 2rem 1.5rem;
    }
}