/* =========================================================
   BOI INDEX PAGE
   V1 STRUCTURE + V2 SOFT ORGANIC HERO
   COURSE CARD USES ORIGINAL V1 COLORS
   ใช้ร่วมกับ boi/style.css
========================================================= */

:root {
    --boi-index-green: #1e4027;
    --boi-index-green-deep: #15301c;
    --boi-index-green-soft: #2e6e5e;
    --boi-index-vivid: #21a06b;
    --boi-index-sage: #f1f7ef;
    --boi-index-sage-deep: #dff0da;
    --boi-index-mint: #bfe8cf;
    --boi-index-white: #ffffff;
    --boi-index-red: #e42c32;
    --boi-index-red-text: #c9232a;
    --boi-index-text: #1e4027;
    --boi-index-text-soft: rgba(30, 64, 39, .72);
    --boi-index-border: rgba(30, 64, 39, .09);
    --boi-index-shadow-sm: 0 6px 24px rgba(30, 64, 39, .08);
    --boi-index-shadow-md: 0 14px 40px rgba(30, 64, 39, .10);
    --boi-index-shadow-lg: 0 20px 50px rgba(30, 64, 39, .15);
    --boi-index-ease: cubic-bezier(.16, 1, .3, 1);

    /*
     * เปลี่ยน URL นี้เป็นรูป Hero จริงภายหลัง
     * แนะนำรูปแนวนอนอย่างน้อย 1920 × 1080 px
     */
    /* --boi-index-hero-background-image: url("../../images/boi/hero-bg.jpg"); */
}

/* =========================================================
   MAIN
========================================================= */

.boi-main {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    color: var(--boi-index-text);
    font-family: "Mitr", "Kanit", sans-serif;
    font-weight: 400;
    background:
        radial-gradient(circle at 8% 5%, rgba(191, 232, 207, .58), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(223, 240, 218, .78), transparent 30%),
        radial-gradient(circle at 78% 58%, rgba(191, 232, 207, .24), transparent 30%),
        linear-gradient(180deg, #f1f7ef 0%, #f7fbf5 48%, #eef6ed 100%);
}

.boi-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(30, 64, 39, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 64, 39, .025) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .08), transparent);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .08), transparent);
}

.boi-main::after {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -260px;
    top: 480px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 160, 107, .10), transparent 66%);
    pointer-events: none;
}

.boi-main strong,
.boi-main b {
    font-weight: 500;
}

.boi-main ::selection {
    color: #fff;
    background: var(--boi-index-green);
}

/* =========================================================
   HERO
========================================================= */

.boi-index-hero-section {
    position: relative;
    z-index: 1;
    min-height: 690px;
    padding: clamp(70px, 9vw, 112px) 0 74px;
    overflow: visible;
    text-align: center;

    background-image:
        linear-gradient(180deg,
            rgba(246, 252, 249, .20) 0%,
            rgba(246, 252, 249, .26) 30%,
            rgba(240, 249, 244, .08) 60%,
            rgba(231, 244, 234, 1) 100%),
        var(--boi-hero-bg);

    background-position:
        center,
        center center;

    background-size:
        cover,
        cover;

    background-repeat:
        no-repeat,
        no-repeat;
}

.boi-index-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 20%, rgba(167, 240, 109, .17), transparent 25%),
        radial-gradient(circle at 87% 18%, rgba(71, 219, 232, .16), transparent 28%),
        linear-gradient(90deg,
            rgba(255, 255, 255, .10),
            transparent 25%,
            transparent 75%,
            rgba(255, 255, 255, .10));
}

.boi-index-hero-section::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    height: 180px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(241, 247, 239, 0), rgba(241, 247, 239, .96));
}

.boi-index-hero-card {
    position: relative;
    z-index: 3;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    color: var(--boi-index-text);
    background: transparent;
}

/* =========================================================
   HERO BLOBS
========================================================= */

.boi-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: .42;
    pointer-events: none;
    animation: boi-hero-blob-drift 11s ease-in-out infinite alternate;
}

.boi-hero-blob-1 {
    width: 430px;
    height: 430px;
    left: -150px;
    top: -70px;
    background: var(--boi-index-mint);
}

.boi-hero-blob-2 {
    width: 390px;
    height: 390px;
    right: -110px;
    bottom: 20px;
    background: var(--boi-index-sage-deep);
    animation-delay: -6s;
}

.boi-hero-blob-3 {
    width: 270px;
    height: 270px;
    right: 12%;
    top: 24%;
    background: rgba(33, 160, 107, .28);
    animation-delay: -3s;
}

@keyframes boi-hero-blob-drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(26px, -20px);
    }
}

/* =========================================================
   HERO FLOATERS
========================================================= */

.boi-hero-floaters {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.boi-hero-floater {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    color: var(--boi-index-text-soft);
    border: 1px solid rgba(255, 255, 255, .66);
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 8px 24px rgba(30, 64, 39, .10);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 300;
    animation: boi-hero-floater-bob 5s ease-in-out infinite alternate;
}

.boi-hero-floater::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--boi-index-vivid);
}

.boi-hero-floater-1 {
    top: 23%;
    left: 8%;
    transform: rotate(-6deg);
}

.boi-hero-floater-2 {
    top: 48%;
    left: 13%;
    transform: rotate(4deg);
    animation-delay: -1.6s;
}

.boi-hero-floater-3 {
    top: 25%;
    right: 8%;
    transform: rotate(5deg);
    animation-delay: -2.8s;
}

.boi-hero-floater-4 {
    top: 49%;
    right: 12%;
    transform: rotate(-4deg);
    animation-delay: -4s;
}

@keyframes boi-hero-floater-bob {
    from {
        translate: 0 -8px;
    }

    to {
        translate: 0 8px;
    }
}

/* =========================================================
   HERO ANIMATION
========================================================= */

