/* Back Issues Page Styles */
.back-issues-hero {
    /*background: linear-gradient(135deg, var(--ink) 0%, var(--ink2) 100%);*/
    background: linear-gradient(45deg, #800000, #800000);
    padding: 60px 0;
    margin-bottom: 50px;
    border-bottom: 3px solid var(--red);
    position: relative;
    overflow: hidden;
}

.back-issues-hero::before {
    content: "ARCHIVE";
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-family: var(--serif);
    font-size: 120px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
}

.back-issues-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.back-issues-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    /*background: var(--red);*/
    background: #dfdfdf;
}

.back-issues-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    max-width: 600px;
}

/* Year Filter */
.year-filter {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    border: 1px solid var(--line);
}

.year-filter-title {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--ink);
}

.year-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.year-btn {
    padding: 8px 20px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink3);
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.3s;
    cursor: pointer;
}

.year-btn:hover,
.year-btn.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* Search Bar */
.back-issues-search {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--line);
    box-shadow: 1px 1px 3px -2px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.search-box button {
    padding: 12px 30px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--red-dark);
}

/* Table Styles */
.issues-table-container {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--line);
    overflow: auto;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.issues-table {
    width: 100%;
    border-collapse: collapse;
}

.issues-table thead {
    background: var(--smoke);
    border-bottom: 2px solid var(--red);
}

