/* Renew Cyberschool – shared styles for Home, News, About, Admin */
:root {
    --cs-blue: #1a73e8;
    --cs-blue-dark: #0b3d91;
    --cs-navy: #0a2a5c;
    --cs-text: #1c274d;
    --cs-muted: #6b7280;
    --cs-border: #e5e7eb;
    --cs-bg: #f5f7fb;
    --cs-radius: 12px;
    --cs-shadow: 0 2px 12px rgba(16, 40, 90, 0.08);
}

.cs-renew * { box-sizing: border-box; }
.cs-renew {
    color: var(--cs-text);
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
.cs-renew input,
.cs-renew button,
.cs-renew select,
.cs-renew textarea {
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

/* ===== HOME (Figma NEW > Main) ===== */
.cs-home {
    /* max-width: 1504px; */
    width: 100%;
    /* margin: 0 auto; */
    padding: 12px;
    box-sizing: border-box;

}
.cs-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0b3d2e;
    /* min-height: 340px; */
    aspect-ratio: 1504 / 510;
    /* max-height: 510px; */
    box-shadow: 0 8px 28px rgba(16, 40, 90, 0.12);
    width: 100%;
}
.cs-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
}
.cs-hero-slide {
    display: block;
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-color: #0b3d2e;
    opacity: 0;
    z-index: 0;
    transform: scale(1.04);
    transition:
        opacity .9s cubic-bezier(0.4, 0, 0.2, 1),
        transform 6s ease-out;
    pointer-events: none;
    will-change: opacity, transform;
}
.cs-hero-slide.is-prev {
    opacity: 0;
    z-index: 1;
    transform: scale(1.02);
}
.cs-hero-slide.is-active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
    pointer-events: auto;
}
.cs-hero-slide .cs-hero-content {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity .7s cubic-bezier(0.4, 0, 0.2, 1) .15s,
        transform .7s cubic-bezier(0.4, 0, 0.2, 1) .15s;
}
.cs-hero-slide.is-active .cs-hero-content {
    opacity: 1;
    transform: translateY(0);
}
.cs-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,40,30,.72) 0%, rgba(8,40,30,.35) 48%, rgba(8,40,30,.08) 100%);
    z-index: 1;
}
.cs-hero-slide > .cs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 58%;
    padding: 64px 56px 48px;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cs-hero-slide .cs-hero-content h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.cs-hero-slide .cs-hero-content p {
    margin: 0 0 18px;
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.45;
    opacity: .96;
    max-width: 34em;
}
.cs-hero-cta {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    background: #fff;
    color: #004677 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
}
.cs-hero-cta:hover { filter: brightness(0.97); }
.cs-hero-slide-empty .cs-hero-content { max-width: 70%; }
.cs-hero-image-only .cs-hero-shade { display: none; }
.cs-hero-hit {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    text-indent: -9999px;
}
.cs-hero-dots {
    position: absolute;
    left: 0; right: 0; bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}
.cs-hero-dots button {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    padding: 0;
    transition: background .35s ease, transform .35s ease, width .35s ease;
}
.cs-hero-dots button.is-active {
    background: #7ec8ff;
    width: 22px;
    border-radius: 999px;
    transform: none;
}

.cs-cta-bar {
    margin-top: 18px;
    background: #0a2a5c;
    color: #fff;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 240px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 28px;
    min-height: 106px;
}
.cs-cta-brand .cs-cta-sub {
    font-size: 12px;
    letter-spacing: .04em;
    opacity: .92;
    font-weight: 600;
}
.cs-cta-brand .cs-cta-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.15;
}
.cs-cta-copy {
    font-size: 14px;
    line-height: 1.45;
    opacity: .95;
    border-left: 1px solid rgba(255,255,255,.22);
    border-right: 1px solid rgba(255,255,255,.22);
    padding: 0 24px;
}
.cs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a73e8;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 22px;
    border-radius: 10px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.cs-cta-btn:hover { filter: brightness(1.08); }