@keyframes boi-hero-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.boi-hero-kicker,
.boi-hero-title,
.boi-hero-desc,
.boi-hero-action,
.boi-hero-info-box {
    animation: boi-hero-rise .7s var(--boi-index-ease) backwards;
}

.boi-hero-title {
    animation-delay: .1s;
}

.boi-hero-desc {
    animation-delay: .2s;
}

.boi-hero-action {
    animation-delay: .3s;
}

.boi-hero-info-box {
    animation-delay: .42s;
}

/* =========================================================
   HERO KICKER
========================================================= */

.boi-hero-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, .70);
    border-radius: 999px;
    color: var(--boi-index-green-soft);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 24px rgba(30, 64, 39, .10);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 400;
}

.boi-hero-kicker-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--boi-index-vivid);
    box-shadow: 0 0 0 5px rgba(33, 160, 107, .10);
}

/* =========================================================
   HERO TITLE
========================================================= */

.boi-hero-title {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    color: var(--boi-index-text);
    font-size: clamp(36px, 5.7vw, 66px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.015em;
    text-shadow: 0 2px 18px rgba(255, 255, 255, .84);
}

.boi-hero-title-highlight {
    position: relative;
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    color: var(--boi-index-vivid);
    font-size: .32em;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
}

.boi-hero-title-highlight::after {
    content: "";
    position: absolute;
    left: 2%;
    right: 2%;
    bottom: -.15em;
    height: .18em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M4 11 C 60 3, 120 14, 170 8 S 270 6, 296 9' fill='none' stroke='%2321A06B' stroke-width='5' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100%;
    clip-path: inset(0 100% 0 0);
    animation: boi-hero-title-draw .8s var(--boi-index-ease) .8s forwards;
}

@keyframes boi-hero-title-draw {
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* =========================================================
   HERO DESCRIPTION
========================================================= */

.boi-hero-desc {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 28px auto 38px;
    padding: 0 12px;
    color: rgba(24, 58, 41, .82);
    font-size: clamp(16px, 1.7vw, 18px);
    font-weight: 400;
    line-height: 1.9;
    text-shadow: 0 1px 12px rgba(255, 255, 255, .90);
}

/* =========================================================
   HERO ACTION
========================================================= */

.boi-hero-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #173f29 0%, #286846 100%);
    box-shadow:
        0 16px 34px rgba(23, 63, 41, .26),
        inset 0 1px 0 rgba(255, 255, 255, .16);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition:
        color .25s ease,
        background .25s ease,
        transform .35s var(--boi-index-ease),
        box-shadow .35s var(--boi-index-ease);
}

.boi-hero-action::before {
    content: "";
    position: absolute;
    top: -80%;
    left: -42%;
    width: 30%;
    height: 250%;
    background: rgba(255, 255, 255, .16);
    transform: rotate(24deg) translateX(-180%);
    transition: transform .55s ease;
}

.boi-hero-action:hover {
    color: #fff;
    background: linear-gradient(135deg, #123521 0%, #215d3d 100%);
    transform: translateY(-2px);
    box-shadow:
        0 20px 42px rgba(23, 63, 41, .32),
        inset 0 1px 0 rgba(255, 255, 255, .20);
}

.boi-hero-action:hover::before {
    transform: rotate(24deg) translateX(560%);
}

.boi-hero-action:active {
    transform: translateY(0) scale(.98);
}

.boi-hero-action i {
    font-size: 13px;
    transition: transform .3s var(--boi-index-ease);
}

.boi-hero-action:hover i {
    transform: translateY(3px);
}

/* =========================================================
   HERO COURSE FEATURES
========================================================= */

.boi-hero-feature-list {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: fit-content;
    max-width: 100%;
    margin: 26px auto 0;
}

.boi-hero-feature-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 2px 24px;
    color: rgba(30, 64, 39, .82);
    white-space: nowrap;
}

.boi-hero-feature-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 20px;
    background: rgba(30, 64, 39, .18);
    transform: translateY(-50%);
}

.boi-hero-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #168657;
    background: rgba(33, 160, 107, .10);
}

.boi-hero-feature-icon i {
    font-size: 12px;
}

