/* Download Page Styles */
.download-hero {
    background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.9)),
        url('https://images.unsplash.com/photo-1568667256549-094345857637?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    text-align: center;
}

/* Category Tab Pills */
.download-nav-wrap {
    background: white;
    box-shadow: 0 2px 12px rgba(26, 54, 93, 0.08);
    position: sticky;
    top: 76px;
    z-index: 100;
}

.download-nav-pills {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    margin: 0;
    list-style: none;
}

.download-nav-pills::-webkit-scrollbar {
    display: none;
}

.download-nav-pills .nav-link {
    white-space: nowrap;
    padding: 16px 28px;
    color: #555;
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.download-nav-pills .nav-link:hover {
    color: var(--primary-color);
    background: #f8fafc;
}

.download-nav-pills .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-accent);
    background: transparent;
    font-weight: 700;
}

/* All-in-one anchor nav for no-JS fallback */
.download-nav-pills .nav-link i {
    margin-right: 6px;
    font-size: 0.85rem;
}

/* Download Section */
.download-section {
    padding: 56px 0 80px;
    background-color: #f8fafc;
    min-height: 60vh;
}

/* Category Block (shown when "all" mode) */
.download-category-block {
    margin-bottom: 48px;
}

.download-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.download-category-title i {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Download Item Row */
.download-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(26, 54, 93, 0.05);
    padding: 18px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    border: 1px solid #f0f4f8;
}

.download-item:hover {
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.10);
    border-color: #dde5f0;
    transform: translateY(-1px);
}

.download-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.2s;
}

.download-item:hover .download-item-icon {
    background: var(--primary-color);
    color: white;
}

.download-item-body {
    flex: 1;
    min-width: 0;
}

.download-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1.4;
}

.download-item-meta {
    font-size: 0.78rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.download-item-meta i {
    margin-right: 3px;
}

/* Download Buttons */
.download-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.download-btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.download-btn-primary:hover {
    background: #122748;
    border-color: #122748;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26, 54, 93, 0.25);
}

.download-btn-outline {
    background: white;
    color: var(--primary-color);
    border-color: #c9d8e8;
}

.download-btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* File extension color hints */
.download-btn-pdf    { background: #e53e3e; border-color: #e53e3e; color: white; }
.download-btn-pdf:hover { background: #c53030; border-color: #c53030; color: white; }
.download-btn-word   { background: #2b6cb0; border-color: #2b6cb0; color: white; }
.download-btn-word:hover { background: #2c5282; border-color: #2c5282; color: white; }
.download-btn-excel  { background: #276749; border-color: #276749; color: white; }
.download-btn-excel:hover { background: #1e4d36; border-color: #1e4d36; color: white; }
.download-btn-zip    { background: #744210; border-color: #744210; color: white; }
.download-btn-zip:hover { background: #5a3208; border-color: #5a3208; color: white; }

/* Empty State */
.download-empty {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.download-empty i {
    font-size: 3rem;
    color: #cbd5e0;
    display: block;
    margin-bottom: 16px;
}

/* Anchor offset for sticky nav */
.category-anchor {
    display: block;
    height: 0;
    margin-top: -110px;
    padding-top: 110px;
    visibility: hidden;
}

/* Mobile */
@media (max-width: 767.98px) {
    .download-hero {
        padding: 60px 0;
    }

    .download-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }

    .download-btns {
        width: 100%;
    }

    .download-btn {
        flex: 1;
        justify-content: center;
    }

    .download-nav-pills .nav-link {
        padding: 12px 18px;
        font-size: 0.85rem;
    }
}