.cs-home-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 18px;
    /* Both panels share the same row height */
    align-items: stretch;
}
.cs-panel {
    background: #fff;
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 22px 24px 18px;
    box-shadow: 0 4px 18px rgba(16, 40, 90, 0.06);
}
.cs-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-shrink: 0;
}
.cs-panel-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .05em;
    /* Figma section labels: muted grey caps */
    color: #8b93a7;
}
.cs-panel-head a {
    color: #1a73e8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.cs-announce-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.cs-announce-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}
.cs-announce-list li {
    display: grid;
    grid-template-columns: 78px 1fr auto;
    gap: 14px;
    align-items: center;
    flex: 1;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f6;
}
.cs-announce-list li:last-child { border-bottom: none; }
.cs-announce-list li.cs-announce-empty {
    display: block;
    color: var(--cs-muted);
    font-size: 14px;
    flex: 0;
}
.cs-announce-list a {
    /* Figma: announcement titles are link blue */
    color: #1a73e8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}
.cs-announce-list a:hover { color: #0b5ccd; text-decoration: underline; }
.cs-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.cs-tag-notice { background: #1a73e8; }
.cs-tag-course { background: #16a34a; }
.cs-tag-alert { background: #dc2626; }
.cs-tag-event { background: #7c3aed; }
.cs-tag-blog { background: #0ea5e9; }
.cs-date-muted { color: #8b93a7; font-size: 13px; white-space: nowrap; font-weight: 600; }

.cs-consult-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-bottom: 16px;
}
.cs-consult-slider {
    position: relative;
    width: 100%;
    /* Grow with panel so banner fills height (no white gap under image) */
    flex: 1 1 auto;
    min-height: 220px;
    border-radius: 14px;
    overflow: hidden;
}
.cs-consult-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    box-sizing: border-box;
    background:
        linear-gradient(120deg, rgba(232,241,255,.96) 0%, rgba(243,248,255,.88) 55%, rgba(243,248,255,.55) 100%),
        var(--cs-consult-bg, none) center / cover no-repeat;
    border-radius: 14px;
    padding: 22px 20px;
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 0;
    transform: translateY(8px) scale(0.985);
    transition:
        opacity .75s cubic-bezier(0.4, 0, 0.2, 1),
        transform .75s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: opacity, transform;
}
.cs-consult-card.is-prev {
    opacity: 0;
    z-index: 1;
    transform: translateY(-4px) scale(1);
}
.cs-consult-card.is-active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.cs-consult-card h4 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #0a2a5c;
    max-width: 78%;
    line-height: 1.25;
    font-weight: 800;
}
.cs-consult-sub {
    margin: 0 0 12px;
    max-width: 78%;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.4;
}
.cs-consult-btn {
    background: #0a2a5c !important;
    border-radius: 8px;
    font-size: 13px;
    padding: 10px 14px;
    margin-top: auto;
}
.cs-consult-image-only {
    background:
        var(--cs-consult-bg, linear-gradient(120deg, #e8f1ff, #f3f8ff)) center / cover no-repeat !important;
    padding: 0;
}
.cs-consult-hit {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    text-indent: -9999px;
}
.cs-consult-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    flex-shrink: 0;
    min-height: 8px;
}
.cs-consult-dots span,
.cs-consult-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #c5d4ea;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .35s ease, width .35s ease, border-radius .35s ease;
}
.cs-consult-dots span.is-active,
.cs-consult-dots button.is-active {
    background: #0a2a5c;
    width: 18px;
    border-radius: 999px;
}

.cs-events { margin-top: 28px; }
.cs-events-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #2a3550;
}
.cs-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.cs-event-card {
    --cs-event-title: #2f5ac7;
    --cs-event-body: #6b7a99;
    --cs-event-btn-bg: #d9e6ff;
    --cs-event-bg: #ebf2ff;
    display: block;
    position: relative;
    min-height: 188px;
    border-radius: 12px;
    padding: 20px 16px 18px 18px;
    text-decoration: none !important;
    color: inherit;
    overflow: hidden;
    border: none;
    background: var(--cs-event-bg);
    box-shadow: none;
    transition: transform .18s ease, filter .18s ease;
}
.cs-event-card:hover {
    transform: translateY(-2px);
    filter: brightness(0.985);
}
.cs-event-copy {
    position: relative;
    z-index: 2;
    max-width: 58%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 150px;
}
.cs-event-copy strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    margin-bottom: 8px;
    color: var(--cs-event-title);
}
.cs-event-copy p {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--cs-event-body);
    flex: 1;
}
.cs-event-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--cs-event-btn-bg);
    color: var(--cs-event-title) !important;
    font-size: 12px;
    font-weight: 700;
    margin-top: auto;
}
.cs-event-art {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 48%;
    max-width: 130px;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    user-select: none;
}
/* Theme tokens from Figma screenshot */
.cs-event-success {
    --cs-event-bg: #ebf2ff;
    --cs-event-title: #2f5ac7;
    --cs-event-body: #6b7a99;
    --cs-event-btn-bg: #d9e6ff;
}
.cs-event-blog {
    --cs-event-bg: #f5f1ff;
    --cs-event-title: #6343d8;
    --cs-event-body: #7a6f99;
    --cs-event-btn-bg: #e8dfff;
}
.cs-event-resources {
    --cs-event-bg: #f0faf5;
    --cs-event-title: #1d8a51;
    --cs-event-body: #5f8570;
    --cs-event-btn-bg: #ddf5e9;
}
.cs-event-bookstore {
    --cs-event-bg: #fff1ea;
    --cs-event-title: #e85c33;
    --cs-event-body: #a87667;
    --cs-event-btn-bg: #ffe2d4;
}

/* ===== HOME responsive ===== */
@media (max-width: 1100px) {
    .cs-home { padding: 10px; }
    .cs-home-grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 14px;
    }
    .cs-consult-panel,
    .cs-announce-panel { height: auto; }
    .cs-announce-list {
        flex: none;
        display: block;
    }
    .cs-announce-list li { flex: none; }
    .cs-consult-slider {
        flex: none;
        aspect-ratio: 16 / 9;
        max-height: 320px;
        min-height: 200px;
    }
    .cs-events-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cs-event-copy { max-width: 58%; }
    .cs-cta-bar {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 14px;
        padding: 18px 20px;
        min-height: 0;
    }
    .cs-cta-copy {
        border: none;
        padding: 0;
        border-top: 1px solid rgba(255,255,255,.18);
        border-bottom: 1px solid rgba(255,255,255,.18);
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .cs-cta-btn { justify-self: start; }
    .cs-hero {
        aspect-ratio: 16 / 9;
        min-height: 240px;
        max-height: none;
        border-radius: 14px;
    }
    .cs-hero-slides { min-height: 0; }
    .cs-hero-slide { background-position: center center; }
    .cs-hero-slide > .cs-hero-content {
        max-width: 78%;
        padding: 32px 28px 40px;
    }
}

@media (max-width: 768px) {
    .cs-home { padding: 8px; }
    .cs-hero {
        aspect-ratio: 4 / 3;
        min-height: 220px;
        border-radius: 12px;
    }
    .cs-hero-shade {
        background: linear-gradient(180deg, rgba(8,40,30,.15) 0%, rgba(8,40,30,.55) 45%, rgba(8,40,30,.78) 100%);
    }
    .cs-hero-slide > .cs-hero-content {
        max-width: 100%;
        padding: 20px 18px 42px;
        justify-content: flex-end;
    }
    .cs-hero-slide .cs-hero-content h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .cs-hero-slide .cs-hero-content p {
        font-size: 13px;
        margin-bottom: 12px;
        max-width: none;
    }
    .cs-hero-cta {
        font-size: 13px;
        padding: 9px 14px;
    }
    .cs-hero-dots { bottom: 12px; gap: 6px; }
    .cs-hero-dots button { width: 8px; height: 8px; }
    .cs-hero-dots button.is-active { width: 18px; }

    .cs-cta-bar {
        border-radius: 12px;
        padding: 16px;
        gap: 12px;
    }
    .cs-cta-brand .cs-cta-sub { font-size: 11px; }
    .cs-cta-brand .cs-cta-title { font-size: 20px; }
    .cs-cta-copy {
        font-size: 13px;
        line-height: 1.4;
    }
    .cs-cta-copy br { display: none; }
    .cs-cta-btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        font-size: 14px;
        padding: 12px 16px;
    }

    .cs-panel {
        border-radius: 12px;
        padding: 16px 14px 12px;
    }
    .cs-panel-head { margin-bottom: 10px; gap: 8px; }
    .cs-panel-head h3 { font-size: 13px; letter-spacing: .04em; }
    .cs-panel-head a { font-size: 13px; flex-shrink: 0; }

    .cs-announce-list li {
        grid-template-columns: 70px 1fr;
        gap: 8px 10px;
        padding: 11px 0;
        align-items: start;
    }
    .cs-announce-list a { font-size: 14px; line-height: 1.35; }
    .cs-tag {
        min-width: 64px;
        font-size: 10px;
        padding: 4px 6px;
    }
    .cs-date-muted {
        grid-column: 2;
        font-size: 12px;
    }

    .cs-consult-slider {
        aspect-ratio: 16 / 10;
        min-height: 180px;
        max-height: 260px;
    }
    .cs-consult-card { padding: 18px 16px; }
    .cs-consult-card h4 {
        font-size: 17px;
        max-width: 85%;
    }
    .cs-consult-sub { font-size: 12px; max-width: 85%; }

    .cs-events { margin-top: 20px; padding-bottom: 8px; }
    .cs-events-title { font-size: 13px; margin-bottom: 12px; }
    .cs-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .cs-event-card {
        min-height: 158px;
        border-radius: 10px;
        padding: 14px 12px 12px;
    }
    .cs-event-copy {
        max-width: 58%;
        min-height: 126px;
    }
    .cs-event-copy strong {
        font-size: 11px;
        margin-bottom: 6px;
        letter-spacing: .02em;
    }
    .cs-event-copy p {
        font-size: 11px;
        margin-bottom: 10px;
        line-height: 1.35;
    }
    .cs-event-link {
        min-width: 0;
        padding: 6px 11px;
        font-size: 11px;
    }
    .cs-event-art {
        width: 46%;
        max-width: 110px;
        max-height: 96px;
    }
}

