/* School Sunrise
   Layout เฉพาะสถานศึกษา ใช้ข้อมูลและคอมโพเนนต์กลางร่วมกับเว็บไซต์ประเภทอื่น */

body.layout-school {
    --school-blue: #0a8dcc;
    --school-blue-deep: #07548e;
    --school-orange: #ff8a1f;
    --school-yellow: #ffd84d;
    --school-green: #39ad72;
    --school-ink: #071b2e;
    --school-soft: #eef9ff;
    background: #fff;
    color: var(--school-ink);
}

body.layout-school h1,
body.layout-school h2,
body.layout-school h3 {
    color: var(--school-ink);
    letter-spacing: -.025em;
}

body.layout-school .utility {
    border: 0;
    background: #07345f;
}

body.layout-school .utility,
body.layout-school .utility a,
body.layout-school .utility button {
    color: #fff;
}

body.layout-school .utility .language a[aria-current="true"] {
    background: #fff;
    color: #07345f;
    font-weight: 700;
}

body.layout-school.contrast .utility .language a[aria-current="true"] {
    background: var(--school-yellow);
    color: #000;
}

.school-header {
    position: relative;
    z-index: 30;
    background: #fff;
    box-shadow: 0 8px 30px rgba(7, 52, 95, .08);
}

.school-header__ribbon {
    height: 5px;
    background: linear-gradient(90deg,
        var(--school-orange) 0 25%,
        var(--school-yellow) 25% 50%,
        var(--school-green) 50% 75%,
        var(--school-blue) 75%);
}

.school-header__main {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: .8rem;
}

.school-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: .9rem;
    color: var(--school-ink);
    text-decoration: none;
}

.school-brand:hover {
    color: var(--school-blue-deep);
}

.school-brand__mark {
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    place-items: center;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 22px 22px 22px 8px;
    background: linear-gradient(145deg, var(--school-blue), #45c4e9);
    box-shadow: 0 8px 20px rgba(10, 141, 204, .22);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.school-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-brand__text {
    min-width: 0;
}

.school-brand__text strong,
.school-brand__text small {
    display: block;
}

.school-brand__text strong {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    line-height: 1.25;
}

.school-brand__text small {
    margin-top: .2rem;
    color: #627687;
    font-size: .8rem;
}

.school-header__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.school-term {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid #cce8f6;
    border-radius: 999px;
    background: var(--school-soft);
    padding: .6rem .9rem;
    color: var(--school-blue-deep);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.school-term i {
    color: var(--school-orange);
}

.school-nav-toggle {
    display: none;
    align-items: center;
    gap: .45rem;
    border: 0;
    border-radius: 12px;
    background: var(--school-blue-deep);
    padding: .65rem .8rem;
    color: #fff;
}

.school-nav {
    background: linear-gradient(110deg, #07548e, #087ab5);
}

.school-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.school-nav__list {
    display: flex;
    min-width: 0;
    align-items: stretch;
    padding: 0;
    list-style: none;
}

.school-nav__list a {
    position: relative;
    display: flex;
    min-height: 54px;
    align-items: center;
    padding: .55rem .8rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
}

.school-nav__list a::after {
    position: absolute;
    right: .8rem;
    bottom: 0;
    left: .8rem;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--school-yellow);
    content: "";
    opacity: 0;
    transform: scaleX(.25);
    transition: .2s ease;
}

.school-nav__list a:hover,
.school-nav__list a[aria-current="page"] {
    background: rgba(255, 255, 255, .1);
}

.school-nav__list a:hover::after,
.school-nav__list a[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.school-search {
    display: flex;
    width: min(250px, 23vw);
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
}

.school-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: .55rem .25rem .55rem 1rem;
    background: transparent;
    color: var(--school-ink);
    font-size: .8rem;
}

.school-search button {
    display: grid;
    width: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--school-blue-deep);
}

.school-home {
    overflow: hidden;
}

.school-hero {
    position: relative;
    min-height: 560px;
    background: #d7f1ff;
}

.school-hero .carousel-item,
.school-hero__fallback {
    position: relative;
    height: min(72vh, 650px);
    min-height: 560px;
}

.school-hero .carousel-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg,
        rgba(3, 28, 53, .94) 0%,
        rgba(3, 28, 53, .82) 34%,
        rgba(3, 28, 53, .36) 68%,
        transparent 100%);
}

