/* =========================================================
   SocioEducations - Category Section
   Converted from React CategorySection.tsx
   GeneratePress Child Theme
========================================================= */

.se-category-section {
    width: 100%;
    padding: 28px 20px;
    border-bottom: 1px solid #e7e5e4;
    background: #fcfbf9;
    color: #1a1a1a;
    font-family: "Plus Jakarta Sans", sans-serif;
    box-sizing: border-box;
}

.se-category-section *,
.se-category-section *::before,
.se-category-section *::after {
    box-sizing: border-box;
}

.se-category-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* =========================================================
   SECTION HEADER
========================================================= */

.se-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #1c1917;
}

.se-category-heading {
    min-width: 0;
}

.se-category-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.se-category-title-marker {
    display: block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    background: #ed1c24;
}

.se-category-title-row h2 {
    margin: 0;
    color: #1c1917;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.se-category-subtitle {
    margin: 3px 0 0 20px;
    color: #78716c;
    font-family: "Merriweather", serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
}

.se-category-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: #ed1c24 !important;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
    transition: color .2s ease;
}

.se-category-view-all:hover {
    color: #c4151b !important;
}

.se-category-view-all span {
    font-size: 17px;
    line-height: 1;
    transition: transform .2s ease;
}

.se-category-view-all:hover span {
    transform: translateX(3px);
}

/* =========================================================
   CATEGORY GRID
========================================================= */

.se-category-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* =========================================================
   MAIN STORY - 6 COLUMNS
========================================================= */

.se-category-main-story {
    grid-column: span 6;
    min-width: 0;
    padding-right: 24px;
    border-right: 1px solid #e7e5e4;
    padding-bottom: 4px;
}

.se-category-main-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 2px;
    background: #f5f5f4;
}

.se-category-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.se-category-main-image:hover .se-category-featured-image {
    transform: scale(1.025);
}

.se-category-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    aspect-ratio: 16 / 9;
    padding: 15px;
    background: #eee9e2;
    color: #78716c;
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

/* Main Story Content */

.se-category-main-content {
    width: 100%;
}

.se-category-kicker {
    display: block;
    margin-bottom: 5px;
    color: #ed1c24;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.se-category-main-content h3 {
    margin: 0;
    color: #1c1917;
    font-family: "Merriweather", serif;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -.35px;
}

.se-category-main-content h3 a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color .2s ease;
}

.se-category-main-content h3 a:hover {
    color: #ed1c24 !important;
}

.se-category-main-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 9px 0 0;
    color: #57534e;
    font-family: "Merriweather", serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.se-category-story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
    color: #a8a29e;
    font-size: 10px;
    font-weight: 600;
}

.se-category-meta-dot {
    color: #d6d3d1;
}

/* =========================================================
   SECONDARY STORIES - 6 COLUMNS
========================================================= */

.se-category-secondary-grid {
    display: grid;
    grid-column: span 6;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.se-category-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    height: 100%;
}

.se-category-card-top {
    min-width: 0;
}

.se-category-card-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 9px;
    border-radius: 2px;
    background: #f5f5f4;
}

.se-category-card-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.se-category-card-image:hover .se-category-card-thumbnail {
    transform: scale(1.05);
}

.se-category-card-label {
    display: block;
    overflow: hidden;
    margin-bottom: 5px;
    color: #78716c;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.se-category-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #1c1917;
    font-family: "Merriweather", serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.se-category-card h3 a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color .2s ease;
}

.se-category-card h3 a:hover {
    color: #ed1c24 !important;
}

.se-category-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 0;
    color: #57534e;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 11px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Card Footer */

.se-category-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 9px;
    margin-top: 12px;
    border-top: 1px solid #f0eeeb;
    color: #a8a29e;
    font-size: 10px;
    font-weight: 600;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .se-category-section {
        padding: 25px 18px;
    }

    .se-category-grid {
        gap: 18px;
    }

    .se-category-main-story {
        padding-right: 18px;
    }

    .se-category-secondary-grid {
        gap: 12px;
    }

    .se-category-main-content h3 {
        font-size: 18px;
    }

    .se-category-card h3 {
        font-size: 12px;
    }

    .se-category-card-excerpt {
        font-size: 10px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .se-category-section {
        padding: 25px 16px;
    }

    .se-category-header {
        gap: 10px;
        padding-bottom: 9px;
        margin-bottom: 16px;
    }

    .se-category-title-row {
        gap: 8px;
    }

    .se-category-title-marker {
        flex-basis: 9px;
        width: 9px;
        height: 9px;
    }

    .se-category-title-row h2 {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .se-category-subtitle {
        margin-left: 17px;
        font-size: 10px;
    }

    .se-category-view-all {
        gap: 3px;
        font-size: 10px;
        white-space: nowrap;
    }

    .se-category-view-all span {
        font-size: 15px;
    }

    .se-category-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .se-category-main-story {
        grid-column: 1;
        padding-right: 0;
        padding-bottom: 19px;
        border-right: 0;
        border-bottom: 1px solid #e7e5e4;
    }

    .se-category-main-image {
        margin-bottom: 10px;
    }

    .se-category-main-content h3 {
        font-size: 19px;
        line-height: 1.45;
    }

    .se-category-main-excerpt {
        font-size: 11px;
        line-height: 1.75;
    }

    .se-category-secondary-grid {
        grid-column: 1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .se-category-card-image {
        margin-bottom: 7px;
    }

    .se-category-card-label {
        font-size: 8px;
        letter-spacing: .3px;
    }

    .se-category-card h3 {
        font-size: 11px;
        line-height: 1.5;
    }

    .se-category-card-excerpt {
        font-size: 9px;
        line-height: 1.55;
    }

    .se-category-card-footer {
        padding-top: 7px;
        margin-top: 9px;
        font-size: 9px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .se-category-section {
        padding-right: 13px;
        padding-left: 13px;
    }

    .se-category-header {
        align-items: flex-start;
    }

    .se-category-title-row h2 {
        font-size: 12px;
    }

    .se-category-view-all {
        font-size: 9px;
    }

    .se-category-secondary-grid {
        gap: 9px;
    }

    .se-category-card h3 {
        font-size: 10px;
        line-height: 1.45;
    }

    .se-category-card-label {
        font-size: 7px;
    }

    .se-category-card-excerpt {
        font-size: 9px;
    }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .se-category-secondary-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .se-category-card {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 13px;
        border-bottom: 1px solid #e7e5e4;
    }

    .se-category-card-image {
        grid-row: 1 / span 3;
        margin-bottom: 0;
    }

    .se-category-card-label {
        margin-bottom: 4px;
    }

    .se-category-card h3 {
        font-size: 12px;
    }

    .se-category-card-excerpt {
        font-size: 10px;
    }

    .se-category-card-footer {
        grid-column: 2;
        margin-top: 0;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .se-category-section *,
    .se-category-section *::before,
    .se-category-section *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}