@media (max-width: 480px) {
    .cs-home { padding: 6px; }
    .cs-hero {
        aspect-ratio: 3 / 4;
        min-height: 260px;
        max-height: 420px;
        border-radius: 10px;
    }
    .cs-hero-slide > .cs-hero-content { padding: 16px 14px 38px; }
    .cs-hero-slide .cs-hero-content h2 { font-size: 20px; }

    .cs-panel-head h3 {
        font-size: 12px;
        line-height: 1.3;
    }
    .cs-announce-list li {
        grid-template-columns: 62px 1fr;
        gap: 6px 8px;
    }
    .cs-tag { min-width: 56px; font-size: 9px; }

    .cs-consult-slider {
        aspect-ratio: 4 / 3;
        max-height: 240px;
    }

    /* Keep 2x2 event cards on phones; stack only on very narrow */
    .cs-event-card { min-height: 148px; }
    .cs-event-copy { max-width: 56%; min-height: 118px; }
    .cs-event-copy strong { font-size: 10px; }
    .cs-event-copy p {
        font-size: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 360px) {
    .cs-events-grid { grid-template-columns: 1fr; }
    .cs-event-card { min-height: 150px; }
    .cs-event-copy {
        max-width: 60%;
        min-height: 120px;
    }
    .cs-event-copy p {
        -webkit-line-clamp: 4;
        font-size: 11px;
    }
    .cs-event-art { max-height: 110px; }
}

/* ===== NEWS ===== */
.cs-news { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; }
.cs-news-hero {
    background: linear-gradient(120deg, #eaf3ff 0%, #f7fbff 55%, #eef6ff 100%);
    border-radius: var(--cs-radius);
    padding: 36px 32px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}
.cs-news-hero h1 {
    margin: 0 0 8px;
    font-size: 36px;
    color: var(--cs-navy);
    font-weight: 800;
}
.cs-news-hero p {
    margin: 0;
    color: var(--cs-muted);
    font-size: 15px;
    max-width: 420px;
}
.cs-news-hero-art {
    position: absolute;
    right: 24px;
    bottom: 0;
    height: 120px;
    opacity: .9;
}
/* News list filter bar — desktop / tablet / mobile */
.cs-news-banner {
    width: 100%;
    background: #f2f2f2;
    line-height: 0;
}
.cs-news-banner img {
    width: 100%;
    display: block;
}
.list-news-content > li.cs-news-filter-li {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}
.cs-news-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0;
    margin: 16px auto 20px;
    max-width: 1100px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 40, 90, 0.08);
    position: relative;
    z-index: 2;
}
.cs-news-filters .cs-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 18px;
    min-width: 0;
}
.cs-news-filters .cs-filter-group:first-child { padding-left: 0; }
.cs-news-filters .cs-filter-region { flex: 0 0 auto; }
.cs-news-filters .cs-filter-category,
.cs-news-filters .cs-filter-tags {
    flex: 1 1 160px;
    border-left: 1px solid #e8edf5;
}
.cs-news-filters .cs-news-search {
    flex: 1.2 1 220px;
    border-left: 1px solid #e8edf5;
    margin-left: 0;
    padding-right: 0;
}
.cs-filter-group label {
    display: block;
    font-size: 12px;
    color: #8b93a7;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.cs-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    border: 0;
}
.cs-region-toggle {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}
.cs-region-toggle button,
.cs-region-toggle a {
    border: none;
    background: #eef1f6;
    color: #1c274d;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.cs-region-toggle .is-active {
    background: #1a73e8;
    color: #fff !important;
}
.cs-news-filters select {
    height: 42px;
    border: 1px solid #d7dde8;
    border-radius: 10px;
    padding: 0 36px 0 14px;
    width: 100%;
    min-width: 0;
    font-size: 14px;
    color: #1c274d;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1.4.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none;
    appearance: none;
}
.cs-news-search-wrap {
    position: relative;
    width: 100%;
}
.cs-news-search-wrap input[type="text"] {
    height: 42px;
    width: 100%;
    border: 1px solid #d7dde8;
    border-radius: 999px;
    padding: 0 44px 0 16px;
    font-size: 14px;
    color: #1c274d;
    background: #fff;
    box-sizing: border-box;
}
.cs-news-search-wrap input::placeholder { color: #9ca3af; }
.cs-news-search-wrap button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    color: #1a73e8;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tablet: region + dropdowns on row 1, search full width below */
@media (max-width: 980px) {
    .cs-news-filters {
        flex-wrap: wrap;
        margin: 14px 16px 16px;
        padding: 16px;
        gap: 14px 0;
    }
    .cs-news-filters .cs-filter-group {
        padding: 0 12px;
    }
    .cs-news-filters .cs-filter-region {
        flex: 1 1 100%;
        padding-left: 0;
        padding-right: 0;
        border: none;
    }
    .cs-news-filters .cs-filter-category,
    .cs-news-filters .cs-filter-tags {
        flex: 1 1 calc(50% - 12px);
        border-left: none;
        padding: 0;
    }
    .cs-news-filters .cs-filter-tags {
        margin-left: 12px;
    }
    .cs-news-filters .cs-news-search {
        flex: 1 1 100%;
        border-left: none;
        padding: 12px 0 0;
        border-top: 1px solid #e8edf5;
    }
}

/* Mobile: stack — search first, then region, then selects */
@media (max-width: 640px) {
    .cs-news-filters {
        flex-direction: column;
        align-items: stretch;
        margin: 12px 12px 12px;
        padding: 14px;
        gap: 14px;
        border-radius: 12px;
    }
    .cs-news-filters .cs-filter-group,
    .cs-news-filters .cs-filter-category,
    .cs-news-filters .cs-filter-tags,
    .cs-news-filters .cs-news-search {
        flex: none;
        width: 100%;
        padding: 0;
        margin: 0;
        border: none;
    }
    /* Search first on mobile */
    .cs-news-filters .cs-news-search { order: 1; border-top: none; padding-top: 0; }
    .cs-news-filters .cs-filter-region { order: 2; }
    .cs-news-filters .cs-filter-category { order: 3; }
    .cs-news-filters .cs-filter-tags { order: 4; }

    .cs-region-toggle {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .cs-region-toggle button {
        padding: 10px 0;
        text-align: center;
        font-size: 12px;
    }
    .cs-news-filters select,
    .cs-news-search-wrap input[type="text"] {
        height: 44px;
        font-size: 16px; /* avoid iOS zoom */
    }
}

.cs-news-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0 auto 16px;
    max-width: 920px;
    box-shadow: none;
    transition: box-shadow .2s ease, border-color .2s ease;
    box-sizing: border-box;
}
.cs-news-card:hover {
    border-color: #d5dce8;
    box-shadow: 0 4px 16px rgba(16, 40, 90, .08);
}
.cs-news-thumb {
    width: 168px;
    height: 168px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f7;
    flex-shrink: 0;
    display: block;
}
.cs-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cs-news-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 168px;
}
.cs-news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.cs-news-card-date {
    color: #9aa3b2;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: auto;
}
/* Category: light-blue pill above title (matches design) */
.cs-news-cat {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1a73e8;
    text-transform: capitalize;
}
.cs-news-cat-event,
.cs-news-cat-course,
.cs-news-cat-alert,
.cs-news-cat-blog,
.cs-news-cat-notice {
    background: #e8f1ff;
    color: #1a73e8;
}
.cs-news-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.cs-news-card h3 a {
    color: #111827;
    text-decoration: none;
}
.cs-news-card h3 a:hover { color: #1a73e8; }
.cs-news-excerpt {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cs-news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}
.cs-chip {
    background: #f1f3f7;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
}
.cs-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.cs-pagination a,
.cs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef1f6;
    color: var(--cs-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.cs-pagination .is-active {
    background: var(--cs-blue);
    color: #fff;
}

/* ===== ABOUT ===== */
.cs-about { max-width: 1000px; margin: 0 auto; padding: 24px 20px 60px; }
.cs-about-crumb {
    font-size: 12px;
    color: var(--cs-muted);
    margin-bottom: 12px;
}
.cs-about-crumb a { color: var(--cs-muted); text-decoration: none; }
.cs-about-intro {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 48px;
}
.cs-about-intro h1 {
    margin: 0 0 16px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--cs-navy);
}
.cs-about-intro p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}
.cs-about-intro-img {
    border-radius: var(--cs-radius);
    overflow: hidden;
    background: #eaf3ff;
}
.cs-about-intro-img img { width: 100%; display: block; }
.cs-about-why { margin-bottom: 48px; }
.cs-about-why h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .04em;
}
.cs-about-why ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cs-about-why li {
    position: relative;
    padding: 10px 0 10px 32px;
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px solid #eef1f6;
}
.cs-about-why li:before {
    content: "";
    position: absolute;
    left: 0; top: 14px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--cs-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M3 8l3 3 7-7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.cs-about-services {
    text-align: center;
    margin-bottom: 56px;
}
.cs-about-services h2 {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .04em;
}
.cs-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cs-service-card {
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 28px 20px;
    box-shadow: var(--cs-shadow);
}
.cs-service-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: #eaf3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--cs-blue);
}
.cs-service-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
}
.cs-service-card p {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--cs-muted);
    line-height: 1.5;
}
.cs-service-card a {
    display: inline-block;
    background: var(--cs-blue);
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}
.cs-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
}
.cs-feature-row.is-reverse .cs-feature-text { order: 2; }
.cs-feature-row.is-reverse .cs-feature-media { order: 1; }
.cs-feature-media {
    background: #eaf4ff;
    border-radius: 24px;
    padding: 24px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs-feature-media.is-pink { background: #fde8f0; }
.cs-feature-media img { max-width: 100%; max-height: 240px; }
.cs-feature-text h3 {
    margin: 0 0 12px;
    font-size: 22px;
    color: var(--cs-navy);
}
.cs-feature-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}
.cs-about-cta {
    margin-top: 48px;
    background: var(--cs-blue);
    color: #fff;
    border-radius: var(--cs-radius);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cs-about-cta h3 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
}
.cs-about-cta p { margin: 0; opacity: .9; font-size: 14px; }
.cs-about-cta a {
    background: #fff;
    color: var(--cs-blue) !important;
    text-decoration: none !important;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 8px;
    white-space: nowrap;
}

/* ===== ADMIN ===== */
.cs-admin { max-width: 1100px; margin: 0 auto; padding: 16px 16px 40px; }
.cs-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.cs-admin-toolbar h2 {
    margin: 0;
    font-size: 22px;
    color: var(--cs-navy);
}
.cs-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
}
.cs-btn-primary { background: var(--cs-blue); color: #fff !important; }
.cs-btn-secondary { background: #eef1f6; color: var(--cs-text) !important; }
.cs-btn-danger { background: #fee2e2; color: #b91c1c !important; }
.cs-btn:disabled { opacity: .5; cursor: not-allowed; }

.cs-banner-list { list-style: none; margin: 0; padding: 0; }
.cs-banner-item {
    display: grid;
    grid-template-columns: 28px 160px 1fr auto;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: var(--cs-shadow);
    cursor: grab;
}
.cs-banner-item.ui-sortable-helper { box-shadow: 0 8px 24px rgba(0,0,0,.15); cursor: grabbing; }
.cs-banner-handle {
    color: #9ca3af;
    font-size: 18px;
    text-align: center;
    user-select: none;
}
.cs-banner-thumb {
    width: 160px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8eef8;
}
.cs-banner-thumb img,
.cs-banner-thumb .cs-banner-html-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cs-banner-thumb .cs-banner-html-preview {
    transform: scale(.35);
    transform-origin: top left;
    width: 285%;
    height: 285%;
    pointer-events: none;
}
.cs-banner-meta h4 { margin: 0 0 4px; font-size: 15px; }
.cs-banner-meta p { margin: 0; font-size: 12px; color: var(--cs-muted); }
.cs-banner-item-actions { display: flex; gap: 6px; align-items: center; }
.cs-switch {
    position: relative;
    width: 42px; height: 24px;
    display: inline-block;
}
.cs-switch input { opacity: 0; width: 0; height: 0; }
.cs-switch span {
    position: absolute; inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    transition: .2s;
}
.cs-switch span:before {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}
.cs-switch input:checked + span { background: var(--cs-blue); }
.cs-switch input:checked + span:before { transform: translateX(18px); }

.cs-admin-table-wrap {
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    overflow: hidden;
    box-shadow: var(--cs-shadow);
}
.cs-admin-table {
    width: 100%;
    border-collapse: collapse;
}
.cs-admin-table th,
.cs-admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f6;
    text-align: left;
    font-size: 13px;
}
.cs-admin-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--cs-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 11px;
}
.cs-admin-table tr:last-child td { border-bottom: none; }

.cs-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cs-settings-card {
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 20px;
    box-shadow: var(--cs-shadow);
}
.cs-settings-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
}
.cs-form-row { margin-bottom: 14px; }
.cs-form-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--cs-muted);
    margin-bottom: 6px;
}
.cs-form-row input[type="text"],
.cs-form-row input[type="url"],
.cs-form-row textarea,
.cs-form-row select {
    width: 100%;
    border: 1px solid var(--cs-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}
.cs-form-row textarea { min-height: 90px; resize: vertical; }
.cs-upload-box {
    border: 2px dashed #c5d4ea;
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    background: #f8fbff;
    color: var(--cs-muted);
    font-size: 13px;
}
.cs-upload-box img {
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.cs-news-write {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
}
.cs-news-write-main,
.cs-news-write-side {
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 16px;
    box-shadow: var(--cs-shadow);
}

.wrapper-content{
    background-color: #fff;
    border-radius: 16px;
}

@media (max-width: 900px) {
    .cs-about-intro,
    .cs-feature-row,
    .cs-service-grid,
    .cs-settings-grid,
    .cs-news-write { grid-template-columns: 1fr; }
    .cs-feature-row.is-reverse .cs-feature-text,
    .cs-feature-row.is-reverse .cs-feature-media { order: initial; }
    .cs-news-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px; }
    .cs-news-thumb { width: 112px; height: 112px; }
    .cs-news-card-body { min-height: 112px; }
    .cs-news-card h3 { font-size: 17px; }
    .cs-banner-item { grid-template-columns: 24px 100px 1fr; }
    .cs-banner-item-actions { grid-column: 2 / -1; }
    .cs-about-cta { flex-direction: column; align-items: flex-start; }
}
