﻿/* =========================================
   LICH KHAI GIANG - PUBLIC
========================================= */

.opening-page {
    color: #253d32;
    background: #fff;
    font-family: 'Be Vietnam Pro', sans-serif;
}

    .opening-page * {
        box-sizing: border-box;
    }

    .opening-page .container {
        width: min(1180px, calc(100% - 40px));
        margin: 0 auto;
    }


/* HERO */

.opening-hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient( 90deg, rgba(5, 47, 35, .96), rgba(5, 47, 35, .82) 55%, rgba(5, 47, 35, .25) ), url('../images/about/cover.jpeg') center / cover no-repeat;
}

.opening-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 0deg, rgba(5, 47, 35, .25), transparent );
}

.opening-hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 65px 0;
}

.opening-eyebrow {
    margin-bottom: 18px;
    color: #d8b66b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.opening-hero h1 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-family: 'Noto Serif', serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.25;
}

    .opening-hero h1 span {
        display: block;
        margin-top: 8px;
        color: #e4c47c;
        font-size: .58em;
        font-weight: 500;
    }

.opening-hero p {
    max-width: 570px;
    margin: 22px 0 27px;
    color: rgba(255,255,255,.85);
    font-size: 14px;
    line-height: 1.9;
}

.opening-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 13px 20px;
    color: #173e30;
    background: #e5c47b;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s;
}

    .opening-hero-button:hover {
        color: #173e30;
        background: #f0d99e;
        transform: translateY(-2px);
    }


/* INTRO */

.opening-intro {
    padding-top: 70px;
    padding-bottom: 35px;
}

.opening-section-heading {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

    .opening-section-heading > span,
    .opening-small-label {
        color: #a77c2d;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 2.5px;
    }

    .opening-section-heading h2,
    .opening-results-heading h2 {
        margin: 12px 0;
        color: #103d2e;
        font-family: 'Noto Serif', serif;
        font-size: clamp(24px, 3vw, 34px);
        font-weight: 700;
    }

    .opening-section-heading p {
        margin: 0;
        color: #78847c;
        font-size: 13px;
        line-height: 1.9;
    }


/* FILTER */

.opening-filter-section {
    padding-top: 20px;
    padding-bottom: 80px;
}

.opening-filter {
    padding: 24px;
    background: #faf9f5;
    border: 1px solid #e9e5d9;
    border-radius: 10px;
}

.filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .filter-heading h3 {
        margin: 0 0 5px;
        color: #183e31;
        font-size: 16px;
    }

    .filter-heading p {
        margin: 0;
        color: #849087;
        font-size: 12px;
    }

.filter-icon {
    color: #b28a3f;
    font-size: 29px;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 14px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    color: #526157;
    font-size: 12px;
    font-weight: 600;
}

.opening-select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    color: #294237;
    background: #fff;
    border: 1px solid #dedfd6;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

    .opening-select:focus {
        border-color: #a77c2d;
        box-shadow: 0 0 0 3px rgba(167,124,45,.10);
    }

.opening-reset {
    height: 44px;
    padding: 0 17px;
    color: #7b602d;
    background: transparent;
    border: 1px solid #cbb98f;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

    .opening-reset:hover {
        color: #fff;
        background: #94722e;
    }


/* RESULTS */

.opening-results-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 48px 0 23px;
}

    .opening-results-heading h2 {
        margin-bottom: 0;
        font-size: 25px;
    }

.opening-result-count {
    color: #173e30;
    font-size: 24px;
    font-weight: 700;
}

    .opening-result-count span {
        color: #8a948d;
        font-size: 11px;
        font-weight: 400;
    }


/* CLASS GRID */

.opening-class-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.opening-class-card {
    min-width: 0;
    padding: 23px;
    background: #fff;
    border: 1px solid #e8e9e1;
    border-radius: 9px;
    box-shadow: 0 5px 20px rgba(25, 53, 39, .045);
    transition: .25s;
}

    .opening-class-card:hover {
        border-color: #d3bd87;
        box-shadow: 0 10px 30px rgba(25, 53, 39, .09);
        transform: translateY(-3px);
    }

.class-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.class-card-category {
    color: #9a762f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.class-status-recruiting,
.class-status-full {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.class-status-recruiting {
    color: #287147;
    background: #edf7ef;
}

.class-status-full {
    color: #966e21;
    background: #fbf3e1;
}

.class-card-title {
    padding: 19px 0;
    border-bottom: 1px solid #eff0eb;
}

.class-code {
    display: inline-block;
    margin-bottom: 8px;
    color: #a17a30;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.class-card-title h3 {
    margin: 0;
    color: #123d2e;
    font-family: 'Noto Serif', serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.45;
}

.class-card-title p {
    margin: 7px 0 0;
    color: #7c8981;
    font-size: 12px;
}

.class-card-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    padding: 21px 0;
}

.class-info-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

.info-icon {
    display: flex;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #a47b32;
    background: #f8f4e9;
    border-radius: 50%;
    font-size: 16px;
}

.class-info-item small,
.class-card-capacity small {
    display: block;
    margin-bottom: 5px;
    color: #8b958d;
    font-size: 10px;
}

.class-info-item strong {
    display: block;
    color: #344a3e;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.class-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 17px;
    border-top: 1px solid #eff0eb;
}

.class-card-capacity strong {
    color: #4b5c51;
    font-size: 11px;
}

.class-register-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 11px 15px;
    color: #fff;
    background: #0b4938;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

    .class-register-button:hover {
        background: #a47b32;
    }


/* EMPTY */

.opening-empty {
    padding: 60px 20px;
    text-align: center;
    background: #faf9f5;
    border: 1px dashed #ded8c7;
    border-radius: 9px;
}

.empty-icon {
    color: #b18a43;
    font-size: 35px;
}

.opening-empty h3 {
    margin: 12px 0;
    color: #173e30;
    font-family: 'Noto Serif', serif;
    font-size: 21px;
}

.opening-empty p {
    max-width: 500px;
    margin: 0 auto;
    color: #7c8981;
    font-size: 12px;
    line-height: 1.8;
}


/* CONSULTATION */

.opening-consult-section {
    padding: 75px 0;
    background: #f5f3eb;
    scroll-margin-top: 25px;
}

.consult-layout {
    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: center;
    gap: 65px;
}

.consult-content h2 {
    margin: 14px 0 18px;
    color: #103d2e;
    font-family: 'Noto Serif', serif;
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.4;
}

    .consult-content h2 span {
        display: block;
        color: #a77c2d;
    }

.consult-content > p {
    max-width: 500px;
    margin-bottom: 25px;
    color: #758078;
    font-size: 13px;
    line-height: 1.9;
}

.consult-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 13px 0;
    color: #45594d;
    font-size: 12px;
}

    .consult-benefit span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 23px;
        height: 23px;
        color: #fff;
        background: #0b4938;
        border-radius: 50%;
        font-size: 11px;
    }

