/* ==========================================================
   RISING SONS AFRICA
   RESOURCES PAGE
========================================================== */

.resources-hero {
    padding: 6rem 0;
    text-align: center;
    color: #FAFAF8;
    background: #0F1F3D;
}

.resources-hero .container {
    width: min(100% - 2rem, 850px);
}

.resources-hero .hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .55rem 1rem;
    border: 1px solid rgba(250, 250, 248, .35);
    border-radius: 999px;
    color: #FAFAF8;
    font-size: .9rem;
    font-weight: 600;
}

.resources-hero h1 {
    margin: 0 0 1rem;
    color: #FAFAF8;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.15;
}

.resources-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(250, 250, 248, .9);
    font-size: 1.1rem;
    line-height: 1.75;
}


/* ==========================================================
   RESOURCE LIST
========================================================== */

.resources-section {
    padding: 5rem 0;
    background: #FAFAF8;
}

.resources-section .container {
    width: min(100% - 2rem, 1240px);
    margin-inline: auto;
}

.resources-section .section-header {
    max-width: 780px;
    margin: 0 auto 3rem;
    text-align: center;
}

.resources-section .section-header h2 {
    margin: 0 0 1rem;
    color: #0F1F3D;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.resources-section .section-header p {
    margin: 0;
    color: #2E2E2E;
    line-height: 1.8;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.resource-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
}

.resource-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.resource-icon {
    display: flex;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #F3F4F6;
    color: #0F1F3D;
    font-size: 1.25rem;
}

.resource-file-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: .35rem .6rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #2E2E2E;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.resource-card-content {
    flex: 1;
}

.resource-card-content h3 {
    margin: 0 0 .75rem;
    color: #0F1F3D;
    font-size: 1.2rem;
    line-height: 1.35;
}

.resource-card-content p {
    margin: 0 0 1rem;
    color: #2E2E2E;
    line-height: 1.7;
}

.resource-card-content .resource-version {
    color: #5B6472;
    font-size: .85rem;
}

.resource-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
}

.resource-read-link {
    color: #0F1F3D;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.resource-read-link:hover {
    color: #2E2E2E;
}

.resource-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .7rem 1rem;
    border: 1px solid #F57C0B;
    border-radius: 7px;
    background: #F57C0B;
    color: #0F1F3D;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.resource-download-button:hover {
    filter: brightness(.96);
    color: #0F1F3D;
}

.resource-read-link:focus-visible,
.resource-download-button:focus-visible,
.resources-contact-button:focus-visible {
    outline: 3px solid #F57C0B;
    outline-offset: 3px;
}


/* ==========================================================
   CONTACT CTA
========================================================== */

.resources-contact {
    padding: 4.5rem 1rem;
    text-align: center;
    color: #FAFAF8;
    background: #0F1F3D;
}

.resources-contact .container {
    width: min(100%, 780px);
    margin-inline: auto;
}

.resources-contact h2 {
    margin: 0 0 1rem;
    color: #FAFAF8;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.resources-contact p {
    margin: 0 auto 1.75rem;
    color: rgba(250, 250, 248, .9);
    line-height: 1.75;
}

.resources-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .75rem 1.25rem;
    border: 1px solid #F57C0B;
    border-radius: 7px;
    background: #F57C0B;
    color: #0F1F3D;
    font-weight: 700;
    text-decoration: none;
}

.resources-contact-button:hover {
    filter: brightness(.96);
    color: #0F1F3D;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
    .resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .resources-hero {
        padding: 4.5rem 0;
    }

    .resources-section {
        padding: 3.5rem 0;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resource-card {
        padding: 1.25rem;
    }

    .resource-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-read-link {
        padding: .35rem 0;
    }

    .resource-download-button {
        width: 100%;
    }
}