/* ==========================================================
   SOCIOEDUCATIONS - PREMIUM NEWS CATEGORY DESIGN
   GeneratePress Child Theme
   ========================================================== */

:root {
    --se-red: #ed1c24;
    --se-ink: #1a1a1a;
    --se-muted: #77736d;
    --se-border: #eae7e1;
    --se-paper: #fcfbf9;
    --se-white: #ffffff;
    --se-heading: "Playfair Display", Georgia, serif;
    --se-body: "Plus Jakarta Sans", Arial, sans-serif;
    --se-serif: "Merriweather", Georgia, serif;
    --se-mono: "JetBrains Mono", monospace;
}

/* PAGE */

.se-category-page {
    background: var(--se-paper);
    color: var(--se-ink);
    padding: 38px 0 75px;
    font-family: var(--se-body);
}

.se-category-page *,
.se-category-page *::before,
.se-category-page *::after {
    box-sizing: border-box;
}

.se-category-container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

/* CATEGORY HEADER */

.se-category-header {
    padding-bottom: 27px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--se-border);
}

.se-category-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: var(--se-red);
    font-family: var(--se-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.se-category-eyebrow-line {
    width: 28px;
    height: 2px;
    background: var(--se-red);
}

.se-category-title {
    margin: 0 0 12px;
    color: var(--se-ink);
    font-family: var(--se-heading);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.8px;
}

.se-category-description {
    max-width: 760px;
    margin: 0;
    color: #716c65;
    font-family: var(--se-serif);
    font-size: 14px;
    line-height: 1.85;
}

.se-category-description p {
    margin: 0;
}

.se-category-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.se-category-story-count {
    color: var(--se-muted);
    font-family: var(--se-mono);
    font-size: 10px;
}

.se-category-sort {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 8px;
    background: #efede8;
}

.se-category-sort a {
    padding: 9px 16px;
    border-radius: 5px;
    color: #625e58;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.se-category-sort a:hover {
    color: var(--se-red);
}

.se-category-sort a.active {
    background: #fff;
    color: var(--se-ink);
    box-shadow: 0 2px 7px rgba(0,0,0,.06);
}

/* SUBCATEGORY PILLS */

.se-category-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.se-subcategory-pill {
    padding: 8px 15px;
    border: 1px solid var(--se-border);
    border-radius: 30px;
    background: #fff;
    color: #5e5953;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.se-subcategory-pill:hover,
.se-subcategory-pill.active {
    border-color: var(--se-red);
    background: var(--se-red);
    color: #fff;
}

/* PAGE LAYOUT */

.se-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: start;
}

.se-category-main-content {
    min-width: 0;
}

/* NEWS GRID */

.se-category-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px 19px;
}

/* FEATURED NEWS CARD */

.se-category-lead-story {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 30px;
    align-items: center;
    padding: 0 0 30px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--se-border);
}

.se-category-lead-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 5px;
    background: #e9e6df;
}

.se-category-lead-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.se-category-lead-image:hover img {
    transform: scale(1.045);
}

.se-category-lead-content {
    padding: 8px 0;
}

.se-category-card-label {
    display: inline-block;
    margin-bottom: 11px;
    color: var(--se-red);
    font-family: var(--se-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
    line-height: 1.5;
    text-transform: uppercase;
}

.se-category-lead-title {
    margin: 0 0 14px;
    font-family: var(--se-heading);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.7px;
}

.se-category-lead-title a,
.se-category-card-title a {
    color: var(--se-ink);
    text-decoration: none;
    transition: color .2s ease;
}

.se-category-lead-title a:hover,
.se-category-card-title a:hover {
    color: var(--se-red);
}

.se-category-lead-excerpt {
    margin: 0 0 18px;
    color: #6d6861;
    font-family: var(--se-serif);
    font-size: 12px;
    line-height: 1.9;
}

/* REGULAR NEWS CARDS */

.se-category-story-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eeeae4;
    border-radius: 6px;
    background: var(--se-white);
    transition: transform .25s ease, box-shadow .25s ease;
}

.se-category-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30,25,15,.08);
}

.se-category-card-image {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e9e6df;
}

.se-category-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.se-category-card-image:hover img {
    transform: scale(1.055);
}

.se-category-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 15px 17px;
}

.se-category-card-title {
    margin: 0 0 10px;
    font-family: var(--se-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.2px;
}

.se-category-card-excerpt {
    margin: 0 0 15px;
    color: #77716a;
    font-family: var(--se-serif);
    font-size: 11px;
    line-height: 1.8;
}

.se-category-story-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #8a847b;
    font-family: var(--se-mono);
    font-size: 8px;
    line-height: 1.6;
}

.se-category-meta-dot {
    color: var(--se-red);
}

/* IMAGE PLACEHOLDER */

.se-category-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: #eeece7;
    color: #aaa39a;
    font-family: var(--se-heading);
    font-size: 16px;
    font-weight: 700;
}

/* SIDEBAR */

.se-category-sidebar {
    position: sticky;
    top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.se-category-sidebar-box {
    padding: 21px;
    border: 1px solid var(--se-border);
    border-radius: 5px;
    background: #fff;
}

.se-category-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 19px;
}

.se-category-sidebar-line {
    width: 22px;
    height: 2px;
    background: var(--se-red);
}