.boi-hero-feature-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 767.98px) {
    .boi-hero-feature-item {
        gap: 6px;
        padding: 2px 12px;
    }

    .boi-hero-feature-icon {
        width: 24px;
        height: 24px;
    }

    .boi-hero-feature-icon i {
        font-size: 11px;
    }

    .boi-hero-feature-text {
        font-size: 12px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {
    .boi-hero-feature-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        width: fit-content;
        margin-top: 20px;
        text-align: left;
    }

    .boi-hero-feature-item {
        justify-content: flex-start;
        gap: 8px;
        padding: 0;
    }

    .boi-hero-feature-item:not(:last-child)::after {
        display: none;
    }

    .boi-hero-feature-icon {
        width: 22px;
        height: 22px;
    }

    .boi-hero-feature-icon i {
        font-size: 10px;
    }

    .boi-hero-feature-text {
        font-size: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 390px) {
    .boi-hero-feature-list {
        gap: 6px;
        margin-top: 18px;
    }

    .boi-hero-feature-text {
        font-size: 11px;
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {
    .boi-hero-info-box {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin-right: auto;
        margin-left: auto;
    }

    .boi-hero-info-item {
        min-height: 58px;
    }
}

@media (max-width: 575.98px) {
    .boi-hero-info-box {
        gap: 9px;
        margin-top: 36px;
    }

    .boi-hero-info-item {
        flex-direction: row;
        min-height: 54px;
        padding: 9px 14px;
        border-radius: 18px;
        text-align: left;
    }

    .boi-hero-info-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .boi-hero-info-icon i {
        font-size: 17px;
    }

    .boi-hero-info-value {
        font-size: 13px;
    }
}

.boi-hero-info-label {
    margin-top: 4px;
    color: var(--boi-index-text-soft);
    font-size: 13px;
    font-weight: 300;
}

.boi-hero-tags,
.boi-hero-notice,
.boi-hero-orb {
    display: none;
}

/* =========================================================
   HERO ADMISSION CONDITIONS
========================================================= */

.boi-hero-audience {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 28px auto 0;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(30, 64, 39, .09);
    border-radius: 26px;
    background:
        radial-gradient(circle at 10% 0%, rgba(167, 240, 109, .12), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(71, 219, 232, .09), transparent 32%),
        rgba(255, 255, 255, .78);
    box-shadow:
        0 16px 38px rgba(30, 64, 39, .10),
        inset 0 1px 0 rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.boi-hero-audience::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(191, 232, 207, .28);
    pointer-events: none;
}

.boi-hero-audience-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
    text-align: left;
}

.boi-hero-audience-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #2f8d5d, #2a8b92);
    box-shadow:
        0 9px 22px rgba(30, 64, 39, .14),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.boi-hero-audience-icon i {
    font-size: 17px;
}

.boi-hero-audience-head h2 {
    margin: 0;
    color: #1e4027;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.boi-hero-audience-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.boi-hero-audience-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    min-width: 0;
    padding: 17px 18px;
    overflow: hidden;
    border: 1px solid rgba(30, 64, 39, .08);
    border-radius: 18px;
    text-align: left;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 8px 22px rgba(30, 64, 39, .055);
}

.boi-hero-audience-item:hover {
    border-color: rgba(33, 160, 107, .20);
    box-shadow: 0 12px 27px rgba(30, 64, 39, .085);
    transform: translateY(-2px);
}

.boi-hero-audience-number {
    position: absolute;
    top: 9px;
    right: 12px;
    color: rgba(30, 64, 39, .07);
    font-size: 29px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.boi-hero-audience-item-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #1f7553;
    background:
        linear-gradient(
            135deg,
            rgba(167, 240, 109, .30),
            rgba(71, 219, 232, .22)
        );
}

.boi-hero-audience-item-icon i {
    font-size: 17px;
}

.boi-hero-audience-text {
    min-width: 0;
    padding-right: 26px;
}

.boi-hero-audience-text strong {
    display: block;
    margin: 0;
    color: #1e4027;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.boi-hero-audience-text span {
    display: block;
    margin-top: 6px;
    color: rgba(30, 64, 39, .68);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767.98px) {
    .boi-hero-audience {
        padding: 20px;
        border-radius: 23px;
    }

    .boi-hero-audience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .boi-hero-audience {
        margin-top: 20px;
        padding: 15px;
        border-radius: 19px;
    }

    .boi-hero-audience-head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .boi-hero-audience-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .boi-hero-audience-icon i {
        font-size: 15px;
    }

    .boi-hero-audience-head h2 {
        font-size: 17px;
    }

     .boi-hero-audience-grid {
        gap: 9px;
    }

    .boi-hero-audience-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
        border-radius: 15px;
    }

    .boi-hero-audience-item-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .boi-hero-audience-item-icon i {
        font-size: 14px;
    }

    .boi-hero-audience-number {
        top: 8px;
        right: 10px;
        font-size: 23px;
    }

    .boi-hero-audience-text {
        padding-right: 14px;
    }

    .boi-hero-audience-text strong {
        font-size: 13px;
    }

    .boi-hero-audience-text span {
        margin-top: 4px;
        font-size: 13px;
        line-height: 1.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    .boi-hero-audience-item {
        transition: none;
    }
}

/* =========================================================
   HERO COLLABORATION LOGOS
========================================================= */

.boi-hero-collaboration {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin: -14px auto 28px;
    padding: 9px 15px;
    /* border: 1px solid rgba(30, 64, 39, .09); */
    border-radius: 18px;
    /* background: rgba(255, 255, 255, .72); */
    /* box-shadow:
        0 8px 22px rgba(30, 64, 39, .07),
        inset 0 1px 0 rgba(255, 255, 255, .86); */
    /* -webkit-backdrop-filter: blur(12px); */
    /* backdrop-filter: blur(12px); */
}

.boi-hero-collaboration-label {
    flex: 0 0 auto;
    color: rgba(30, 64, 39, .65);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
}

.boi-hero-collaboration-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 0;
}

.boi-hero-collaboration-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 34px;
}

.boi-hero-collaboration-logo img {
    display: block;
    width: auto;
    max-width: 112px;
    max-height: 32px;
    object-fit: contain;
    object-position: center;
}

.boi-hero-collaboration-logo-boi img {
    max-width: 104px;
    max-height: 30px;
}

.boi-hero-collaboration-logo-cmu img {
    max-width: 92px;
    max-height: 30px;
}

.boi-hero-collaboration-logo-lifelong img {
    max-width: 116px;
    max-height: 31px;
}

.boi-hero-collaboration-divider {
    display: block;
    flex: 0 0 1px;
    width: 1px;
    height: 23px;
    background: rgba(30, 64, 39, .13);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767.98px) {
    .boi-hero-collaboration {
        gap: 9px;
        margin-top: -10px;
        padding: 10px 13px;
    }

    .boi-hero-collaboration-label {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .boi-hero-collaboration {
        width: calc(100% - 20px);
        margin-bottom: 24px;
        border-radius: 16px;
    }

    .boi-hero-collaboration-logos {
        width: 100%;
        gap: 8px;
    }

    .boi-hero-collaboration-logo {
        flex: 1 1 0;
        min-width: 0;
        height: 30px;
    }

    .boi-hero-collaboration-logo img,
    .boi-hero-collaboration-logo-boi img,
    .boi-hero-collaboration-logo-cmu img,
    .boi-hero-collaboration-logo-lifelong img {
        max-width: 100%;
        max-height: 27px;
    }

    .boi-hero-collaboration-divider {
        height: 20px;
    }
}

@media (max-width: 390px) {
    .boi-hero-collaboration {
        width: 100%;
        padding-right: 9px;
        padding-left: 9px;
    }

    .boi-hero-collaboration-logos {
        gap: 6px;
    }
}

/* =========================================================
   COURSE SECTION
========================================================= */

.boi-index-course-section {
    position: relative;
    z-index: 2;
    isolation: isolate;
    padding: 58px 0 100px;
}

.boi-index-course-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg,
            rgba(241, 247, 239, 0),
            rgba(255, 255, 255, .28) 18%,
            rgba(241, 247, 239, .72));
    pointer-events: none;
}