.consult-form {
    padding: 30px;
    background: #fff;
    border: 1px solid #e7e6dd;
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(25, 53, 39, .06);
}

    .consult-form h3 {
        margin: 0 0 8px;
        color: #103d2e;
        font-family: 'Noto Serif', serif;
        font-size: 23px;
    }

.consult-selected-class {
    margin: 0 0 23px;
    padding: 11px 12px;
    color: #7b6a47;
    background: #faf7ed;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.7;
}

    .consult-selected-class strong {
        display: block;
        margin-top: 3px;
        color: #174a37;
    }

.consult-field {
    margin-bottom: 17px;
}

    .consult-field label {
        display: block;
        margin-bottom: 8px;
        color: #43544a;
        font-size: 12px;
        font-weight: 600;
    }

        .consult-field label span {
            color: #c34a40;
        }

.consult-input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    color: #30483a;
    background: #fff;
    border: 1px solid #dfe4dd;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
    font-size: 12px;
    box-sizing: border-box;
}

    .consult-input:focus {
        border-color: #a77c2d;
        box-shadow: 0 0 0 3px rgba(167,124,45,.09);
    }

    .consult-input::placeholder {
        color: #a5aea7;
    }

.consult-textarea {
    min-height: 90px;
    resize: vertical;
}

.consult-submit {
    display: block;
    width: 100%;
    min-height: 47px;
    margin-top: 7px;
    color: #fff;
    background: #0b4938;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: .2s;
}

    .consult-submit:hover {
        background: #a47b32;
    }

.consult-message {
    display: block;
    margin-top: 13px;
    font-size: 12px;
    line-height: 1.7;
}

    .consult-message:empty {
        display: none;
    }

    .consult-message.success {
        color: #247347;
    }

    .consult-message.error {
        color: #b73e36;
    }

