:root {
    /* Primary */
    --web-primary-50: #E1F2DC;
    --web-primary-100: #BAD5B9;
    --web-primary-200: #93B896;
    --web-primary-300: #6C9B73;
    --web-primary-400: #488C61;
    --web-primary-500: #247E50;
    --web-primary-600: #006F3E;
    --web-primary-700: #00683E;
    --web-primary-800: #00603E;
    --web-primary-900: #00593E;

    /* Secondary */
    --web-secondary: #C3A86D;
    --web-secondary-dark: #BE9664;

    /* Tertiary */
    --web-tertiary: #C8D900;
    --web-tertiary-dark: #BEC800;

    /* Neutral */
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #E5E5E5;
    --neutral-300: #D4D4D4;
    --neutral-400: #A1A1A1;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --neutral-950: #0A0A0A;
}

html,
body {
    font-family: "Inter", "Noto Sans TC", "Helvetica", "Arial", sans-serif;
    position: relative;
    scroll-behavior: smooth;
}

.font-helvetica {
    font-family: Helvetica, sans-serif;
}

.font-rounded {
    font-family: "Arial Rounded MT Bold", ui-rounded, 'Segoe UI', sans-serif;
}

/* -------------------------⭣ marquee ⭣------------------------- */

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover,
.marquee-track:focus-within {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    margin-right: 80px;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

/* -------------------------⭡ marquee ⭡------------------------ */
/* -------------------------⭣ wave deco ⭣---------------------- */

.wave-section-mt {
    margin-top: clamp(20px, 5.26vw - 1.05px, 100px);
}

.wave-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: max(50px, 6.25vw);
    overflow: hidden;
    background-color: var(--web-primary-300);
}

.wave-item {
    width: max(80px, 20.833vw);
    height: max(80px, 15.625vw);
    flex-shrink: 0;
    background-color: var(--web-primary-50);
    border-radius: 50% 50% 0 0;
}

.wave-item+.wave-item {
    margin-left: min(-4px, -1.042vw);
}

/* -------------------------⭡ wave deco ⭡------------------------ */
/* -------------------------⭡ news tag ⭡------------------------- */

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    transition: .3s;
}

/* @media (min-width: 1024px) {
    .tag {
        padding: 4px 12px;
    }
} */

.tag svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* 綠色 */
.tag-primary {
    color: #fff;
    background: var(--web-primary-600);
}

.tag-primary:hover {
    background: var(--web-primary-700);
}

/* -------------------------⭡ news tag ⭡------------------------- */
/* ------------------------⭣ datatable deco ⭣-------------------- */

.table-cell-deco {
    position: relative;
    padding-left: 28px;
}

.table-cell-deco::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 12px;
    height: 22px;
    background-color: var(--web-tertiary);
}

@media (min-width: 768px) {
    .table-cell-deco {
        padding-left: 32px;
    }

    .table-cell-deco::before {
        width: 12px;
        height: 24px;
    }
}

@media (min-width: 1024px) {
    .table-cell-deco {
        padding-left: 40px;
    }

    .table-cell-deco::before {
        width: 14px;
        height: 28px;
    }
}

/* -----------------------⭡ datatable deco  ⭡-------------------- */
/* ---------------------------⭣ swiper ⭣------------------------- */

/* 圓點樣式 pagination */
.swiper .swiper-pagination-dot.swiper-pagination-bullets {
    position: relative;
    bottom: auto;
}

.swiper .swiper-pagination-dot .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: #fff;
    opacity: 1;
    transition: all .3s ease;
    --swiper-pagination-bullet-horizontal-gap: 12px;
}

.swiper .swiper-pagination-dot .swiper-pagination-bullet-active {
    background: var(--web-primary-700);
    transform: scale(1.2);
}

/* schoolThumbSwiper */
.schoolThumbSwiper .swiper-slide {
    opacity: 0.9;
}

.schoolThumbSwiper .swiper-slide-thumb-active {
    opacity: 1;

    img {
        transform: scale(1.1);
    }
}

/* ---------------------------⭡ swiper ⭡------------------------- */
/* -------------------------⭣ a11y-dialog ⭣---------------------- */

.dialog-container {
    z-index: 60;
    display: flex;
}

.dialog-container[aria-hidden='true'] {
    display: none;
}

html:has([role='dialog']:not([aria-hidden='true'])) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

/* -------------------------⭡a11y-dialog⭡------------------------ */
/* -------------------------⭣ banner image ⭣--------------------- */

.bg-school {
    background-image: url('../img/web/school_banner.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 39% center;
}

@media (min-width: 768px) {
    .bg-school {
        background-position: center;
    }
}

.bg-campus-focus {
    background-image: url('../img/web/banner_campus-focus.png');
    background-size: cover;
    background-position: center;
}

.bg-student-works {
    background-image: url('../img/web/banner_student-works.png');
    background-size: cover;
    background-position: center;
}

.bg-press-release {
    background-image: url('../img/web/banner_press-release.png');
    background-size: cover;
    background-position: center;
}

.bg-gallery {
    background-image: url('../img/web/teenagers-friends-having-fun-together.jpg');
    background-size: cover;
    background-position: center;
}

.mask-double-ellipse {
    background-color: transparent;
    mask-image: url('../img/web/deco-double-ellipse-fill.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('../img/web/deco-double-ellipse-fill.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.mask-polygon {
    aspect-ratio: 1 / 1;
    background-color: transparent;
    mask-image: url('../img/web/polygon-img-frame.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('../img/web/polygon-img-frame.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* -------------------------⭡ banner image ⭡--------------------- */
/* --------------------------⭣ form-focus ⭣----------------------- */

.form-focus:focus-within {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

.focusable-control:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* --------------------------⭡ form-focus ⭡----------------------- */
/* ------------------------⭣ form-label-deco ⭣-------------------- */

.form-label-deco {
    position: relative;
    padding-right: 20px;
    /* margin-right: 12px; */
}

.form-label-deco::after {
    content: '｜';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: currentColor;
    font-weight: 400;
}

/* ------------------------⭡ form-label-deco  ⭡-------------------- */
/* ---------------------------⭡ office page ⭡---------------------- */

.responsibilities-scroll::-webkit-scrollbar {
    width: 4px;
}

.responsibilities-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.responsibilities-scroll::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: 999px;
}

.responsibilities-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
}

.responsibilities-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-400) transparent;
}

/* ---------------------------⭡ office page ⭡---------------------- */

/* ----------------------⭣ home honor roll ⭣---------------------- */

.home-honor-cover {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.home-honor-cover__image,
.home-honor-cover__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-honor-cover__image {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

@media (min-width: 640px) {
    .home-honor-cover {
        width: 34%;
        min-height: 132px;
        max-width: 260px;
        max-height: 180px;
    }
}

/* ----------------------⭡ home honor roll ⭡---------------------- */
