@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&display=swap');

:root {
    --ink: #263044;
    --muted: #667085;
    --line: #e8edf3;
    --paper: #ffffff;
    --pink-50: #fff4f8;
    --pink: #ff6f9f;
    --coral: #ff8a65;
    --mint: #48c9b0;
    --sky: #55a7f7;
    --violet: #8a7cf6;
    --lemon: #ffd166;
    --green-50: #effdf8;
    --blue-50: #f1f8ff;
    --shadow: 0 20px 50px rgba(47, 59, 84, 0.12);
    --soft-shadow: 0 10px 26px rgba(47, 59, 84, 0.1);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Sarabun", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fffafd;
    line-height: 1.7;
    letter-spacing: 0;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.section-pad {
    padding: 88px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 12px max(20px, calc((100vw - var(--container)) / 2));
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(232, 237, 243, 0.85);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(38, 48, 68, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--pink), var(--sky));
    box-shadow: 0 12px 26px rgba(85, 167, 247, 0.25);
}

.brand-logo {
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(85, 167, 247, 0.18);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1.08rem;
    font-weight: 800;
}

.brand small {
    max-width: 260px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-nav .nav-item,
.primary-nav .nav-overflow {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

/* The JS hides the "เพิ่มเติม" overflow by setting the [hidden] attribute when it holds no
   items, but the display:inline-flex above otherwise overrides the browser's default
   [hidden] { display:none } on desktop — so it would keep showing even when empty. This
   makes the hidden attribute actually hide it on all widths. */
.primary-nav .nav-overflow[hidden] {
    display: none;
}

.primary-nav a,
.primary-nav button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 14px;
    color: #44506a;
    font: inherit;
    font-weight: 700;
    border-radius: var(--radius);
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-nav a svg,
.primary-nav button svg {
    width: 16px;
    height: 16px;
    color: var(--nav-color, var(--pink));
    stroke-width: 2.4;
}

.primary-nav a:hover,
.primary-nav button:hover {
    color: var(--ink);
    background: var(--blue-50);
    transform: translateY(-1px);
}

.primary-nav .nav-chevron {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    opacity: 0.72;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -8px;
    right: -8px;
    height: 12px;
    display: block;
}

.nav-dropdown-menu,
.nav-overflow-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 80;
    display: grid;
    gap: 4px;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.nav-overflow-menu {
    right: 0;
    left: auto;
    min-width: 240px;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-overflow.is-open > .nav-overflow-menu,
.nav-overflow:focus-within > .nav-overflow-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.nav-dropdown-menu a,
.nav-overflow-menu a,
.nav-overflow-menu button {
    width: 100%;
    justify-content: flex-start;
    min-height: 38px;
    padding: 0 10px;
    white-space: normal;
}

.nav-overflow-menu .nav-item,
.nav-overflow-menu .nav-overflow {
    display: grid;
}

.nav-overflow-menu .nav-dropdown-menu {
    position: static;
    display: grid;
    min-width: 0;
    margin: 2px 0 4px 22px;
    padding: 4px 0 0 8px;
    border: 0;
    border-left: 2px solid color-mix(in srgb, var(--nav-color, var(--pink)) 26%, transparent);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.primary-nav .nav-admin {
    color: #fff;
    background: var(--ink);
}

.primary-nav .nav-admin:hover {
    color: #fff;
    background: #35405a;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.setup-banner {
    position: relative;
    z-index: 5;
    padding: 12px 20px;
    color: #5b3b00;
    text-align: center;
    background: #fff2c7;
    border-bottom: 1px solid #ffe39a;
}

.setup-banner a {
    font-weight: 800;
    text-decoration: underline;
}

.hero {
    position: relative;
    min-height: calc(100svh - 76px);
    display: grid;
    align-items: end;
    padding: 118px max(20px, calc((100vw - var(--container)) / 2)) 44px;
    color: #fff;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(255, 250, 253, 0), #fffafd 90%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(38, 48, 68, 0.78), rgba(38, 48, 68, 0.34) 58%, rgba(38, 48, 68, 0.12)),
        linear-gradient(0deg, rgba(38, 48, 68, 0.42), rgba(38, 48, 68, 0.06));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding-bottom: 90px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    color: #9b4b63;
    font-weight: 800;
    font-size: 0.86rem;
    border: 1px solid rgba(255, 111, 159, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 244, 248, 0.9);
}

.hero .eyebrow {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero h1 {
    max-width: 780px;
    margin: 22px 0 18px;
    font-size: 4rem;
    line-height: 1.08;
    font-weight: 800;
}

.hero p {
    max-width: 700px;
    margin: 0;
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.button {
    display: inline-flex;
    align-items: center;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button svg {
    width: 18px;
    height: 18px;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--coral));
    box-shadow: 0 16px 32px rgba(255, 111, 159, 0.28);
}

.button.soft {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(12px);
}

.hero-stats {
    position: absolute;
    right: max(20px, calc((100vw - var(--container)) / 2));
    bottom: 70px;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 10px;
    max-width: 480px;
}

.hero-stats div {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    font-size: 1.6rem;
    line-height: 1.1;
}

.hero-stats span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.quick-links {
    padding-top: 34px;
    background: #fffafd;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-card,
.program-card,
.announcement-card,
.news-card,
.achievement-card,
.facility-card,
.staff-card,
.gallery-card,
.download-item,
.faq-item,
.contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--soft-shadow);
}

.quick-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    min-height: 160px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.quick-card:hover {
    transform: translateY(-6px);
    border-color: rgba(85, 167, 247, 0.36);
    box-shadow: var(--shadow);
}

.icon-bubble,
.program-icon,
.download-item > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #fff;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--mint), var(--sky));
}

.quick-card strong {
    font-size: 1.08rem;
}

.quick-card small {
    color: var(--muted);
}

.split-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
}

.split-layout.reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.section-copy h2,
.section-heading h2,
.admission-panel h2,
.contact-info h2 {
    margin: 16px 0 12px;
    font-size: 2.35rem;
    line-height: 1.2;
}

.section-copy p,
.section-heading p,
.admission-panel p,
.contact-info p {
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.section-heading p {
    max-width: 520px;
}

.section-heading.centered {
    display: block;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.value-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.value-list div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 22px rgba(38, 48, 68, 0.07);
}

.value-list svg {
    flex: 0 0 22px;
    color: var(--mint);
    margin-top: 4px;
}

.about-section {
    background: linear-gradient(180deg, #fffafd, var(--green-50));
}

.about-visual,
.admission-photo {
    position: relative;
    display: grid;
    gap: 18px;
}

.about-visual img,
.admission-photo img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admission-photo img:nth-child(2) {
    width: 100%;
}

.admission-photo img {
    aspect-ratio: 16 / 9;
}

.mission-note {
    position: absolute;
    left: -24px;
    bottom: 24px;
    max-width: 310px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
}

.mission-note strong,
.mission-note span {
    display: block;
}

.mission-note strong {
    color: var(--pink);
    font-size: 0.9rem;
}

.announcements-section {
    background: #fff;
}

.announcement-list {
    display: grid;
    gap: 14px;
}

.announcement-card {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

.announcement-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--pink), var(--lemon), var(--mint));
}

.announcement-media {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    border: 1px solid rgba(255, 209, 223, 0.92);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff6cf, #e7fbff);
}

.announcement-media img {
    width: 100%;
    height: 100%;
    min-height: 142px;
    object-fit: cover;
}

.announcement-media span {
    display: grid;
    place-items: center;
    min-height: 142px;
    color: #e95586;
}

.announcement-media svg {
    width: 42px;
    height: 42px;
}

.announcement-body {
    min-width: 0;
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.announcement-meta time {
    color: #667085;
    font-size: 0.9rem;
    font-weight: 800;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #7b4460;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: var(--radius);
    background: #ffeaf2;
}

.announcement-card h3,
.news-card h3,
.achievement-card h3,
.facility-card h3,
.timeline-item h3,
.staff-card h3 {
    margin: 8px 0 6px;
    font-size: 1.22rem;
    line-height: 1.35;
}

.announcement-card p,
.news-card p,
.achievement-card p,
.facility-card p,
.timeline-item p,
.staff-card p {
    margin: 0;
    color: var(--muted);
}

.announcement-card .card-more {
    margin-top: 14px;
}

.pin-icon {
    position: absolute;
    right: 18px;
    top: 18px;
    color: var(--coral);
}

.programs-section {
    background: var(--blue-50);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.program-card {
    position: relative;
    min-height: 250px;
    padding: 26px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.program-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: var(--accent);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.program-icon {
    background: var(--accent);
}

.program-card small {
    display: block;
    margin-top: 22px;
    color: var(--accent);
    font-weight: 800;
}

.program-card h3 {
    margin: 8px 0 10px;
    font-size: 1.42rem;
}

.program-card p {
    margin: 0;
    color: var(--muted);
}

.student-statistics-section {
    background:
        linear-gradient(180deg, rgba(255, 250, 253, 0.96), rgba(241, 248, 255, 0.92)),
        #fff;
}

.student-statistics-section .section-heading {
    margin-bottom: 18px;
}

.student-statistics-section .section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.student-statistics-section .section-heading p {
    max-width: 620px;
    font-size: 0.98rem;
}

.student-statistics-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(178, 205, 255, 0.62);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92)),
        #fff;
    box-shadow: 0 14px 34px rgba(38, 48, 68, 0.08);
}

.student-statistics-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(120px, 0.7fr));
    gap: 10px;
}

.student-stat-total,
.student-stat-mini,
.student-level-grid article {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
}

.student-stat-total {
    position: relative;
    overflow: hidden;
    padding: 16px 18px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(38, 48, 68, 0.94), rgba(51, 86, 153, 0.9)),
        #263044;
}

.student-stat-total::after {
    content: "";
    position: absolute;
    inset: auto -42px -62px auto;
    width: 128px;
    height: 128px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.student-stat-total > span,
.student-stat-mini > span {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.student-stat-total > span {
    background: rgba(255, 255, 255, 0.16);
}

.student-stat-total small,
.student-stat-mini small,
.student-level-grid small {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.9rem;
}

.student-stat-total small,
.student-stat-total p {
    color: rgba(255, 255, 255, 0.78);
}

.student-stat-total strong {
    display: block;
    font-size: 2.35rem;
    line-height: 1;
}

.student-stat-total strong span,
.student-stat-mini strong span,
.student-level-grid strong span {
    font-size: 0.45em;
    font-weight: 850;
    opacity: 0.82;
}

.student-stat-total p {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    font-size: 0.9rem;
}

.student-stat-mini {
    padding: 14px 16px;
    box-shadow: 0 8px 18px rgba(38, 48, 68, 0.05);
}

.student-stat-mini.is-male > span {
    color: #2563eb;
    background: #eff6ff;
}

.student-stat-mini.is-female > span {
    color: #db2777;
    background: #fff1f2;
}

.student-stat-mini strong {
    display: block;
    color: var(--ink);
    font-size: 1.65rem;
    line-height: 1.1;
}

.student-level-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.student-level-grid article {
    padding: 12px 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.96)),
        #fff;
}

.student-level-grid article:nth-child(1) {
    border-color: rgba(34, 197, 94, 0.24);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.86), rgba(255, 255, 255, 0.98));
}

.student-level-grid article:nth-child(2) {
    border-color: rgba(59, 130, 246, 0.24);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(255, 255, 255, 0.98));
}

.student-level-grid article:nth-child(3) {
    border-color: rgba(236, 72, 153, 0.22);
    background: linear-gradient(180deg, rgba(253, 242, 248, 0.9), rgba(255, 255, 255, 0.98));
}

.student-level-grid strong,
.student-level-grid span {
    display: block;
}

.student-level-grid strong {
    margin-top: 4px;
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1.1;
}

.student-level-grid span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.admissions-section {
    background: linear-gradient(180deg, #fff, #fff8ef);
}

.admission-panel {
    padding: 34px;
    border: 1px solid #ffe2bf;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.step-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 28px;
}

.step-list div {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
}

.step-list span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    font-weight: 800;
    border-radius: var(--radius);
    background: var(--coral);
}

.news-section {
    background: #fffafd;
}

.news-grid,
.achievement-grid,
.facility-grid,
.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.news-card,
.facility-card,
.staff-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover,
.facility-card:hover,
.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.news-card img,
.facility-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-body,
.facility-card div,
.staff-card div {
    padding: 20px;
}

.news-card time {
    display: block;
    margin-top: 16px;
    color: #7c879a;
    font-size: 0.88rem;
}

.achievements-section {
    background: linear-gradient(180deg, #fff, #f8fff7);
}

.achievement-grid {
    grid-template-columns: repeat(2, 1fr);
}

.achievement-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    padding: 16px;
    align-items: center;
}

.achievement-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.achievement-card strong {
    display: block;
    color: var(--mint);
    margin-bottom: 6px;
}

.achievements-section .section-heading p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.achievement-card .card-more {
    margin-top: 12px;
}

.achievement-directory-card {
    overflow: hidden;
}

.achievement-directory-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.achievement-directory-card strong,
.achievement-meta-panel strong {
    display: block;
    color: var(--mint);
    font-weight: 900;
}

.achievement-meta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 18px 0;
}

.achievement-detail-card .detail-feature-image {
    margin-bottom: 18px;
}

.facilities-section {
    background: #fff;
}

.calendar-section {
    background: var(--blue-50);
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    padding: 20px;
    border-left: 5px solid var(--sky);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.timeline-date strong,
.timeline-date span,
.timeline-item small {
    display: block;
}

.timeline-date strong {
    color: var(--sky);
    font-size: 1.02rem;
}

.timeline-date span,
.timeline-item small {
    color: var(--muted);
}

.timeline-item small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.timeline-item small svg {
    width: 16px;
    height: 16px;
}

.staff-section {
    background: #fffafd;
}

.staff-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 18.4;
    object-fit: cover;
    object-position: center top;
}

.staff-card span {
    color: var(--violet);
    font-weight: 800;
}

.staff-card strong {
    display: block;
    margin-bottom: 8px;
}

.gallery-section {
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    grid-auto-rows: 220px;
    gap: 14px;
}

.gallery-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    box-shadow: none;
}

.gallery-card:first-child {
    grid-row: span 2;
}

.gallery-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card figcaption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
    color: #fff;
    border-radius: var(--radius);
    background: rgba(38, 48, 68, 0.64);
    backdrop-filter: blur(10px);
}

.gallery-card span,
.gallery-card strong {
    display: block;
}

.gallery-card span {
    font-size: 0.82rem;
    opacity: 0.78;
}