.consult-privacy {
    display: block;
    margin-top: 15px;
    color: #9aa29c;
    font-size: 10px;
    text-align: center;
    line-height: 1.7;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .filter-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .opening-class-grid {
        grid-template-columns: 1fr;
    }

    .consult-layout {
        grid-template-columns: 1fr 400px;
        gap: 30px;
    }
}

@media (max-width: 650px) {

    .opening-page .container,
    .opening-hero-content {
        width: calc(100% - 30px);
    }

    .opening-hero {
        min-height: 350px;
        background-position: 60% center;
    }

    .opening-hero-content {
        padding: 55px 0;
    }

    .opening-hero h1 {
        font-size: 34px;
    }

    .opening-hero p {
        font-size: 12px;
    }

    .opening-intro {
        padding-top: 48px;
        padding-bottom: 25px;
    }

    .opening-filter-section {
        padding-bottom: 50px;
    }

    .opening-filter {
        padding: 18px;
    }

    .filter-controls {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .opening-reset {
        width: 100%;
    }

    .opening-results-heading {
        align-items: center;
        margin-top: 35px;
    }

        .opening-results-heading h2 {
            font-size: 21px;
        }

    .opening-result-count {
        font-size: 19px;
    }

    .opening-class-card {
        padding: 17px;
    }

    .class-card-title h3 {
        font-size: 19px;
    }

    .class-card-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .class-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .class-register-button {
        width: 100%;
        justify-content: center;
    }

    .opening-consult-section {
        padding: 50px 0;
    }

    .consult-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .consult-content h2 {
        font-size: 29px;
    }

    .consult-form {
        padding: 22px 18px;
    }
}
/* =========================================
   HIGHLIGHT CLASS INFORMATION
========================================= */

.class-start-date {
    margin: 18px 0 4px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8f3e6, #fffaf0);
    border: 1px solid #e5d2a6;
    border-left: 4px solid #b58a3b;
    border-radius: 7px;
}

    .class-start-date span {
        display: block;
        color: #ff0000;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
    }

    .class-start-date strong {
        display: block;
        margin: 5px 0;
        color: #ff0447;
        font-family: 'Noto Serif', serif;
        font-size: 27px;
        font-weight: 700;
    }

    .class-start-date small {
        color: #8a806c;
        font-size: 10px;
    }


/* SELECT CLASS */

.class-select-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 10px 15px;
    color: #174936;
    background: #fff;
    border: 1px solid #b8c8bb;
    border-radius: 5px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

    .class-select-button:hover {
        color: #fff;
        background: #174936;
        border-color: #174936;
    }

    .class-select-button.selected {
        color: #fff;
        background: #0b4938;
        border-color: #0b4938;
    }

.select-icon {
    font-size: 16px;
    font-weight: 700;
}


/* SELECTED CLASS CARD */

.opening-class-card:has(.class-select-button.selected) {
    border: 2px solid #b58a3b;
    background: #fffdf8;
    box-shadow: 0 8px 25px rgba(181, 138, 59, .13);
}


/* SELECTED CLASSES BAR */

.selected-classes-bar {
    position: sticky;
    bottom: 15px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding: 17px 22px;
    color: #fff;
    background: #063d2e;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.selected-classes-info strong {
    display: block;
    font-size: 15px;
}

.selected-classes-info small {
    display: block;
    margin-top: 5px;
    color: #d3e1d9;
    font-size: 11px;
}

.selected-classes-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-clear-button {
    padding: 10px 12px;
    color: #e8eee9;
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 5px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.selected-submit-button {
    padding: 12px 17px;
    color: #173e30;
    background: #e5c47b;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

    .selected-submit-button:hover {
        background: #f0d99e;
    }


/* SELECTED CLASS NAMES IN FORM */

#selectedClassNames {
    margin-top: 9px;
}

.selected-class-item {
    margin-top: 6px;
    padding: 8px 10px;
    color: #174936;
    background: #f5f3e9;
    border-left: 3px solid #b58a3b;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.6;
}


/* MOBILE */

@media (max-width: 650px) {

    .class-start-date {
        padding: 13px 15px;
    }

        .class-start-date strong {
            font-size: 24px;
        }

    .class-card-footer {
        align-items: stretch;
    }

    .class-select-button {
        width: 100%;
    }

    .selected-classes-bar {
        bottom: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 13px;
        padding: 15px;
    }

    .selected-classes-actions {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
    }

    .selected-clear-button,
    .selected-submit-button {
        min-height: 42px;
    }
}