.recursos-apafiq-wrap {
    --ra-navy: #124E78;
    --ra-teal: #0F766E;
    --ra-cyan: #1D9AAA;
    --ra-coral: #E86A4A;
    --ra-blue: #2F5DA8;
    --ra-green: #3E7C59;
    --ra-amber: #B87818;
    --ra-text: #24333A;
    --ra-muted: #6B7A80;
    --ra-border: #DDE7EA;
    --ra-soft: #F6FAFB;
    width: 100%;
    margin: 24px 0;
    font-family: inherit;
}

.recursos-apafiq-header { margin: 0 0 22px; }
.recursos-apafiq-title {
    margin: 0 0 6px;
    color: var(--ra-navy);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.02em;
}
.recursos-apafiq-subtitle {
    margin: 0;
    color: var(--ra-muted);
    font-size: 15px;
    line-height: 1.5;
}

.recursos-apafiq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
}

.recurso-apafiq-card {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 88px;
    gap: 18px;
    padding: 18px 20px;
    box-sizing: border-box;
    color: var(--ra-text);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,252,.98));
    border: 1px solid var(--ra-border);
    border-radius: 16px;
    text-decoration: none !important;
    box-shadow: 0 5px 18px rgba(25, 65, 78, 0.07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
    overflow: hidden;
}

.recurso-apafiq-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ra-cyan);
    opacity: .9;
}

.recurso-apafiq-card:hover {
    transform: translateY(-2px);
    border-color: rgba(29,154,170,.45);
    box-shadow: 0 10px 26px rgba(25, 65, 78, 0.13);
    background: #fff;
    text-decoration: none !important;
}

.recurso-apafiq-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ra-navy);
    color: #fff;
    box-shadow: 0 5px 14px rgba(18,78,120,.18);
}

.recurso-apafiq-icon svg {
    width: 27px;
    height: 27px;
    display: block;
    fill: currentColor;
}

.recurso-apafiq-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recurso-apafiq-name {
    color: var(--ra-text);
    font-size: 16px;
    line-height: 1.42;
    font-weight: 650;
}

.recurso-apafiq-meta {
    color: var(--ra-muted);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.recurso-apafiq-arrow {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ra-soft);
    color: var(--ra-navy);
    transition: transform .22s ease, background .22s ease;
}

.recurso-apafiq-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.recurso-apafiq-card:hover .recurso-apafiq-arrow {
    transform: translateX(3px);
    background: #EAF4F6;
}

.recurso-apafiq-pdf::before { background: var(--ra-coral); }
.recurso-apafiq-pdf .recurso-apafiq-icon { background: var(--ra-coral); }
.recurso-apafiq-doc::before,
.recurso-apafiq-docx::before { background: var(--ra-blue); }
.recurso-apafiq-doc .recurso-apafiq-icon,
.recurso-apafiq-docx .recurso-apafiq-icon { background: var(--ra-blue); }
.recurso-apafiq-ppt::before,
.recurso-apafiq-pptx::before { background: var(--ra-amber); }
.recurso-apafiq-ppt .recurso-apafiq-icon,
.recurso-apafiq-pptx .recurso-apafiq-icon { background: var(--ra-amber); }
.recurso-apafiq-xls::before,
.recurso-apafiq-xlsx::before { background: var(--ra-green); }
.recurso-apafiq-xls .recurso-apafiq-icon,
.recurso-apafiq-xlsx .recurso-apafiq-icon { background: var(--ra-green); }
.recurso-apafiq-zip::before { background: #6A5A87; }
.recurso-apafiq-zip .recurso-apafiq-icon { background: #6A5A87; }
.recurso-apafiq-link::before { background: var(--ra-teal); }
.recurso-apafiq-link .recurso-apafiq-icon { background: var(--ra-teal); }

@media (max-width: 767px) {
    .recursos-apafiq-wrap { margin: 18px 0; }
    .recursos-apafiq-list { gap: 11px; }
    .recurso-apafiq-card {
        min-height: 78px;
        gap: 13px;
        padding: 14px 15px;
        border-radius: 14px;
    }
    .recurso-apafiq-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    .recurso-apafiq-icon svg { width: 24px; height: 24px; }
    .recurso-apafiq-name { font-size: 15px; }
    .recurso-apafiq-arrow {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
}
