:root {
    --ist-blue: #1d3993;
    --ist-blue-dark: #0f205f;
    --ist-purple: #c04fe1;
    --ist-bg: #f2f2f2;
    --ist-text: #1a2f3a;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--ist-text);
    background: #fff;
}

body.lang-th {
    font-family: "Noto Sans Thai", "Poppins", sans-serif;
}

body.lang-th h1,
body.lang-th h2,
body.lang-th h3,
body.lang-th h4,
body.lang-th h5,
body.lang-th h6 {
    font-family: "Noto Sans Thai", "Poppins", sans-serif;
}

h1, h2, h3, h4, h5 {
    font-family: "Merriweather", serif;
}

.topbar {
    background: linear-gradient(90deg, #4a2eb0 0%, #233f9f 55%, #123b89 100%);
    max-height: 56px;
    overflow: hidden;
    transition: max-height .32s ease, opacity .24s ease, padding .24s ease;
}

.topbar-link {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.topbar-link:hover {
    color: #fff;
    opacity: .95;
    transform: translateY(-1px);
}

.topbar-mobile-lang {
    display: none;
    align-items: center;
    gap: 1rem;
}

.topbar-mobile-lang a {
    color: var(--ist-blue-dark);
    text-decoration: none;
    font-weight: 500;
    opacity: .9;
}

.topbar-mobile-lang .lang-en {
    color: var(--ist-blue-dark);
}

.topbar-mobile-lang .lang-th {
    color: var(--ist-blue-dark);
}

.topbar-mobile-lang a.active {
    color: var(--ist-purple);
    opacity: 1;
    font-weight: 700;
}

.topbar-mobile-lang a:not(.active) {
    color: var(--ist-blue-dark) !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    --header-ease: cubic-bezier(.22, 1, .36, 1);
    overflow: visible;
}

.site-navbar {
    background: #fff;
    border-bottom: 1px solid rgba(15, 32, 95, .13) !important;
    box-shadow: 0 8px 24px rgba(7, 20, 54, .09);
    overflow: visible;
}

.nav-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 94px;
    gap: .35rem;
    transition: min-height .45s var(--header-ease);
}

.navbar .nav-link {
    font-family: "Prompt", "Noto Sans Thai", "Poppins", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.08;
    letter-spacing: .01em;
    color: #3a3f4b;
    padding: .7rem .94rem;
    transition: color .25s ease, transform .25s ease;
}

.navbar .nav-link:hover {
    color: var(--ist-blue);
    transform: translateY(-1px);
}

.main-nav {
    align-items: center;
    transition: transform .45s var(--header-ease), opacity .25s ease;
}

.nav-center-gap {
    width: 200px;
    flex: 0 0 200px;
    opacity: 1;
    transition: width .45s var(--header-ease), opacity .25s ease;
}

@media (min-width: 992px) {
    body.lang-th .site-header:not(.is-compact) .nav-center-gap {
        width: 236px;
        flex-basis: 236px;
    }

    body.lang-th .site-header:not(.is-compact) .navbar .nav-link {
        padding-left: .82rem;
        padding-right: .82rem;
    }
}

.center-logo {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -45%) scale(1);
    z-index: 6;
    opacity: 1;
    visibility: visible;
    transition: transform .45s var(--header-ease), opacity .28s ease, visibility .28s ease;
}

.center-logo img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 12px 20px rgba(11, 24, 52, .28));
    transform: translateY(-52px);
}

.compact-logo {
    width: 0;
    margin-right: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px) scale(.92);
    line-height: 0;
    transition: width .45s var(--header-ease), margin-right .45s var(--header-ease), opacity .28s ease, transform .45s var(--header-ease);
}

.compact-logo img {
    width: 76px;
    height: auto;
    max-width: none;
    transition: transform .45s var(--header-ease), width .45s var(--header-ease), filter .25s ease;
}

.nav-lang-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 20px;
}

@media (min-width: 992px) {
    .site-header:not(.is-compact) #mainNav {
        justify-content: center !important;
    }

    .site-header:not(.is-compact) .nav-lang-switch.d-none.d-lg-flex {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
}

