/* ==========================================================================
   Indokona Academy - Official Downloads & Prospectus Section
   ========================================================================== */

.academy-downloads-section {
    padding: 85px 20px 75px;
    background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
    position: relative;
    border-top: 1px solid #f0e6d2;
}

.academy-downloads-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.dl-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dl-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 38px;
}

.dl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3d6;
    color: #875700;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #ebd394;
    margin-bottom: 14px;
}

.dl-badge i {
    color: #d4af37;
    font-size: 13px;
}

.dl-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 800;
    color: #3d0000;
    line-height: 1.2;
    margin: 0 0 12px;
}

.dl-header h2 span {
    color: #8c1010;
    background: linear-gradient(90deg, #650000, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dl-header p {
    color: #63615b;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Category Filter Tabs */
.dl-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}

.dl-tab-btn {
    background: #ffffff;
    border: 1px solid #e5dac4;
    color: #555047;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dl-tab-btn:hover {
    background: #fbf6ec;
    border-color: #d4af37;
    color: #650000;
}

.dl-tab-btn.active {
    background: #650000;
    border-color: #650000;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(101, 0, 0, 0.22);
}

.dl-tab-btn .tab-count {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.08);
}

.dl-tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Document Grid */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 22px;
}

/* Document Card */
.dl-card {
    background: #ffffff;
    border: 1px solid #ebdcc5;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(101, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.dl-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #d4af37, #650000);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.dl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(101, 0, 0, 0.12);
    border-color: #d4af37;
}

.dl-card:hover::before {
    opacity: 1;
}

.dl-card-top {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 14px;
}

.dl-icon-wrap {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, #650000, #3d0000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd86b;
    font-size: 24px;
    box-shadow: 0 6px 14px rgba(101, 0, 0, 0.22);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.dl-card-meta {
    flex: 1;
}

.dl-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.dl-pill {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dl-pill-cat {
    background: #fdf3db;
    color: #855500;
    border: 1px solid #ebd49b;
}

.dl-pill-special {
    background: #650000;
    color: #ffffff;
}

.dl-pill-govt {
    background: #0f6836;
    color: #ffffff;
}

.dl-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #1f1b18;
    line-height: 1.35;
    margin: 0 0 6px;
}

.dl-card-desc {
    font-size: 12.5px;
    color: #6d6962;
    line-height: 1.55;
    margin: 0;
}

.dl-card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #ede2cf;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dl-file-info {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: #8c877e;
    font-weight: 700;
}

.dl-file-info i {
    color: #c93b2b;
}

.dl-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-btn-view {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #dfd3be;
    background: #ffffff;
    color: #650000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.dl-btn-view:hover {
    background: #650000;
    color: #ffffff;
    border-color: #650000;
}

.dl-btn-download {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #2b1800;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.22);
}

.dl-btn-download:hover {
    background: linear-gradient(135deg, #f1d77a, #d4af37);
    color: #1a0f00;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(184, 134, 11, 0.32);
}

/* Trust Banner at bottom of downloads */
.dl-trust-banner {
    margin-top: 40px;
    background: linear-gradient(135deg, #3d0000, #5c0f0f);
    border-radius: 16px;
    padding: 20px 26px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(61, 0, 0, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.dl-trust-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dl-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid #d4af37;
    color: #ffd86b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.dl-trust-text strong {
    display: block;
    font-size: 15px;
    color: #ffd86b;
}

.dl-trust-text span {
    font-size: 12px;
    color: #f0e6d6;
}

.dl-trust-btn {
    background: #d4af37;
    color: #3d0000;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s ease;
}

.dl-trust-btn:hover {
    background: #fff;
    color: #3d0000;
}

@media (max-width: 768px) {
    .academy-downloads-section {
        padding: 55px 15px 50px;
    }
    .dl-header h2 {
        font-size: 26px;
    }
    .dl-grid {
        grid-template-columns: 1fr;
    }
    .dl-tabs {
        gap: 6px;
    }
    .dl-tab-btn {
        padding: 7px 14px;
        font-size: 11.5px;
    }
    .dl-trust-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .dl-trust-btn {
        width: 100%;
        justify-content: center;
    }
}
