/* ==========================================================
   AFDES CATEGORY PAGE - CLEAN EDITORIAL STYLE
========================================================== */

.category-page {
    padding: 46px 0 76px;
    background: #ffffff;
}

/* ==========================================================
   SIMPLE TITLE AREA
========================================================== */

.category-hero {
    max-width: 860px;
    margin: 0 auto 22px;
    padding: 28px 0 10px;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.category-hero::before,
.category-hero::after {
    display: none;
}

.category-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #049bce;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.category-eyebrow::before,
.category-eyebrow::after {
    content: "";
    width: 26px;
    height: 1px;
    background: rgba(4, 155, 206, 0.45);
}

.category-hero h1 {
    max-width: 780px;
    margin: 0 auto;
    color: #071827;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.category-hero p {
    max-width: 680px;
    margin: 14px auto 0;
    color: #64748b;
    font-size: 1.04rem;
    line-height: 1.7;
}

/* ==========================================================
   SECTION CATEGORY BUTTONS
========================================================== */

.category-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 980px;
    margin: 18px auto 38px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(7, 24, 39, 0.09);
}

.category-subnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 17px;
    border: 1px solid rgba(7, 24, 39, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #071827;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.18s ease;
}

.category-subnav a:hover {
    border-color: #049bce;
    color: #049bce;
}

.category-subnav a.active {
    background: #071827;
    border-color: #071827;
    color: #ffffff;
}

/* ==========================================================
   CONTENT HEADER
========================================================== */

.category-content {
    margin-top: 6px;
}

.category-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(7, 24, 39, 0.1);
}

.category-section-title span {
    display: block;
    margin-bottom: 6px;
    color: #049bce;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.category-section-title h2 {
    margin: 0;
    color: #071827;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.category-section-title strong {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================
   ARTICLE LIST
========================================================== */

.category-list {
    display: grid;
    gap: 18px;
}

.category-card {
    display: grid;
    grid-template-columns: 285px 1fr;
    gap: 22px;
    padding: 16px;
    border: 1px solid rgba(7, 24, 39, 0.08);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(7, 24, 39, 0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(4, 155, 206, 0.25);
    box-shadow: 0 18px 42px rgba(7, 24, 39, 0.08);
}

.category-card-image {
    display: block;
    overflow: hidden;
    min-height: 185px;
    background: #e2e8f0;
}

.category-card-image img {
    display: block;
    width: 100%;
    height: 185px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.035);
}

.category-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.category-label {
    width: fit-content;
    color: #049bce;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.category-label:hover {
    color: #071827;
}

.category-card h3 {
    margin: 9px 0 10px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.category-card h3 a {
    color: #071827;
    text-decoration: none;
}

.category-card h3 a:hover {
    color: #049bce;
}

.category-card p {
    max-width: 760px;
    margin: 0 0 14px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
}

.category-card small {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 800;
}

.category-card small span {
    margin: 0 6px;
    color: #94a3b8;
}


/* ==========================================================
   CATEGORY PAGINATION
========================================================== */

.category-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 34px 0 0;
}

.category-pagination a,
.category-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(7, 24, 39, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #071827;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.category-pagination a:hover {
    border-color: #049bce;
    color: #049bce;
}

.category-pagination .active {
    background: #071827;
    border-color: #071827;
    color: #ffffff;
}

.category-pagination .disabled {
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
}

/* ==========================================================
   EMPTY / NOT FOUND
========================================================== */

.category-empty {
    padding: clamp(32px, 5vw, 54px);
    border: 1px solid rgba(7, 24, 39, 0.08);
    background: #ffffff;
    text-align: center;
    box-shadow: 0 10px 26px rgba(7, 24, 39, 0.045);
}

.category-empty span {
    display: inline-block;
    margin-bottom: 10px;
    color: #049bce;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.category-empty h1,
.category-empty h2 {
    max-width: 760px;
    margin: 0 auto 12px;
    color: #071827;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.category-empty p {
    max-width: 640px;
    margin: 0 auto 20px;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

.category-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 10px;
    background: #049bce;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.category-empty a:hover {
    background: #071827;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 860px) {
    .category-card {
        grid-template-columns: 230px 1fr;
    }

    .category-card-image,
    .category-card-image img {
        height: 170px;
        min-height: 170px;
    }
}

@media (max-width: 720px) {
    .category-page {
        padding: 30px 0 56px;
    }

    .category-hero {
        padding: 20px 0 8px;
    }

    .category-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .category-card {
        grid-template-columns: 1fr;
    }

    .category-card-image,
    .category-card-image img {
        height: 225px;
        min-height: 225px;
    }

    .category-subnav {
        justify-content: flex-start;
        margin-bottom: 28px;
    }

    .category-subnav a {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .category-hero h1 {
        font-size: 2rem;
    }

    .category-hero p {
        font-size: 0.98rem;
    }

    .category-card {
        padding: 13px;
    }

    .category-card-image,
    .category-card-image img {
        height: 205px;
        min-height: 205px;
    }
}