.school-hero__copy {
    width: min(620px, 52%);
    color: #fff;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .45));
}

body.layout-school .school-hero__copy h2 {
    margin: .5rem 0 1rem;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3.6rem);
    line-height: 1.12;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .7), 0 8px 30px rgba(0, 0, 0, .38);
    text-wrap: balance;
}

body.layout-school .school-hero__copy > p:not(.school-kicker) {
    max-width: 580px;
    margin-bottom: 1.4rem;
    color: #fff;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.8;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
}

.school-kicker {
    margin: 0 0 .35rem;
    color: var(--school-orange);
    font-family: var(--font-heading);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.school-hero .school-kicker {
    display: inline-flex;
    border-radius: 999px;
    background: var(--school-yellow);
    padding: .35rem .7rem;
    color: #293000;
    text-shadow: none;
}

.school-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 0;
    border-radius: 999px;
    padding: .7rem 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

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

.school-button--orange {
    background: var(--school-orange);
    box-shadow: 0 10px 24px rgba(255, 138, 31, .28);
    color: #2f1700;
}

.school-button--blue {
    background: var(--school-blue-deep);
    color: #fff;
}

.school-hero__indicators {
    bottom: 4.7rem;
    justify-content: flex-start;
    margin-left: max(calc((100% - 1140px) / 2), 5%);
}

.school-hero__indicators [data-bs-target] {
    width: 28px;
    height: 5px;
    border: 0;
    border-radius: 99px;
}

.school-hero__control {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(4, 35, 65, .38);
    color: #fff;
}

.school-hero__doodles span {
    position: absolute;
    z-index: 2;
    color: var(--school-yellow);
    font-size: 1.5rem;
    opacity: .85;
    pointer-events: none;
}

.school-hero__doodles span:nth-child(1) { top: 16%; right: 8%; }
.school-hero__doodles span:nth-child(2) { top: 25%; right: 4%; color: var(--school-orange); }
.school-hero__doodles span:nth-child(3) { right: 9%; bottom: 20%; color: #fff; }

.school-quick-wrap {
    position: relative;
    z-index: 5;
    margin-top: -3.5rem;
}

.school-quick {
    display: grid;
    grid-template-columns: .8fr 2.2fr;
    gap: 1.5rem;
    border-radius: 28px 28px 28px 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(7, 52, 95, .16);
    padding: 1.6rem;
}

.school-quick header {
    padding: .5rem .4rem;
}

.school-quick h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.school-quick ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-quick li a {
    position: relative;
    display: flex;
    min-height: 126px;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid #dceaf1;
    border-radius: 18px 18px 18px 6px;
    background: #f8fcff;
    padding: 1rem;
    color: var(--school-ink);
    text-decoration: none;
    transition: .2s ease;
}

.school-quick li:nth-child(2) a { background: #fff8e4; }
.school-quick li:nth-child(3) a { background: #effaf3; }
.school-quick li:nth-child(4) a { background: #fff1e7; }

.school-quick li a:hover {
    border-color: var(--school-blue);
    box-shadow: 0 10px 24px rgba(7, 52, 95, .1);
    transform: translateY(-3px);
}

.school-quick li a > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: var(--school-blue);
    color: #fff;
    font-size: 1.15rem;
}

.school-quick li:nth-child(2) a > span { background: #eaa300; }
.school-quick li:nth-child(3) a > span { background: var(--school-green); }
.school-quick li:nth-child(4) a > span { background: var(--school-orange); }

.school-quick li a > i {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #8ba1b0;
}

.school-section {
    padding-block: clamp(3.8rem, 7vw, 6.5rem);
}

.school-welcome {
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 216, 77, .2), transparent 18rem),
        linear-gradient(180deg, #fff, #f7fcff);
}

.school-welcome__grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
}

.school-welcome__copy h2 {
    max-width: 720px;
    margin: .4rem 0 1.25rem;
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    line-height: 1.25;
}

.school-welcome blockquote {
    margin: 0 0 1rem;
    border-left: 5px solid var(--school-orange);
    padding: .4rem 0 .4rem 1.2rem;
    color: #4c6272;
    font-size: 1.05rem;
    line-height: 1.95;
}

.school-welcome__signature strong,
.school-welcome__signature span {
    display: block;
}

.school-welcome__signature span {
    color: #6c7f8e;
    font-size: .88rem;
}

.school-text-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1.1rem;
    color: var(--school-blue-deep);
    font-weight: 600;
    text-decoration: none;
}

.school-text-link:hover {
    color: #063b66;
}

.school-welcome__portrait {
    position: relative;
    min-height: 420px;
}

.school-welcome__shape {
    position: absolute;
    inset: 8% 0 0;
    border-radius: 46% 46% 16% 16% / 34% 34% 12% 12%;
    background: linear-gradient(145deg, #c7efff, #8bd6f4);
    transform: rotate(3deg);
}

.school-welcome__portrait img,
.school-welcome__placeholder {
    position: absolute;
    inset: 0 7% 0;
    width: 86%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 44% 44% 14% 14% / 30% 30% 10% 10%;
}

.school-welcome__placeholder {
    display: grid;
    place-items: center;
    color: rgba(7, 84, 142, .35);
    font-size: 8rem;
}

.school-stats {
    position: relative;
    background: linear-gradient(110deg, #07548e, #0a8dcc);
    color: #fff;
}

.school-stats::before {
    position: absolute;
    inset: -1px 0 auto;
    height: 78px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%23f7fcff' d='M0 0h1440v22c-185 32-329-11-510 7-188 19-309 25-487 2C270 9 138 51 0 28V0Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%23dff4ff' d='M0 0h1440v37c-177 31-315-22-493 1-185 24-314 31-497 2C276 12 139 70 0 39V0Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
    content: "";
    pointer-events: none;
}

.school-stats ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 6rem 0 2.7rem;
    list-style: none;
}

.school-stats li {
    display: grid;
    place-items: center;
    border-right: 1px solid rgba(255, 255, 255, .2);
    text-align: center;
}

.school-stats li:last-child {
    border-right: 0;
}

.school-stats i {
    color: var(--school-yellow);
    font-size: 1.4rem;
}

.school-stats strong {
    margin-top: .25rem;
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.2;
}

.school-stats span {
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
}

.school-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.school-section-head h2 {
    margin: .25rem 0 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.school-news {
    background: #fff;
}

.school-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}

.school-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbeaf2;
    border-radius: 22px 22px 22px 7px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(7, 52, 95, .07);
    transition: .2s ease;
}

.school-card:hover {
    box-shadow: 0 18px 42px rgba(7, 52, 95, .14);
    transform: translateY(-4px);
}

.school-card > img,
.school-card__placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.school-card__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #d7f1ff, #fff3db);
    color: #74b9d7;
    font-size: 2.5rem;
}

.school-card__body {
    padding: 1.15rem;
}

.school-card time,
.school-gallery time,
.school-achievements time {
    color: var(--school-orange);
    font-size: .76rem;
    font-weight: 600;
}

.school-card h3 {
    margin: .45rem 0 .6rem;
    font-size: 1.08rem;
    line-height: 1.55;
}

.school-card h3 a,
.school-gallery h3 a,
.school-library h3 a,
.school-achievements h3 a {
    color: inherit;
    text-decoration: none;
}

.school-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #647989;
    font-size: .86rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.school-notices {
    background:
        radial-gradient(circle at 100% 0, rgba(255, 216, 77, .25), transparent 23rem),
        var(--school-soft);
}

.school-notices__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.school-notice-panel {
    border-radius: 24px 24px 24px 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7, 52, 95, .08);
    padding: 1.5rem;
}

