/* Taxonomy Archive Page (Topic & Region) */

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.taxonomy-hero {
    position: relative;
    background: url('../../media/images/engineer-working-with-airplane.jpg') center / cover no-repeat;
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.taxonomy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 51, 102, 0.75), rgba(0, 51, 102, 0.92));
}

.taxonomy-hero-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.taxonomy-label {
    display: inline-block;
    background: #FF8C00;
    color: white;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.taxonomy-term-name {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.taxonomy-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 14px;
}

.taxonomy-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ── Archive section ─────────────────────────────────────────────────────────── */
.taxonomy-archive-section {
    background: #f5f5f5;
    padding: 60px 20px;
}

.taxonomy-archive-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Post grid ───────────────────────────────────────────────────────────────── */
.taxonomy-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* ── Post card ───────────────────────────────────────────────────────────────── */
.taxonomy-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.taxonomy-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}

.taxonomy-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #eaeaea;
}

.taxonomy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.taxonomy-post-card:hover .taxonomy-card-image img {
    transform: scale(1.04);
}

.taxonomy-card-content {
    padding: 20px;
}

.taxonomy-card-type {
    display: inline-block;
    color: #FF8C00;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.taxonomy-card-title {
    font-size: 18px;
    color: #003366;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.taxonomy-post-card:hover .taxonomy-card-title {
    text-decoration: underline;
}

.taxonomy-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.taxonomy-card-date {
    color: #999;
    font-size: 13px;
}

/* ── Pagination ──────────────────────────────────────────────────────────────── */
.taxonomy-pagination {
    margin-top: 50px;
    text-align: center;
}

.taxonomy-pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.taxonomy-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: white;
    color: #003366;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
}

.taxonomy-pagination .page-numbers.current {
    background: #003366;
    color: white;
    border-color: #003366;
}

.taxonomy-pagination .page-numbers:hover:not(.current) {
    border-color: #FF8C00;
    color: #FF8C00;
}

.taxonomy-pagination .page-numbers.prev,
.taxonomy-pagination .page-numbers.next {
    width: auto;
    padding: 0 16px;
}

/* ── No results ──────────────────────────────────────────────────────────────── */
.taxonomy-no-results {
    text-align: center;
    padding: 80px 20px;
}

.taxonomy-no-results .no-results-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.taxonomy-no-results h3 {
    font-size: 24px;
    color: #003366;
    margin-bottom: 10px;
}

.taxonomy-no-results p {
    color: #666;
    font-size: 16px;
}

/* ── Tablet (≥641px) ─────────────────────────────────────────────────────────── */
@media (min-width: 641px) {
    .taxonomy-term-name {
        font-size: 48px;
    }

    .taxonomy-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Desktop (≥1025px) ───────────────────────────────────────────────────────── */
@media (min-width: 1025px) {
    .taxonomy-hero {
        padding: 80px 20px;
    }

    .taxonomy-term-name {
        font-size: 56px;
    }

    .taxonomy-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .taxonomy-card-image {
        height: 220px;
    }
}