.nav-lang-switch a {
    color: var(--ist-blue-dark);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .03em;
    opacity: .8;
    transition: color .25s ease, opacity .25s ease, transform .25s ease;
}

.nav-lang-switch a:hover {
    opacity: 1;
    color: var(--ist-blue);
    transform: translateY(-1px);
}

.nav-lang-switch .lang-en {
    color: var(--ist-blue-dark);
}

.nav-lang-switch .lang-th {
    color: var(--ist-blue-dark);
}

.nav-lang-switch a.active {
    color: var(--ist-purple);
    opacity: 1;
    font-weight: 700;
}

.nav-lang-switch a:not(.active) {
    color: var(--ist-blue-dark) !important;
}

.nav-lang-switch a.active:hover,
.nav-lang-switch a.active:focus,
.topbar-mobile-lang a.active:hover,
.topbar-mobile-lang a.active:focus {
    color: var(--ist-purple) !important;
}

.nav-lang-mobile {
    margin-top: .5rem;
    padding-top: .75rem;
    border-top: 1px dashed rgba(29, 57, 147, .25);
}

.site-header.is-compact .topbar {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
}

.site-header.is-compact .site-navbar {
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-header.is-compact .nav-shell {
    min-height: 42px;
}

.site-header.is-compact .center-logo {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -165%) scale(.64);
    pointer-events: none;
}

.site-header.is-compact .compact-logo {
    position: absolute;
    left: 40px;
    top: -8px;
    width: 120px;
    height: 0;
    margin-right: 0;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
    transform: none;
    z-index: 8;
}

.site-header.is-compact .compact-logo img {
    display: block;
    width: 120px;
    transform: translateY(-4px);
    filter: drop-shadow(0 6px 12px rgba(11, 24, 52, .2));
}

.site-header.is-compact .navbar-collapse {
    justify-content: flex-between !important;
    padding-left: 138px;
}

.site-header.is-compact .main-nav {
    transform: translateX(0);
}

.site-header.is-compact .navbar .nav-link {
    padding: .08rem .74rem;
    font-size: 1rem;
    font-weight: 300;
}

.site-header.is-compact .nav-center-gap {
    width: 0;
    flex-basis: 0;
    opacity: 0;
}

.hero-bg {
    min-height: 640px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 760px;
    color: #fff;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.section-space {
    padding: 90px 0;
    position: relative;
}

.section-space::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(25, 52, 126, 0), rgba(25, 52, 126, .22), rgba(25, 52, 126, 0));
}

.reveal-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
    will-change: transform, opacity;
}

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

.kicker {
    color: var(--ist-purple);
    font-weight: 700;
    letter-spacing: .08em;
    font-size: .85rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 3rem);
    color: #16303b;
}

.value-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

.value-card i {
    font-size: 2.2rem;
    color: var(--ist-purple);
}

.card-focus {
    box-shadow: 0 12px 30px rgba(18, 38, 74, 0.15);
}

.course-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.news-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.55rem;
    line-height: 1.3;
}

.news-card p {
    color: #6f7780;
}

.highlights-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.highlights-marquee::-webkit-scrollbar {
    display: none;
}

.highlights-marquee.dragging {
    cursor: grabbing;
}

.highlights-marquee::before,
.highlights-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.highlights-marquee::before {
    left: 0;
    background: transparent;
}

.highlights-marquee::after {
    right: 0;
    background: transparent;
}

.highlights-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    will-change: transform;
}

.loop-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.loop-marquee::-webkit-scrollbar {
    display: none;
}

.loop-marquee.dragging {
    cursor: grabbing;
}

.loop-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
}

.loop-card {
    flex: 0 0 auto;
}

.highlight-card {
    width: 320px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e9edf3;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(17, 28, 63, .08);
    scroll-snap-align: start;
    transition: transform .28s ease, box-shadow .28s ease;
}

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

.highlight-body {
    padding: 1rem 1rem 1.15rem;
}

.highlight-kind {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: .6rem;
}

.highlight-kind-news {
    color: #1a47a8;
}

.highlight-kind-event {
    color: #8f2dd2;
}

.highlight-body h3 {
    font-family: "Prompt", "Noto Sans Thai", "Poppins", sans-serif;
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.34;
    margin-bottom: .52rem;
}