.school-notice-panel header {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
}

.school-notice-panel header > span {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 15px;
    background: #fff0e4;
    color: var(--school-orange);
    font-size: 1.2rem;
}

.school-notice-panel:nth-child(2) header > span {
    background: #e9f8ee;
    color: var(--school-green);
}

.school-notice-panel h2 {
    margin: 0;
    font-size: 1.2rem;
}

.school-notice-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-notice-panel li {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: .8rem;
    border-top: 1px solid #edf2f5;
    padding: .85rem 0;
}

.school-notice-panel li time {
    text-align: center;
}

.school-notice-panel li time strong,
.school-notice-panel li time span {
    display: block;
}

.school-notice-panel li time strong {
    color: var(--school-blue-deep);
    font-size: 1.25rem;
    line-height: 1;
}

.school-notice-panel li time span {
    color: #778a98;
    font-size: .68rem;
}

.school-notice-panel li a {
    color: var(--school-ink);
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.55;
    text-decoration: none;
}

.school-notice-panel li > i {
    color: #a7b5bf;
}

.school-calendar {
    background: #fff;
}

.school-calendar__grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    overflow: hidden;
    border-radius: 30px 30px 30px 10px;
    box-shadow: 0 20px 60px rgba(7, 52, 95, .12);
}

.school-calendar__intro {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ff8a1f, #ffad37);
    padding: clamp(2rem, 5vw, 4rem);
    color: #2f1700;
}