.boi-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.boi-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--boi-index-green-soft);
    background: rgba(255, 255, 255, .90);
    box-shadow: var(--boi-index-shadow-sm);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
}

.boi-section-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--boi-index-vivid);
}

.boi-section-title {
    margin: 15px 0 0;
    color: var(--boi-index-text);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    letter-spacing: -.015em;
}

.boi-section-title-highlight {
    position: relative;
    color: var(--boi-index-vivid);
}

.boi-section-title-highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.13em;
    height: .14em;
    border-radius: 999px;
    background: var(--boi-index-vivid);
    opacity: .7;
}

.boi-line-gradient {
    width: 78px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--boi-index-vivid), var(--boi-index-green-soft));
}

/* =========================================================
   IMPORTANT NOTICE
========================================================= */

.boi-course-important-notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 34px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(38, 111, 74, .10);
    border-radius: 24px;
    color: var(--boi-index-text-soft);
    background:
        radial-gradient(circle at 100% 0%, rgba(167, 240, 109, .12), transparent 34%),
        rgba(255, 255, 255, .94);
    box-shadow: var(--boi-index-shadow-sm);
}

.boi-course-important-notice::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, #74d680, #3e9f69);
}

.boi-course-important-notice-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #27764f;
    background: linear-gradient(135deg, rgba(191, 232, 207, .76), rgba(167, 240, 109, .34));
    box-shadow:
        0 8px 18px rgba(38, 111, 74, .10),
        inset 0 1px 0 rgba(255, 255, 255, .70);
}

.boi-course-important-notice-icon i {
    font-size: 20px;
}

.boi-course-important-notice-content {
    flex: 1 1 auto;
    min-width: 0;
}

.boi-course-important-notice-content>strong {
    display: block;
    margin-bottom: 7px;
    color: var(--boi-index-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.boi-course-important-notice-content>p {
    margin: 0;
    color: var(--boi-index-text-soft);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;
}

/* =========================================================
   IMPORTANT NOTICE CONTACT
========================================================= */

.boi-course-important-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 15px 16px;
    border: 1px solid rgba(40, 177, 84, .16);
    border-radius: 18px;
    background:
        linear-gradient(135deg,
            rgba(227, 249, 233, .92),
            rgba(241, 251, 238, .94));
}

.boi-course-important-contact-text {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.boi-course-important-contact-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #35bd5e, #249b53);
    box-shadow:
        0 8px 18px rgba(28, 139, 70, .18),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.boi-course-important-contact-icon i {
    font-size: 21px;
}

.boi-course-important-contact-text strong {
    display: block;
    margin: 0 0 3px;
    color: #1e4a31;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.boi-course-important-contact-text span {
    display: block;
    color: rgba(30, 74, 49, .72);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
}

.boi-course-important-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #35bd5e, #249b53);
    box-shadow:
        0 9px 20px rgba(28, 139, 70, .18),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    transition:
        color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.boi-course-important-contact-btn i:first-child {
    font-size: 18px;
}

.boi-course-important-contact-btn i:last-child {
    font-size: 16px;
    opacity: .76;
}

.boi-course-important-contact-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #42ca6b, #2ba85c);
    box-shadow:
        0 12px 25px rgba(28, 139, 70, .24),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}

.boi-course-important-contact-btn:focus-visible {
    outline: 2px solid #55cc78;
    outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767.98px) {
    .boi-course-important-notice {
        padding: 19px;
    }

    .boi-course-important-contact {
        align-items: stretch;
        flex-direction: column;
    }

    .boi-course-important-contact-btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .boi-course-important-notice {
        gap: 12px;
        padding: 17px 15px 17px 18px;
        border-radius: 20px;
    }

    .boi-course-important-notice-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .boi-course-important-notice-icon i {
        font-size: 18px;
    }

    .boi-course-important-notice-content>strong {
        font-size: 16px;
    }

    .boi-course-important-notice-content>p {
        font-size: 14px;
        line-height: 1.75;
    }

    .boi-course-important-contact {
        margin-top: 15px;
        padding: 14px;
        border-radius: 16px;
    }

    .boi-course-important-contact-text {
        align-items: flex-start;
    }

    .boi-course-important-contact-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .boi-course-important-contact-text strong {
        font-size: 14px;
    }

    .boi-course-important-contact-text span {
        font-size: 12px;
    }
}

/* =========================================================
   COURSE CARD — CLEAN LAYOUT
========================================================= */

.boi-index-course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(30, 64, 39, .08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(30, 64, 39, .085);
    backface-visibility: hidden;
    transform: translateZ(0);
    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}

.boi-index-course-card:hover {
    border-color: rgba(33, 160, 107, .20);
    box-shadow: 0 20px 48px rgba(30, 64, 39, .12);
    transform: translate3d(0, -5px, 0);
}

/* =========================================================
   COURSE CARD CONTENT + WAVE
========================================================= */

.boi-course-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: -1px;
    padding: 22px;
    background: #ffffff;
}

/*
 * คลื่นเป็นส่วนหนึ่งของ Content
 * จึงซ้อนทับรูปได้ตลอด แม้รูปกำลัง Zoom
 */
.boi-course-card-content::before {
    content: "";
    position: absolute;
    top: -22px;
    right: -2px;
    left: -2px;
    z-index: -1;
    height: 25px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0 46C170 67 322 66 474 43C636 18 782 18 938 43C1110 69 1264 64 1440 35V96H0Z' fill='%23ffffff'/%3E%3C/svg%3E")
        center bottom / 100% 100% no-repeat;
    pointer-events: none;
}