.highlight-body p {
    font-size: .86rem;
    font-weight: 300;
    color: #8791a0;
    margin: 0;
}

.highlight-meta-author {
    font-size: .86rem;
    color: #425063;
    margin-bottom: .45rem;
}

.highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .5rem;
}

.highlight-tag {
    display: inline-block;
    font-size: .78rem;
    color: #2042a3;
    background: #edf2ff;
    border-radius: 999px;
    padding: .14rem .55rem;
}

.highlights-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-action-wrap {
    margin-bottom: 1rem;
}

.section-action-wrap-dark {
    margin-bottom: 1.1rem;
}

.section-action-btn {
    border-radius: 999px;
    padding: .45rem 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.section-action-btn-light {
    border-color: rgba(255, 255, 255, .58);
    color: #fff;
}

.section-action-btn-light:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .88);
    color: #fff;
}

.program-summary {
    min-height: 4.8em;
    line-height: 1.6;
}

#programs .card {
    transition: transform .28s ease, box-shadow .28s ease;
}

#programs .card:hover,
#programs .card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(17, 36, 82, .20) !important;
}

#programs .card .course-img {
    transition: transform .38s ease;
}

#programs .card:hover .course-img,
#programs .card:focus-within .course-img {
    transform: scale(1.035);
}

.highlights-controls {
    display: inline-flex;
    gap: .45rem;
}

.highlight-btn {
    border: 1px solid #d5dceb;
    background: #fff;
    color: #2a3f66;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    transition: all .2s ease;
}

.highlight-btn:hover {
    border-color: #a9b7db;
    color: #17367d;
    transform: translateY(-1px);
}

.event-band {
    padding: 76px 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(92, 160, 255, .18) 0%, rgba(92, 160, 255, 0) 38%),
        radial-gradient(circle at 82% 24%, rgba(116, 88, 255, .18) 0%, rgba(116, 88, 255, 0) 34%),
        radial-gradient(circle at 78% 82%, rgba(153, 84, 224, .16) 0%, rgba(153, 84, 224, 0) 40%),
        linear-gradient(135deg, #081a46 0%, #0f2d72 42%, #35206b 72%, #4b1d66 100%);
}

.event-card {
    width: 290px;
    min-height: 418px;
    border-radius: 16px;
    color: #fff;
    padding: 1.25rem;
    background-size: cover;
    background-position: center;
    transition: transform .28s ease, box-shadow .28s ease;
    border: 0;
    text-align: left;
}

.date-pill {
    display: inline-block;
    background: rgba(255, 255, 255, .9);
    color: #394554;
    border-radius: 999px;
    padding: .18rem .62rem;
    font-size: .74rem;
    margin-bottom: .75rem;
}

.event-card h3 {
    font-size: 1.28rem;
    line-height: 1.35;
    margin-bottom: .8rem;
}

.event-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-card li {
    display: flex;
    gap: .6rem;
    margin-bottom: .5rem;
    font-weight: 300;
    font-size: .92rem;
    line-height: 1.5;
}

.event-modal-meta li {
    display: flex;
    align-items: flex-start;
    gap: .25rem;
    margin-bottom: .5rem;
    color: #33425a;
}

.event-detail-modal__dialog {
    max-width: min(960px, calc(100vw - 1rem));
    margin: .75rem auto;
}

.event-detail-modal {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(17, 31, 67, .32);
    max-height: calc(100dvh - 1.5rem);
    background:
        linear-gradient(180deg, rgba(244, 247, 255, .96), rgba(255, 255, 255, .98)),
        radial-gradient(circle at top right, rgba(122, 147, 255, .14), transparent 34%);
    display: flex;
    flex-direction: column;
    font-family: "Noto Sans Thai", "Prompt", sans-serif;
}

.event-detail-modal .modal-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(44, 56, 89, .08);
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(10px);
}

.event-detail-modal__body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

.event-detail-modal__body.event-detail-modal__body--no-media {
    padding-top: 1.2rem;
}