.school-calendar__intro::after {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 170px;
    height: 170px;
    border: 28px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    content: "";
}

.school-calendar__intro .school-kicker {
    color: #713100;
}

.school-calendar__intro h2 {
    margin: .4rem 0 1rem;
    color: #2f1700;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.school-calendar__list {
    display: grid;
    align-content: center;
    gap: 0;
    margin: 0;
    padding: 1.5rem 2rem;
    list-style: none;
}

.school-calendar__list li {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e7eef2;
    padding: 1rem 0;
}

.school-calendar__list li:last-child {
    border-bottom: 0;
}

.school-calendar__list time {
    display: grid;
    min-height: 64px;
    place-items: center;
    border-radius: 16px 16px 16px 5px;
    background: var(--school-soft);
    color: var(--school-blue-deep);
    text-align: center;
}

.school-calendar__list time strong,
.school-calendar__list time span {
    display: block;
}

.school-calendar__list time strong {
    align-self: end;
    font-size: 1.55rem;
    line-height: 1;
}

.school-calendar__list time span {
    align-self: start;
    font-size: .7rem;
}

.school-calendar__list h3 {
    margin: 0;
    font-size: 1rem;
}

.school-calendar__list p {
    margin: .25rem 0 0;
    color: #6b7e8c;
    font-size: .8rem;
}

.school-achievements {
    background: #fffaf0;
}

.school-achievements__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.school-achievements article {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 1rem;
    border: 1px solid #f3dfb9;
    border-radius: 20px 20px 20px 7px;
    background: #fff;
    padding: 1.2rem;
}

.school-achievements article > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 17px;
    background: #fff4cf;
    color: #d28a00;
    font-size: 1.3rem;
}

.school-achievements h3 {
    margin: .35rem 0 .3rem;
    font-size: 1rem;
    line-height: 1.55;
}

.school-achievements p {
    margin: 0;
    color: #6d7c86;
    font-size: .82rem;
}

.school-gallery {
    background: #07345f;
}

.school-gallery .school-section-head h2 {
    color: #fff;
}

.school-gallery .school-kicker {
    color: var(--school-yellow);
}

.school-gallery .school-text-link {
    color: #fff;
}

.school-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.school-gallery article {
    position: relative;
    overflow: hidden;
    border-radius: 22px 22px 22px 7px;
    background: #fff;
}

.school-gallery article > img,
.school-gallery article > .school-card__placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.school-gallery article > div:last-child {
    padding: 1rem;
}

.school-gallery h3 {
    margin: .35rem 0 0;
    font-size: .95rem;
    line-height: 1.55;
}

.school-library {
    background:
        radial-gradient(circle at 10% 15%, rgba(57, 173, 114, .15), transparent 20rem),
        #f7fcff;
}