/* ปิดช่องว่างระดับเศษพิกเซลใต้คลื่น */
.boi-course-card-content::after {
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    left: 0;
    z-index: -1;
    height: 6px;
    background: #ffffff;
    pointer-events: none;
}

/* =========================================================
   COURSE IMAGE
========================================================= */

.boi-course-image {
    position: relative;
    z-index: 1;
    min-height: 255px;
    width: 100%;
    height: auto;
    overflow: hidden;
    isolation: isolate;
    background: #eaf5ed;
}

.boi-course-image > a {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    overflow: hidden;
}

.boi-course-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0) scale(1.001);
    transform-origin: center center;
    transition: transform .65s cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
}

/* แสงบาง ๆ บนรูป เพิ่มลูกเล่นโดยไม่กระทบคลื่น */
.boi-course-image > a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            120deg,
            transparent 20%,
            rgba(255, 255, 255, .16) 46%,
            transparent 72%
        );
    opacity: 0;
    transform: translateX(-35%);
    transition:
        opacity .4s ease,
        transform .75s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
}

/* =========================================================
   IMAGE HOVER EFFECT
========================================================= */

@media (hover: hover) and (pointer: fine) {
    .boi-index-course-card:hover .boi-course-image img {
        transform: translate3d(0, 0, 0) scale(1.055);
    }

    .boi-index-course-card:hover .boi-course-image > a::after {
        opacity: 1;
        transform: translateX(35%);
    }
}

@media (hover: none), (pointer: coarse) {
    .boi-course-image img,
    .boi-index-course-card:hover .boi-course-image img {
        transform: translate3d(0, 0, 0) scale(1.001);
        transition: none;
    }

    .boi-course-image > a::after {
        display: none;
    }
}

/* =========================================================
   COURSE IMAGE RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
    .boi-course-image {
        min-height: 275px;
    }
}

@media (max-width: 767.98px) {
    .boi-course-image {
        height: 320px;
    }

    .boi-course-card-content::before {
        top: -20px;
        height: 23px;
    }
}

@media (max-width: 575.98px) {
    .boi-course-image {
        height: 300px;
    }

    .boi-course-card-content::before {
        top: -18px;
        height: 21px;
    }
}

/* =========================================================
   IMAGE STATUS
========================================================= */

.boi-course-image-status,
.boi-course-image-urgent {
    position: absolute;
    top: 13px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(20, 55, 36, .15);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.boi-course-image-status {
    left: 13px;
    color: #ffffff;
    background: rgba(42, 139, 85, .92);
}

.boi-course-image-status::before,
.boi-course-image-urgent::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .13);
}

.boi-course-image-status.boi-status-soon {
    color: #ffffff;
    background: rgba(171, 116, 23, .92);
}

.boi-course-image-status.boi-status-close {
    color: #ffffff;
    background: rgba(164, 54, 64, .92);
}

.boi-course-image-urgent {
    right: 13px;
    color: #a3323a;
    background: rgba(255, 247, 247, .95);
    border-color: rgba(184, 57, 66, .14);
}

/* =========================================================
   META / TITLE
========================================================= */

.boi-course-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.boi-course-generation,
.boi-course-price {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
}

.boi-course-generation {
    color: #247049;
    background: #eaf6ed;
}

.boi-course-price {
    color: #188052;
    background: transparent;
}

.boi-course-title {
    margin: 0;
    color: #173d2b;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.5;
}

.boi-course-desc {
    display: -webkit-box;
    min-height: 50px;
    margin: 5px 0 14px;
    overflow: hidden;
    color: #68786f;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
/* =========================================================
   COURSE CARD META STATUS
========================================================= */

.boi-course-card-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.boi-course-card-status-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* เปิดรับสมัคร */
.boi-course-card-status.boi-status-open {
    color: #23734a;
    background: #e6f5eb;
    border-color: rgba(48, 143, 87, .18);
}

.boi-course-card-status.boi-status-open .boi-course-card-status-dot {
    background: #2ea864;
    box-shadow: 0 0 0 4px rgba(46, 168, 100, .11);
}

/* ใกล้เปิดรับสมัคร */
.boi-course-card-status.boi-status-soon {
    color: #8a6417;
    background: #fff5dc;
    border-color: rgba(190, 141, 38, .18);
}

.boi-course-card-status.boi-status-soon .boi-course-card-status-dot {
    background: #d99b25;
    box-shadow: 0 0 0 4px rgba(217, 155, 37, .10);
}

/* ปิดรับสมัคร */
.boi-course-card-status.boi-status-close {
    color: #a23a44;
    background: #fbeaec;
    border-color: rgba(185, 66, 77, .16);
}

.boi-course-card-status.boi-status-close .boi-course-card-status-dot {
    background: #d4535f;
    box-shadow: 0 0 0 4px rgba(212, 83, 95, .10);
}

/* เต็มแล้ว */
.boi-course-card-status.boi-status-full {
    color: #7c416e;
    background: #f7eaf3;
    border-color: rgba(145, 75, 127, .16);
}

.boi-course-card-status.boi-status-full .boi-course-card-status-dot {
    background: #a85391;
    box-shadow: 0 0 0 4px rgba(168, 83, 145, .10);
}
/* =========================================================
   SUMMARY
========================================================= */

.boi-course-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.boi-course-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(30, 64, 39, .07);
    border-radius: 12px;
    background: #f7faf8;
}

.boi-course-summary-icon {
    display: grid;
    place-items: center;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    margin: 0;
    border-radius: 10px;
    color: #277451;
    background: #e2f2e7;
    font-size: 13px;
}

.boi-course-summary-item > div:last-child {
    min-width: 0;
}

.boi-course-summary-label,
.boi-course-summary-value {
    display: block;
}

.boi-course-summary-label {
    color: #819087;
    font-size: 13px;
    line-height: 1.4;
}

.boi-course-summary-value {
    margin-top: 1px;
    color: #244536;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
}

/* =========================================================
   DETAIL LIST
========================================================= */