.event-detail-modal__top {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.event-detail-modal__body.event-detail-modal__body--no-media .event-detail-modal__top {
    grid-template-columns: 1fr;
}

.event-detail-modal__media {
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: min(42dvh, 460px);
    aspect-ratio: var(--event-modal-media-ratio, 4 / 5);
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(243, 246, 252, .92), rgba(237, 242, 249, .9));
    border: 1px solid rgba(44, 56, 89, .05);
    box-shadow: 0 10px 24px rgba(34, 53, 93, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .35rem;
}

.event-detail-modal__image {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    background: transparent;
}

.event-detail-modal__intro {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: .2rem 0;
}

.event-detail-modal__date {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .42rem .85rem;
    margin-bottom: .85rem;
    border-radius: 999px;
    background: rgba(76, 101, 255, .06);
    border: 1px solid rgba(76, 101, 255, .08);
    color: #6980b3;
    font-weight: 500;
    align-self: flex-start;
}

.event-detail-modal__heading {
    font-size: clamp(1.4rem, 2.3vw, 2.15rem);
    font-weight: 700;
    line-height: 1.28;
    color: #182b49;
    margin: 0 0 .95rem;
}

.event-detail-modal__summary {
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(251, 252, 255, .78), rgba(243, 247, 255, .62));
    border: 1px solid rgba(44, 56, 89, .05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .56);
}

.event-detail-modal__section-title {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .85rem;
    font-size: .9rem;
    font-weight: 600;
    color: #677892;
}

.event-detail-modal__section-title i {
    color: var(--ist-blue);
}

.event-detail-modal__summary p {
    color: #42536d;
    font-size: .98rem;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

.event-detail-modal__details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.event-detail-modal__meta-item {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #f7f9ff);
    border: 1px solid rgba(44, 56, 89, .08);
}

.event-detail-modal__meta-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--ist-blue), #5d6dff);
    box-shadow: 0 10px 24px rgba(76, 101, 255, .24);
}

.event-detail-modal__meta-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7c8aa5;
    margin-bottom: .3rem;
}

.event-detail-modal__meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: #253654;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.pride-band {
    background: linear-gradient(120deg, rgba(227, 121, 233, 0.8), rgba(120, 166, 255, 0.85));
}

.pride-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    width: 340px;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    transition: transform .28s ease, box-shadow .28s ease;
}

.pride-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.pride-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(42, 9, 57, .76), rgba(174, 74, 219, .46));
    color: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transition: opacity .3s ease, background .3s ease;
}

.pride-card h3 {
    font-size: 1.35rem;
}

#studentPrideModalDetail {
    white-space: pre-line;
}

.student-pride-modal .modal-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(44, 56, 89, .08);
}

.student-pride-modal .modal-dialog {
    max-width: min(1120px, calc(100vw - 2rem));
}

.student-pride-modal .modal-body {
    padding: 1.4rem;
    display: grid;
    grid-template-columns: minmax(300px, 44%) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: stretch;
}

.student-pride-modal__media {
    min-width: 0;
    min-height: min(72vh, 760px);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #eef2fb, #e5ebf8);
    border: 1px solid rgba(44, 56, 89, .08);
    box-shadow: 0 16px 34px rgba(34, 53, 93, .12);
}

.student-pride-modal__image {
    width: 100%;
    height: 100%;
    min-height: min(72vh, 760px);
    object-fit: cover;
    object-position: center center;
    background: linear-gradient(180deg, #f7f9ff, #eef3ff);
}

.student-pride-modal__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.student-pride-modal__heading {
    font-size: clamp(1.45rem, 2vw, 1.95rem);
    font-weight: 700;
    line-height: 1.35;
    color: #182b49;
    margin: 0 0 1rem;
}

.student-pride-modal__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.student-pride-modal__meta-item {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #f7f9ff);
    border: 1px solid rgba(44, 56, 89, .08);
}

.student-pride-modal__meta-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--ist-purple), #5d6dff);
    box-shadow: 0 10px 24px rgba(117, 57, 198, .24);
}

.student-pride-modal__meta-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7c8aa5;
    margin-bottom: .3rem;
}

.student-pride-modal__meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: #253654;
    line-height: 1.55;
}