.school-library__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.school-library article {
    position: relative;
    border-radius: 18px 18px 18px 6px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(7, 52, 95, .09);
    padding: .75rem;
}

.school-library article img,
.school-library__placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px 12px 12px 4px;
}

.school-library__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #d7f1ff, #e7f8ed);
    color: var(--school-blue);
    font-size: 3rem;
}

.school-library h3 {
    margin: .85rem .25rem .3rem;
    font-size: .9rem;
    line-height: 1.5;
}

.school-links {
    padding-block: 3rem;
    background: #fff;
}

.school-links h2 {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.school-links .container > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .8rem;
}

.school-links a {
    display: grid;
    min-height: 84px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dbe8ef;
    border-radius: 16px;
    background: #fff;
    color: var(--school-blue-deep);
    text-align: center;
    text-decoration: none;
}

.school-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-links a > span {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem;
    font-size: .85rem;
    font-weight: 600;
}

.school-empty {
    color: #718491;
}

.school-footer {
    position: relative;
    margin-top: 0 !important;
    background: #062b4d;
    color: rgba(255, 255, 255, .8);
}

.school-footer__waves {
    display: block;
    width: 100%;
    height: 64px;
}

.school-footer__wave-back {
    fill: #dff4ff;
}

.school-footer__wave-front {
    fill: #fff;
}

.school-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr .8fr;
    gap: 3rem;
    padding-block: 3rem;
}

.school-brand--footer {
    color: #fff;
}

.school-brand--footer .school-brand__text small {
    color: rgba(255, 255, 255, .62);
}

body.layout-school .school-footer .school-brand--footer:hover,
body.layout-school .school-footer .school-brand--footer:focus-visible {
    color: var(--school-yellow);
}

body.layout-school .school-footer .school-brand--footer:hover .school-brand__text small,
body.layout-school .school-footer .school-brand--footer:focus-visible .school-brand__text small {
    color: #fff;
}

.school-footer__motto {
    margin: 1.2rem 0 0;
    color: var(--school-yellow);
    line-height: 1.75;
}

body.layout-school .school-footer h2 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1rem;
}

.school-footer__contact {
    margin: 0;
    font-style: normal;
}

.school-footer__contact p {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 0 0 .75rem;
    font-size: .84rem;
}

.school-footer__contact i {
    color: var(--school-yellow);
}

.school-footer a {
    color: inherit;
}

.school-footer__links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-footer__links h2 {
    margin-bottom: .55rem;
}

.school-footer__links a {
    font-size: .84rem;
    line-height: 1.45;
    text-decoration: none;
}

.school-footer__links a:hover {
    color: var(--school-yellow);
}

.school-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.school-footer__bottom > .container,
.school-footer__bottom .container {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .76rem;
}

.school-footer__bottom p {
    margin: 0;
}

.school-footer__bottom nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.school-social a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

/* หน้ารองยังใช้คอมโพเนนต์กลาง แต่ปรับบุคลิกให้เป็นโรงเรียน */
body.layout-school .page-hero {
    min-height: 132px;
    padding-block: clamp(.85rem, 1.8vw, 1.25rem);
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 216, 77, .38), transparent 14rem),
        linear-gradient(120deg, #e4f7ff, #fff8e4);
}

body.layout-school .page-hero h1 {
    color: var(--school-blue-deep);
}

body.layout-school .page-hero p {
    color: #29445a;
}

body.layout-school.contrast .page-hero p {
    color: #fff;
}

body.layout-school .breadcrumb-wrap {
    background: #fff;
}

body.layout-school .feature-card,
body.layout-school .side-card,
body.layout-school .article-card,
body.layout-school .person-card {
    border-radius: 20px 20px 20px 7px;
}

body.layout-school .feature-card__icon {
    background: var(--school-soft);
    color: var(--school-blue-deep);
}

body.layout-school .filter-chip[aria-current="page"] {
    background: var(--school-blue-deep);
    color: #fff;
}