.se-category-sidebar-heading h2 {
    margin: 0;
    color: #77716a;
    font-family: var(--se-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.se-category-context-label {
    display: block;
    margin-bottom: 9px;
    color: var(--se-red);
    font-family: var(--se-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.se-category-sidebar-box h3 {
    margin: 0 0 10px;
    font-family: var(--se-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.se-category-sidebar-box h3 a {
    color: var(--se-ink);
    text-decoration: none;
}

.se-category-sidebar-box h3 a:hover {
    color: var(--se-red);
}

.se-category-sidebar-box p {
    margin: 0 0 15px;
    color: #77716a;
    font-family: var(--se-serif);
    font-size: 11px;
    line-height: 1.85;
}

.se-category-context-link {
    display: inline-flex;
    gap: 8px;
    color: var(--se-red);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* WHATSAPP BOX */

.se-category-community-box {
    background: #f1f7f0;
    border-color: #e1ebdf;
}

.se-category-community-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #dff0dd;
    color: #168b46;
}

.se-category-community-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #168b46;
    font-family: var(--se-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.se-category-community-box h2 {
    margin: 0 0 10px;
    color: #1c3021;
    font-family: var(--se-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
}

.se-category-community-box p {
    color: #5d6d5f;
}

.se-category-community-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 13px 14px;
    border-radius: 4px;
    background: #168b46;
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease;
}

.se-category-community-button:hover {
    background: #116d37;
}

.se-category-community-box small {
    display: block;
    margin-top: 11px;
    color: #738075;
    font-family: var(--se-mono);
    font-size: 8px;
    text-align: center;
}

/* BACK HOME */

.se-category-back-home {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--se-border);
    color: #77716a;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.se-category-back-home:hover {
    color: var(--se-red);
}

/* PAGINATION */

.se-category-pagination {
    margin-top: 36px;
}

.se-category-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.se-category-pagination li {
    margin: 0;
    padding: 0;
}

.se-category-pagination a,
.se-category-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 37px;
    height: 37px;
    padding: 0 11px;
    border: 1px solid var(--se-border);
    border-radius: 4px;
    background: #fff;
    color: #514c46;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.se-category-pagination a:hover,
.se-category-pagination span.current {
    border-color: var(--se-red);
    background: var(--se-red);
    color: #fff;
}

/* EMPTY STATE */

.se-category-empty {
    padding: 60px 20px;
    border: 1px solid var(--se-border);
    background: #fff;
    text-align: center;
}

.se-category-empty h2 {
    font-family: var(--se-heading);
    font-size: 27px;
}

.se-category-empty p {
    color: var(--se-muted);
    font-size: 12px;
}

.se-category-empty a {
    display: inline-block;
    padding: 12px 20px;
    background: var(--se-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

/* TABLET */

@media (max-width: 1024px) {
    .se-category-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 22px;
    }

    .se-category-stories-grid {
        gap: 20px 13px;
    }

    .se-category-lead-story {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .se-category-lead-title {
        font-size: 29px;
    }

    .se-category-card-content {
        padding: 13px 12px;
    }

    .se-category-card-title {
        font-size: 15px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .se-category-page {
        padding: 24px 0 45px;
    }

    .se-category-container {
        width: calc(100% - 28px);
    }

    .se-category-header {
        padding-bottom: 20px;
        margin-bottom: 22px;
    }

    .se-category-title {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .se-category-description {
        font-size: 12px;
        line-height: 1.8;
    }

    .se-category-header-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin-top: 17px;
    }

    .se-category-subcategories {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .se-category-subcategories::-webkit-scrollbar {
        display: none;
    }

    .se-subcategory-pill {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .se-category-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .se-category-main-content,
    .se-category-sidebar {
        width: 100%;
    }

    .se-category-stories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px 11px;
    }

    .se-category-lead-story {
        grid-column: 1 / -1;
        gap: 14px;
        padding-bottom: 22px;
    }

    .se-category-lead-image {
        aspect-ratio: 16 / 9;
    }

    .se-category-lead-title {
        font-size: 25px;
        line-height: 1.3;
    }

    .se-category-lead-excerpt {
        font-size: 11px;
    }

    .se-category-card-image {
        aspect-ratio: 4 / 3;
    }

    .se-category-card-content {
        padding: 12px 10px 13px;
    }

    .se-category-card-title {
        font-size: 15px;
        line-height: 1.4;
    }

    .se-category-card-excerpt {
        font-size: 10px;
        line-height: 1.7;
    }

    .se-category-card-label {
        font-size: 8px;
        margin-bottom: 7px;
    }

    .se-category-story-meta {
        gap: 4px;
        font-size: 7px;
    }

    .se-category-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .se-category-sidebar-box {
        padding: 18px;
    }

    .se-category-pagination {
        margin-top: 27px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
    .se-category-container {
        width: calc(100% - 22px);
    }

    .se-category-title {
        font-size: 33px;
    }

    .se-category-card-title {
        font-size: 14px;
    }

    .se-category-card-content {
        padding: 10px 8px 12px;
    }

    .se-category-stories-grid {
        gap: 14px 9px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .se-category-page *,
    .se-category-page *::before,
    .se-category-page *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}