.student-pride-modal__detail {
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfcff, #f3f7ff);
    border: 1px solid rgba(44, 56, 89, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.student-pride-modal__detail-title {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .85rem;
    font-size: .95rem;
    font-weight: 700;
    color: #506380;
}

.student-pride-modal__detail-title i {
    color: var(--ist-purple);
}

.student-pride-modal__detail-body {
    color: #30435f;
    font-size: 1.02rem;
    line-height: 1.9;
    white-space: pre-line;
}

.student-pride-modal__actions {
    margin-top: 1.15rem;
}

.student-pride-modal__link {
    border-radius: 999px;
    padding: .8rem 1.2rem;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(76, 101, 255, .18);
}

@media (max-width: 991.98px) {
    .event-band {
        padding: 64px 0;
    }

    .event-detail-modal__dialog {
        max-width: calc(100vw - .75rem);
        margin: .5rem auto;
    }

    .event-detail-modal {
        max-height: calc(100dvh - 1rem);
        border-radius: 24px;
    }

    .event-detail-modal .modal-header {
        padding: 1rem 1rem .9rem;
    }

    .event-detail-modal__body {
        padding: 1rem;
    }

    .event-detail-modal__top,
    .event-detail-modal__body.event-detail-modal__body--no-media .event-detail-modal__top {
        grid-template-columns: 1fr;
    }

    .event-detail-modal__media,
    .event-detail-modal__image {
        min-height: 0;
        max-height: min(34dvh, 320px);
    }

    .event-detail-modal__details-grid {
        grid-template-columns: 1fr;
    }

    .student-pride-modal .modal-dialog {
        max-width: min(720px, calc(100vw - 1.25rem));
    }

    .student-pride-modal .modal-body {
        grid-template-columns: 1fr;
    }

    .student-pride-modal__media,
    .student-pride-modal__image {
        min-height: min(52vh, 420px);
    }
}

.pride-card:hover .overlay,
.pride-card:focus-within .overlay {
    opacity: 0;
    background: transparent;
}

.quote-icon {
    font-size: 3rem;
    color: var(--ist-purple);
    line-height: 1;
    margin-bottom: .8rem;
}

.testimonial-slider {
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.testimonial-slider.dragging {
    cursor: grabbing;
}

.testimonial-track {
    display: flex;
    gap: 1rem;
    width: max-content;
}

.testimonial-slide {
    width: min(100%, 1080px);
    max-width: 1080px;
    flex: 0 0 min(100%, 1080px);
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e8edf6;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(13, 31, 74, .08);
    padding: clamp(1.25rem, 2vw, 2rem);
    transition: transform .26s ease, box-shadow .26s ease;
}

.testimonial-text {
    margin: 0 0 1.2rem;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: #4e5868;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.avatar {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 999px;
    flex: 0 0 auto;
}

.testimonial-name {
    font-family: "Prompt", "Noto Sans Thai", "Poppins", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
}

.testimonial-title {
    margin: .2rem 0 0;
    font-size: .92rem;
    color: #768091;
}

.stats-section {
    background: #fff;
}

.stat-item i {
    font-size: 2.3rem;
    color: var(--ist-purple);
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 700;
    font-family: "Merriweather", serif;
}

.stat-item .label {
    color: #69717e;
}

.cta-row {
    background: linear-gradient(90deg, #dbe9fb 0%, #ead3f5 100%);
    padding: 2.2rem 0 1.8rem;
}

.cta-link {
    display: inline-block;
}

.cta-image {
    width: min(100%, 440px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(31, 44, 92, .18);
    transition: transform .28s ease, box-shadow .28s ease;
}

.gallery-row {
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
}

.gallery-marquee::-webkit-scrollbar {
    display: none;
}

.gallery-marquee.dragging {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    gap: 0;
    width: max-content;
}

.gallery-card {
    display: block;
    width: 25vw;
    min-width: 280px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    transition: transform .24s ease;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

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

.highlight-card:hover,
.event-card:hover,
.pride-card:hover,
.testimonial-card:hover,
.gallery-card:hover,
.value-card:hover,
.stat-item:hover,
.cta-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(15, 35, 83, .18);
}

.highlight-card:active,
.event-card:active,
.pride-card:active,
.testimonial-card:active,
.gallery-card:active,
.cta-image:active,
.highlight-btn:active,
.btn:active {
    transform: scale(.985);
}

.footer {
    background: linear-gradient(180deg, var(--ist-blue-dark), #4a2eb0);
    color: #fff;
}

.footer h4 {
    font-family: "Prompt", "Noto Sans Thai", "Poppins", sans-serif;
    font-size: 2rem;
    margin-bottom: .95rem;
    letter-spacing: .01em;
    color: aliceblue;
}

.footer-builder-row {
    position: relative;
}

.footer-builder-col {
    min-width: 0;
}

.footer-text-block {
    margin: 0 0 .28rem;
    color: rgba(255, 255, 255, .93);
    line-height: 1;
    white-space: pre-line;
}

.footer-builder-col .footer-text-block:last-child {
    margin-bottom: 0;
}

.footer-image-item {
    width: min(100%, 180px);
    height: auto;
    display: block;
    margin-bottom: .9rem;
}

.footer-image-link {
    display: inline-block;
}

.footer-logo {
    width: 150px;
}

.footer-badge-logo {
    width: 180px;
    max-width: 100%;
}

.footer-contact {
    line-height: 1.65;
    color: rgba(255, 255, 255, .93);
}

.footer-separator {
    border-color: rgba(186, 120, 255, .45);
    margin: 2rem 0 2.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: .62rem;
}

.footer-links a,
.footer-bottom a {
    color: #f4f4f4;
    text-decoration: none;
    transition: color .22s ease;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.footer-links a i {
    width: 18px;
    flex: 0 0 18px;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: #d5b0ff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.footer-bottom-links a {
    margin-left: 1rem;
}

.footer-bottom-links a i {
    flex: 0 0 auto;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #b956e2;
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    z-index: 1030;
}

@media (max-width: 991.98px) {
    .site-header .topbar {
        display: block !important;
        max-height: 44px;
        padding-top: .35rem !important;
        padding-bottom: .35rem !important;
    }

    .topbar .topbar-info,
    .topbar .topbar-social {
        display: none !important;
    }

    .topbar .topbar-mobile-lang {
        display: flex;
    }

    .site-navbar {
        box-shadow: 0 6px 16px rgba(7, 20, 54, .1);
    }

    .nav-shell {
        min-height: 82px;
    }

    .compact-logo {
        width: 0 !important;
        margin-right: 0 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .compact-logo img {
        width: 0;
    }

    .site-header.is-compact .compact-logo {
        width: 0 !important;
        height: 0 !important;
        margin-right: 0 !important;
    }

    .site-header.is-compact .compact-logo img {
        width: 0;
        transform: none;
    }

    .site-header.is-compact .navbar-collapse {
        padding-left: 0;
    }

    .center-logo {
        display: block !important;
        left: 50%;
        top: 100%;
        transform: translate(-50%, -58%) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .center-logo img {
        width: 132px;
        transform: none;
    }

    .site-header.is-compact .center-logo {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -58%) scale(1);
        pointer-events: auto;
    }

    .nav-center-gap {
        display: none !important;
    }

    .navbar-collapse {
        margin-top: .35rem;
        background: #fff;
        border-radius: 12px;
        padding: .3rem .45rem .8rem;
    }

    .navbar .nav-link {
        font-size: 1.02rem;
        font-weight: 400;
        padding: .52rem .55rem;
    }

    .highlights-marquee {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .highlights-head {
        flex-wrap: wrap;
        gap: .7rem;
    }

    .highlights-marquee::before,
    .highlights-marquee::after {
        display: none;
    }

    .highlights-track {
        padding-bottom: .25rem;
    }

    .highlight-card {
        width: 280px;
    }

    .event-card {
        width: 252px;
        min-height: 378px;
    }

    .pride-card {
        width: 290px;
    }

    .pride-card img {
        height: 360px;
    }

    .student-pride-modal__meta {
        grid-template-columns: 1fr;
    }

    .hero-bg {
        min-height: 500px;
    }

    .loop-marquee::before,
    .loop-marquee::after {
        display: none;
    }

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

    .gallery-card {
        width: 78vw;
        min-width: 240px;
    }

    .footer-bottom-links a {
        margin-left: .35rem;
        margin-right: .35rem;
    }

    .testimonial-slide {
        width: min(100%, 94vw);
        flex-basis: min(100%, 94vw);
    }

    .testimonial-card {
        padding: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .highlights-marquee {
        scroll-behavior: auto;
    }

    .reveal-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.article-cover {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.article-cover.page-cover-compact {
    min-height: 294px;
}

.article-cover.page-cover-compact .article-cover-inner {
    padding-top: 2.8rem;
    padding-bottom: 20px;
}

.article-cover-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 4.25rem;
}

.article-cover-inner h1 {
    font-size: clamp(2rem, 4.8vw, 3.6rem);
    margin-bottom: .75rem;
    text-shadow: 0 6px 22px rgba(0, 0, 0, .25);
}

.article-cover-sub {
    display: inline-block;
    padding: .3rem .95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .4);
    font-size: .92rem;
}

.article-breadcrumb-wrap {
    position: relative;
    z-index: 3;
}

.article-breadcrumb {
    padding: 0;
}

.article-breadcrumb .breadcrumb {
    margin: 0;
    justify-content: center;
}

.article-breadcrumb .breadcrumb-item,
.article-breadcrumb .breadcrumb-item a {
    color: rgba(239, 244, 255, .7);
    text-decoration: none;
    font-size: .82rem;
}

.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(239, 244, 255, .45);
}

.article-cover-meta {
    margin-top: .9rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: .95rem;
}

.article-cover-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .1rem .2rem;
}

.article-cover-breadcrumb {
    margin-top: .45rem;
    display: flex;
    justify-content: center;
}

.article-cover-tags {
    margin-top: .35rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    font-size: .82rem;
    color: rgba(236, 243, 255, .82);
}

.article-cover-tags span {
    opacity: .9;
}

.article-cover-lang {
    margin-top: .35rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .86rem;
    color: rgba(236, 243, 255, .82);
}

.article-cover-lang-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .06em;
}

.article-cover-lang-link:hover {
    color: #d2deff;
    text-decoration: underline;
}

.article-cover-lang-link.is-disabled {
    opacity: .45;
    pointer-events: none;
    text-decoration: none;
}

.article-cover-admin-edit {
    margin-top: .9rem;
    display: flex;
    justify-content: center;
}

.article-cover-admin-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.article-cover-admin-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    color: #fff;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    padding: .38rem .9rem;
    transition: all .18s ease;
}

.article-cover-admin-edit-btn.is-danger {
    background: rgba(220, 53, 69, .18);
    border-color: rgba(255, 139, 149, .45);
}

.article-cover-admin-edit-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .26);
    transform: translateY(-1px);
}

.article-cover-admin-edit-btn.is-danger:hover {
    background: rgba(220, 53, 69, .3);
}

.article-cover-admin-delete-form {
    margin: 0;
}

.article-intro-block {
    padding-top: 3rem;
    padding-bottom: 1.6rem;
}

.article-intro-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(18, 40, 85, .16);
}

.article-intro-image img {
    width: 100%;
    max-height: 640px;
    object-fit: cover;
    display: block;
}

.article-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 420px;
}

.article-meta-item {
    border: 1px solid #d9e2f3;
    border-radius: 12px;
    background: #f8fbff;
    padding: .78rem 1rem;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .62rem;
}

.article-meta-item i {
    color: var(--ist-blue);
    font-size: 1.05rem;
}

.article-content-section {
    padding-bottom: 1.2rem;
}

.article-cover.page-cover-compact + .article-content-section {
    margin-top: 20px;
}

.article-content-wrap {
    max-width: 980px;
}

.article-summary-box,
.article-content-box {
    border: 1px solid #e3ebf8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(14, 28, 62, .06);
    padding: 1.35rem 1.45rem;
    margin-bottom: 1.1rem;
}

.article-summary-box h2,
.article-content-box h2 {
    font-size: 1.2rem;
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
}

.article-summary-box h2 i,
.article-content-box h2 i {
    color: var(--ist-purple);
}

.article-summary-box p {
    margin-bottom: 0;
    color: #37455d;
    line-height: 1.8;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2f3c47;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: .8rem;
    margin-bottom: .8rem;
}

.article-gallery-section {
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
}

.article-documents-section {
    padding-top: 1.5rem !important;
    padding-bottom: 2.25rem;
}

.article-documents-title {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 600;
    margin-left: .35rem;
}

.article-document-link {
    margin-inline: .35rem;
}

.article-gallery-grid {
    columns: 4 220px;
    column-gap: 1rem;
}

.article-gallery-item {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    margin: 0 0 1rem;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 14px;
    cursor: zoom-in;
    box-shadow: 0 8px 22px rgba(13, 30, 65, .12);
}

.article-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .3s ease, filter .3s ease;
}

.article-gallery-item:hover img {
    transform: scale(1.04);
    filter: saturate(1.03);
}

.article-lightbox-image {
    max-height: 80vh;
    object-fit: contain;
}

.article-footer-meta-box {
    border-top: 1px solid #dfe7f5;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    color: #35445d;
    font-size: .96rem;
}

.article-nav-section {
    padding-top: .25rem;
}

.article-neighbor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.article-neighbor-card {
    display: flex;
    flex-direction: column;
    gap: .38rem;
    text-decoration: none;
    color: #213348;
    border: 1px solid #dfe7f5;
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.15rem;
    box-shadow: 0 8px 22px rgba(13, 30, 65, .06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.article-neighbor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(13, 30, 65, .1);
    border-color: #cad8f0;
    color: #213348;
}

.article-neighbor-card.is-next {
    text-align: right;
}

.article-neighbor-kicker {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--ist-purple);
}

.article-neighbor-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem 1rem;
}

