/*
 * SocioEducations Premium Design System
 * Version: 1.0.0
 * Editorial Education Portal
 */

/* =========================================
   01. DESIGN TOKENS
========================================= */

:root {
    --se-navy: #10264B;
    --se-navy-dark: #0B1B36;
    --se-blue: #2457C5;
    --se-blue-light: #EAF0FF;

    --se-orange: #F59E0B;
    --se-orange-light: #FFF5E5;

    --se-green: #16845A;
    --se-green-light: #E9F7F0;

    --se-purple: #7952B3;
    --se-purple-light: #F3EDFC;

    --se-red: #D94848;
    --se-red-light: #FFF0F0;

    --se-text: #172033;
    --se-text-secondary: #526078;
    --se-text-muted: #7B879A;

    --se-background: #F5F7FB;
    --se-surface: #FFFFFF;
    --se-border: #E6EAF1;

    --se-container: 1240px;

    --se-radius-sm: 8px;
    --se-radius-md: 12px;
    --se-radius-lg: 18px;
    --se-radius-xl: 24px;

    --se-shadow-sm:
        0 2px 8px rgba(16, 38, 75, 0.04);

    --se-shadow-md:
        0 8px 24px rgba(16, 38, 75, 0.07);

    --se-shadow-lg:
        0 16px 40px rgba(16, 38, 75, 0.10);

    --se-transition:
        all 0.22s ease;
}


/* =========================================
   02. GLOBAL FOUNDATION
========================================= */

body {
    color: var(--se-text);
    background: var(--se-background);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.se-site,
.se-site-header,
.se-home,
.se-archive,
.se-single {
    box-sizing: border-box;
}

.se-site *,
.se-site-header *,
.se-home *,
.se-archive *,
.se-single * {
    box-sizing: border-box;
}

.se-site a,
.se-site-header a,
.se-home a,
.se-archive a,
.se-single a {
    text-decoration: none;
}

.se-site img,
.se-home img,
.se-archive img,
.se-single img {
    max-width: 100%;
    height: auto;
}

.se-container {
    width: min(
        var(--se-container),
        calc(100% - 48px)
    );
    margin-left: auto;
    margin-right: auto;
}


/* =========================================
   03. TYPOGRAPHY
========================================= */

.se-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--se-blue);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.se-heading {
    margin: 0;
    color: var(--se-navy);

    font-size: clamp(23px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.8px;
}

.se-subheading {
    margin: 8px 0 0;
    color: var(--se-text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.se-text-muted {
    color: var(--se-text-muted);
}


/* =========================================
   04. PAGE SECTIONS
========================================= */

.se-home,
.se-archive,
.se-single {
    width: 100%;
}

.se-section {
    margin: 0 0 38px;
}

.se-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.se-section-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.se-section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--se-blue);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;

    transition: var(--se-transition);
}

.se-section-link:hover {
    color: var(--se-navy);
    gap: 11px;
}


/* =========================================
   05. CATEGORY LABELS
========================================= */

.se-category-label {
    display: inline-flex;
    align-items: center;

    width: fit-content;
    padding: 5px 9px;

    border-radius: 5px;

    background: var(--se-blue-light);
    color: var(--se-blue);

    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .45px;
    text-transform: uppercase;
}

.se-category-label--jobs {
    color: #2457C5;
    background: #EAF0FF;
}

.se-category-label--schemes {
    color: #A96508;
    background: #FFF3DF;
}

.se-category-label--results {
    color: #16845A;
    background: #E7F7EF;
}

.se-category-label--admit {
    color: #7952B3;
    background: #F2EBFC;
}

.se-category-label--news {
    color: #C04444;
    background: #FFF0F0;
}


/* =========================================
   06. BUTTON SYSTEM
========================================= */

.se-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 42px;
    padding: 10px 18px;

    border: 1px solid transparent;
    border-radius: var(--se-radius-sm);

    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;

    cursor: pointer;
    transition: var(--se-transition);
}

.se-btn-primary {
    color: #fff;
    background: var(--se-blue);
}

.se-btn-primary:hover {
    color: #fff;
    background: var(--se-navy);
}

.se-btn-outline {
    color: var(--se-blue);
    background: #fff;
    border-color: var(--se-border);
}

.se-btn-outline:hover {
    color: #fff;
    background: var(--se-blue);
    border-color: var(--se-blue);
}


/* =========================================
   07. CONTENT CARDS
========================================= */

.se-card {
    min-width: 0;
    overflow: hidden;

    background: var(--se-surface);
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius-lg);

    box-shadow: var(--se-shadow-sm);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.se-card:hover {
    transform: translateY(-3px);
    border-color: #D4DDF0;
    box-shadow: var(--se-shadow-md);
}

.se-card-image {
    position: relative;
    overflow: hidden;
    background: #E9EDF5;
    aspect-ratio: 16 / 9;
}

.se-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.se-card:hover .se-card-image img {
    transform: scale(1.045);
}

.se-card-body {
    padding: 17px;
}

.se-card-title {
    margin: 10px 0 8px;

    color: var(--se-navy);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
}

.se-card-title a {
    color: inherit;
}

.se-card-title a:hover {
    color: var(--se-blue);
}