.boi-course-detail-list {
    border-top: 1px solid rgba(30, 64, 39, .10);
}

.boi-course-detail-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(30, 64, 39, .08);
}

.boi-course-detail-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #74847b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.boi-course-detail-label i {
    flex: 0 0 auto;
    width: 16px;
    margin-top: 3px;
    color: #2b9364;
    text-align: center;
}

.boi-course-detail-value {
    min-width: 0;
    color: #294839;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.boi-course-empty-value {
    color: #8a9890;
    font-weight: 400;
}

/* =========================================================
   TRAINING PERIOD
   เด่นด้วยขนาดข้อความและเส้นนำสายตา ไม่ทำเป็นกล่อง
========================================================= */

.boi-course-detail-row-training {
    position: relative;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    margin: 4px 0;
    padding: 18px 0 18px 14px;
    border-bottom-color: rgba(30, 64, 39, .10);
}

.boi-course-detail-row-training::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #35a86d, #82cf91);
}

.boi-course-detail-row-training .boi-course-detail-label {
    color: #246f4a;
    font-size: 15px;
    font-weight: 600;
}

.boi-course-detail-row-training .boi-course-detail-label i {
    color: #218f5e;
    font-size: 17px;
}

.boi-course-detail-row-training .boi-course-detail-value {
    color: #173f2d;
    font-size: 16px;
    font-weight: 600;
}

.boi-course-training-date-list {
    display: grid;
    gap: 2px;
}

.boi-course-training-date-list > span {
    display: block;
    color: #173f2d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.55;
}

.boi-course-training-date-list small {
    color: #78887f;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* =========================================================
   LOCATION
========================================================= */

.boi-course-detail-row-location .boi-course-detail-label i {
    color: #d65d52;
}

.boi-course-location-list {
    display: grid;
    gap: 5px;
    margin-top: 0;
}

.boi-course-location-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    color: #237451;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
}

.boi-course-location-link > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.boi-course-location-link > i {
    flex: 0 0 auto;
    margin-top: 5px;
    color: #82938a;
    font-size: 9px;
}

a.boi-course-location-link:hover {
    color: #145e3e;
    text-decoration: underline;
}

.boi-course-location-online-text {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #24717c;
    font-size: 15px;
    font-weight: 500;
}

.boi-course-online-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.boi-course-online-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid rgba(57, 150, 163, .16);
    border-radius: 9px;
    color: #23717c;
    background: #edf8f9;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}

.boi-course-online-link:hover {
    color: #175b64;
    border-color: rgba(57, 150, 163, .28);
    background: #e5f5f6;
}

/* =========================================================
   DETAIL LIST RESPONSIVE
========================================================= */

@media (max-width: 575.98px) {
    .boi-course-detail-row {
        grid-template-columns: 98px minmax(0, 1fr);
        gap: 10px;
        padding: 12px 0;
    }

    .boi-course-detail-label {
        gap: 6px;
        font-size: 13px;
    }

    .boi-course-detail-value {
        font-size: 14px;
    }

    .boi-course-detail-row-training {
        grid-template-columns: 1fr;
        gap: 7px;
        margin: 3px 0;
        padding: 15px 0 15px 13px;
    }

    .boi-course-detail-row-training::before {
        top: 13px;
        bottom: 13px;
    }

    .boi-course-detail-row-training .boi-course-detail-label {
        font-size: 14px;
    }

    .boi-course-detail-row-training .boi-course-detail-value {
        font-size: 15px;
    }

    .boi-course-training-date-list > span {
        font-size: 17px;
    }

    .boi-course-location-link,
    .boi-course-location-online-text {
        font-size: 14px;
    }

    .boi-course-online-link {
        width: 100%;
        justify-content: center;
        font-size: 13px;
    }
}

/* =========================================================
   PROGRESS
========================================================= */

.boi-course-progress {
    margin-top: 14px;
}

.boi-course-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #718178;
    font-size: 12px;
}

.boi-course-progress-head strong {
    color: #244536;
    font-size: 13px;
    font-weight: 600;
}

.boi-course-progress-bar {
    height: 6px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eee9;
}

.boi-course-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #29a56e;
    transition: width .9s ease;
}

.boi-course-progress-urgent .boi-course-progress-head strong {
    color: #b3353e;
}

.boi-course-progress-urgent .boi-course-progress-bar span {
    background: #d94b54;
}

/* =========================================================
   CONDITION
========================================================= */

.boi-course-condition {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 13px;
    padding: 0 3px;
    border: 0;
    color: #728178;
    background: transparent;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
}

.boi-course-condition i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: #3a9770;
}

/* =========================================================
   ACTIONS
========================================================= */

.boi-course-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.boi-register-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #174d32;
    border-radius: 999px;
    color: #ffffff;
    background: #174d32;
    box-shadow: 0 8px 18px rgba(23, 77, 50, .16);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    transition:
        background .22s ease,
        border-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.boi-register-open-btn:hover {
    color: #ffffff;
    background: #20613f;
    border-color: #20613f;
    box-shadow: 0 11px 23px rgba(23, 77, 50, .22);
    transform: translateY(-2px);
}

.boi-course-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 34px;
    color: #22805a;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.boi-course-detail-link i {
    font-size: 11px;
    transition: transform .2s ease;
}

.boi-course-detail-link:hover {
    color: #145f3e;
}

