:root {
    --ink: #141f1c;
    --muted: #64716e;
    --line: #e0e7e4;
    --paper: #ffffff;
    --wash: #f7faf8;
    --green: #0f766e;
    --green-dark: #0b4f4a;
    --blue: #315cba;
    --gold: #b56e1f;
}

.edu-modern {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--wash);
    font-family: "Noto Sans Thai", Arial, sans-serif;
}

.edu-modern a {
    text-decoration: none;
}

.wix-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(224, 231, 228, 0.85);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.brand-lockup img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-lockup span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-lockup strong {
    font-size: 17px;
    font-weight: 800;
}

.brand-lockup small {
    color: var(--muted);
    font-size: 12px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-nav a {
    color: #2e403c;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 8px;
}

.top-nav a:hover {
    color: var(--green-dark);
    background: #edf6f3;
}

.showcase-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #15241f;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 25, 22, 0.56), rgba(12, 25, 22, 0.28) 48%, rgba(12, 25, 22, 0.08)),
        url("../img/banner/home-banner-all-departments-full-v3.webp") center / cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 122px;
    padding-bottom: 88px;
}

.school-label {
    width: fit-content;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 22px;
}

.showcase-hero h1 {
    max-width: 760px;
    color: #fff;
    font-size: 68px;
    line-height: 1.04;
    font-weight: 800;
    margin: 0 0 18px;
}

.hero-text {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 21px;
    line-height: 1.75;
    margin-bottom: 30px;
}

.hero-actions,
.journey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-action,
.secondary-action,
.text-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    padding: 12px 22px;
    font-weight: 800;
}

.primary-action {
    color: #fff;
    background: var(--green);
    border: 1px solid var(--green);
}

.primary-action:hover {
    color: #fff;
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.secondary-action {
    color: var(--ink);
    background: #fff;
    border: 1px solid #fff;
}

.secondary-action:hover {
    color: var(--green-dark);
    background: #f1f7f4;
}

.primary-action.compact {
    min-height: 42px;
    padding: 10px 18px;
}

.text-action {
    color: var(--green-dark);
    background: transparent;
    border: 1px solid var(--line);
}

.access-dock {
    position: relative;
    z-index: 2;
    margin-top: -54px;
    padding-bottom: 54px;
}

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

.dock-card {
    min-height: 150px;
    display: grid;
    align-content: start;
    gap: 9px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 18px 46px rgba(20, 31, 28, 0.12);
}

.dock-card:hover {
    color: var(--ink);
    border-color: var(--green);
    transform: translateY(-2px);
}

.dock-card span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 8px;
    font-size: 20px;
}

.dock-card.student span { background: var(--green); }
.dock-card.teacher span { background: var(--blue); }
.dock-card.admin span { background: var(--gold); }

.dock-card strong {
    font-size: 23px;
    font-weight: 800;
}

.dock-card small {
    color: var(--muted);
    line-height: 1.55;
}

.overview-section,
.journey-section,
.teacher-section,
.quick-links {
    padding: 42px 0;
}

.overview-grid,
.journey-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 34px;
    align-items: center;
}

.section-label {
    display: inline-flex;
    color: var(--green-dark);
    background: #e8f4f1;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 16px;
}

.overview-copy h2,
.journey-copy h2,
.section-heading h2 {
    color: var(--ink);
    font-size: 40px;
    line-height: 1.22;
    font-weight: 800;
    margin: 0 0 14px;
}

.overview-copy p {
    color: #4f5f5b;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

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

.metric-grid div {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

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

.metric-grid strong {
    color: var(--green-dark);
    font-size: 38px;
    line-height: 1;
}

.metric-grid span {
    color: var(--muted);
    font-weight: 700;
    margin-top: 8px;
}

.journey-section {
    background: #fff;
}

.journey-layout {
    grid-template-columns: 420px minmax(0, 1fr);
}

.journey-image {
    border-radius: 8px;
    overflow: hidden;
    background: #edf4f1;
}

.journey-image img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.journey-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 22px;
}

.journey-list div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
}

.journey-list b {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--green);
    border-radius: 8px;
}

.journey-list span {
    color: #4f5f5b;
    line-height: 1.7;
}

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

.section-heading a {
    color: var(--green-dark);
    font-weight: 800;
}

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

.teacher-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: opacity .65s ease, transform .65s ease, filter .65s ease, border-color .65s ease;
}

.teacher-card.is-changing {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
    border-color: rgba(8, 127, 121, .22);
}

.teacher-card img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 8px;
    background: #edf4f1;
}

.teacher-card h3 {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    margin: 0 0 5px;
}

.teacher-card p,
.teacher-card small {
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.empty-state {
    color: var(--muted);
    background: #fff;
    border: 1px dashed #b9c8c4;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.quick-links {
    background: #fff;
}

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

.quick-grid a {
    min-height: 112px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: var(--paper);
}

.quick-grid a:hover {
    color: var(--green-dark);
    border-color: var(--green);
}

.quick-grid span {
    display: block;
    color: var(--green);
    font-size: 23px;
    margin-bottom: 12px;
}

.quick-grid strong {
    font-size: 17px;
    font-weight: 800;
}

.site-footer {
    background: #111f1c;
    color: #dbe7e3;
    padding: 26px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-inner span {
    font-weight: 800;
}

.footer-inner nav {
    display: flex;
    gap: 16px;
}

.footer-inner a {
    color: #dbe7e3;
}

@media (max-width: 991.98px) {
    .showcase-hero h1 {
        font-size: 48px;
    }

    .dock-grid,
    .overview-grid,
    .journey-layout,
    .teacher-grid {
        grid-template-columns: 1fr;
    }

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

    .access-dock {
        margin-top: -34px;
    }
}

@media (max-width: 767.98px) {
    .wix-header {
        position: static;
    }

    .header-inner,
    .top-nav,
    .footer-inner,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .top-nav a {
        text-align: center;
        background: #f2f7f5;
    }

    .showcase-hero {
        min-height: auto;
    }

    .hero-content {
        padding-top: 54px;
        padding-bottom: 70px;
    }

    .showcase-hero h1 {
        font-size: 37px;
    }

    .hero-text {
        font-size: 17px;
    }

    .dock-card,
    .metric-grid div,
    .quick-grid a {
        padding: 18px;
    }

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

    .overview-copy h2,
    .journey-copy h2,
    .section-heading h2 {
        font-size: 30px;
    }

    .journey-image img {
        height: 230px;
    }

    .teacher-card {
        grid-template-columns: 72px 1fr;
    }

    .teacher-card img {
        width: 72px;
        height: 72px;
    }
}