.downloads-section {
    background: linear-gradient(180deg, #f8fff7, #fff);
}

.download-list {
    display: grid;
    gap: 12px;
}

.download-item {
    display: grid;
    grid-template-columns: 52px 1fr 24px;
    gap: 14px;
    align-items: center;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.download-item small,
.download-item strong,
.download-item p {
    display: block;
}

.download-item small {
    color: var(--pink);
    font-weight: 800;
}

.download-item p {
    margin: 4px 0 0;
    color: var(--muted);
}

.faq-section {
    background: #fffafd;
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    padding: 0 20px;
}

.faq-item summary {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 800;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: #fff;
    border-radius: var(--radius);
    background: var(--mint);
}

.faq-item[open] summary::after {
    content: "-";
    background: var(--pink);
}

.faq-item p {
    margin: 0;
    padding: 0 0 20px;
    color: var(--muted);
}

.contact-section {
    background: linear-gradient(180deg, #fff, #f1f8ff);
}

.contact-layout {
    align-items: stretch;
}

.contact-info,
.contact-form {
    min-width: 0;
}

.contact-methods {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.contact-methods a,
.contact-methods span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
}

.contact-methods svg {
    color: var(--sky);
    width: 20px;
    height: 20px;
}

.contact-socials,
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-socials {
    margin: -4px 0 24px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(54, 72, 110, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(54, 72, 110, 0.12);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link.facebook {
    border-color: rgba(67, 167, 255, 0.34);
}

.social-link.facebook svg {
    color: #2f7fea;
}

.social-link.line {
    border-color: rgba(55, 190, 118, 0.34);
}

.social-link.line svg {
    color: #20b15a;
}

.contact-info iframe {
    width: 100%;
    min-height: 300px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

.contact-form {
    padding: 28px;
}

.contact-form h3 {
    margin: 0 0 18px;
    font-size: 1.45rem;
}

.contact-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    color: #39445d;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #dce4ee;
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--ink);
    background: #fbfdff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--sky);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(85, 167, 247, 0.14);
}

.contact-form textarea {
    resize: vertical;
}

.form-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 700;
}

.form-alert.success {
    color: #0b614e;
    background: #e9fff8;
    border: 1px solid #bcefe0;
}

.form-alert.error {
    color: #8a1f45;
    background: #fff0f5;
    border: 1px solid #ffc8da;
}

.site-footer {
    color: #f6f8fb;
    background: #263044;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-brand .brand-mark {
    box-shadow: none;
}

.site-footer p,
.site-footer small,
.site-footer a,
.site-footer span {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
}

.site-footer a,
.site-footer span {
    display: block;
    margin: 8px 0;
}

.footer-socials {
    margin-top: 14px;
}

.site-footer .social-link {
    display: inline-flex;
    margin: 0;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.site-footer .social-link span {
    display: inline;
    margin: 0;
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom a {
    font-weight: 800;
}

/* ตัวนับยอดเข้าชมเว็บไซต์ (footer) — override .site-footer span {display:block} */
.site-footer .footer-visits {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.88rem;
    line-height: 1;
    color: var(--site-footer-text, #fff);
}

.site-footer .footer-visits i,
.site-footer .footer-visits svg {
    width: 16px;
    height: 16px;
    margin: 0;
    opacity: 0.7;
}

.site-footer .footer-visits span,
.site-footer .footer-visits b {
    display: inline;
    margin: 0;
    color: inherit;
}

.site-footer .footer-visits .footer-visits-label {
    opacity: 0.72;
}

.site-footer .footer-visits .footer-visits-total {
    font-weight: 800;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.site-footer .footer-visits .footer-visits-today {
    padding-left: 9px;
    margin-left: 1px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    opacity: 0.62;
    font-size: 0.82rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .hero h1 {
        font-size: 3.25rem;
    }

    .hero-stats {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -58px;
        max-width: 100%;
    }
}

@media (max-width: 920px) {
    .site-header {
        min-height: 70px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .primary-nav {
        position: fixed;
        top: 70px;
        left: 16px;
        right: 16px;
        display: grid;
        gap: 8px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.97);
        box-shadow: var(--shadow);
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .primary-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .primary-nav .nav-item,
    .primary-nav .nav-overflow {
        display: grid;
        width: 100%;
    }

    .primary-nav a,
    .primary-nav button {
        justify-content: flex-start;
        width: 100%;
        min-height: 48px;
    }

    .nav-dropdown::after {
        display: none;
    }

    .nav-dropdown-menu,
    .nav-overflow-menu {
        position: static;
        display: grid;
        min-width: 0;
        margin: -4px 0 2px 20px;
        padding: 0 0 0 10px;
        border: 0;
        border-left: 2px solid rgba(85, 167, 247, 0.24);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .nav-overflow[hidden] {
        display: none;
    }

    .hero {
        min-height: 860px;
        padding-top: 110px;
    }

    .hero-content {
        padding-bottom: 36px;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .quick-grid,
    .program-grid,
    .news-grid,
    .facility-grid,
    .staff-grid,
    .student-statistics-summary,
    .student-level-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout,
    .split-layout.reverse,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .mission-note {
        left: 18px;
        right: 18px;
        max-width: none;
    }

    .section-heading {
        display: block;
    }

    .student-stat-total {
        grid-column: 1 / -1;
    }

    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 210px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .section-pad {
        padding: 64px 0;
    }

    .brand small {
        display: none;
    }

    .hero {
        min-height: 760px;
        padding-inline: 16px;
        padding-bottom: 24px;
    }

    .hero h1 {
        font-size: 2.18rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        margin-top: -34px;
    }

    .quick-grid,
    .program-grid,
    .news-grid,
    .facility-grid,
    .staff-grid,
    .gallery-grid,
    .student-statistics-summary,
    .student-level-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .announcement-card,
    .timeline-item,
    .achievement-card,
    .download-item {
        grid-template-columns: 1fr;
    }

    .student-statistics-panel {
        padding: 14px;
    }

    .student-stat-total strong {
        font-size: 2.1rem;
    }

    .announcement-media,
    .announcement-media img,
    .announcement-media span {
        min-height: 190px;
    }

    .section-copy h2,
    .section-heading h2,
    .admission-panel h2,
    .contact-info h2 {
        font-size: 1.82rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form,
    .admission-panel {
        padding: 22px;
    }

    .footer-bottom {
        display: grid;
        justify-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Cheerful school refresh */
:root {
    --ink: #24304a;
    --muted: #64748b;
    --line: #e7edf7;
    --paper: #ffffff;
    --pink-50: #fff2f8;
    --pink: #ff6f9f;
    --coral: #ff8a65;
    --mint: #48c9b0;
    --sky: #43a7ff;
    --violet: #7c83fd;
    --lemon: #ffd166;
    --leaf: #7bd88f;
    --aqua: #42d0d9;
    --shadow: 0 20px 50px rgba(54, 72, 110, 0.13);
    --soft-shadow: 0 12px 26px rgba(54, 72, 110, 0.09);
    --container: 1180px;
    --shell: 1500px;
}

body {
    background:
        linear-gradient(180deg, #fff7fb 0%, #f0fbff 34%, #fffdf2 68%, #f6fff8 100%);
}

.site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(231, 237, 247, 0.9);
}

.brand-mark {
    background: linear-gradient(135deg, var(--pink), var(--lemon) 52%, var(--sky));
    box-shadow: 0 12px 24px rgba(255, 111, 159, 0.24);
}

.primary-nav a:hover {
    background: #eefdff;
}

.primary-nav .nav-admin {
    background: linear-gradient(135deg, #24304a, #41506d);
}

.hero {
    height: calc(100svh - 76px);
    min-height: 620px;
    max-height: 760px;
    padding-top: 98px;
    background-position: center 42%;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(36, 48, 74, 0.76), rgba(36, 48, 74, 0.34) 58%, rgba(36, 48, 74, 0.08)),
        linear-gradient(0deg, rgba(67, 167, 255, 0.28), rgba(255, 111, 159, 0.08));
}

.hero h1 {
    text-wrap: balance;
}

.hero-stats div {
    background: rgba(255, 255, 255, 0.2);
}

.home-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(230px, 290px);
    align-items: start;
    gap: 18px;
    width: min(100% - 32px, var(--shell));
    margin: -24px auto 0;
}

.home-main {
    min-width: 0;
}

.home-main .container {
    width: 100%;
}

.home-main .section-pad {
    padding: 48px 0;
}

.home-main .quick-links {
    padding-top: 0;
}

.home-main .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-main .news-grid,
.home-main .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-main .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-main .staff-grid {
    align-items: stretch;
}

.home-main .staff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-color: rgba(255, 196, 217, 0.9);
    background:
        linear-gradient(180deg, rgba(255, 247, 251, 0.98), rgba(255, 255, 255, 0.98) 44%),
        #fff;
}

.home-main .staff-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 18.4;
    object-fit: cover;
    object-position: center top;
    border-bottom: 1px solid rgba(255, 196, 217, 0.78);
    border-radius: var(--radius) var(--radius) 0 0;
}

.home-main .staff-card div {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 18px 20px 14px;
}

.home-main .staff-card h3 {
    margin-bottom: 6px;
    font-size: clamp(1.28rem, 1.6vw, 1.7rem);
    line-height: 1.25;
}

.home-main .staff-card strong {
    color: #c7386a;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.3;
}

.home-main .staff-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.home-main .staff-card .card-more {
    align-self: flex-start;
    margin-top: auto;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 0.68rem;
    gap: 3px;
}

.home-main .staff-card .card-more svg {
    width: 10px;
    height: 10px;
}

.home-main .achievement-grid {
    grid-template-columns: 1fr;
}

.home-main .gallery-grid {
    grid-template-columns: 1fr 1fr;
}

.home-main .section-heading {
    display: block;
}

.home-main .student-statistics-summary {
    grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(118px, 0.72fr));
}

@media (max-width: 680px) {
    .home-main .student-statistics-summary,
    .home-main .student-level-grid {
        grid-template-columns: 1fr;
    }
}

.home-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.side-card,
.leader-card {
    border: 1px solid rgba(231, 237, 247, 0.95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
}

.side-card {
    padding: 18px;
}

.side-intro {
    background:
        linear-gradient(135deg, rgba(255, 242, 248, 0.98), rgba(238, 253, 255, 0.98)),
        #fff;
}

.side-intro h2,
.side-heading h2,
.parent-help h2 {
    margin: 10px 0 8px;
    font-size: 1.18rem;
    line-height: 1.28;
}

.side-intro p,
.parent-help p,
.side-menu-group p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.leader-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3.25;
    object-fit: cover;
}

.leader-card.is-staff-source img {
    aspect-ratio: 16 / 18.4;
    object-position: center top;
}

.area-director-card img {
    aspect-ratio: 16 / 18.4;
    object-position: center top;
}

.leader-card > div {
    padding: 16px;
}

.deputy-slide strong {
    display: block;
    color: var(--violet);
    font-size: 0.82rem;
    font-weight: 800;
}

.leader-card h3,
.deputy-slide h3 {
    margin: 0 0 4px;
    font-size: 1.12rem;
    line-height: 1.3;
}

.leader-card strong {
    display: block;
    color: var(--violet);
    font-size: 0.94rem;
    font-weight: 850;
}

.leader-card p,
.deputy-slide p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.leader-card.featured {
    border-color: #ffd9a8;
    background:
        linear-gradient(180deg, #fffaf0, #fff),
        #fff;
}

.side-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.slider-controls {
    display: flex;
    gap: 6px;
}

.slider-controls button,
.chat-head button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
}

.slider-controls svg,
.chat-head svg {
    width: 17px;
    height: 17px;
}

.deputy-track {
    min-height: 360px;
}

.deputy-slide {
    display: none;
}

.deputy-slide.is-active {
    display: block;
}

.deputy-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.deputy-slide.is-staff-source img {
    aspect-ratio: 16 / 18.4;
    object-position: center top;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d9e2ef;
}

.slider-dots span.is-active {
    width: 22px;
    background: var(--pink);
}

.accordion-menu {
    display: grid;
    gap: 10px;
}

.side-menu-group {
    border: 1px solid #e8eff8;
    border-radius: var(--radius);
    background: #fbfdff;
    overflow: hidden;
}

.side-menu-group summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
}

.side-menu-group summary::-webkit-details-marker {
    display: none;
}

.side-menu-group summary::after {
    content: "+";
    color: var(--pink);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.side-menu-group[open] summary::after {
    content: "-";
}

.side-menu-group summary span,
.parent-help > i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--aqua), var(--sky));
}

.side-menu-group summary svg,
.parent-help > i svg {
    width: 18px;
    height: 18px;
}

.side-menu-group summary strong {
    min-width: 0;
    font-size: 0.96rem;
    line-height: 1.25;
}

.side-menu-group > p {
    padding: 0 12px 10px 60px;
}

.side-submenu {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px 60px;
}

.side-submenu a {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 0;
    color: #334155;
    border-top: 1px solid #edf2f8;
}

.side-submenu a svg {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    color: var(--mint);
}

.side-submenu strong,
.side-submenu small {
    display: block;
}

.side-submenu small {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.parent-help {
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(245, 255, 248, 0.98)),
        #fff;
}

.parent-help > i {
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--pink), var(--coral));
}

.parent-help .button {
    width: 100%;
    margin-top: 14px;
}

.chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: block;
}

.chat-launcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 18px;
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--pink), var(--coral));
    box-shadow: 0 18px 34px rgba(255, 111, 159, 0.32);
    font-weight: 800;
    cursor: pointer;
}

.chat-launcher svg {
    width: 22px;
    height: 22px;
}

.chat-panel {
    position: absolute;
    right: 0;
    bottom: 66px;
    width: min(360px, calc(100vw - 32px));
    max-height: min(650px, calc(100svh - 108px));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 24px 60px rgba(36, 48, 74, 0.2);
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-widget.is-open .chat-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    padding: 14px;
    color: #fff;
    background: linear-gradient(135deg, #24304a, #435a78);
}

.chat-head > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.16);
}

.chat-head strong,
.chat-head small {
    display: block;
    min-width: 0;
}

.chat-head small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    line-height: 1.35;
}

.chat-head button {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.chat-body {
    display: grid;
    gap: 12px;
    max-height: calc(min(650px, 100svh - 108px) - 70px);
    padding: 14px;
    overflow-y: auto;
}

.chat-bubble {
    padding: 12px 14px;
    border-radius: var(--radius);
    color: #344054;
    background: #f1f8ff;
}

.chat-form {
    display: grid;
    gap: 10px;
}

.chat-form label {
    display: grid;
    gap: 6px;
    color: #39445d;
    font-size: 0.9rem;
    font-weight: 800;
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dce5ef;
    border-radius: var(--radius);
    background: #fbfdff;
    outline: none;
}

.chat-form input:focus,
.chat-form textarea:focus {
    border-color: var(--sky);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(67, 167, 255, 0.14);
}

.chat-form textarea {
    resize: vertical;
}

.chat-form .button {
    width: 100%;
}

@media (max-width: 1280px) {
    .home-shell {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .menu-sidebar {
        grid-column: 1 / -1;
        position: static;
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .side-menu-card {
        min-width: 0;
    }
}

@media (max-width: 1040px) {
    .hero {
        height: auto;
        min-height: 720px;
        max-height: none;
    }

    .home-shell {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .home-main {
        order: 1;
    }

    .leadership-sidebar {
        order: 2;
    }

    .menu-sidebar {
        order: 3;
        grid-template-columns: 1fr;
    }

    .home-sidebar {
        position: static;
    }

    .leadership-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leadership-sidebar .deputy-slider,
    .leadership-sidebar .side-intro {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 680px;
        padding-top: 96px;
    }

    .home-shell {
        width: min(100% - 24px, var(--shell));
    }

    .home-main .section-pad {
        padding: 38px 0;
    }

    .home-main .quick-grid,
    .home-main .program-grid,
    .home-main .news-grid,
    .home-main .facility-grid,
    .home-main .staff-grid,
    .home-main .gallery-grid,
    .leadership-sidebar {
        grid-template-columns: 1fr;
    }

    .home-main .staff-card {
        display: flex;
    }

    .home-main .staff-card img {
        aspect-ratio: 16 / 18.4;
    }

    .home-main .staff-card div {
        padding: 18px 18px 14px;
    }

    .deputy-track {
        min-height: 0;
    }

    .side-submenu,
    .side-menu-group > p {
        padding-left: 12px;
    }

    .chat-widget {
        right: 12px;
        bottom: 12px;
    }

    .chat-launcher {
        min-height: 50px;
        padding: 0 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Kindergarten-style column refresh */
:root {
    --kind-pink: #ff8fbd;
    --kind-peach: #ffb184;
    --kind-sun: #ffe07a;
    --kind-sky: #7fd1ff;
    --kind-mint: #8be7c8;
    --kind-lilac: #b9adff;
    --kind-cream: #fffaf0;
    --kind-ink: #25304d;
}

body {
    color: var(--kind-ink);
    background:
        linear-gradient(90deg, rgba(255, 143, 189, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(127, 209, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, #fff6fb 0%, #effbff 38%, #fffaf0 70%, #f4fff9 100%);
    background-size: 34px 34px, 34px 34px, auto;
}

.site-header {
    border-bottom: 3px solid #ffe2ef;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 0 rgba(255, 224, 122, 0.18);
}

.brand-mark {
    border: 2px solid #fff;
    background: linear-gradient(135deg, var(--kind-pink), var(--kind-sun) 50%, var(--kind-sky));
}

.primary-nav a {
    border: 1px solid transparent;
}

.primary-nav a:hover {
    color: #24304a;
    border-color: #d8f3ff;
    background: #f2fbff;
}

.primary-nav .nav-admin {
    background: linear-gradient(135deg, #435a78, #24304a);
}

.hero {
    width: min(100% - 32px, var(--shell));
    height: auto;
    min-height: 570px;
    max-height: none;
    margin: 18px auto 0;
    padding: 96px 32px 34px;
    border: 4px solid #fff;
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(67, 90, 120, 0.18);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(255, 224, 122, 0.18) 0 12px, transparent 12px 24px),
        linear-gradient(45deg, rgba(139, 231, 200, 0.12) 0 10px, transparent 10px 20px);
    background-size: 64px 64px, 56px 56px;
    mix-blend-mode: screen;
    opacity: 0.28;
    pointer-events: none;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(37, 48, 77, 0.58), rgba(37, 48, 77, 0.3) 58%, rgba(37, 48, 77, 0.1)),
        linear-gradient(180deg, rgba(255, 143, 189, 0.14), rgba(127, 209, 255, 0.24));
}

.hero-content,
.hero-stats {
    z-index: 2;
}

.hero .reveal {
    opacity: 1;
    transform: none;
}

.hero-content {
    max-width: 690px;
    padding-bottom: 74px;
}

.hero h1 {
    color: #fff;
    text-shadow: 0 4px 18px rgba(37, 48, 77, 0.42);
}

.hero .eyebrow,
.eyebrow {
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 6px 0 rgba(255, 224, 122, 0.18);
}

.home-shell {
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) minmax(240px, 310px);
    gap: 20px;
    align-items: start;
    margin-top: 22px;
}

.home-shell.is-left-hidden {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
}

.home-shell.is-right-hidden {
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
}

.home-sidebar,
.home-main {
    position: relative;
    top: auto;
    align-self: start;
    min-width: 0;
    padding: 14px;
    border: 4px solid #fff;
    border-radius: var(--radius);
    box-shadow: 0 16px 36px rgba(54, 72, 110, 0.12);
}

.home-sidebar::before,
.home-main::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 2px dashed rgba(37, 48, 77, 0.12);
    border-radius: 6px;
    pointer-events: none;
}

.home-sidebar > *,
.home-main > * {
    position: relative;
    z-index: 1;
}

.leadership-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 239, 247, 0.96), rgba(240, 252, 255, 0.96)),
        #fff;
    border-color: #ffd4e7;
}

.home-main {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 253, 255, 0.92)),
        #fff;
    border-color: #bfeaff;
}

.menu-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 250, 232, 0.97), rgba(243, 255, 249, 0.97)),
        #fff;
    border-color: #ffe3a6;
}

.home-main .section-pad {
    padding: 42px 18px;
    border-bottom: 2px dashed rgba(37, 48, 77, 0.12);
}

.home-main .section-pad:last-child {
    border-bottom: 0;
}

.home-main .quick-links {
    padding-top: 12px;
}

.quick-card,
.program-card,
.announcement-card,
.news-card,
.achievement-card,
.facility-card,
.staff-card,
.gallery-card,
.download-item,
.faq-item,
.contact-form,
.side-card,
.leader-card {
    border: 2px solid #fff;
    outline: 1px solid rgba(255, 143, 189, 0.2);
    box-shadow: 0 10px 0 rgba(127, 209, 255, 0.12), 0 18px 34px rgba(54, 72, 110, 0.08);
}