.article-related-title {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 600;
}

.article-related-title i {
    color: var(--ist-purple);
}

.article-related-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: .9rem;
    align-items: center;
    text-decoration: none;
    color: #213348;
    border: 1px solid #e1e9f6;
    background: #fff;
    border-radius: 16px;
    padding: .72rem;
    box-shadow: 0 8px 18px rgba(13, 30, 65, .05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.article-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(13, 30, 65, .1);
    border-color: #cddbf2;
    color: #213348;
}

.article-related-thumb,
.article-related-thumb-fallback {
    display: block;
    width: 96px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #dce9fb 0%, #efe3f9 100%);
}

.article-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-related-body {
    display: flex;
    flex-direction: column;
    gap: .32rem;
    min-width: 0;
}

.article-related-title {
    font-size: .97rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-related-date {
    font-size: .82rem;
    color: #697a91;
}

@media (max-width: 991.98px) {
    .article-cover {
        min-height: 360px;
    }

    .article-cover-inner {
        padding-top: 3.2rem;
    }

    .article-meta-grid {
        grid-template-columns: 1fr;
    }

    .article-gallery-grid {
        columns: 2 180px;
    }

    .article-neighbor-grid,
    .article-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .event-detail-modal__dialog {
        max-width: calc(100vw - .5rem);
    }

    .event-detail-modal {
        border-radius: 20px;
        max-height: calc(100dvh - .5rem);
    }

    .event-detail-modal__body {
        padding: .85rem;
        gap: .9rem;
    }

    .event-detail-modal__media {
        max-height: min(30dvh, 260px);
        border-radius: 20px;
    }

    .event-detail-modal__date {
        width: 100%;
        border-radius: 18px;
    }

    .event-detail-modal__heading {
        font-size: clamp(1.3rem, 7vw, 1.75rem);
    }

    .article-gallery-grid {
        columns: 1 100%;
    }
}

/* Students Pride page block (HTML widget overrides) */
.ist-pride-page .ist-pride-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
}

.ist-pride-page .ist-pride-head p {
    font-size: .95rem;
    font-weight: 300;
}

.ist-pride-page .ist-pride-title {
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.35;
}

.ist-pride-page .ist-pride-meta {
    font-size: .92rem;
    font-weight: 300;
    line-height: 1.5;
}

.ist-pride-page .ist-pride-img {
    object-fit: cover;
    object-position: center top;
}

.ist-contact-notice {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.ist-contact-notice.is-success {
    background: #eefbf2;
    border: 1px solid #b6e1c2;
    color: #1f6a3a;
}

.ist-contact-notice.is-warning {
    background: #fff8e7;
    border: 1px solid #f1d48a;
    color: #8a5b00;
}

.ist-contact-notice.is-error {
    background: #fff0f0;
    border: 1px solid #f1b5b5;
    color: #9b1c1c;
}