@media (max-width: 1199.98px) {
    .school-header__main {
        min-height: 84px;
    }

    .school-brand__mark {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .school-term {
        display: none;
    }

    .school-nav-toggle {
        display: inline-flex;
    }

    .school-nav__inner {
        display: block;
        padding-block: .8rem;
    }

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

    .school-nav__list a {
        min-height: 45px;
        border-radius: 10px;
    }

    .school-search {
        width: 100%;
        margin-top: .6rem;
    }

    .school-quick {
        grid-template-columns: 1fr;
    }

    .school-quick header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
    }
}

@media (max-width: 991.98px) {
    .school-hero,
    .school-hero .carousel-item,
    .school-hero__fallback {
        min-height: 510px;
        height: 62vh;
    }

    .school-hero__copy {
        width: min(620px, 75%);
    }

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

    .school-welcome__grid {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
    }

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

    .school-library__grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
        overflow-x: auto;
        padding-bottom: .5rem;
    }

    .school-links .container > div {
        grid-template-columns: repeat(2, 1fr);
    }

    .school-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .school-footer__links {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .school-brand__text small {
        display: none;
    }

    .school-hero,
    .school-hero .carousel-item,
    .school-hero__fallback {
        min-height: 480px;
        height: 66vh;
        max-height: 560px;
    }

    .school-hero .carousel-item > img {
        object-position: 64% center;
    }

    .school-hero__overlay {
        align-items: flex-end;
        background: linear-gradient(0deg, rgba(3, 28, 53, .97), rgba(3, 28, 53, .68) 48%, rgba(3, 28, 53, .18) 82%);
        padding-bottom: 4.5rem;
    }

    .school-hero__copy {
        width: 100%;
    }

    body.layout-school .school-hero__copy h2 {
        font-size: clamp(1.75rem, 7.5vw, 2.5rem);
    }

    .school-hero__copy > p:not(.school-kicker) {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .school-hero__indicators {
        bottom: 1.25rem;
    }

    .school-quick-wrap {
        margin-top: 0;
        padding-top: 1rem;
        background: #f7fcff;
    }

    .school-quick {
        border-radius: 20px;
        box-shadow: 0 12px 34px rgba(7, 52, 95, .11);
        padding: 1rem;
    }

    .school-quick header {
        display: block;
    }

    .school-quick li a {
        min-height: 112px;
    }

    .school-section {
        padding-block: 3.5rem;
    }

    .school-welcome__grid {
        grid-template-columns: 1fr;
    }

    .school-welcome__copy {
        order: 2;
    }

    .school-welcome__portrait {
        order: 1;
        width: min(320px, 80vw);
        min-height: 350px;
        margin-inline: auto;
    }

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

    .school-stats li {
        min-height: 130px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .18);
    }

    .school-section-head {
        align-items: flex-start;
    }

    .school-news__grid,
    .school-notices__grid,
    .school-achievements__grid,
    .school-gallery__grid,
    .school-calendar__grid {
        grid-template-columns: 1fr;
    }

    .school-calendar__intro {
        padding: 2rem;
    }

    .school-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .school-footer__links {
        grid-column: auto;
    }

    .school-footer__bottom .container {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        padding-block: 1.25rem;
    }
}

@media (max-width: 479.98px) {
    .school-header__main {
        min-height: 76px;
    }

    .school-brand__mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 16px 16px 16px 6px;
    }

    .school-brand__text strong {
        font-size: 1rem;
    }

    .school-nav__list {
        grid-template-columns: 1fr;
    }

    .school-quick ul {
        gap: .6rem;
    }

    .school-quick li a {
        min-height: 105px;
        padding: .8rem;
        font-size: .82rem;
    }

    .school-notice-panel {
        padding: 1rem;
    }

    .school-notice-panel li {
        grid-template-columns: 42px 1fr;
    }

    .school-notice-panel li > i {
        display: none;
    }

    .school-calendar__list {
        padding: 1rem;
    }

    .school-library__grid {
        grid-template-columns: repeat(4, 145px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.layout-school *,
    body.layout-school *::before,
    body.layout-school *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .school-hero .carousel {
        --bs-carousel-transition-duration: .01s;
    }
}