.boi-course-detail-link:hover i {
    transform: translateX(4px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {
    .boi-course-image {
        height: 200px;
    }

    .boi-course-summary-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 767.98px) {
    .boi-course-image {
        height: 270px;
    }
}

@media (max-width: 575.98px) {
    .boi-index-course-card {
        border-radius: 21px;
    }

    .boi-course-image {
        height: 230px;
    }

    .boi-course-card-content {
        padding: 17px;
    }

    .boi-course-card-content::before {
        top: -18px;
        height: 21px;
    }

    .boi-course-title {
        font-size: 19px;
    }

    .boi-course-summary-grid {
        gap: 6px;
    }

    .boi-course-summary-item {
        padding: 8px 6px;
    }

    .boi-course-summary-icon {
        width: 29px;
        height: 29px;
    }

    .boi-course-summary-label {
        font-size: 10px;
    }

    .boi-course-summary-value {
        font-size: 12px;
    }
}

/* =========================================================
   EMPTY COURSE
========================================================= */

.boi-course-empty-state {
    max-width: 680px;
    margin: 20px auto 0;
    padding: 48px 25px;
    color: #65766f;
    text-align: center;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(11, 47, 36, .09);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(6, 25, 21, .08);
}

.boi-course-empty-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    color: var(--boi-deep-green);
    background: var(--boi-gradient-main);
    border-radius: 25px;
    font-size: 30px;
}

.boi-course-empty-state h3 {
    margin: 0;
    color: var(--boi-deep-green);
    font-size: 23px;
    font-weight: 700;
}

.boi-course-empty-state p {
    max-width: 480px;
    margin: 10px auto 0;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   RESPONSIVE — LARGE
========================================================= */

@media (max-width: 1199.98px) {
    .boi-hero-floaters {
        display: none;
    }

    .boi-course-title {
        font-size: 20px;
    }
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 991.98px) {
    .boi-index-hero-section {
        min-height: auto;
        padding-top: 64px;
        background-position: center center;
    }

    .boi-hero-info-item {
        min-width: 190px;
    }

    .boi-index-course-section {
        padding-top: 42px;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE LANDSCAPE
========================================================= */

@media (max-width: 767.98px) {
    .boi-index-hero-card {
        padding: 0 12px;
    }

    .boi-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .boi-line-gradient {
        width: 62px;
    }

    .boi-index-course-card {
        border-radius: 24px;
    }

    .boi-course-important-notice {
        padding: 15px 17px;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 575.98px) {
    .boi-index-hero-section {
        padding: 44px 0 54px;
        background-position: 58% center;
    }

    .boi-hero-kicker {
        margin-bottom: 22px;
        padding: 9px 17px;
        font-size: 12px;
    }

    .boi-hero-title {
        font-size: 35px;
        line-height: 1.24;
    }

    .boi-hero-title-highlight {
        margin-top: 9px;
    }

    .boi-hero-desc {
        margin: 24px auto 30px;
        font-size: 14px;
        line-height: 1.82;
    }

    .boi-hero-action {
        width: calc(100% - 28px);
        max-width: 340px;
        min-height: 52px;
        padding: 14px 22px;
        font-size: 14px;
    }

    .boi-hero-info-box {
        gap: 9px;
        margin-top: 40px;
    }

    .boi-hero-info-item {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 0;
        flex-direction: column;
        gap: 7px;
        padding: 14px 8px;
        border-radius: 19px;
        text-align: center;
    }

    .boi-hero-info-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 13px;
    }

    .boi-hero-info-value {
        font-size: 21px;
    }

    .boi-hero-info-label {
        font-size: 9px;
        line-height: 1.35;
    }

    .boi-index-course-section {
        padding: 32px 0 72px;
    }

    .boi-section-title {
        font-size: 28px;
    }

    .boi-course-important-notice {
        gap: 11px;
        padding: 14px;
        border-radius: 18px;
    }

    .boi-course-important-notice-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .boi-course-important-notice strong {
        font-size: 13px;
    }

    .boi-course-important-notice p {
        font-size: 16px;
    }

    .boi-course-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .boi-course-status {
        width: fit-content;
    }

    .boi-course-summary-grid {
        gap: 6px;
    }

    .boi-course-summary-item {
        padding: 9px 5px;
        border-radius: 12px;
    }

    .boi-course-summary-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 5px;
        border-radius: 9px;
        font-size: 12px;
    }

    .boi-course-summary-label {
        font-size: 9px;
    }

    .boi-course-summary-value {
        font-size: 16px;
    }

    .boi-course-schedule {
        padding: 12px;
        border-radius: 17px;
    }

    .boi-course-schedule-header {
        align-items: flex-start;
    }

    .boi-course-schedule-header h4 {
        font-size: 13px;
    }

    .boi-course-period-head {
        flex-direction: column;
    }

    .boi-course-period-date {
        text-align: left;
    }

    .boi-course-location-chip {
        width: 100%;
    }

    .boi-register-open-btn,
    .boi-course-btn {
        min-height: 46px;
        padding: 13px 16px;
        border-radius: 16px;
        font-size: 13px;
    }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================= */

.boi-hero-action:focus-visible,
.boi-register-open-btn:focus-visible,
.boi-course-btn:focus-visible,
.boi-course-location-chip:focus-visible,
.boi-course-online-link:focus-visible {
    outline: 2px solid var(--boi-index-green-soft);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .boi-hero-blob,
    .boi-hero-floater,
    .boi-hero-kicker,
    .boi-hero-title,
    .boi-hero-desc,
    .boi-hero-action,
    .boi-hero-info-box,
    .boi-hero-title-highlight::after {
        animation: none !important;
    }

    .boi-hero-title-highlight::after {
        clip-path: none;
    }

    .boi-index-course-card,
    .boi-course-image img,
    .boi-course-image > a::after,
    .boi-register-open-btn,
    .boi-register-open-btn::after,
    .boi-course-btn,
    .boi-course-btn::after,
    .boi-course-btn i,
    .boi-course-progress-bar span,
    .boi-course-location-chip,
    .boi-course-online-link {
        transition: none !important;
    }

    .boi-course-image img,
    .boi-index-course-card:hover .boi-course-image img {
        transform: translate3d(0, 0, 0) scale(1.001);
    }

    .boi-course-image > a::after {
        display: none;
    }

    .boi-js-ready .boi-index-course-card {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
       LEARNING SECTION
    ========================================================= */

.boi-index-learn-section {
    position: relative;
    z-index: 2;
    padding: 76px 0 58px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(116, 214, 128, .10), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(71, 219, 232, .09), transparent 28%),
        rgba(246, 251, 246, .92);
}

.boi-index-learn-heading {
    margin: 0 0 42px;
    color: var(--boi-index-green, #1e4027);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.boi-index-learn-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.boi-index-learn-item {
    position: relative;
    min-width: 0;
    text-align: center;
}

.boi-index-learn-image {
    position: relative;
    width: 158px;
    height: 158px;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, .90);
    border-radius: 50%;
    background: #eaf4eb;
    box-shadow:
        0 16px 36px rgba(30, 64, 39, .13),
        0 0 0 1px rgba(30, 64, 39, .05);
    transition:
        transform .28s ease,
        box-shadow .28s ease;
}

.boi-index-learn-item:hover .boi-index-learn-image {
    transform: translateY(-6px);
    box-shadow:
        0 22px 44px rgba(30, 64, 39, .18),
        0 0 0 1px rgba(33, 160, 107, .10);
}

.boi-index-learn-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .12),
            rgba(30, 64, 39, .08));
    pointer-events: none;
}

.boi-index-learn-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.boi-index-learn-item:hover .boi-index-learn-image img {
    transform: scale(1.05);
}

.boi-index-learn-item p {
    max-width: 245px;
    margin: 0 auto;
    color: var(--boi-index-green, #1e4027);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.75;
}

/* =========================================================
       APPLICATION GUIDE
    ========================================================= */

.boi-index-guide-section {
    position: relative;
    z-index: 2;
    padding: 28px 0 54px;
    background: rgba(246, 251, 246, .92);
}

.boi-index-guide-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 138px;
    padding: 34px 48px;
    overflow: hidden;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at 94% 0%, rgba(167, 240, 109, .16), transparent 34%),
        linear-gradient(135deg, #173f29 0%, #21593b 100%);
    box-shadow:
        0 20px 46px rgba(23, 63, 41, .18),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.boi-index-guide-text {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
}

.boi-index-guide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 14px;
    min-height: 54px;
    padding: 13px 28px;
    border: 1px solid rgba(255, 255, 255, .70);
    border-radius: 999px;
    color: #173f29;
    background: #ffffff;
    box-shadow:
        0 10px 24px rgba(5, 29, 17, .18),
        inset 0 1px 0 rgba(255, 255, 255, .80);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color .22s ease,
        background .22s ease,
        transform .22s ease,
        box-shadow .22s ease;
}

.boi-index-guide-link:hover {
    color: #12361f;
    background: #effbec;
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px rgba(5, 29, 17, .24),
        inset 0 1px 0 rgba(255, 255, 255, .85);
}

.boi-index-guide-link i {
    font-size: 14px;
    transition: transform .22s ease;
}

.boi-index-guide-link:hover i {
    transform: translateX(4px);
}

/* =========================================================
       PARTNERS
    ========================================================= */

.boi-index-partner-section {
    position: relative;
    z-index: 2;
    padding: 52px 0 82px;
    background:
        linear-gradient(180deg,
            rgba(246, 251, 246, .92),
            rgba(238, 247, 239, .96));
}

.boi-index-partner-heading {
    margin: 0 0 34px;
    color: var(--boi-index-green, #1e4027);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.boi-index-partner-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(36px, 7vw, 88px);
}

.boi-index-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 92px;
    padding: 12px 18px;
    border-radius: 20px;
    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.boi-index-partner-logo:hover {
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 12px 28px rgba(30, 64, 39, .08);
    transform: translateY(-4px);
}

.boi-index-partner-logo img {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 76px;
    object-fit: contain;
}

.boi-index-partner-logo-cmu img {
    max-width: 190px;
}

.boi-index-partner-logo-lifelong img {
    max-width: 230px;
}

/* =========================================================
       RESPONSIVE TABLET
    ========================================================= */

@media (max-width: 991.98px) {
    .boi-index-learn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 24px;
    }

    .boi-index-guide-card {
        padding: 30px 34px;
    }

    .boi-index-partner-row {
        gap: 26px 42px;
    }
}

/* =========================================================
       RESPONSIVE MOBILE
    ========================================================= */

@media (max-width: 575.98px) {
    .boi-index-learn-section {
        padding: 54px 0 40px;
    }

    .boi-index-learn-heading {
        margin-bottom: 30px;
        font-size: 28px;
    }

    .boi-index-learn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
    }

    .boi-index-learn-image {
        width: 120px;
        height: 120px;
        margin-bottom: 13px;
        border-width: 4px;
    }

    .boi-index-learn-item p {
        font-size: 14px;
        line-height: 1.65;
    }

    .boi-index-guide-section {
        padding: 20px 0 40px;
    }

    .boi-index-guide-card {
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
        gap: 20px;
        padding: 26px 22px;
        border-radius: 24px;
        text-align: center;
    }

    .boi-index-guide-text {
        font-size: 16px;
        line-height: 1.7;
    }

    .boi-index-guide-link {
        width: 100%;
        min-height: 50px;
        font-size: 15px;
    }

    .boi-index-partner-section {
        padding: 42px 0 62px;
    }

    .boi-index-partner-heading {
        margin-bottom: 26px;
        font-size: 28px;
    }

    .boi-index-partner-row {
        flex-direction: column;
        gap: 16px;
    }

    .boi-index-partner-logo {
        width: 100%;
        min-height: 84px;
    }

    .boi-index-partner-logo img,
    .boi-index-partner-logo-cmu img,
    .boi-index-partner-logo-lifelong img {
        max-width: 200px;
        max-height: 66px;
    }
}

@media (max-width: 390px) {
    .boi-index-learn-grid {
        grid-template-columns: 1fr;
    }

    .boi-index-learn-image {
        width: 150px;
        height: 150px;
    }

    .boi-index-learn-item p {
        max-width: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .boi-index-learn-image,
    .boi-index-learn-image img,
    .boi-index-guide-link,
    .boi-index-guide-link i,
    .boi-index-partner-logo {
        transition: none;
    }
}