.issues-table th {
    padding: 15px 20px;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.issues-table tbody tr {
    border-bottom: 1px solid var(--line);
    transition: background 0.2s;
}

.issues-table tbody tr:hover {
    background: rgba(200, 16, 46, 0.02);
}

.issues-table tbody tr:last-child {
    border-bottom: none;
}

.issues-table td {
    padding: 15px 20px;
    color: var(--ink3);
    font-size: 15px;
    vertical-align: middle;
}

.issue-title-cell {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.volume-badge {
    display: inline-block;
    background: rgba(200, 16, 46, 0.08);
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 30px;
    margin-right: 10px;
    white-space: nowrap;
}

.date-cell {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.download-cell {
    white-space: nowrap;
}

.table-download-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--red);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-right: 5px;
}

.table-download-link:hover {
    background: var(--red);
    color: white;
}

.table-download-link i {
    font-size: 14px;
}

/* Featured Back Issue */
.featured-back-issue {
    background: linear-gradient(135deg, var(--smoke) 0%, white 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.featured-back-issue::before {
    content: 'FEATURED';
    position: absolute;
    top: 30px;
    right: -40px;
    background: var(--red);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 40px;
    transform: rotate(45deg);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.featured-badge i {
    font-size: 14px;
}

.featured-volume {
    display: inline-block;
    background: rgba(200, 16, 46, 0.1);
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.featured-title {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.featured-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.featured-date i {
    color: var(--red);
}

.featured-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.featured-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    background: rgba(200, 16, 46, 0.05);
    transition: all 0.3s;
}

.featured-download-link:hover {
    background: var(--red);
    color: white;
    gap: 12px;
}

/* Pagination */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    color: var(--ink3);
    border: 1px solid var(--line);
    margin: 0 3px;
    padding: 8px 15px;
    transition: all 0.3s;
}

.pagination .page-link:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.pagination .page-item.active .page-link {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #000 !important;
}




/* Responsive Design - Attractive Mobile Cards */
@media (max-width: 992px) {
    .back-issues-title {
        font-size: 2.5rem;
    }

    .back-issues-hero::before {
        font-size: 80px;
        right: -10px;
        bottom: -10px;
    }
}

@media (max-width: 768px) {
    .back-issues-hero {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .back-issues-hero::before {
        font-size: 60px;
        right: -10px;
        bottom: -5px;
    }

    .back-issues-title {
        font-size: 1.8rem;
    }

    .back-issues-title::after {
        width: 50px;
        bottom: -8px;
    }

    .back-issues-subtitle {
        font-size: 0.9rem;
        margin-top: 15px;
    }

    /* Search Box */
    .back-issues-search {
        padding: 15px;
    }

    .search-box {
        flex-direction: column;
        gap: 10px;
    }

    .search-box input {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 10px;
    }

    .search-box button {
        width: 100%;
        padding: 12px;
        justify-content: center;
        border-radius: 10px;
    }

    /* Year Filter */
    .year-filter {
        padding: 15px;
        border-radius: 12px;
    }

    .year-filter-title {
        font-size: 16px;
        text-align: center;
    }

    .year-buttons {
        justify-content: center;
        gap: 8px;
    }

    .year-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 30px;
    }

    /* ============================================ */
    /* ATTRACTIVE MOBILE CARDS - REPLACED TABLE */
    /* ============================================ */
    .issues-table thead {
        display: none;
    }

    .issues-table tbody {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .issues-table tbody tr {
        display: block;
        background: white;
        border-radius: 16px;
        padding: 0;
        margin-bottom: 0;
        border: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .issues-table tbody tr:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(200, 16, 46, 0.12);
    }

    .issues-table td {
        display: flex;
        align-items: center;
        padding: 14px 18px;
        border-bottom: 1px solid #f0f0f0;
        gap: 12px;
    }

    .issues-table td:last-child {
        border-bottom: none;
    }

    /* Card Header Styling */
    .issues-table td:first-child {
        background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
        border-bottom: 2px solid #c8102e;
    }

    /* Serial Number Styling */
    .issues-table td:first-child::before {
        content: "📖";
        font-weight: normal;
        color: #c8102e;
        font-size: 16px;
    }

    .issues-table td:first-child {
        font-size: 16px;
        font-weight: 700;
        color: #c8102e;
    }

    /* Labels Styling */
    .issues-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #c8102e;
        min-width: 100px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-family: 'Outfit', sans-serif;
    }

    .issue-title-cell::before {
        content: "📄 TITLE";
        color: #c8102e;
    }

    .date-cell::before {
        content: "📅 VOLUME / YEAR";
        color: #c8102e;
    }

    .download-cell::before {
        content: "⬇️ DOWNLOADS";
        color: #c8102e;
    }

    /* Title Styling */
    .issue-title-cell {
        font-size: 15px;
        font-weight: 600;
        color: #1a1a1a;
        line-height: 1.45;
        flex: 1;
        font-family: 'Cormorant Garamond', serif;
    }

    /* Date/Volume Styling */
    .date-cell {
        font-size: 13px;
        color: #555;
        flex-wrap: wrap;
    }

    .date-cell .text-muted {
        display: inline-block;
        background: #f0f0f0;
        padding: 2px 8px;
        border-radius: 20px;
        font-size: 11px;
        margin-left: 8px;
        color: #666;
    }

    /* Volume Badge */
    .volume-badge {
        display: inline-block;
        background: rgba(200, 16, 46, 0.1);
        color: #c8102e;
        font-size: 11px;
        font-weight: 600;
        padding: 3px 10px;
        border-radius: 20px;
        margin-right: 8px;
    }

    /* Download Button Styling */
    .download-cell {
        padding: 12px 18px;
        background: #fafafa;
    }

    .download-cell::before {
        align-self: center;
    }

    .table-download-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #c8102e;
        color: white;
        padding: 8px 20px;
        border-radius: 40px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .table-download-link:hover {
        background: #a00d26;
        transform: scale(1.02);
        color: white;
    }

    /* Featured Section */
    .featured-back-issue {
        padding: 20px;
        margin-bottom: 30px;
        border-radius: 16px;
        background: linear-gradient(135deg, #fff 0%, #fef5f5 100%);
    }

    .featured-back-issue::before {
        font-size: 9px;
        padding: 4px 30px;
        top: 20px;
        right: -35px;
        border-radius: 0;
    }

    .featured-badge {
        font-size: 11px;
        padding: 5px 14px;
        border-radius: 30px;
        margin-bottom: 15px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .featured-volume {
        font-size: 12px;
        padding: 4px 14px;
        border-radius: 30px;
        display: inline-block;
    }

    .featured-title {
        font-size: 1.4rem;
        line-height: 1.35;
        margin-top: 10px;
    }

    .featured-date {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .featured-actions {
        flex-direction: column;
        gap: 12px;
    }

    .featured-download-link {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        border-radius: 50px;
        font-size: 14px;
    }

    /* Pagination */
    .pagination-container {
        margin-top: 35px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .pagination .page-link {
        padding: 8px 14px;
        font-size: 13px;
        margin: 0;
        border-radius: 10px;
        min-width: 38px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .back-issues-hero {
        padding: 30px 0;
    }

    .back-issues-hero::before {
        font-size: 45px;
    }

    .back-issues-title {
        font-size: 1.5rem;
    }

    .back-issues-subtitle {
        font-size: 0.8rem;
    }

    .issues-table td {
        padding: 12px 15px;
    }

    .issues-table td::before {
        min-width: 85px;
        font-size: 10px;
    }

    .issue-title-cell {
        font-size: 14px;
    }

    .date-cell {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .table-download-link {
        padding: 6px 16px;
        font-size: 12px;
    }

    .featured-title {
        font-size: 1.2rem;
    }

    .featured-back-issue {
        padding: 18px;
    }

    .pagination .page-link {
        padding: 6px 11px;
        font-size: 12px;
        min-width: 32px;
    }
}

@media (max-width: 400px) {
    .issues-table td {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .issues-table td::before {
        min-width: auto;
        margin-bottom: 4px;
    }

    .download-cell {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .download-cell::before {
        margin-bottom: 0;
    }

    .table-download-link {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}


/* Responsive */
/* @media (max-width: 768px) {
    .back-issues-hero {
        padding: 40px 0;
    }

    .back-issues-hero::before {
        font-size: 80px;
    }

    .search-box {
        flex-direction: column;
    }

    .year-buttons {
        justify-content: center;
    }

    .year-btn {
        padding: 6px 15px;
        font-size: 13px;
    }

    .issues-table thead {
        display: none;
    }

    .issues-table tbody tr {
        display: block;
        padding: 15px;
        border: 1px solid var(--line);
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .issues-table td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left;
    }

    .issues-table td::before {
        content: attr(data-label);
        display: inline-block;
        width: 100px;
        font-weight: 600;
        color: var(--ink);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .download-cell::before {
        content: "Downloads: ";
    }

    .date-cell::before {
        content: "Date: ";
    }

    .issue-title-cell::before {
        content: "Issue: ";
    }

    .volume-badge {
        margin-left: 100px;
    }

    .featured-title {
        font-size: 22px;
    }

    .featured-actions {
        flex-direction: column;
    }

    .featured-download-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .featured-back-issue::before {
        font-size: 10px;
        padding: 4px 30px;
    }

    .table-download-link {
        padding: 8px 10px;
        font-size: 13px;
    }
} */