.se-card-excerpt {
    margin: 0;
    color: var(--se-text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.se-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 13px;

    color: var(--se-text-muted);
    font-size: 11px;
}


/* =========================================
   08. GRID SYSTEM
========================================= */

.se-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.se-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.se-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================
   09. EDITORIAL FEATURED STORY
========================================= */

.se-featured-story {
    position: relative;
    min-height: 390px;
    overflow: hidden;

    display: flex;
    align-items: flex-end;

    background: var(--se-navy-dark);
    border-radius: var(--se-radius-xl);
    isolation: isolate;
}

.se-featured-story > img {
    position: absolute;
    inset: 0;
    z-index: -2;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.se-featured-story::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        180deg,
        rgba(8, 20, 43, .02) 0%,
        rgba(8, 20, 43, .25) 36%,
        rgba(8, 20, 43, .93) 100%
    );
}

.se-featured-content {
    width: 100%;
    padding: 32px;
    color: #fff;
}

.se-featured-content h1,
.se-featured-content h2 {
    max-width: 720px;
    margin: 13px 0;

    color: #fff;
    font-size: clamp(25px, 3.2vw, 40px);
    font-weight: 850;
    line-height: 1.22;
    letter-spacing: -.8px;
}

.se-featured-content p {
    max-width: 650px;
    margin: 0;

    color: rgba(255, 255, 255, .84);
    font-size: 14px;
}


/* =========================================
   10. LATEST UPDATES PANEL
========================================= */

.se-latest-panel {
    height: 100%;
    padding: 22px;

    background: #fff;
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius-lg);

    box-shadow: var(--se-shadow-sm);
}

.se-latest-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.se-latest-list li {
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--se-border);
}

.se-latest-list li:last-child {
    border-bottom: 0;
}

.se-latest-list a {
    display: block;
    color: var(--se-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.se-latest-list a:hover {
    color: var(--se-blue);
}


/* =========================================
   11. CATEGORY QUICK LINKS
========================================= */

.se-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.se-category-item {
    display: flex;
    align-items: center;
    gap: 13px;

    min-width: 0;
    padding: 19px;

    background: #fff;
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius-md);

    transition: var(--se-transition);
}

.se-category-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--se-shadow-md);
}

.se-category-icon {
    flex-shrink: 0;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 13px;
    background: var(--se-blue-light);
    color: var(--se-blue);

    font-size: 20px;
    font-weight: 800;
}

.se-category-item--jobs .se-category-icon {
    color: var(--se-blue);
    background: var(--se-blue-light);
}

.se-category-item--schemes .se-category-icon {
    color: #A96508;
    background: var(--se-orange-light);
}

.se-category-item--results .se-category-icon {
    color: var(--se-green);
    background: var(--se-green-light);
}

.se-category-item--admit .se-category-icon {
    color: var(--se-purple);
    background: var(--se-purple-light);
}

.se-category-name {
    color: var(--se-navy);
    font-size: 14px;
    font-weight: 800;
}


/* =========================================
   12. ACCESSIBILITY
========================================= */

.se-site a:focus-visible,
.se-site button:focus-visible,
.se-site input:focus-visible,
.se-site-header a:focus-visible,
.se-site-header button:focus-visible {
    outline: 3px solid var(--se-orange);
    outline-offset: 3px;
}

.se-skip-link {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 99999;

    padding: 12px 18px;

    color: #fff;
    background: var(--se-navy);
    border-radius: var(--se-radius-sm);
}

.se-skip-link:focus {
    top: 15px;
}


/* =========================================
   13. TABLET
========================================= */

@media (max-width: 1024px) {

    .se-container {
        width: calc(100% - 36px);
    }

    .se-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .se-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .se-featured-story {
        min-height: 340px;
    }

}


/* =========================================
   14. MOBILE
========================================= */

@media (max-width: 767px) {

    body {
        font-size: 15px;
    }

    .se-container {
        width: calc(100% - 28px);
    }

    .se-section {
        margin-bottom: 28px;
    }

    .se-section-header {
        align-items: center;
        margin-bottom: 15px;
        gap: 10px;
    }

    .se-heading {
        font-size: 22px;
        letter-spacing: -.4px;
    }

    .se-subheading {
        font-size: 13px;
    }

    .se-grid,
    .se-grid-2,
    .se-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .se-featured-story {
        min-height: 320px;
        border-radius: var(--se-radius-lg);
    }

    .se-featured-content {
        padding: 21px;
    }

    .se-featured-content h1,
    .se-featured-content h2 {
        font-size: 26px;
    }

    .se-featured-content p {
        font-size: 12px;
    }

    .se-card {
        border-radius: var(--se-radius-md);
    }

    .se-card-body {
        padding: 12px;
    }

    .se-card-title {
        font-size: 14px;
        line-height: 1.4;
    }

    .se-card-excerpt {
        font-size: 12px;
    }

    .se-card-meta {
        gap: 7px;
        font-size: 10px;
    }

    .se-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .se-category-item {
        padding: 12px;
        gap: 9px;
        border-radius: 11px;
    }

    .se-category-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .se-category-name {
        font-size: 12px;
    }

    .se-latest-panel {
        padding: 16px;
    }

}


/* =========================================
   15. SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .se-grid,
    .se-grid-2,
    .se-grid-4 {
        gap: 9px;
    }

    .se-featured-story {
        min-height: 285px;
    }

    .se-featured-content h1,
    .se-featured-content h2 {
        font-size: 23px;
    }

    .se-card-body {
        padding: 10px;
    }

}


/* =========================================
   16. REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .se-site *,
    .se-home *,
    .se-archive *,
    .se-single * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

}