.quick-card {
    min-height: 150px;
    background:
        linear-gradient(180deg, #fff, #fffaf3),
        #fff;
}

.quick-card:nth-child(2n) .icon-bubble {
    background: linear-gradient(135deg, var(--kind-sky), var(--kind-lilac));
}

.quick-card:nth-child(3n) .icon-bubble {
    background: linear-gradient(135deg, var(--kind-mint), var(--kind-sky));
}

.icon-bubble,
.program-icon,
.download-item > span {
    background: linear-gradient(135deg, var(--kind-pink), var(--kind-peach));
    box-shadow: inset 0 -3px 0 rgba(37, 48, 77, 0.08);
}

.section-copy h2,
.section-heading h2,
.admission-panel h2,
.contact-info h2 {
    color: #24304a;
    text-wrap: balance;
}

.about-section {
    background: linear-gradient(180deg, #fff7fb, #f2fbff);
}

.announcements-section {
    background: #fffdf5;
}

.programs-section {
    background: linear-gradient(180deg, #f0fbff, #fff7fb);
}

.admissions-section {
    background: linear-gradient(180deg, #fffaf0, #f5fff9);
}

.news-section,
.staff-section,
.faq-section {
    background: #fff7fb;
}

.calendar-section {
    background: #effbff;
}

.downloads-section,
.achievements-section {
    background: linear-gradient(180deg, #f5fff9, #fffdf5);
}

.facilities-section,
.gallery-section,
.contact-section {
    background: #fff;
}

.program-card {
    min-height: 220px;
    background:
        linear-gradient(180deg, #fff, #fbfdff),
        #fff;
}

.program-card::after {
    height: 8px;
}

.announcement-card::before {
    width: 8px;
    background: linear-gradient(180deg, var(--kind-pink), var(--kind-sun), var(--kind-mint), var(--kind-sky));
}

.announcement-media {
    box-shadow: inset 0 -4px 0 rgba(37, 48, 77, 0.06);
}

.tag {
    color: #8a3b5b;
    background: #ffe8f2;
}

.leader-card,
.side-card {
    background: rgba(255, 255, 255, 0.9);
}

.leader-card.featured {
    background: linear-gradient(180deg, #fff8df, #fff);
}

.side-menu-group {
    border: 2px solid #fff;
    outline: 1px solid rgba(67, 167, 255, 0.16);
    background: #fff;
    box-shadow: 0 8px 0 rgba(255, 224, 122, 0.12);
}

.side-menu-group summary span,
.parent-help > i {
    background: linear-gradient(135deg, var(--kind-sky), var(--kind-mint));
}

.side-menu-group:nth-child(2n) summary span {
    background: linear-gradient(135deg, var(--kind-pink), var(--kind-peach));
}

.side-menu-group:nth-child(3n) summary span {
    background: linear-gradient(135deg, var(--kind-lilac), var(--kind-sky));
}

.button.primary,
.chat-launcher {
    background: linear-gradient(135deg, var(--kind-pink), var(--kind-peach));
    box-shadow: 0 12px 0 rgba(255, 224, 122, 0.24), 0 18px 32px rgba(255, 143, 189, 0.24);
}

.chat-panel {
    border: 4px solid #fff;
    outline: 1px solid #ffd4e7;
    background: #fffdf8;
}

.chat-head {
    background: linear-gradient(135deg, #435a78, #24304a);
}

.site-footer {
    background:
        linear-gradient(135deg, #24304a, #435a78),
        #24304a;
}

body {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-body-bg, #fffafd) 74%, var(--site-left-bg, #fff7fb) 26%) 0%,
            var(--site-body-bg, #fffafd) 46%,
            color-mix(in srgb, var(--site-body-bg, #fffafd) 72%, var(--site-right-bg, #f6fbff) 28%) 100%);
    font-family: var(--site-font-family, "Sarabun", sans-serif);
    font-size: var(--site-base-font-size, 16px);
}

.site-header {
    background: var(--site-header-bg, #fff);
    color: var(--site-header-text, #263044);
}

.site-header.is-scrolled {
    background: color-mix(in srgb, var(--site-header-bg, #ffffff) 94%, #ffffff 6%);
    border-bottom-color: color-mix(in srgb, var(--site-header-bg, #ffffff) 62%, var(--site-header-text, #263044) 18%);
}

.site-header a,
.site-header strong,
.site-header small {
    color: var(--site-header-text, #263044);
}

.primary-nav {
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--site-top-nav-bg, #ffffff) 66%, var(--site-header-text, #263044) 14%);
    border-radius: calc(var(--radius) + 10px);
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-top-nav-bg, #ffffff) 92%, #ffffff 8%),
            color-mix(in srgb, var(--site-top-nav-bg, #ffffff) 78%, var(--site-header-bg, #ffffff) 22%));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--site-top-nav-bg, #ffffff) 18%, transparent);
}

.primary-nav a {
    color: var(--site-top-nav-text, #44506a);
}

.primary-nav a svg {
    color: var(--site-top-nav-icon, var(--nav-color, var(--pink)));
}

.primary-nav a:hover {
    color: var(--site-top-nav-hover-text, #1f2a46);
    background: var(--site-top-nav-hover-bg, #eff6ff);
}

.primary-nav .nav-admin {
    color: var(--site-top-nav-admin-text, #ffffff);
    background: var(--site-top-nav-admin-bg, #24304a);
}

.primary-nav .nav-admin:hover {
    color: var(--site-top-nav-admin-text, #ffffff);
    background: color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 82%, #000000 18%);
}

.home-shell.is-sidebars-hidden {
    grid-template-columns: minmax(0, 1fr);
}

.leadership-sidebar {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--site-left-bg, #fff7fb) 88%, #ffffff 12%), color-mix(in srgb, var(--site-left-bg, #fff7fb) 78%, #ffffff 22%)),
        var(--site-left-bg, #fff7fb);
    border-color: var(--site-left-border, #ffc9dc);
    border-radius: var(--site-card-radius, 8px);
}

.home-main {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--site-center-bg, #fff) 88%, #ffffff 12%), color-mix(in srgb, var(--site-center-bg, #fff) 78%, var(--site-body-bg, #fffafd) 22%)),
        var(--site-center-bg, #fff);
    border-color: var(--site-center-border, #e8edf3);
    border-radius: var(--site-card-radius, 8px);
}

.menu-sidebar {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--site-right-bg, #f6fbff) 88%, #ffffff 12%), color-mix(in srgb, var(--site-right-bg, #f6fbff) 78%, #ffffff 22%)),
        var(--site-right-bg, #f6fbff);
    border-color: var(--site-right-border, #bae6fd);
    border-radius: var(--site-card-radius, 8px);
}

.site-footer {
    color: var(--site-footer-text, #fff);
    background: var(--site-footer-bg, #2f3f5c);
}

.site-footer p,
.site-footer small,
.site-footer a,
.site-footer span {
    color: color-mix(in srgb, var(--site-footer-text, #fff) 78%, transparent);
}

.site-footer strong,
.site-footer .social-link span {
    color: var(--site-footer-text, #fff);
}

@media (max-width: 1280px) {
    .menu-sidebar {
        grid-column: auto;
        grid-template-columns: none;
    }

    .home-shell {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px);
    }

    .home-shell.is-left-hidden {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    }

    .home-shell.is-right-hidden {
        grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    }

    .home-shell.is-sidebars-hidden {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1040px) {
    .home-shell {
        grid-template-columns: 1fr;
    }

    .home-main {
        order: 1;
    }

    .leadership-sidebar {
        order: 2;
    }

    .menu-sidebar {
        order: 3;
    }
}

@media (max-width: 760px) {
    .hero {
        width: min(100% - 24px, var(--shell));
        min-height: 650px;
        padding-inline: 18px;
    }

    .home-sidebar,
    .home-main {
        padding: 10px;
        border-width: 3px;
    }

    .home-main .section-pad {
        padding: 34px 12px;
    }
}

/* Requested hero and navigation polish */
.hero {
    width: 100%;
    margin: 0;
    padding-inline: max(24px, calc((100vw - var(--shell)) / 2 + 24px));
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero::before {
    opacity: 0.16;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 247, 252, 0.94), rgba(255, 250, 240, 0.74) 48%, rgba(239, 251, 255, 0.56)),
        linear-gradient(180deg, rgba(255, 143, 189, 0.22), rgba(139, 231, 200, 0.18) 54%, rgba(255, 255, 255, 0.86));
}

.hero h1 {
    color: #293554;
    text-shadow: 0 3px 0 rgba(255, 255, 255, 0.7);
}

.hero p {
    color: #43506a;
    font-weight: 700;
}

.hero .eyebrow {
    color: #9a4266;
    border-color: #ffd5e8;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    box-shadow: 0 7px 0 rgba(255, 224, 122, 0.22);
}

.hero .button.soft {
    color: #293554;
    border-color: #bfeaff;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 0 rgba(127, 209, 255, 0.16);
}

.hero-stats div {
    color: #293554;
    border: 2px solid rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 0 rgba(255, 224, 122, 0.16);
}

.hero-stats span {
    color: #5d6b83;
    font-weight: 700;
}

.primary-nav a,
.primary-nav .nav-admin {
    color: #44506a;
    border: 1px solid transparent;
    background: transparent;
}

.primary-nav a:hover,
.primary-nav .nav-admin:hover,
.primary-nav a.is-active,
.primary-nav .nav-admin.is-active {
    color: #8a3b5b;
    border-color: color-mix(in srgb, var(--nav-color, #ff8ab0) 36%, #ffffff);
    background: color-mix(in srgb, var(--nav-color, #ff8ab0) 10%, #ffffff);
    box-shadow: 0 6px 0 rgba(255, 224, 122, 0.18);
    transform: translateY(-1px);
}

.footer-bottom a {
    color: #fff;
    font-weight: 800;
}

@media (max-width: 760px) {
    .hero {
        width: 100%;
        min-height: 650px;
        padding-inline: 18px;
    }
}

/* Formal-bright refinement */
.eyebrow,
.hero .eyebrow,
.button.primary,
.hero .button.soft,
.hero-stats div,
.primary-nav a:hover,
.primary-nav .nav-admin:hover,
.primary-nav a.is-active,
.primary-nav .nav-admin.is-active,
.quick-card,
.program-card,
.announcement-card,
.news-card,
.achievement-card,
.facility-card,
.staff-card,
.gallery-card,
.download-item,
.faq-item,
.contact-form,
.side-card,
.leader-card,
.side-menu-group,
.chat-launcher {
    box-shadow: 0 14px 28px rgba(54, 72, 110, 0.1);
}

.hero {
    padding-left: max(48px, calc((100vw - var(--shell)) / 2 + 80px));
    padding-right: max(24px, calc((100vw - var(--shell)) / 2 + 32px));
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 247, 252, 0.66), rgba(255, 250, 240, 0.44) 48%, rgba(239, 251, 255, 0.28)),
        linear-gradient(180deg, rgba(255, 143, 189, 0.1), rgba(139, 231, 200, 0.08) 52%, rgba(255, 255, 255, 0.44));
}

.hero::before {
    opacity: 0.08;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    color: #26304d;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.82),
        0 10px 24px rgba(255, 255, 255, 0.46);
}

.hero p {
    color: #34405c;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero .eyebrow,
.eyebrow {
    color: #9a4266;
    border-color: #ffd8e8;
    background: rgba(255, 255, 255, 0.78);
}

.button.primary,
.chat-launcher {
    color: #fff;
    background: linear-gradient(135deg, #ec5f93, #ff8c62);
    box-shadow: 0 12px 26px rgba(236, 95, 147, 0.24);
}

.hero .button.soft {
    color: #26304d;
    border: 2px solid #9bdfff;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(67, 167, 255, 0.14);
}

.hero-stats div {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(54, 72, 110, 0.1);
}

.primary-nav a:hover,
.primary-nav .nav-admin:hover,
.primary-nav a.is-active,
.primary-nav .nav-admin.is-active {
    box-shadow: 0 10px 22px rgba(236, 95, 147, 0.13);
}

@media (max-width: 760px) {
    .hero {
        padding-left: 28px;
        padding-right: 18px;
    }
}

/* Final requested cleanup: no yellow shadows, clearer image, more right padding */
.site-header {
    box-shadow: 0 8px 22px rgba(54, 72, 110, 0.08);
}

.hero {
    padding-left: max(72px, calc((100vw - var(--shell)) / 2 + 132px));
    padding-right: max(24px, calc((100vw - var(--shell)) / 2 + 36px));
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 247, 252, 0.46), rgba(255, 250, 240, 0.24) 48%, rgba(239, 251, 255, 0.12)),
        linear-gradient(180deg, rgba(255, 143, 189, 0.06), rgba(139, 231, 200, 0.04) 52%, rgba(255, 255, 255, 0.26));
}

.hero::before {
    opacity: 0.04;
}

.hero h1,
.hero p {
    max-width: 850px;
}

.eyebrow,
.hero .eyebrow,
.button.primary,
.hero .button.soft,
.hero-stats div,
.quick-card,
.program-card,
.announcement-card,
.news-card,
.achievement-card,
.facility-card,
.staff-card,
.gallery-card,
.download-item,
.faq-item,
.contact-form,
.side-card,
.leader-card,
.side-menu-group,
.chat-launcher,
.primary-nav a:hover,
.primary-nav .nav-admin:hover,
.primary-nav a.is-active,
.primary-nav .nav-admin.is-active {
    box-shadow: 0 12px 26px rgba(54, 72, 110, 0.1);
}

.button.primary,
.chat-launcher {
    background: linear-gradient(135deg, #e95586, #ff835f);
    box-shadow: 0 12px 26px rgba(233, 85, 134, 0.24);
}

.hero .button.soft {
    border-color: #8fd9ff;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 24px rgba(54, 72, 110, 0.1);
}

@media (max-width: 760px) {
    .hero {
        padding-left: 32px;
        padding-right: 18px;
    }
}

/* Improve hero text readability without adding a hard frame */
.hero-content {
    position: relative;
    max-width: 860px;
    padding: 28px 34px 96px;
    margin-left: -34px;
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: 14px 120px 78px -18px;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5) 58%, rgba(255, 255, 255, 0));
    filter: blur(18px);
    pointer-events: none;
}

.hero-content > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #1f2a46;
    font-weight: 800;
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.55);
    paint-order: stroke fill;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.95),
        0 0 18px rgba(255, 255, 255, 0.9),
        0 12px 26px rgba(31, 42, 70, 0.12);
}

.hero p {
    max-width: 820px;
    color: #26344f;
    font-weight: 800;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.94),
        0 0 14px rgba(255, 255, 255, 0.86);
}

@media (max-width: 760px) {
    .hero-content {
        padding: 22px 18px 84px;
        margin-left: -10px;
    }

    .hero-content::before {
        inset: 12px 4px 62px -8px;
    }
}

/* About section order and editable Vision/Mission */
.about-section {
    background: linear-gradient(180deg, #fff7fb, #f2fbff);
}

.about-intro {
    width: 100%;
    margin-bottom: 28px;
}

.about-intro h2 {
    width: 100%;
    max-width: none;
    margin: 18px 0 12px;
    color: #24304a;
    font-size: 2.65rem;
    line-height: 1.18;
    font-weight: 800;
    text-wrap: wrap;
}

.about-intro p {
    max-width: none;
    margin: 0;
    color: #5f6d86;
    font-size: 1.06rem;
}

.about-content {
    align-items: stretch;
    gap: 28px;
}

.about-points {
    display: grid;
    align-content: center;
}

.about-points .value-list {
    margin-top: 0;
}

.vision-mission-panel {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vision-mission-panel > div {
    padding: 16px;
    border: 1px solid rgba(231, 237, 247, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 26px rgba(54, 72, 110, 0.12);
    backdrop-filter: blur(12px);
}

.vision-mission-panel strong,
.vision-mission-panel span {
    display: block;
}

.vision-mission-panel strong {
    color: #9a4266;
    font-size: 0.9rem;
    font-weight: 800;
}

.vision-mission-panel span {
    margin-top: 4px;
    color: #39445d;
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 920px) {
    .about-intro h2 {
        font-size: 2.15rem;
    }

    .vision-mission-panel {
        position: static;
        grid-template-columns: 1fr;
        margin-top: 12px;
    }
}

@media (max-width: 680px) {
    .about-intro h2 {
        font-size: 1.86rem;
    }
}

/* About: Vision & Mission cards (grow with content, never overflow) */
.about-vision-mission {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.about-vision-mission .vision-mission-card {
    display: flex;
    flex-direction: column;
    padding: 26px 28px;
    border: 1px solid rgba(231, 237, 247, 0.9);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 30px rgba(54, 72, 110, 0.1);
}

.about-vision-mission .vision-mission-card strong {
    display: block;
    color: #9a4266;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.about-vision-mission .vision-mission-card span {
    display: block;
    margin-top: 10px;
    color: #39445d;
    font-size: 1rem;
    line-height: 1.75;
}

@media (max-width: 720px) {
    .about-vision-mission {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Service menu cards */
.service-menu-stack {
    display: grid;
    gap: 18px;
}

.service-menu-box {
    overflow: hidden;
    border: 2px solid var(--menu-color, #243f8f);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 30px rgba(54, 72, 110, 0.1);
}

.service-menu-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 16px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--menu-color, #243f8f), #24304a);
}

.service-menu-head span {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: var(--menu-accent, #dbeafe);
}

.service-menu-head svg {
    width: 34px;
    height: 34px;
    stroke-width: 2.5;
}

.service-menu-head strong {
    min-width: 0;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 800;
}

.service-menu-body {
    display: grid;
    gap: 2px;
    padding: 12px 18px 16px;
    background: #fff;
}

.service-menu-link {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #3d485f;
    border-radius: var(--radius);
    font-size: 1.04rem;
    font-weight: 600;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.service-menu-link svg {
    width: 24px;
    height: 24px;
    color: #17365d;
    stroke-width: 3;
}

.service-menu-link span {
    min-width: 0;
}

.service-menu-link:hover {
    color: var(--menu-color, #243f8f);
    background: color-mix(in srgb, var(--menu-accent, #dbeafe) 38%, #fff);
    transform: translateX(3px);
}

.extra-links-card {
    overflow: hidden;
    border-color: #d7f2ff;
    background:
        radial-gradient(circle at 100% 0%, rgba(125, 223, 242, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 252, 0.94)),
        #fff;
}

.extra-links-card .side-heading {
    margin-bottom: 14px;
}

.extra-links-card .side-heading h2 {
    font-size: 1.18rem;
}

.extra-link-list {
    display: grid;
    gap: 8px;
    --extra-link-height: 62px;
}

.extra-link-button {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: var(--extra-link-height);
    height: var(--extra-link-height);
    padding: 10px 12px;
    overflow: hidden;
    color: var(--extra-text, #fff);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 16px;
    background:
        linear-gradient(135deg, var(--extra-start, #f05282), var(--extra-end, #ff8a65)),
        #f05282;
    box-shadow:
        0 14px 26px rgba(54, 72, 110, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.extra-link-button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.36), transparent 24%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 56%);
}

.extra-link-button:hover {
    filter: saturate(1.05);
    transform: translateY(-2px);
    box-shadow:
        0 18px 30px rgba(54, 72, 110, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.extra-link-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: currentColor;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.extra-link-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.6;
}

.extra-link-text {
    display: grid;
    min-width: 0;
}

.extra-link-text strong {
    display: -webkit-box;
    overflow: hidden;
    color: currentColor;
    font-size: 0.93rem;
    font-weight: 900;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
}

.extra-link-button.is-image {
    display: block;
    aspect-ratio: 900 / 320;
    min-height: 0;
    height: auto;
    padding: 0;
    background:
        var(--extra-image) center / cover no-repeat;
}

.extra-link-button.is-image::after {
    display: none;
}

/* Service content pages */
.service-page {
    background: linear-gradient(180deg, #fff7fb, #f2fbff 48%, #fffdf4);
}

.service-page-hero {
    position: relative;
    min-height: 260px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background:
        var(--service-image) center / cover no-repeat,
        linear-gradient(135deg, #fff7fb, #effbff);
}

.service-page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 247, 252, 0.86), rgba(255, 250, 240, 0.58) 56%, rgba(239, 251, 255, 0.32)),
        linear-gradient(180deg, rgba(36, 48, 74, 0.08), rgba(255, 255, 255, 0.64));
}

.service-page-hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 54px 0 34px;
}

.service-page-hero-content h1 {
    max-width: 820px;
    margin: 10px 0 8px;
    color: #24304a;
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
    line-height: 1.12;
    font-weight: 800;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.86);
}

.service-page-hero-content p {
    max-width: 780px;
    margin: 0;
    color: #34405c;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.service-page-section {
    padding-top: 52px;
}

.service-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.service-page-card,
.service-related {
    border: 1px solid rgba(231, 237, 247, 0.96);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(54, 72, 110, 0.1);
}

.service-page-card {
    min-height: 360px;
    padding: 34px;
    color: #3d485f;
    font-size: 1.06rem;
    line-height: 1.9;
}

.service-page-body {
    margin-bottom: 22px;
}

.service-page-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: #fff;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #e95586, #43a7ff);
}

.service-page-icon svg {
    width: 32px;
    height: 32px;
}

.service-related {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.service-related h2 {
    margin: 12px 0 16px;
    color: #24304a;
    font-size: 1.5rem;
}

.service-related-list {
    display: grid;
    gap: 8px;
}

.service-related-list a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 10px;
    color: #43506a;
    border: 1px solid #e8edf5;
    border-radius: var(--radius);
    background: #fbfdff;
    font-weight: 700;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.service-related-list a svg {
    width: 20px;
    height: 20px;
    color: #43a7ff;
}

.service-related-list a:hover,
.service-related-list a.is-current {
    color: #24304a;
    border-color: #ffd1df;
    background: #fff7fb;
}

.page-builder-blocks {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.page-builder-block {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid #ffe0ec;
    border-radius: 18px;
    background:
        radial-gradient(circle at 96% 8%, rgba(67, 191, 179, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 251, 0.88));
    box-shadow: 0 14px 30px rgba(54, 72, 110, 0.08);
}

.page-builder-block--image-text {
    grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1fr);
    align-items: center;
}

.page-builder-block--rich,
.page-builder-block--stacked-gallery,
.page-builder-block--two-columns,
.page-builder-block--three-columns,
.page-builder-block--gallery,
.page-builder-block--links,
.page-builder-block--embed {
    grid-template-columns: 1fr;
}

.page-builder-block--feature {
    border-color: #cceeff;
    background:
        radial-gradient(circle at 92% 10%, rgba(73, 168, 255, 0.16), transparent 36%),
        #f9fdff;
}

.page-builder-block--notice {
    border-color: #ffd9a8;
    background:
        radial-gradient(circle at 96% 8%, rgba(255, 138, 101, 0.18), transparent 34%),
        #fffdf7;
}

.page-builder-block--cta {
    border-color: #d7f4ef;
    background:
        radial-gradient(circle at 92% 12%, rgba(67, 191, 179, 0.18), transparent 34%),
        #fbfffd;
}

.page-builder-block-media {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 208, 226, 0.86);
    background: #fff;
}

.page-builder-block-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.page-builder-block-copy {
    min-width: 0;
}

.page-builder-block-icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, #e95586, #43a7ff);
}

.page-builder-block-icon svg {
    width: 25px;
    height: 25px;
}

.page-builder-block h2 {
    margin: 8px 0 10px;
    color: var(--page-builder-block-title-color, #24304a);
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    line-height: 1.2;
}

.page-builder-block h2.is-align-left {
    text-align: left;
}

.page-builder-block h2.is-align-center {
    text-align: center;
}

.page-builder-block h2.is-align-right {
    text-align: right;
}

.page-builder-block-text {
    color: #4d5a73;
    font-weight: 700;
    line-height: 1.8;
}

.page-builder-columns {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.page-builder-columns--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-builder-columns--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-builder-column {
    min-width: 0;
    padding: 16px;
    color: #4d5a73;
    font-weight: 700;
    line-height: 1.75;
    border: 1px solid rgba(223, 232, 244, 0.94);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.page-builder-column > :first-child {
    margin-top: 0;
}

.page-builder-column > :last-child {
    margin-bottom: 0;
}

.page-builder-column h3 {
    margin: 0 0 10px;
    color: #24304a;
    font-size: 1.05rem;
    line-height: 1.3;
}

.page-builder-column .is-align-left {
    text-align: left;
}

.page-builder-column .is-align-center {
    text-align: center;
}

.page-builder-column .is-align-right {
    text-align: right;
}

.page-builder-column-text {
    display: grid;
    gap: 8px;
    color: var(--page-builder-column-text-color, #4d5a73);
}

.page-builder-column-text > :first-child,
.page-builder-column-embed > :first-child {
    margin-top: 0;
}

.page-builder-column-text > :last-child,
.page-builder-column-embed > :last-child {
    margin-bottom: 0;
}

.page-builder-column-image {
    margin: 0;
}

.page-builder-column-image.is-align-left img {
    margin-right: auto;
}

.page-builder-column-image.is-align-center img {
    margin-right: auto;
    margin-left: auto;
}

.page-builder-column-image.is-align-right img {
    margin-left: auto;
}

.page-builder-column-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid rgba(223, 232, 244, 0.94);
    border-radius: 12px;
    background: #f8fbff;
}

.page-builder-column-image--portrait img {
    aspect-ratio: 4 / 5;
}

.page-builder-column-image--landscape img {
    aspect-ratio: 16 / 10;
}

.page-builder-column-image figcaption {
    margin-top: 8px;
    color: var(--page-builder-caption-color, #64748b);
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: normal;
}

.page-builder-column-link-row {
    display: flex;
    width: 100%;
    margin-top: 12px;
}

.page-builder-column-link-row.is-align-left {
    justify-content: flex-start;
}

.page-builder-column-link-row.is-align-center {
    justify-content: center;
}

.page-builder-column-link-row.is-align-right {
    justify-content: flex-end;
}

.page-builder-column-link-row.is-align-left .page-builder-column-link {
    margin-right: auto;
    margin-left: 0;
}

.page-builder-column-link-row.is-align-center .page-builder-column-link {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.page-builder-column-link-row.is-align-right .page-builder-column-link {
    margin-right: 0;
    margin-left: auto;
}

.page-builder-column-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: min(100%, 210px);
    max-width: min(100%, 380px);
    min-height: 56px;
    padding: 12px 46px 12px 18px;
    color: var(--site-top-nav-icon, var(--pink));
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--site-top-nav-icon, var(--pink)) 28%, #ffffff);
    border-left: 5px solid var(--site-top-nav-icon, var(--pink));
    border-radius: 16px;
    background:
        radial-gradient(circle at 96% 12%, color-mix(in srgb, var(--site-top-nav-icon, var(--pink)) 14%, transparent), transparent 34%),
        linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--site-top-nav-icon, var(--pink)) 7%, #ffffff));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--site-top-nav-icon, var(--pink)) 12%, transparent);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.page-builder-column-link:hover,
.page-builder-column-link:focus-visible {
    color: var(--site-top-nav-admin-bg, var(--site-top-nav-icon, var(--pink)));
    border-color: color-mix(in srgb, var(--site-top-nav-icon, var(--pink)) 44%, #ffffff);
    background:
        radial-gradient(circle at 96% 12%, color-mix(in srgb, var(--site-top-nav-icon, var(--pink)) 18%, transparent), transparent 34%),
        linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--site-top-nav-icon, var(--pink)) 10%, #ffffff));
    box-shadow: 0 16px 30px color-mix(in srgb, var(--site-top-nav-icon, var(--pink)) 18%, transparent);
    transform: translateY(-1px);
}

.page-builder-column-link svg {
    position: absolute;
    right: 16px;
    top: 50%;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: currentColor;
}

.page-builder-column-embed {
    overflow: hidden;
    color: #4d5a73;
}

.page-builder-column-embed iframe {
    max-width: 100%;
    border: 0;
    border-radius: 12px;
}

.page-builder-embed {
    overflow: hidden;
    margin-top: 14px;
    aspect-ratio: 16 / 9;
    border: 1px solid #dff0ff;
    border-radius: 18px;
    background: #eef5ff;
}

.page-builder-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.page-builder-button {
    margin-top: 18px;
}

.page-builder-gallery {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.page-builder-gallery-stage {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border: 1px solid #dff0ff;
    border-radius: 18px;
    background: #fff;
}

.page-builder-gallery-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: zoom-in;
    opacity: 0;
    border: 0;
    background: transparent;
    transition: opacity 0.24s ease;
}

.page-builder-gallery-slide.is-active {
    opacity: 1;
    position: relative;
}

.page-builder-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.page-builder-gallery-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #65728a;
    font-weight: 800;
}

.page-builder-gallery-control button,
.page-builder-gallery-thumbs button {
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    border: 1px solid #dfe8f4;
    background: #fff;
}

.page-builder-gallery-control button {
    width: 38px;
    height: 38px;
    color: #24304a;
    border-radius: 13px;
}

.page-builder-gallery-control svg {
    width: 20px;
    height: 20px;
}

.page-builder-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-builder-gallery-thumbs button {
    width: 70px;
    height: 50px;
    overflow: hidden;
    padding: 2px;
    border-radius: 12px;
    opacity: 0.72;
}

.page-builder-gallery-thumbs button.is-active {
    opacity: 1;
    border-color: #f59ac1;
    box-shadow: 0 0 0 3px rgba(245, 154, 193, 0.18);
}

.page-builder-gallery-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: cover;
}

.page-builder-link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.page-builder-link-buttons.is-align-left {
    justify-content: flex-start;
}

.page-builder-link-buttons.is-align-center {
    justify-content: center;
}

.page-builder-link-buttons.is-align-right {
    justify-content: flex-end;
}

.page-builder-link-buttons .page-builder-button {
    margin-top: 0;
}

@media (max-width: 980px) {
    .service-page-layout {
        grid-template-columns: 1fr;
    }

    .service-related {
        position: static;
    }

    .page-builder-block--image-text {
        grid-template-columns: 1fr;
    }

    .page-builder-columns--2,
    .page-builder-columns--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .service-menu-head {
        min-height: 64px;
        padding: 14px 15px;
    }

    .service-menu-head strong {
        font-size: 1.18rem;
    }

    .service-menu-body {
        padding: 10px 14px 14px;
    }

    .service-page-hero {
        min-height: 220px;
    }

    .service-page-hero-content {
        padding: 46px 0 28px;
    }

    .service-page-card,
    .service-related {
        padding: 22px;
    }
}

/* Restore the service menu to the softer site accordion style */
.side-menu-card .accordion-menu {
    gap: 12px;
}

.side-menu-card .side-menu-group {
    border: 1px solid rgba(231, 237, 247, 0.96);
    outline: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 247, 0.88)),
        #fff;
    box-shadow: 0 12px 26px rgba(54, 72, 110, 0.09);
}

.side-menu-card .side-menu-group summary {
    min-height: 64px;
    padding: 12px 14px;
}

.side-menu-card .side-menu-group summary::after {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #d94878;
    border: 1px solid #ffd1df;
    border-radius: var(--radius);
    background: #fff7fb;
    font-size: 1.05rem;
}

.side-menu-card .side-menu-group summary span {
    width: 42px;
    height: 42px;
    box-shadow: 0 10px 20px rgba(67, 167, 255, 0.14);
}

.side-menu-card .side-menu-group summary strong {
    color: #26304d;
    font-size: 1rem;
    font-weight: 800;
}

.side-menu-card .side-menu-group > p {
    margin: -2px 0 8px;
    padding: 0 14px 0 68px;
    color: #667085;
    font-size: 0.9rem;
    line-height: 1.55;
}

.side-menu-card .side-submenu {
    gap: 6px;
    padding: 0 14px 14px 68px;
}

.side-menu-card .side-submenu a {
    min-height: 42px;
    padding: 9px 10px;
    color: #43506a;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: rgba(248, 251, 255, 0.78);
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.side-menu-card .side-submenu a:hover {
    color: #24304a;
    border-color: #dceeff;
    background: #f5fbff;
    transform: translateX(2px);
}

.side-menu-card .side-submenu a strong {
    font-size: 0.94rem;
}

.side-menu-card .side-submenu a small {
    color: #6b7890;
    font-size: 0.82rem;
}

.side-menu-card .side-submenu a svg {
    color: #43a7ff;
}

/* Personnel subject menu in the left column */
.personnel-menu-card {
    padding: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 252, 0.92)),
        #fff;
}

.personnel-menu-card .side-heading {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e7eef8;
}

.personnel-menu-card .eyebrow {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.84rem;
}

.personnel-menu-card .side-heading h2 {
    margin: 8px 0 0;
    font-size: 1.05rem;
    line-height: 1.24;
}

.personnel-menu-list {
    display: grid;
    gap: 7px;
}

.personnel-menu-list a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 7px 9px;
    color: #26304d;
    border: 1px solid rgba(231, 237, 247, 0.96);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.9)),
        #fff;
    box-shadow: 0 7px 14px rgba(54, 72, 110, 0.05);
}

.personnel-menu-list a:hover {
    border-color: color-mix(in srgb, var(--personnel-color, #43a7ff) 40%, #fff);
    transform: translateX(2px);
}

.personnel-menu-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #fff;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--personnel-color, #43a7ff), #ff8fbd);
    box-shadow: 0 7px 13px rgba(54, 72, 110, 0.1);
}

.personnel-menu-icon svg {
    width: 15px;
    height: 15px;
}

.personnel-menu-list strong {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.student-awards-slider {
    position: relative;
    padding: 16px;
    border-color: #ffd6a8;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 216, 112, 0.26), transparent 34%),
        linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 247, 251, 0.94)),
        #fff;
}

.student-awards-slider .side-heading {
    display: block;
    padding-right: 0;
}

.student-awards-slider .slider-controls {
    position: absolute;
    top: 16px;
    right: 16px;
}

.student-awards-slider .side-heading h2 {
    margin-top: 8px;
    padding-right: 0;
    font-size: 1rem;
    line-height: 1.22;
    text-align: center;
    white-space: nowrap;
}

.student-awards-track {
    min-height: 438px;
}

.student-award-slide {
    display: none;
    text-align: center;
}

.student-award-slide.is-active {
    display: block;
}

.student-award-photo {
    position: relative;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(255, 196, 106, 0.82);
    border-radius: 20px;
    background:
        linear-gradient(135deg, #fff8dc, #ffe9f4 48%, #e8fbff),
        #fff;
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.8),
        0 18px 28px rgba(162, 105, 44, 0.14);
}

.student-award-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
    border-radius: 15px;
}

.student-award-photo span {
    position: absolute;
    right: 14px;
    bottom: -18px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    border: 4px solid #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd45f, #ff7aa8);
    box-shadow: 0 12px 22px rgba(211, 72, 120, 0.18);
}

.student-award-photo svg {
    width: 23px;
    height: 23px;
}

.student-award-content {
    margin-top: 26px;
    padding: 0 4px;
}

.student-award-content small {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    color: #a64066;
    border-radius: 999px;
    background: #ffe6f0;
    font-size: 0.78rem;
    font-weight: 900;
}

.student-award-content h3 {
    margin: 12px 0 4px;
    color: #24304a;
    font-size: 1.08rem;
    line-height: 1.25;
}

.student-award-content strong {
    display: block;
    color: #d94878;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.28;
}

.student-award-content p {
    margin: 10px auto 0;
    color: #667085;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.55;
}

/* Wider, clearer activity calendar */
.home-main .calendar-heading {
    margin-bottom: 22px;
}

.home-main .calendar-heading p {
    max-width: 720px;
}

.calendar-list {
    display: grid;
    gap: 12px;
}

.calendar-item {
    display: grid;
    grid-template-columns: minmax(138px, 0.38fr) minmax(0, 1fr) minmax(146px, 0.42fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(220, 232, 246, 0.96);
    border-left: 6px solid #43a7ff;
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(239, 251, 255, 0.9), rgba(255, 255, 255, 0.96) 26%),
        #fff;
    box-shadow: 0 12px 28px rgba(54, 72, 110, 0.08);
}

.calendar-date {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    min-height: 74px;
    padding: 12px;
    border: 1px solid #dceeff;
    border-radius: var(--radius);
    background: #f5fbff;
    text-align: center;
}

.calendar-date span,
.calendar-date small {
    display: block;
}

.calendar-date span {
    color: #1f6fb2;
    font-weight: 800;
    line-height: 1.35;
}

.calendar-date small {
    color: #667085;
    font-weight: 700;
}

.calendar-body {
    min-width: 0;
}

.calendar-body h3 {
    margin: 8px 0 6px;
    color: #24304a;
    font-size: 1.16rem;
    line-height: 1.35;
}

.calendar-body p {
    margin: 0;
    color: #667085;
    line-height: 1.65;
}

.calendar-place {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    color: #43506a;
    border: 1px solid #ffe0ec;
    border-radius: var(--radius);
    background: #fff7fb;
    font-weight: 800;
}

.calendar-place svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #d94878;
}

.calendar-place span {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .side-menu-card .side-menu-group > p,
    .side-menu-card .side-submenu {
        padding-left: 14px;
    }

    .calendar-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .calendar-place {
        justify-self: stretch;
    }
}

/* Public directories and detail pages */
.section-more {
    min-height: 42px;
    padding: 0 16px;
    color: #fff;
    background: linear-gradient(135deg, #43a7ff, #7c83fd);
    box-shadow: 0 12px 24px rgba(67, 167, 255, 0.18);
}

.section-more.centered-link {
    margin-top: 18px;
}

.documents-more {
    margin-top: 18px;
}

.card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 38px;
    margin-top: 16px;
    padding: 0 13px;
    color: #24304a;
    border: 1px solid #ffd1df;
    border-radius: var(--radius);
    background: #fff7fb;
    font-weight: 800;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.card-more svg {
    width: 16px;
    height: 16px;
}

.card-more:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #e95586, #ff835f);
    transform: translateY(-1px);
}

.gallery-more {
    min-height: 32px;
    margin-top: 10px;
    padding: 0 11px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
}

.gallery-more:hover {
    color: #24304a;
    border-color: #fff;
    background: #fff;
}

.directory-page,
.detail-page {
    background: linear-gradient(180deg, #fff7fb, #f2fbff 46%, #fffdf4);
}

.directory-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
}

.directory-hero {
    padding: 50px 0 28px;
    background:
        linear-gradient(135deg, rgba(255, 247, 251, 0.96), rgba(239, 251, 255, 0.96)),
        #fff;
}

.facility-hero {
    background:
        linear-gradient(135deg, rgba(245, 255, 248, 0.96), rgba(239, 251, 255, 0.96)),
        #fff;
}

.staff-hero {
    min-height: 250px;
    display: grid;
    align-items: end;
    background:
        linear-gradient(90deg, rgba(255, 248, 252, 0.93), rgba(255, 250, 240, 0.78) 52%, rgba(239, 251, 255, 0.62)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 247, 251, 0.92)),
        var(--staff-hero-image) center / cover no-repeat,
        #fff;
}

.staff-hero .container {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
}

.directory-hero h1,
.detail-hero h1,
.staff-profile-card h1 {
    margin: 10px 0 8px;
    color: #24304a;
    font-size: clamp(1.7rem, 3.4vw, 2.75rem);
    line-height: 1.14;
}

.directory-hero p,
.detail-hero p {
    max-width: 740px;
    margin: 0;
    color: #5f6d86;
    font-size: 0.98rem;
    font-weight: 700;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.directory-card h2 {
    margin: 10px 0 8px;
    color: #24304a;
    font-size: 1.22rem;
    line-height: 1.35;
}

.directory-card p {
    color: #667085;
}

.achievement-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.achievement-directory-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 16px;
    border: 2px solid #ffd8e8;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 253, 0.98)),
        #fff;
    box-shadow: 0 18px 38px rgba(54, 72, 110, 0.1);
    overflow: hidden;
}

.achievement-directory-card img {
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(54, 72, 110, 0.1);
}

.achievement-directory-card > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 8px 4px;
}

.achievement-directory-card h2 {
    font-size: 1.36rem;
}

.achievement-directory-card p {
    margin-bottom: 18px;
}

.achievement-directory-card .card-more {
    margin-top: auto;
}

.gallery-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.gallery-directory-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 14px;
    border: 2px solid #ffd8e8;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 253, 0.98)),
        #fff;
    box-shadow: 0 18px 38px rgba(54, 72, 110, 0.09);
    overflow: hidden;
}

.gallery-directory-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 17px;
}

.gallery-directory-card > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 4px 2px;
}

.gallery-directory-card .card-more {
    margin-top: auto;
}

.downloads-directory-list {
    display: grid;
    gap: 16px;
}

.download-directory-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 2px solid #ffd8e8;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 251, 255, 0.84)),
        #fff;
    box-shadow: 0 18px 38px rgba(54, 72, 110, 0.08);
}

.download-directory-icon,
.download-detail-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff7fac, #ff9b6d);
    box-shadow: inset 0 -4px 0 rgba(37, 48, 77, 0.08);
}

.download-directory-icon svg,
.download-detail-icon svg {
    width: 34px;
    height: 34px;
}

.download-directory-card h2 {
    margin-top: 6px;
}

.download-directory-card p {
    margin-bottom: 0;
}

.gallery-detail-card .tag,
.download-detail-card .tag {
    width: fit-content;
}

.download-detail-card {
    display: grid;
    gap: 16px;
}

.download-detail-actions,
.download-open-button {
    width: fit-content;
}

.download-attachment-list {
    display: grid;
    gap: 10px;
    max-width: 680px;
}

.download-attachment {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 10px 12px;
    color: var(--ink);
    border: 1px solid rgba(210, 224, 240, 0.98);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(29, 44, 71, 0.08);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.download-attachment:hover,
.download-attachment:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(67, 167, 255, 0.5);
    box-shadow: 0 18px 38px rgba(29, 44, 71, 0.12);
    outline: none;
}

.download-attachment span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--blue);
    border-radius: 12px;
    background: #eef6ff;
}

.download-attachment span svg {
    width: 21px;
    height: 21px;
}

.download-attachment strong {
    overflow: hidden;
    font-size: 1rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-attachment small {
    padding: 5px 9px;
    color: #2459c4;
    border: 1px solid rgba(67, 167, 255, 0.32);
    border-radius: 999px;
    background: #f4f8ff;
    font-size: 0.76rem;
    font-weight: 900;
}

.download-detail-empty {
    margin: 0;
    color: #667085;
    font-weight: 800;
}

.gallery-slideshow {
    display: grid;
    gap: 14px;
    margin: -14px -14px 24px;
}

.gallery-slideshow-stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #f3f8ff;
}

.gallery-slide {
    display: none;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-slide.is-active {
    display: block;
}

.gallery-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.gallery-slider-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #24304a;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 26px rgba(54, 72, 110, 0.14);
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-slider-control.prev {
    left: 14px;
}

.gallery-slider-control.next {
    right: 14px;
}

.gallery-slider-control svg {
    width: 22px;
    height: 22px;
}

.gallery-slide-meta {
    display: flex;
    justify-content: center;
    color: #5f6d86;
    font-weight: 900;
}

.gallery-slide-meta span {
    display: inline-flex;
    gap: 4px;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #ffd8e8;
    border-radius: 999px;
    background: #fff7fb;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    gap: 10px;
}

.gallery-thumb {
    padding: 4px;
    border: 2px solid #e5edf7;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    opacity: 0.72;
    transition: border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
    border-color: #ff8fbd;
    opacity: 1;
    transform: translateY(-1px);
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.announcement-directory-card img,
.announcement-directory-fallback {
    aspect-ratio: 16 / 10;
}

.announcement-directory-fallback {
    display: grid;
    place-items: center;
    color: #e95586;
    background: linear-gradient(135deg, #fff6cf, #e7fbff);
}

.announcement-directory-fallback svg {
    width: 44px;
    height: 44px;
}

.staff-directory-grid .staff-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 18.4;
    object-fit: cover;
    object-position: center top;
}

.staff-org-section {
    background:
        linear-gradient(180deg, rgba(255, 247, 251, 0.64), rgba(239, 251, 255, 0.66)),
        #fff;
}

.department-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.department-nav a {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 74px;
    padding: 12px;
    color: #303b55;
    border: 1px solid #e5edf7;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(54, 72, 110, 0.07);
}

.department-nav a > svg {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 8px;
    color: var(--dept-color, #43a7ff);
    border-radius: 12px;
    background: #f7fbff;
}

.department-nav span {
    font-weight: 900;
    line-height: 1.25;
}

.department-nav small {
    color: #667085;
    font-weight: 800;
}

.department-nav a:hover,
.department-nav a.is-active {
    border-color: color-mix(in srgb, var(--dept-color, #43a7ff) 42%, #fff);
    background:
        linear-gradient(135deg, rgba(255, 247, 251, 0.95), rgba(239, 251, 255, 0.95)),
        #fff;
    transform: translateY(-1px);
}

.staff-organization {
    display: grid;
    gap: 22px;
}

.department-section {
    padding: 22px;
    border: 1px solid #e5edf7;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.84)),
        #fff;
    box-shadow: 0 18px 38px rgba(54, 72, 110, 0.08);
}

.department-heading {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.department-number {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    color: #fff;
    border: 4px solid #fff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--dept-color, #43a7ff), #ff8fbd);
    box-shadow: 0 12px 26px rgba(54, 72, 110, 0.12);
    font-size: 1.55rem;
    font-weight: 900;
}

.department-heading h2 {
    margin: 6px 0;
    color: #24304a;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.2;
}

.department-heading p {
    margin: 0;
    color: #667085;
    font-weight: 700;
}

.department-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 13px;
    color: #24304a;
    border: 1px solid #dce6f2;
    border-radius: var(--radius);
    background: #fff;
    font-weight: 900;
}

.department-more svg {
    width: 16px;
    height: 16px;
    color: var(--dept-color, #43a7ff);
}

.department-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 44px;
    margin-top: 16px;
    padding: 0 16px;
    color: #24304a;
    border: 1px solid color-mix(in srgb, var(--dept-color, #43a7ff) 28%, #fff);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 247, 251, 0.94), rgba(239, 251, 255, 0.94)),
        #fff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(54, 72, 110, 0.08);
}

.department-view-all svg {
    width: 16px;
    height: 16px;
    color: var(--dept-color, #43a7ff);
}

.staff-org-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.staff-org-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 170px;
    padding: 12px;
    border: 1px solid #e8edf5;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
}

.staff-org-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 18.4;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
}

.staff-org-card span {
    color: #d94878;
    font-weight: 900;
}

.staff-org-card h3 {
    margin: 6px 0;
    color: #24304a;
    font-size: 1.24rem;
    line-height: 1.25;
}

.staff-org-card p {
    margin: 0;
    color: #667085;
    font-weight: 700;
}

.staff-card-actions,
.staff-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.staff-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    min-height: 36px;
    margin-top: 14px;
    padding: 0 12px;
    color: #2f6a4f;
    border: 1px solid #bcefd9;
    border-radius: var(--radius);
    background: #f1fff8;
    font-weight: 900;
}

.staff-contact-chip svg {
    width: 15px;
    height: 15px;
}

.subject-staff-page .staff-org-section {
    background:
        radial-gradient(circle at 10% 16%, rgba(255, 232, 241, 0.62), transparent 34%),
        linear-gradient(180deg, rgba(247, 252, 255, 0.86), rgba(255, 250, 244, 0.72)),
        #fff;
}

.subject-hero {
    background:
        linear-gradient(135deg, rgba(255, 247, 251, 0.98), rgba(236, 251, 255, 0.94)),
        #fff;
}

.subject-nav {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.subject-section {
    border-color: color-mix(in srgb, var(--dept-color, #43a7ff) 24%, #fff);
}

.subject-section .department-number svg {
    width: 28px;
    height: 28px;
}

.subject-staff-card {
    align-items: stretch;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 252, 0.76)),
        #fff;
}

.subject-staff-card img {
    display: block;
    width: 100%;
    align-self: stretch;
    aspect-ratio: 16 / 18.4;
    object-fit: cover;
    object-position: center top;
}

.subject-staff-card .card-more {
    margin-top: 12px;
}

.department-empty {
    padding: 22px;
    color: #667085;
    border: 1px dashed #d6e0ec;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    text-align: center;
}

.detail-hero {
    min-height: 260px;
    display: grid;
    align-items: end;
    background:
        var(--detail-image) center / cover no-repeat,
        linear-gradient(135deg, #fff7fb, #effbff);
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 247, 252, 0.84), rgba(255, 250, 240, 0.56) 56%, rgba(239, 251, 255, 0.32)),
        linear-gradient(180deg, rgba(36, 48, 74, 0.06), rgba(255, 255, 255, 0.68));
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 34px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.single-detail {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.detail-card,
.detail-gallery,
.staff-profile-card {
    border: 1px solid rgba(231, 237, 247, 0.96);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 32px rgba(54, 72, 110, 0.1);
}

.detail-card {
    padding: 34px;
}

.lead-text {
    margin: 0 0 22px;
    color: #24304a;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.65;
}

.rich-text {
    color: #3d485f;
    font-size: 1.06rem;
    line-height: 1.9;
}

.detail-feature-image {
    margin: -14px -14px 24px;
    overflow: hidden;
    border-radius: var(--radius);
}

.detail-feature-image button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.detail-feature-image img {
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.detail-gallery {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.detail-gallery h2 {
    margin: 12px 0 16px;
    color: #24304a;
}

.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.news-gallery-grid button {
    display: block;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.news-gallery-grid img {
    aspect-ratio: 1 / 1;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.news-gallery-grid button:hover img {
    transform: scale(1.05);
}

.staff-profile-section {
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
}

.staff-profile-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    padding: 24px;
}

.staff-profile-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 18.4;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
}

.staff-profile-card strong {
    display: block;
    color: #d94878;
    font-size: 1.15rem;
}

.staff-profile-card p {
    color: #5f6d86;
    font-size: 1.06rem;
}

.staff-profile-actions .card-more {
    margin-top: 0;
}

.staff-profile-actions .soft-link {
    border-color: #cfeeff;
    background: #f0fbff;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 28px 36px;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(14px) saturate(1.08);
}

.image-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.image-lightbox-frame {
    position: relative;
    display: inline-block;
    max-width: min(88vw, 1120px);
    max-height: calc(100vh - 142px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.3);
}

.image-lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(88vw, 1120px);
    max-height: min(68vh, 650px);
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: transparent;
}

.image-lightbox-close,
.image-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #17233f;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}

.image-lightbox-close {
    top: 22px;
    right: 24px;
    width: 50px;
    height: 50px;
}

.image-lightbox-nav {
    top: 50%;
    width: 56px;
    height: 56px;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(15, 23, 42, 0.54);
    transform: translateY(-50%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}

.image-lightbox-nav.is-prev {
    left: 24px;
}

.image-lightbox-nav.is-next {
    right: 24px;
}

.image-lightbox-nav[hidden] {
    display: none;
}

.image-lightbox-close:hover,
.image-lightbox-nav:hover {
    color: #ffffff;
    border-color: #2563eb;
    background: #2563eb;
}

.image-lightbox-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    gap: 12px;
}

.image-lightbox-dots[hidden] {
    display: none;
}

.image-lightbox-dots button {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.78);
    cursor: pointer;
    transition: width 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.image-lightbox-dots button:hover {
    background: #bfdbfe;
    transform: translateY(-1px);
}

.image-lightbox-dots button.is-active {
    width: 48px;
    background: #2563eb;
}

@media (max-width: 820px) {
    .image-lightbox {
        gap: 14px;
        padding: 18px 14px;
    }

    .image-lightbox-frame {
        max-width: calc(100vw - 28px);
    }

    .image-lightbox img {
        max-width: calc(100vw - 28px);
        max-height: 70vh;
        border-radius: 18px;
    }

    .image-lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .image-lightbox-nav {
        width: 46px;
        height: 46px;
    }

    .image-lightbox-nav.is-prev {
        left: 16px;
    }

    .image-lightbox-nav.is-next {
        right: 16px;
    }

    .image-lightbox-dots {
        gap: 9px;
    }

    .image-lightbox-dots button {
        width: 12px;
        height: 12px;
    }

    .image-lightbox-dots button.is-active {
        width: 36px;
    }
}

body.lightbox-open {
    overflow: hidden;
}

.custom-content-gallery button {
    appearance: none;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    width: 100%;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    cursor: zoom-in;
}

.custom-content-gallery button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--custom-accent, #1d4ed8) 55%, #ffffff);
    outline-offset: 3px;
}

@media (max-width: 1120px) {
    .directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-nav,
    .staff-org-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout,
    .staff-profile-card {
        grid-template-columns: 1fr;
    }

    .detail-gallery {
        position: static;
    }
}

@media (max-width: 680px) {
    .directory-grid,
    .gallery-directory-grid,
    .news-gallery-grid,
    .department-nav,
    .staff-org-grid {
        grid-template-columns: 1fr;
    }

    .download-directory-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .download-directory-icon,
    .download-detail-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .download-directory-card .card-more {
        justify-self: start;
        margin-top: 0;
    }

    .gallery-slideshow {
        margin: -8px -8px 20px;
    }

    .gallery-slide img {
        aspect-ratio: 4 / 3;
    }

    .gallery-slider-control {
        width: 38px;
        height: 38px;
    }

    .department-heading,
    .staff-org-card {
        grid-template-columns: 1fr;
    }

    .department-more {
        justify-self: start;
    }

    .detail-card,
    .detail-gallery,
    .staff-profile-card {
        padding: 22px;
    }

    .detail-hero {
        min-height: 220px;
    }
}

/* Compact secondary-page headers */
.directory-hero {
    min-height: 0 !important;
    padding: 28px 0 18px !important;
}

.staff-hero,
.detail-hero,
.service-page-hero {
    min-height: 148px !important;
}

.staff-hero .container {
    padding-bottom: 0 !important;
}

.detail-hero-content {
    padding-bottom: 20px !important;
}

.service-page-hero-content {
    padding: 32px 0 22px !important;
}

.directory-hero .eyebrow,
.detail-hero .eyebrow,
.service-page-hero .eyebrow {
    min-height: 24px !important;
    padding: 0 9px !important;
    font-size: 0.72rem !important;
    border-radius: 9px !important;
}

.directory-hero h1,
.detail-hero h1,
.service-page-hero-content h1 {
    max-width: 900px !important;
    margin: 6px 0 4px !important;
    font-size: clamp(1.32rem, 1.9vw, 1.9rem) !important;
    line-height: 1.16 !important;
}

.directory-hero p,
.detail-hero p,
.service-page-hero-content p {
    max-width: 680px !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
}

@media (max-width: 680px) {
    .directory-hero {
        padding: 22px 0 16px !important;
    }

    .staff-hero,
    .detail-hero,
    .service-page-hero {
        min-height: 126px !important;
    }

    .detail-hero-content,
    .service-page-hero-content {
        padding-bottom: 16px !important;
    }

    .directory-hero h1,
    .detail-hero h1,
    .service-page-hero-content h1 {
        font-size: clamp(1.18rem, 6vw, 1.48rem) !important;
    }
}

/* Keep the home program cards balanced for any active item count */
.home-main .program-grid {
    align-items: stretch;
    justify-content: center;
    margin-inline: auto;
}

@media (min-width: 761px) {
    .home-main .program-grid.program-count-1 {
        grid-template-columns: minmax(0, 420px);
    }

    .home-main .program-grid.program-count-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 900px;
    }

    .home-main .program-grid.program-count-3,
    .home-main .program-grid.program-count-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-main .program-grid.program-count-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 900px;
    }

    .home-main .program-grid.program-count-5 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .home-main .program-grid.program-count-5 > .program-card {
        grid-column: span 2;
    }

    .home-main .program-grid.program-count-5 > .program-card:nth-last-child(2) {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 760px) {
    .home-main .program-grid[class*="program-count-"] {
        grid-template-columns: 1fr !important;
        max-width: none;
    }

    .home-main .program-grid.program-count-5 > .program-card {
        grid-column: auto;
    }
}

/* Full-image white haze from left to right for clearer hero text */
.hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.72) 22%, rgba(255, 255, 255, 0.44) 48%, rgba(255, 255, 255, 0.18) 74%, rgba(255, 255, 255, 0.04) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 58%, rgba(255, 255, 255, 0.36) 100%),
        linear-gradient(90deg, rgba(18, 28, 50, 0.04), rgba(18, 28, 50, 0.02) 56%, rgba(18, 28, 50, 0)) !important;
}

.hero-content::before {
    display: none !important;
}

.hero-content > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--site-hero-title-color, #1f2a46) !important;
    -webkit-text-stroke: 1.25px var(--site-hero-outline-color, #ffffff) !important;
    paint-order: stroke fill;
    text-shadow:
        0 2px 0 var(--site-hero-shadow-color, #ffffff),
        0 0 2px var(--site-hero-outline-color, #ffffff),
        0 10px 24px rgba(18, 28, 50, 0.18) !important;
}

.hero p {
    color: var(--site-hero-subtitle-color, #25314f) !important;
    -webkit-text-stroke: 0.45px var(--site-hero-outline-color, #ffffff);
    paint-order: stroke fill;
    text-shadow:
        -1px -1px 0 var(--site-hero-outline-color, #ffffff),
        1px -1px 0 var(--site-hero-outline-color, #ffffff),
        -1px 1px 0 var(--site-hero-outline-color, #ffffff),
        1px 1px 0 var(--site-hero-outline-color, #ffffff),
        0 8px 18px rgba(18, 28, 50, 0.16) !important;
}

.hero .eyebrow {
    color: var(--site-hero-badge-text, #9b4b63) !important;
    border-color: var(--site-hero-badge-border, #ffc9dc) !important;
}

@media (max-width: 760px) {
    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.7) 44%, rgba(255, 255, 255, 0.28) 78%, rgba(255, 255, 255, 0.08) 100%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 58%, rgba(255, 255, 255, 0.38) 100%) !important;
    }
}

/* Mobile home hero: keep the photo visible and move content into a compact lower layer */
@media (max-width: 760px) {
    .hero {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-end;
        gap: 12px;
        isolation: isolate;
        width: 100% !important;
        min-height: calc(100svh - 76px) !important;
        height: auto !important;
        margin: 0 !important;
        padding: 44svh 16px 18px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background-image: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: -112px 0 0;
        z-index: 0;
        background-image: var(--hero-image) !important;
        background-position: center 34%;
        background-repeat: no-repeat;
        background-size: auto 126%;
        mix-blend-mode: normal;
        opacity: 1;
        pointer-events: none;
    }

    .hero::after {
        z-index: 1;
        height: 74px;
        background: linear-gradient(180deg, rgba(255, 250, 253, 0), rgba(255, 250, 253, 0.92));
    }

    .hero-overlay {
        inset: -112px 0 0;
        z-index: 1;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 38%, rgba(255, 255, 255, 0.82) 69%, rgba(255, 255, 255, 0.96) 100%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0) 100%) !important;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: none;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero .eyebrow {
        min-height: 30px;
        padding: 0 11px;
        font-size: 0.78rem;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 8px 18px rgba(31, 42, 70, 0.08);
    }

    .hero h1 {
        width: min(100%, 560px);
        max-width: none;
        margin: 10px 0 8px;
        font-size: clamp(1.84rem, 8.35vw, 2.55rem);
        line-height: 1.08;
        /* Thai has no spaces, so keep-all/overflow-wrap:normal left the whole title on one
           line — modern Chrome breaks it via its Thai dictionary, but in-app browsers
           (Messenger/WKWebView) do not, so it overflowed the screen and broke the page
           layout. normal + break-word makes the long title always wrap to 2+ lines. */
        word-break: normal;
        overflow-wrap: break-word;
        text-wrap: balance;
    }

    .hero p {
        max-width: 360px;
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        margin-top: 14px;
    }

    .hero-actions .button {
        width: auto;
        min-height: 42px;
        padding: 0 12px;
        font-size: 0.9rem;
        border-radius: 14px;
    }

    .hero-stats {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 2;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: none;
        margin: 0 !important;
    }

    .hero-stats div {
        min-width: 0;
        padding: 10px 8px;
        border-width: 1px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(12px);
    }

    .hero-stats strong {
        font-size: 1.12rem;
    }

    .hero-stats span {
        font-size: 0.7rem;
        line-height: 1.25;
    }
}

@media (max-width: 380px) {
    .hero {
        padding-top: 42svh !important;
    }

    .hero::before {
        background-size: auto 132%;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .hero-stats strong {
        font-size: 1rem;
    }

    .hero-stats span {
        font-size: 0.66rem;
    }
}

/* Theme system final overrides: keep preset colors visible across legacy style passes. */
body {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-body-bg, #fffafd) 72%, var(--site-left-bg, #fff7fb) 28%) 0%,
            var(--site-body-bg, #fffafd) 45%,
            color-mix(in srgb, var(--site-body-bg, #fffafd) 70%, var(--site-right-bg, #f6fbff) 30%) 100%) !important;
}

.site-header,
.site-header.is-scrolled {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-header-bg, #ffffff) 94%, #ffffff 6%),
            color-mix(in srgb, var(--site-header-bg, #ffffff) 84%, var(--site-top-nav-bg, #ffffff) 16%)) !important;
    border-bottom: 1px solid var(--site-header-border, #e8edf3) !important;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--site-header-shadow, #36486e) 10%, transparent) !important;
}

.brand-mark {
    color: var(--site-brand-mark-text, #ffffff) !important;
    border: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, #f05282) 28%, #ffffff 72%) !important;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-brand-mark-bg, #f05282) 72%, #ffffff 28%),
            color-mix(in srgb, var(--site-brand-mark-bg, #f05282) 48%, var(--site-header-bg, #ffffff) 52%)) !important;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--site-brand-mark-bg, #f05282) 14%, transparent) !important;
}

.brand-logo {
    border: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, #f05282) 18%, #ffffff 82%) !important;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--site-brand-mark-bg, #f05282) 12%, transparent) !important;
}

.site-header .brand strong {
    color: var(--site-brand-text, var(--site-header-text, #263044)) !important;
}

.site-header .brand small {
    color: var(--site-brand-subtext, var(--site-header-subtext, #5d6b83)) !important;
}

.primary-nav {
    padding: 6px !important;
    border: 1px solid var(--site-top-nav-border, #e2e8f0) !important;
    border-radius: 16px !important;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-top-nav-bg, #ffffff) 44%, #ffffff 56%),
            color-mix(in srgb, var(--site-top-nav-bg, #ffffff) 28%, var(--site-header-bg, #ffffff) 72%)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 24px color-mix(in srgb, var(--site-header-shadow, #36486e) 8%, transparent) !important;
}

.primary-nav a {
    color: var(--site-top-nav-text, #44506a) !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.primary-nav a svg {
    color: var(--site-top-nav-icon, var(--nav-color, var(--pink))) !important;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--site-top-nav-hover-text, #1f2a46) !important;
    border-color: color-mix(in srgb, var(--site-top-nav-hover-bg, #eff6ff) 68%, var(--site-top-nav-hover-text, #1f2a46) 16%) !important;
    background: var(--site-top-nav-hover-bg, #eff6ff) !important;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--site-top-nav-hover-bg, #eff6ff) 34%, transparent) !important;
}

.primary-nav .nav-admin {
    color: var(--site-top-nav-admin-text, #ffffff) !important;
    background: var(--site-top-nav-admin-bg, #24304a) !important;
    border-color: color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 78%, #ffffff 22%) !important;
}

.primary-nav .nav-admin:hover,
.primary-nav .nav-admin.is-active {
    color: var(--site-top-nav-admin-text, #ffffff) !important;
    background: var(--site-top-nav-admin-hover-bg, color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 84%, #000000 16%)) !important;
}

.leadership-sidebar {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--site-left-bg, #fff7fb) 88%, #ffffff 12%), color-mix(in srgb, var(--site-left-bg, #fff7fb) 78%, #ffffff 22%)),
        var(--site-left-bg, #fff7fb) !important;
}

.home-main {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--site-center-bg, #ffffff) 88%, #ffffff 12%), color-mix(in srgb, var(--site-center-bg, #ffffff) 78%, var(--site-body-bg, #fffafd) 22%)),
        var(--site-center-bg, #ffffff) !important;
}

.menu-sidebar {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--site-right-bg, #f6fbff) 88%, #ffffff 12%), color-mix(in srgb, var(--site-right-bg, #f6fbff) 78%, #ffffff 22%)),
        var(--site-right-bg, #f6fbff) !important;
}

.site-footer {
    color: var(--site-footer-text, #ffffff) !important;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-footer-bg, #2f3f5c) 96%, #000000 4%),
            color-mix(in srgb, var(--site-footer-bg, #2f3f5c) 88%, var(--site-footer-text, #ffffff) 12%)),
        var(--site-footer-bg, #2f3f5c) !important;
}

.site-footer strong,
.site-footer .footer-brand strong,
.site-footer .social-link span {
    color: var(--site-footer-heading, var(--site-footer-text, #ffffff)) !important;
}

.site-footer p,
.site-footer small,
.site-footer a,
.site-footer span {
    color: color-mix(in srgb, var(--site-footer-text, #ffffff) 84%, var(--site-footer-bg, #2f3f5c) 16%) !important;
}

.site-footer .footer-brand small {
    color: color-mix(in srgb, var(--site-footer-text, #ffffff) 72%, var(--site-footer-bg, #2f3f5c) 28%) !important;
}

.site-footer a:hover {
    color: var(--site-footer-heading, var(--site-footer-text, #ffffff)) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer .footer-brand .brand-mark {
    color: var(--site-brand-mark-text, #ffffff) !important;
    border-color: color-mix(in srgb, var(--site-footer-heading, #ffffff) 46%, transparent) !important;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-brand-mark-bg, #f05282) 82%, #ffffff 18%),
            color-mix(in srgb, var(--site-brand-mark-bg, #f05282) 62%, var(--site-footer-bg, #2f3f5c) 38%)) !important;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--site-brand-mark-bg, #f05282) 20%, transparent) !important;
}

.site-footer .footer-brand .brand-logo {
    border-color: color-mix(in srgb, var(--site-footer-heading, #ffffff) 36%, transparent) !important;
    background: color-mix(in srgb, var(--site-footer-text, #ffffff) 12%, var(--site-footer-bg, #2f3f5c) 88%) !important;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--site-footer-heading, #ffffff) 12%, transparent) !important;
}

.hero[data-hero-overlay="0"] .hero-overlay {
    display: none !important;
}

.hero[data-hero-overlay="0"]::after {
    display: none !important;
}

.hero.hero-no-stats .hero-content {
    padding-bottom: 36px !important;
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, var(--site-hero-title-size, 64px)) !important;
    line-height: var(--site-hero-title-line-height, 1.08) !important;
}

.hero p {
    font-size: clamp(0.95rem, 2vw, var(--site-hero-subtitle-size, 19px)) !important;
    line-height: var(--site-hero-subtitle-line-height, 1.45) !important;
}

@media (max-width: 760px) {
    .hero h1 {
        font-size: clamp(1.45rem, 8.35vw, min(var(--site-hero-title-size, 64px), 2.55rem)) !important;
        line-height: var(--site-hero-title-line-height, 1.08) !important;
    }

    .hero p {
        font-size: clamp(0.86rem, 4vw, min(var(--site-hero-subtitle-size, 19px), 1.05rem)) !important;
        line-height: var(--site-hero-subtitle-line-height, 1.45) !important;
    }

    .hero.hero-no-stats .hero-content {
        padding-bottom: 24px !important;
    }
}

/* Formal theme cohesion: keep homepage columns in one coordinated palette. */
body {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-body-bg, #f4f7fb) 92%, var(--site-brand-mark-bg, #5b8def) 8%) 0%,
            var(--site-body-bg, #f4f7fb) 48%,
            color-mix(in srgb, var(--site-body-bg, #f4f7fb) 94%, var(--site-top-nav-admin-bg, #24304a) 6%) 100%) !important;
}

.home-shell {
    gap: 22px !important;
}

.home-sidebar,
.home-main {
    border-width: 2px !important;
    border-style: solid !important;
    outline: none !important;
    box-shadow: 0 18px 38px color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 8%, transparent) !important;
}

.home-sidebar::before,
.home-main::before {
    display: none !important;
}

.leadership-sidebar {
    border-color: color-mix(in srgb, var(--site-left-border, #d8e2ef) 82%, #ffffff 18%) !important;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-left-bg, #f8fafc) 34%, #ffffff 66%),
            color-mix(in srgb, var(--site-left-bg, #f8fafc) 18%, var(--site-center-bg, #ffffff) 82%)),
        #ffffff !important;
}

.home-main {
    border-color: color-mix(in srgb, var(--site-center-border, #e6edf5) 82%, #ffffff 18%) !important;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-center-bg, #ffffff) 94%, var(--site-body-bg, #f4f7fb) 6%),
            color-mix(in srgb, var(--site-center-bg, #ffffff) 88%, var(--site-body-bg, #f4f7fb) 12%)),
        #ffffff !important;
}

.menu-sidebar {
    border-color: color-mix(in srgb, var(--site-right-border, #d8e2ef) 82%, #ffffff 18%) !important;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-right-bg, #f8fafc) 34%, #ffffff 66%),
            color-mix(in srgb, var(--site-right-bg, #f8fafc) 18%, var(--site-center-bg, #ffffff) 82%)),
        #ffffff !important;
}

.home-main .section-pad {
    border-bottom: 1px solid color-mix(in srgb, var(--site-center-border, #e6edf5) 62%, #ffffff 38%) !important;
}

.quick-card,
.program-card,
.announcement-card,
.news-card,
.achievement-card,
.facility-card,
.staff-card,
.gallery-card,
.download-item,
.faq-item,
.contact-form,
.side-card,
.leader-card,
.side-menu-group {
    border: 1px solid color-mix(in srgb, var(--site-center-border, #e6edf5) 66%, #ffffff 34%) !important;
    outline: none !important;
    background:
        linear-gradient(180deg,
            #ffffff,
            color-mix(in srgb, var(--site-center-bg, #ffffff) 88%, var(--site-body-bg, #f4f7fb) 12%)) !important;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 7%, transparent) !important;
}

.leader-card.featured,
.side-intro {
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-left-bg, #f8fafc) 22%, #ffffff 78%),
            #ffffff) !important;
}

.side-menu-group summary span,
.parent-help > i,
.icon-bubble,
.program-icon,
.download-item > span {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 76%, #ffffff 24%),
            color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 68%, var(--site-brand-mark-bg, #5b8def) 32%)) !important;
}

.side-menu-group:nth-child(2n) summary span,
.side-menu-group:nth-child(3n) summary span {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 62%, #ffffff 38%),
            color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 42%, var(--site-top-nav-admin-bg, #24304a) 58%)) !important;
}

.side-menu-group summary::after {
    color: var(--site-brand-mark-bg, #5b8def) !important;
}

.tag,
.hero .eyebrow {
    color: var(--site-hero-badge-text, var(--site-brand-mark-bg, #5b8def)) !important;
    border-color: color-mix(in srgb, var(--site-hero-badge-border, #d8e2ef) 70%, #ffffff 30%) !important;
    background: color-mix(in srgb, var(--site-center-bg, #ffffff) 84%, var(--site-brand-mark-bg, #5b8def) 16%) !important;
}

.button.primary,
.chat-launcher {
    background:
        linear-gradient(135deg,
            var(--site-brand-mark-bg, #5b8def),
            color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 72%, var(--site-brand-mark-bg, #5b8def) 28%)) !important;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 20%, transparent) !important;
}

/* Top menu items: use the color configured in Manage Top Menu. */
.primary-nav a:not(.nav-admin) {
    --nav-item-color: var(--nav-color, var(--site-top-nav-icon, #f05282));
}

.primary-nav a:not(.nav-admin) svg {
    color: var(--nav-item-color) !important;
}

.primary-nav a:not(.nav-admin):hover,
.primary-nav a:not(.nav-admin).is-active {
    color: color-mix(in srgb, var(--nav-item-color) 68%, var(--site-top-nav-hover-text, #1f2a46) 32%) !important;
    border-color: color-mix(in srgb, var(--nav-item-color) 38%, #ffffff 62%) !important;
    background: color-mix(in srgb, var(--nav-item-color) 13%, var(--site-top-nav-hover-bg, #eff6ff) 87%) !important;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--nav-item-color) 18%, transparent) !important;
}

.primary-nav a:not(.nav-admin):hover svg,
.primary-nav a:not(.nav-admin).is-active svg {
    color: var(--nav-item-color) !important;
}

/* Secondary pages: inherit the same formal theme palette as the homepage. */
.directory-page,
.detail-page,
.service-page {
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-body-bg, #f4f7fb) 90%, #ffffff 10%) 0%,
            color-mix(in srgb, var(--site-body-bg, #f4f7fb) 82%, var(--site-center-bg, #ffffff) 18%) 46%,
            color-mix(in srgb, var(--site-body-bg, #f4f7fb) 92%, var(--site-right-bg, #f8fafc) 8%) 100%) !important;
}

.directory-hero,
.service-page-hero {
    border-bottom: 1px solid color-mix(in srgb, var(--site-center-border, #e6edf5) 76%, #ffffff 24%) !important;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-center-bg, #ffffff) 88%, var(--site-brand-mark-bg, #5b8def) 12%),
            color-mix(in srgb, var(--site-body-bg, #f4f7fb) 86%, var(--site-top-nav-bg, #ffffff) 14%)),
        var(--site-center-bg, #ffffff) !important;
}

.facility-hero,
.subject-hero {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-right-bg, #f8fafc) 84%, var(--site-brand-mark-bg, #5b8def) 16%),
            color-mix(in srgb, var(--site-body-bg, #f4f7fb) 88%, var(--site-center-bg, #ffffff) 12%)),
        var(--site-center-bg, #ffffff) !important;
}

.staff-hero {
    border-bottom: 1px solid color-mix(in srgb, var(--site-center-border, #e6edf5) 72%, #ffffff 28%) !important;
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--site-center-bg, #ffffff) 86%, var(--site-brand-mark-bg, #5b8def) 14%),
            color-mix(in srgb, var(--site-body-bg, #f4f7fb) 78%, #ffffff 22%) 52%,
            color-mix(in srgb, var(--site-right-bg, #f8fafc) 76%, transparent 24%)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), color-mix(in srgb, var(--site-body-bg, #f4f7fb) 78%, #ffffff 22%)),
        var(--staff-hero-image) center / cover no-repeat,
        var(--site-center-bg, #ffffff) !important;
}

.detail-hero {
    border-bottom: 1px solid color-mix(in srgb, var(--site-center-border, #e6edf5) 70%, #ffffff 30%) !important;
    background:
        var(--detail-image) center / cover no-repeat,
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-center-bg, #ffffff) 86%, var(--site-brand-mark-bg, #5b8def) 14%),
            color-mix(in srgb, var(--site-body-bg, #f4f7fb) 88%, var(--site-top-nav-bg, #ffffff) 12%)) !important;
}

.detail-hero-overlay,
.service-page-hero-overlay {
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--site-center-bg, #ffffff) 86%, transparent 14%),
            color-mix(in srgb, var(--site-body-bg, #f4f7fb) 62%, transparent 38%) 58%,
            color-mix(in srgb, var(--site-right-bg, #f8fafc) 42%, transparent 58%)),
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-header-shadow, #36486e) 8%, transparent),
            color-mix(in srgb, var(--site-center-bg, #ffffff) 72%, transparent 28%)) !important;
}

.directory-hero h1,
.detail-hero h1,
.service-page-hero-content h1,
.staff-profile-card h1 {
    color: var(--site-hero-title-color, var(--site-brand-text, #24304a)) !important;
    text-shadow: 0 2px 0 color-mix(in srgb, var(--site-hero-shadow-color, #ffffff) 78%, transparent) !important;
}

.directory-hero p,
.detail-hero p,
.service-page-hero-content p {
    color: var(--site-hero-subtitle-color, var(--site-brand-subtext, #5f6d86)) !important;
}

.directory-card,
.download-directory-card,
.gallery-directory-card,
.detail-card,
.detail-gallery,
.service-page-card,
.service-related,
.staff-profile-card,
.department-section,
.download-attachment {
    border-color: color-mix(in srgb, var(--site-center-border, #e6edf5) 76%, #ffffff 24%) !important;
    background:
        linear-gradient(180deg,
            #ffffff,
            color-mix(in srgb, var(--site-center-bg, #ffffff) 90%, var(--site-body-bg, #f4f7fb) 10%)) !important;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 8%, transparent) !important;
}

.download-directory-icon,
.download-detail-icon,
.download-attachment span,
.service-page-icon,
.department-number {
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 76%, #ffffff 24%),
            color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 66%, var(--site-brand-mark-bg, #5b8def) 34%)) !important;
    color: var(--site-brand-mark-text, #ffffff) !important;
}

.download-attachment small,
.card-more,
.department-more,
.service-related-list a.is-current {
    color: var(--site-brand-mark-bg, #5b8def) !important;
    border-color: color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 28%, #ffffff 72%) !important;
    background: color-mix(in srgb, var(--site-center-bg, #ffffff) 88%, var(--site-brand-mark-bg, #5b8def) 12%) !important;
}

.page-builder-block-text p,
.page-builder-block-text div {
    margin: 0 0 1rem;
}

.page-builder-block-text p:last-child,
.page-builder-block-text div:last-child {
    margin-bottom: 0;
}

.page-builder-block-text h2,
.page-builder-block-text h3,
.page-builder-block-text h4 {
    margin: 1.15rem 0 0.5rem;
    color: var(--site-brand-text, #24304a);
    line-height: 1.35;
}

.page-builder-block-text h2 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.page-builder-block-text h3 {
    font-size: clamp(1.2rem, 1.6vw, 1.55rem);
}

.page-builder-block-text a {
    color: var(--site-brand-mark-bg, #5b8def);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.page-builder-block-text ul,
.page-builder-block-text ol {
    margin: 0.65rem 0 1rem 1.3rem;
    padding: 0;
}

.page-builder-block-text li + li {
    margin-top: 0.35rem;
}

.rich-text-size-small {
    font-size: 0.9em;
}

.rich-text-size-large {
    font-size: 1.18em;
}

.rich-text-size-xlarge {
    font-size: 1.38em;
}

/* Service detail sidebar: compact parent/child accordion that mirrors the homepage service menu. */
.service-related.side-menu-card {
    padding: 20px;
    border-color: color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 38%, #ffffff 62%) !important;
}

.service-related.side-menu-card .eyebrow {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.service-related.side-menu-card h2 {
    margin: 12px 0 18px;
    font-size: clamp(1.55rem, 2vw, 1.9rem);
    line-height: 1.15;
}

.service-related-menu {
    display: grid;
    gap: 10px;
}

.service-related-menu .side-menu-group {
    border: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 42%, #ffffff 58%) !important;
    border-radius: 18px;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: hidden;
}

.service-related-menu .side-menu-group summary {
    grid-template-columns: 52px minmax(0, 1fr) 34px;
    min-height: 74px;
    gap: 12px;
    padding: 12px 13px;
}

.service-related-menu .side-menu-group summary span {
    width: 50px;
    height: 50px;
    border-radius: 14px;
}

.service-related-menu .side-menu-group summary span svg {
    width: 25px;
    height: 25px;
}

.service-related-menu .side-menu-group summary strong {
    color: var(--site-brand-text, #24304a);
    font-size: 1.08rem;
    line-height: 1.14;
    overflow-wrap: anywhere;
}

.service-related-menu .side-menu-group summary::after {
    width: 32px;
    height: 32px;
    color: var(--site-brand-mark-bg, #3156d4) !important;
    border-color: color-mix(in srgb, var(--site-hero-badge-border, #ffd1df) 74%, #ffffff 26%);
    background: color-mix(in srgb, #ffffff 82%, var(--site-hero-badge-border, #ffd1df) 18%);
    font-size: 1.25rem;
}

.service-related-menu .side-menu-group[open] summary {
    border-bottom: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 18%, #ffffff 82%);
    background: linear-gradient(90deg, color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 8%, #ffffff 92%), #ffffff);
}

.service-related-menu .side-menu-group.is-current-parent summary strong {
    color: var(--site-brand-mark-bg, #3156d4);
}

.service-related-menu .side-menu-group > p {
    margin: 0;
    padding: 8px 16px 4px 76px;
    color: #66718a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-related-menu .side-submenu {
    display: grid;
    gap: 8px;
    padding: 10px 13px 13px 76px;
}

.service-related-menu .side-submenu a {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    min-height: auto;
    padding: 9px 10px;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    background: #f8fbff;
}

.service-related-menu .side-submenu a svg {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    color: #43a7ff;
}

.service-related-menu .side-submenu a strong {
    font-size: 0.96rem;
    line-height: 1.2;
}

.service-related-menu .side-submenu a small {
    display: block;
    margin-top: 3px;
    color: #6d7890;
    font-size: 0.78rem;
    line-height: 1.35;
}

.service-related-menu .side-submenu a.is-current {
    color: var(--site-brand-mark-bg, #3156d4) !important;
    border-color: color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 30%, #ffffff 70%);
    background: linear-gradient(90deg, color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 16%, #ffffff 84%), #ffffff);
    box-shadow: inset 4px 0 0 var(--site-brand-mark-bg, #3156d4);
}

.service-related-menu .side-submenu a.is-current strong {
    color: var(--site-brand-mark-bg, #3156d4);
}

.service-related-menu .side-submenu a.is-current svg {
    color: var(--site-brand-mark-bg, #3156d4);
}

@media (max-width: 680px) {
    .service-related.side-menu-card {
        padding: 16px;
    }

    .service-related.side-menu-card h2 {
        font-size: 1.7rem;
    }

    .service-related-menu .side-menu-group summary {
        grid-template-columns: 48px minmax(0, 1fr) 32px;
        min-height: 68px;
        gap: 10px;
        padding: 10px;
    }

    .service-related-menu .side-menu-group summary span {
        width: 46px;
        height: 46px;
    }

    .service-related-menu .side-menu-group summary span svg {
        width: 23px;
        height: 23px;
    }

    .service-related-menu .side-menu-group summary strong {
        font-size: 1rem;
    }

    .service-related-menu .side-menu-group > p,
    .service-related-menu .side-submenu {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Service detail polish: keep the detail page calmer and more proportional. */
.service-page .service-page-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
}

.service-page .service-page-layout.is-full-page {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1180px;
}

.service-page .service-page-card {
    padding: 28px;
    font-size: 0.98rem;
    line-height: 1.75;
}

.service-page .service-page-layout.is-full-page .service-page-card {
    min-height: 520px;
}

.service-page .page-builder-blocks {
    gap: 14px;
    margin-top: 0;
}

.service-page .page-builder-block {
    gap: 12px;
    padding: 24px 26px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(54, 72, 110, 0.06);
}

.service-page .page-builder-block h2 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 1.7vw, 1.85rem);
    line-height: 1.18;
}

.service-page .page-builder-block-text {
    color: #4e5a72;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.7;
}

.service-page .page-builder-block-text p,
.service-page .page-builder-block-text div {
    margin-bottom: 0.8rem;
}

.service-page .page-builder-link-buttons {
    gap: 8px;
    margin-top: 14px;
}

.service-page .page-builder-link-buttons .page-builder-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 9px 14px 9px 16px;
    color: var(--site-brand-mark-bg, #3156d4);
    border: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 34%, #ffffff 66%);
    border-radius: 999px;
    background:
        linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 8%, #ffffff 92%));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--site-brand-mark-bg, #3156d4) 12%, transparent);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.service-page .page-builder-link-buttons .page-builder-button:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--site-brand-mark-bg, #3156d4) 54%, #ffffff 46%);
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 12%, #ffffff 88%),
            color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 18%, #ffffff 82%));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--site-brand-mark-bg, #3156d4) 16%, transparent);
}

.service-page .page-builder-link-buttons .page-builder-button svg {
    width: 18px;
    height: 18px;
    padding: 3px;
    color: #ffffff;
    border-radius: 999px;
    background: var(--site-brand-mark-bg, #3156d4);
    flex: 0 0 auto;
}

.event-detail-page .page-builder-link-buttons {
    margin-top: 22px;
}

.event-detail-page .page-builder-link-buttons .page-builder-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 20px 10px 12px;
    color: var(--site-brand-mark-bg, #3156d4);
    border: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 34%, #ffffff 66%);
    border-radius: 999px;
    background:
        linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 8%, #ffffff 92%));
    box-shadow: 0 12px 26px color-mix(in srgb, var(--site-brand-mark-bg, #3156d4) 16%, transparent);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.event-detail-page .page-builder-link-buttons .page-builder-button:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--site-brand-mark-bg, #3156d4) 56%, #ffffff 44%);
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 12%, #ffffff 88%),
            color-mix(in srgb, var(--site-brand-mark-bg, #5b8def) 20%, #ffffff 80%));
    box-shadow: 0 18px 34px color-mix(in srgb, var(--site-brand-mark-bg, #3156d4) 22%, transparent);
}

.event-detail-page .page-builder-link-buttons .page-builder-button svg {
    width: 20px;
    height: 20px;
    padding: 4px;
    color: #ffffff;
    border-radius: 999px;
    background:
        linear-gradient(135deg, var(--site-brand-mark-bg, #3156d4), color-mix(in srgb, var(--site-brand-mark-bg, #3156d4) 60%, #ffffff 40%));
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

/* Let the uploaded event photo show through clearly instead of being washed out by the themed pastel overlay. */
.event-detail-page .detail-hero {
    min-height: 360px;
}

.event-detail-page .detail-hero-overlay {
    background:
        linear-gradient(0deg,
            rgba(16, 20, 34, 0.78) 0%,
            rgba(16, 20, 34, 0.42) 38%,
            rgba(16, 20, 34, 0.08) 68%,
            rgba(16, 20, 34, 0) 100%) !important;
}

.event-detail-page .detail-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
}

.event-detail-page .detail-hero p {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
}

.event-detail-page .page-builder-link-buttons .page-builder-button:hover svg {
    transform: translateX(2px) translateY(-2px);
}

/* The event / calendar detail page reuses the exact soft pill link button from
   the listing cards (.card-more, themed purple). Inside the flex button row we
   only need to drop its default stacking margin so spacing stays tidy. */
.page-builder-link-buttons .card-more {
    margin-top: 0;
}

.service-page .service-related.side-menu-card {
    padding: 16px;
}

.service-page .service-related.side-menu-card h2 {
    margin: 6px 0 14px;
    font-size: clamp(1.35rem, 1.45vw, 1.6rem);
}

.service-page .service-related-menu {
    gap: 8px;
}

.service-page .service-related-menu .side-menu-group {
    border-radius: 14px;
}

.service-page .service-related-menu .side-menu-group summary {
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    min-height: 58px;
    gap: 9px;
    padding: 9px 10px;
}

.service-page .service-related-menu .side-menu-group summary span {
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.service-page .service-related-menu .side-menu-group summary span svg {
    width: 21px;
    height: 21px;
}

.service-page .service-related-menu .side-menu-group summary strong {
    font-size: 0.92rem;
    line-height: 1.15;
}

.service-page .service-related-menu .side-menu-group summary::after {
    width: 27px;
    height: 27px;
    font-size: 1.05rem;
}

.service-page .service-related-menu .side-menu-group > p {
    padding: 7px 12px 2px 60px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.service-page .service-related-menu .side-submenu {
    gap: 7px;
    padding: 9px 10px 11px 60px;
}

.service-page .service-related-menu .side-submenu a {
    grid-template-columns: 16px minmax(0, 1fr);
    padding: 8px 9px;
    border-radius: 12px;
}

.service-page .service-related-menu .side-submenu a strong {
    font-size: 0.85rem;
}

.service-page .service-related-menu .side-submenu a small {
    font-size: 0.72rem;
}

@media (max-width: 980px) {
    .service-page .service-page-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .service-page .service-page-card {
        padding: 18px;
    }

    .service-page .page-builder-block {
        padding: 18px;
    }

    .service-page .page-builder-block h2 {
        font-size: 1.35rem;
    }

    .service-page .service-related-menu .side-menu-group summary {
        grid-template-columns: 38px minmax(0, 1fr) 28px;
        min-height: 54px;
    }

    .service-page .service-related-menu .side-menu-group summary span {
        width: 38px;
        height: 38px;
    }

    .service-page .service-related-menu .side-menu-group > p,
    .service-page .service-related-menu .side-submenu {
        padding-left: 10px;
    }
}

/* Top navigation dropdown and overflow follow the active site theme. */
.primary-nav button,
.primary-nav .nav-dropdown-menu a,
.primary-nav .nav-overflow-menu a,
.primary-nav .nav-overflow-menu button {
    color: var(--site-top-nav-text, #44506a) !important;
}

.primary-nav button svg,
.primary-nav .nav-dropdown-menu a svg,
.primary-nav .nav-overflow-menu a svg,
.primary-nav .nav-overflow-menu button svg {
    color: var(--site-top-nav-icon, var(--nav-color, #f05282)) !important;
}

.primary-nav button:hover,
.primary-nav .nav-dropdown-menu a:hover,
.primary-nav .nav-overflow-menu a:hover,
.primary-nav .nav-overflow-menu button:hover {
    color: var(--site-top-nav-hover-text, #1f2a46) !important;
    background: var(--site-top-nav-hover-bg, #eff6ff) !important;
}

.nav-dropdown-menu,
.nav-overflow-menu {
    border-color: var(--site-top-nav-border, #e2e8f0) !important;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--site-top-nav-bg, #ffffff) 92%, #ffffff 8%),
            color-mix(in srgb, var(--site-top-nav-bg, #ffffff) 78%, var(--site-header-bg, #ffffff) 22%)) !important;
}

/* Home heading copy polish: keep editable subtitles using the available width. */
.home-main .section-heading > div,
.home-main .section-copy {
    min-width: 0;
}

.home-main .section-heading p,
.home-main .section-copy p {
    max-width: min(100%, 980px);
    text-wrap: pretty;
    overflow-wrap: normal;
    word-break: normal;
}

.home-main .section-heading.centered {
    max-width: min(100%, 1080px);
    margin-inline: auto;
    text-align: center;
}

/* Header fit polish: preserve normal menu size while balancing brand and admin space. */
@media (min-width: 921px) {
    .site-header--home {
        gap: 12px !important;
        padding-inline: max(12px, calc((100vw - min(var(--container), 1360px)) / 2)) !important;
    }

    .site-header--home .brand {
        flex: 0 0 292px !important;
        gap: 10px !important;
    }

    .site-header--home .brand strong {
        font-size: 1.08rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .site-header--home .brand small {
        display: block !important;
        max-width: 236px !important;
        font-size: 0.78rem !important;
        line-height: 1.28 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .site-header--home .brand-logo,
    .site-header--home .brand-mark {
        flex-basis: 48px !important;
        width: 48px !important;
        height: 48px !important;
    }

    .site-header--home .primary-nav {
        flex: 0 1 auto !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
        margin-left: auto !important;
        gap: 4px !important;
        padding: 6px !important;
    }

    .site-header--home .primary-nav a,
    .site-header--home .primary-nav button {
        gap: 5px !important;
        min-height: 40px !important;
        padding: 0 10px !important;
        font-size: 0.94rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .site-header--home .primary-nav a svg,
    .site-header--home .primary-nav button svg {
        width: 16px !important;
        height: 16px !important;
    }

    .site-header--home .primary-nav .nav-admin {
        min-width: max-content !important;
        padding-inline: 14px !important;
        white-space: nowrap !important;
    }
}

.home-main .section-heading.centered p {
    margin-inline: auto;
    text-align: center;
}

.custom-content-section {
    text-align: center;
}

.custom-content-shell {
    display: grid;
    justify-items: center;
    gap: 16px;
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid color-mix(in srgb, var(--custom-accent, #1d4ed8) 22%, #dbeafe);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 44px rgba(36, 48, 74, 0.08);
}

.custom-content-shell > .eyebrow {
    color: var(--custom-accent, #1d4ed8);
    border-color: color-mix(in srgb, var(--custom-accent, #1d4ed8) 28%, #ffffff);
    background: color-mix(in srgb, var(--custom-accent, #1d4ed8) 8%, #ffffff);
}

.custom-content-section .section-heading {
    width: 100%;
    margin-bottom: 0;
}

.custom-content-shell > .eyebrow + .section-heading {
    margin-top: -10px;
}

.custom-content-section .section-heading h2 {
    margin-top: 6px;
}

.custom-content-section.is-align-left {
    text-align: left;
}

.custom-content-section.is-align-left .custom-content-shell {
    justify-items: start;
}

.custom-content-section.is-align-left .section-heading.centered {
    margin-inline: 0 auto;
    text-align: left;
}

.custom-content-section.is-align-left .section-heading.centered p {
    margin-inline: 0 auto;
    text-align: left;
}

.custom-content-section.is-align-center {
    text-align: center;
}

.custom-content-section.is-align-center .custom-content-shell {
    justify-items: center;
}

.custom-content-section.is-align-right {
    text-align: right;
}

.custom-content-section.is-align-right .custom-content-shell {
    justify-items: end;
}

.custom-content-section.is-align-right .section-heading.centered {
    margin-inline: auto 0;
    text-align: right;
}

.custom-content-section.is-align-right .section-heading.centered p {
    margin-inline: auto 0;
    text-align: right;
}

.custom-content-copy {
    width: min(100%, 820px);
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.85;
}

.custom-content-section.is-align-left .custom-content-copy,
.custom-content-section.is-align-left .custom-content-columns {
    text-align: left;
}

.custom-content-section.is-align-right .custom-content-copy,
.custom-content-section.is-align-right .custom-content-columns {
    text-align: right;
}

.custom-content-image {
    width: min(100%, 760px);
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.custom-content-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

/* บล็อกอิสระ "แสดงข้อความพร้อมรูป": ให้รูปเต็มขอบด้านในของการ์ด และยืดตามอัตราส่วนจริงของรูป (1:1 ก็พอดี ไม่ครอบตัด) */
.custom-content-section--image_text .custom-content-shell {
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.custom-content-section--image_text .custom-content-image {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.custom-content-section--image_text .custom-content-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

/* เผื่อบล็อกมีข้อความร่วมด้วย ให้ข้อความมีระยะห่างจากขอบ (รูปยังเต็มขอบ) */
.custom-content-section--image_text .custom-content-shell > .eyebrow {
    margin-top: clamp(20px, 4vw, 36px);
}

.custom-content-section--image_text .custom-content-shell > .section-heading {
    box-sizing: border-box;
    padding: clamp(18px, 3vw, 26px) clamp(20px, 4vw, 36px) 0;
}

.custom-content-section--image_text .custom-content-copy {
    box-sizing: border-box;
    width: 100%;
    padding: clamp(16px, 3vw, 24px) clamp(20px, 4vw, 36px);
}

.custom-content-columns {
    display: grid;
    width: 100%;
    gap: 16px;
}

.custom-content-columns.is-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-content-columns.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.custom-content-columns article {
    min-height: 120px;
    padding: 18px;
    color: #334155;
    line-height: 1.75;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.custom-content-columns .page-builder-column {
    min-height: 120px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    text-align: initial;
}

.custom-content-columns .page-builder-column h3 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 1.05rem;
}

.custom-content-gallery {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.custom-content-gallery a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.custom-content-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.custom-content-gallery a:hover img,
.custom-content-gallery button:hover img {
    transform: scale(1.035);
}

.custom-content-section--image_slideshow .custom-content-shell {
    width: min(100%, 1040px);
    max-width: 1040px;
    padding: clamp(12px, 2vw, 20px);
    border-color: color-mix(in srgb, var(--custom-accent, #1d4ed8) 18%, #dbeafe);
    background: #ffffff;
}

.custom-content-slideshow {
    display: grid;
    gap: 14px;
    width: 100%;
}

.custom-content-slideshow-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #eef5ff;
    box-shadow: 0 18px 38px rgba(28, 45, 78, 0.1);
}

.custom-content-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.42s ease, visibility 0.42s ease;
}

.custom-content-slide.is-active,
.custom-content-slideshow.is-static .custom-content-slide {
    opacity: 1;
    visibility: visible;
}

.custom-content-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-content-slide-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.48);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.custom-content-slide-nav:hover {
    background: rgba(15, 23, 42, 0.68);
}

.custom-content-slide-nav.is-prev {
    left: 14px;
}

.custom-content-slide-nav.is-next {
    right: 14px;
}

.custom-content-slide-nav svg {
    width: 22px;
    height: 22px;
}

.custom-content-slide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.custom-content-slide-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
}

.custom-content-slide-dots button.is-active {
    width: 28px;
    background: var(--custom-accent, #1d4ed8);
}

.page-builder-column-slideshow {
    gap: 10px;
}

.page-builder-column-slideshow .custom-content-slideshow-stage {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    box-shadow: none;
}

.page-builder-column-slideshow .custom-content-slide-nav {
    width: 34px;
    height: 34px;
}

.page-builder-column-slideshow .custom-content-slide-nav.is-prev {
    left: 8px;
}

.page-builder-column-slideshow .custom-content-slide-nav.is-next {
    right: 8px;
}

.page-builder-column-slideshow .custom-content-slide-nav svg {
    width: 18px;
    height: 18px;
}

.page-builder-column-slideshow .custom-content-slide-dots button {
    width: 8px;
    height: 8px;
}

.page-builder-column-slideshow .custom-content-slide-dots button.is-active {
    width: 22px;
}

.custom-content-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    color: #ffffff;
    border-radius: 999px;
    background: var(--custom-accent, #1d4ed8);
    font-weight: 900;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--custom-accent, #1d4ed8) 24%, transparent);
}

.custom-content-button svg {
    width: 18px;
    height: 18px;
}

.custom-content-embed {
    width: min(100%, 820px);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    background: #0f172a;
}

.custom-content-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 820px) {
    .custom-content-columns.is-two,
    .custom-content-columns.is-three,
    .custom-content-gallery {
        grid-template-columns: 1fr;
    }

    .custom-content-shell {
        border-radius: 14px;
        padding: 22px 16px;
    }

    .custom-content-section--image_slideshow .custom-content-shell {
        padding: 10px;
    }

    .custom-content-slideshow-stage {
        border-radius: 14px;
    }

    .custom-content-slide-nav {
        width: 38px;
        height: 38px;
    }
}

/* Homepage hero background carousel: keeps existing hero text/overlay intact. */
.hero-backgrounds,
.hero-bg-slide {
    position: absolute;
    inset: 0;
}

.hero-backgrounds {
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-slide {
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.15s ease, transform 6s ease;
}

.hero-bg-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-has-slider .hero-overlay {
    z-index: 1;
}

.hero-has-slider::after {
    z-index: 2;
}

.hero-has-slider .hero-content,
.hero-has-slider .hero-stats {
    z-index: 3;
}

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-slider-dots button {
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(204, 215, 229, 0.92);
    box-shadow: 0 2px 8px rgba(38, 48, 68, 0.12);
    cursor: pointer;
    transition: width 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.hero-slider-dots button:hover,
.hero-slider-dots button:focus-visible {
    transform: translateY(-1px);
    background: rgba(245, 118, 164, 0.72);
    outline: none;
}

.hero-slider-dots button.is-active {
    width: 44px;
    background: #f65f9a;
}

/* On mobile the dots (position:absolute, bottom) overlapped the hero stats/text.
   Put them into normal flow between the buttons and the stats using flex/grid order,
   so they sit in the empty space below the buttons. Mobile only — desktop keeps the
   absolute dots at the bottom. */
@media (max-width: 760px) {
    .hero.hero-has-slider .hero-content {
        padding-bottom: 10px !important;
        order: 1;
    }

    .hero.hero-has-slider .hero-slider-dots {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        display: flex;
        width: 100%;
        order: 2;
        margin: 14px 0 2px;
    }

    .hero.hero-has-slider .hero-stats {
        order: 3;
    }
}

.home-main .announcements-section .section-heading p,
.home-main .gallery-section .section-heading p {
    max-width: min(100%, 1040px);
}

.home-main .programs-section .section-heading p,
.home-main .staff-section .section-heading p {
    max-width: min(100%, 1120px);
    margin-inline: auto;
    text-align: center;
}

.official-documents-section {
    background:
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 12%, transparent), transparent 28%),
        linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--site-body-bg, #f4f7fb) 44%, #ffffff));
}

.official-document-list {
    display: grid;
    gap: 10px;
    max-width: 960px;
    margin: 0 auto;
}

.official-document-item {
    display: grid;
    grid-template-columns: 34px 44px minmax(0, 1fr) 24px;
    gap: 12px;
    align-items: center;
    min-height: 70px;
    padding: 12px 14px;
    color: var(--site-brand-text, var(--ink));
    border: 1px solid color-mix(in srgb, var(--site-center-border, #e4edf8) 78%, #ffffff 22%);
    border-radius: 14px;
    background:
        linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--site-center-bg, #ffffff) 88%, var(--site-brand-mark-bg, var(--sky)) 12%));
    box-shadow: 0 12px 26px color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 7%, transparent);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.official-document-item:hover,
.official-document-item:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 38%, #ffffff 62%);
    box-shadow: 0 18px 34px color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 14%, transparent);
    outline: none;
}

.official-document-order {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 78%, var(--site-brand-text, var(--ink)) 22%);
    border: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 26%, #ffffff 74%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-center-bg, #ffffff) 84%, var(--site-brand-mark-bg, var(--sky)) 16%);
    font-size: 0.86rem;
    font-weight: 950;
}

.official-document-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--site-brand-mark-text, #ffffff);
    border-radius: 12px;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 82%, #ffffff 18%),
            color-mix(in srgb, var(--site-top-nav-admin-bg, var(--ink)) 72%, var(--site-brand-mark-bg, var(--sky)) 28%));
}

.official-document-icon svg {
    width: 22px;
    height: 22px;
}

.official-document-body {
    min-width: 0;
}

.official-document-body strong {
    display: block;
    overflow: hidden;
    color: inherit;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.official-document-body small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--site-brand-subtext, var(--muted));
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.official-document-item > svg {
    width: 20px;
    height: 20px;
    color: color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 78%, var(--ink) 22%);
}

.official-document-filter {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(190px, 0.34fr) minmax(190px, 0.34fr) 148px;
    gap: 12px;
    align-items: end;
    margin: 22px 0;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--site-center-border, #e4edf8) 82%, #ffffff 18%);
    border-radius: 18px;
    background:
        linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--site-center-bg, #ffffff) 86%, var(--site-body-bg, #f4f7fb) 14%));
    box-shadow: 0 14px 30px color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 7%, transparent);
}

.official-document-filter.has-clear {
    grid-template-columns: minmax(360px, 1fr) minmax(170px, 0.32fr) minmax(170px, 0.32fr) 132px 132px;
}

.official-documents-page main > .section-pad {
    padding-top: 36px;
}

.official-documents-page .official-document-filter {
    margin-top: 0;
}

.official-document-filter label {
    display: grid;
    gap: 7px;
    color: var(--site-brand-subtext, #5f6d86);
    font-size: 0.88rem;
    font-weight: 850;
}

.official-document-filter input {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    color: var(--site-brand-text, var(--ink));
    border: 1px solid color-mix(in srgb, var(--site-center-border, #dbe6f3) 84%, #ffffff 16%);
    border-radius: 12px;
    background: #ffffff;
    outline: none;
}

.official-document-filter input:focus {
    border-color: color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 58%, #ffffff 42%);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 14%, transparent);
}

.official-document-filter .button {
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.official-document-filter .button.soft {
    color: color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 72%, var(--site-brand-text, var(--ink)) 28%);
    border: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 34%, #ffffff 66%);
    background: color-mix(in srgb, var(--site-center-bg, #ffffff) 78%, var(--site-brand-mark-bg, var(--sky)) 14%);
    box-shadow: none;
    backdrop-filter: none;
}

.official-document-filter .button.soft:hover,
.official-document-filter .button.soft:focus-visible {
    color: var(--site-brand-mark-text, #ffffff);
    border-color: transparent;
    background: color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 86%, var(--site-top-nav-admin-bg, var(--ink)) 14%);
    outline: none;
}

.official-document-table-card {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--site-center-border, #e4edf8) 82%, #ffffff 18%);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 38px color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 8%, transparent);
}

.official-document-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--site-center-border, #e4edf8) 82%, #ffffff 18%);
    background: color-mix(in srgb, var(--site-center-bg, #ffffff) 82%, var(--site-body-bg, #f4f7fb) 18%);
}

.official-document-table-head strong {
    font-size: 1.02rem;
    font-weight: 900;
}

.official-document-table-head span {
    color: var(--site-brand-subtext, var(--muted));
    font-size: 0.86rem;
    font-weight: 800;
}

.official-document-table-wrap {
    overflow-x: auto;
}

.official-document-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
}

.official-document-table th,
.official-document-table td {
    overflow: hidden;
    padding: 9px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--site-center-border, #e4edf8) 72%, #ffffff 28%);
    text-align: left;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.official-document-table th {
    color: var(--site-brand-subtext, #667085);
    background: color-mix(in srgb, var(--site-center-bg, #ffffff) 84%, var(--site-body-bg, #f4f7fb) 16%);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.35;
}

.official-document-table th:first-child,
.official-document-table td:first-child {
    width: 72px;
    text-align: center;
}

.official-document-table th:nth-child(2),
.official-document-table td:nth-child(2) {
    width: 210px;
}

.official-document-table th:nth-child(3),
.official-document-table td:nth-child(3) {
    width: 160px;
}

.official-document-table th:nth-child(5),
.official-document-table td:nth-child(5) {
    width: 140px;
}

.official-document-table th:nth-child(6),
.official-document-table td:nth-child(6) {
    width: 176px;
    text-align: center;
}

.official-document-table th:last-child,
.official-document-table td:last-child {
    overflow: visible;
    text-overflow: clip;
}

.official-document-table td {
    color: var(--site-brand-text, var(--ink));
    font-size: 0.9rem;
    font-weight: 760;
    line-height: 1.38;
}

.official-document-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.official-document-table tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--site-center-bg, #ffffff) 84%, var(--site-brand-mark-bg, var(--sky)) 7%);
}

.official-document-table tbody tr:hover td {
    background: color-mix(in srgb, var(--site-center-bg, #ffffff) 78%, var(--site-brand-mark-bg, var(--sky)) 12%);
}

.official-document-table tr:last-child td {
    border-bottom: 0;
}

.official-document-table a {
    color: color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 78%, var(--site-brand-text, var(--ink)) 22%);
    font-weight: 900;
}

.official-document-title-cell {
    max-width: 100%;
}

.official-document-title-cell strong {
    display: block;
    overflow: hidden;
    max-width: 100%;
    line-height: 1.38;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.official-document-stat {
    color: var(--site-brand-subtext, var(--muted));
    font-size: 0.8rem;
    font-weight: 800;
}

.official-document-table .card-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    margin-top: 0;
    padding: 5px 11px;
    max-width: none;
    line-height: 1.25;
    white-space: nowrap;
}

.official-document-table .card-more svg {
    width: 15px;
    height: 15px;
}

.official-document-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.official-document-pagination a,
.official-document-pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    color: color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 78%, var(--ink) 22%);
    border: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 26%, #ffffff 74%);
    border-radius: 10px;
    background: #ffffff;
    font-weight: 900;
}

.official-document-pagination a.is-active,
.official-document-pagination span {
    color: var(--site-brand-mark-text, #ffffff);
    background: color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 88%, var(--ink) 12%);
}

.official-document-detail-layout {
    display: grid;
    gap: 18px;
}

.official-document-detail-card,
.official-document-viewer-card {
    border: 1px solid color-mix(in srgb, var(--site-center-border, #e4edf8) 82%, #ffffff 18%);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 38px color-mix(in srgb, var(--site-top-nav-admin-bg, #24304a) 8%, transparent);
}

.official-document-detail-card {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.official-document-detail-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.official-document-detail-tools span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    color: var(--site-brand-subtext, var(--muted));
    border: 1px solid color-mix(in srgb, var(--site-center-border, #dbe6f3) 76%, #ffffff 24%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-center-bg, #ffffff) 84%, var(--site-body-bg, #f4f7fb) 16%);
    font-size: 0.84rem;
    font-weight: 850;
}

.official-document-detail-tools svg {
    width: 17px;
    height: 17px;
}

.official-document-description {
    margin: 0;
    color: var(--site-brand-subtext, var(--muted));
    font-weight: 760;
}

.official-document-viewer-card {
    overflow: hidden;
}

.official-document-file-stack {
    display: grid;
    gap: 18px;
}

.official-document-file-panel {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--site-center-border, #e4edf8) 82%, #ffffff 18%);
    border-radius: 18px;
    background: #ffffff;
}

.official-document-viewer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--site-center-border, #e4edf8) 82%, #ffffff 18%);
    background: color-mix(in srgb, var(--site-center-bg, #ffffff) 82%, var(--site-body-bg, #f4f7fb) 18%);
}

.official-document-viewer-head > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.official-document-viewer-head span {
    color: var(--site-brand-mark-bg, var(--sky));
    font-size: 0.76rem;
    font-weight: 900;
}

.official-document-viewer-head strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 900;
}

.official-document-viewer-head .button {
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 0.86rem;
    white-space: nowrap;
}

.official-document-viewer-hint {
    color: var(--site-brand-subtext, var(--muted));
    font-size: 0.82rem;
    font-weight: 800;
}

.official-document-viewer {
    background: color-mix(in srgb, var(--site-body-bg, #f4f7fb) 68%, #ffffff 32%);
}

.official-document-folder-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 18px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 24%, var(--site-center-border, #e4edf8) 76%);
    border-radius: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 10%, #ffffff 90%), rgba(255, 255, 255, 0.96)),
        #ffffff;
    box-shadow: 0 18px 42px color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 9%, transparent);
}

.official-document-folder-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    color: var(--site-brand-mark-text, #ffffff);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--site-brand-mark-bg, var(--sky)), color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 66%, #ffffff 34%));
    box-shadow: 0 16px 34px color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 24%, transparent);
}

.official-document-folder-icon svg {
    width: 36px;
    height: 36px;
}

.official-document-folder-card span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 10px;
    color: var(--site-brand-mark-bg, var(--sky));
    border: 1px solid color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 28%, #ffffff 72%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-brand-mark-bg, var(--sky)) 8%, #ffffff 92%);
    font-size: 0.82rem;
    font-weight: 900;
}

.official-document-folder-card strong {
    display: block;
    color: var(--site-brand-text, var(--ink));
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 950;
}

.official-document-folder-card p {
    margin: 8px 0 0;
    color: var(--site-brand-subtext, var(--muted));
    font-size: 0.98rem;
    line-height: 1.65;
    font-weight: 760;
}

.official-document-viewer iframe {
    display: block;
    width: 100%;
    height: min(78vh, 900px);
    min-height: 620px;
    border: 0;
    background: #ffffff;
}

.official-document-empty {
    padding: 24px;
    color: var(--site-brand-subtext, var(--muted));
    font-weight: 850;
    text-align: center;
}

@media (max-width: 900px) {
    .official-document-folder-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .official-document-folder-icon,
    .official-document-folder-card span {
        justify-self: center;
    }

    .official-document-filter {
        grid-template-columns: 1fr 1fr;
    }

    .official-document-filter .button,
    .official-document-filter .card-more {
        width: 100%;
        justify-content: center;
    }

    .official-document-viewer iframe {
        height: 70vh;
        min-height: 460px;
    }
}

@media (max-width: 640px) {
    .official-document-item {
        grid-template-columns: 32px 40px minmax(0, 1fr);
    }

    .official-document-item > svg {
        display: none;
    }

    .official-document-body strong,
    .official-document-body small {
        white-space: normal;
    }

    .official-document-filter {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .official-document-table-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .official-document-detail-card,
    .official-document-table-head {
        padding: 16px;
    }

    .official-document-viewer iframe {
        height: 68vh;
        min-height: 380px;
    }
}

/* Page-builder body text renders at normal weight so it matches the admin editor (whose
   surface is also 400). Text is bold only where the editor added <strong>/<b> via the B
   button; headings stay bold. Appended at EOF to override the earlier weight:700 rules. */
.page-builder-block-text,
.page-builder-block-text p,
.page-builder-block-text div,
.page-builder-block-text li,
.page-builder-block-text blockquote,
.service-page .page-builder-block-text,
.service-page .page-builder-block-text p,
.service-page .page-builder-block-text div,
.service-page .page-builder-block-text li,
.service-page .page-builder-block-text blockquote {
    font-weight: 400;
}

.page-builder-block-text h2,
.page-builder-block-text h3,
.page-builder-block-text h4,
.page-builder-block-text strong,
.page-builder-block-text b,
.service-page .page-builder-block-text h2,
.service-page .page-builder-block-text h3,
.service-page .page-builder-block-text h4,
.service-page .page-builder-block-text strong,
.service-page .page-builder-block-text b {
    font-weight: 700;
}

/* Tighter, consistent spacing for all editor-rendered content so it is not airy, and so
   the public page matches the admin editor (which uses the same line-height and gaps).
   Appended at EOF to override the earlier line-height:1.8/1.7/1.85 and 1rem/0.8rem rules. */
.page-builder-block-text,
.service-page .page-builder-block-text,
.custom-content-copy {
    line-height: 1.6;
}

.page-builder-block-text p,
.page-builder-block-text div,
.page-builder-block-text blockquote,
.service-page .page-builder-block-text p,
.service-page .page-builder-block-text div,
.service-page .page-builder-block-text blockquote,
.custom-content-copy p,
.custom-content-copy div,
.custom-content-copy blockquote {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.page-builder-block-text > :last-child,
.service-page .page-builder-block-text > :last-child,
.custom-content-copy > :last-child {
    margin-bottom: 0;
}
