:root {
    --bg: #eef4ef;
    --surface: #ffffff;
    --ink: #10211a;
    --muted: #4e6358;
    --brand: #0e9f4b;
    --brand-dark: #087338;
    --accent: #ff8e0a;
    --line: #d5e3d9;
    --shadow: 0 18px 40px rgba(16, 33, 26, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Be Vietnam Pro", sans-serif;
    color: var(--ink);
    background: radial-gradient( circle at 10% 10%, #f9fff8 0, #eef4ef 45%, #e6efe9 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

.site-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(238, 244, 239, 0.85);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-wrap,
.brand-icon {
    display: inline-flex;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d7e6dc;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand strong {
    display: block;
    font-size: 15px;
}

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

.site-nav {
    display: flex;
    gap: 8px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #214235;
    font-weight: 600;
}

.site-nav a.active,
.site-nav a:hover {
    background: #dff4e6;
    color: #074c27;
}

.hero-section {
    padding: 56px 0 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
    align-items: stretch;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 12px;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-family: "Chakra Petch", sans-serif;
}

.hero-text {
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    border: 0;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #4bc977);
    color: #fff;
    box-shadow: 0 12px 24px rgba(14, 159, 75, 0.24);
}

.btn-secondary {
    background: #f6fbf8;
    color: #1a3b2e;
    border: 1px solid #d5e4da;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.hero-highlight {
    background: linear-gradient(165deg, #0f6f3a, #15964f);
    color: #fff;
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-highlight::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    right: -70px;
    top: -80px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffdf73;
    box-shadow: 0 0 0 0 rgba(255, 223, 115, 0.8);
    animation: pulse 1.8s infinite;
}

.hero-highlight h3 {
    margin: 14px 0 6px;
}

.hero-highlight p,
.hero-highlight li {
    opacity: 0.95;
    line-height: 1.6;
}

.hero-highlight ul {
    padding-left: 20px;
    margin: 14px 0 0;
}

.course-section,
.admin-section,
.form-layout,
.success-card {
    animation: fadeUp 0.6s ease both;
}

.course-section {
    padding: 14px 0 58px;
}

.section-head h2,
.section-head h1 {
    margin: 0;
    font-size: 28px;
    font-family: "Chakra Petch", sans-serif;
}

.section-head p {
    margin-top: 8px;
    color: var(--muted);
}

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

.location-group {
    margin-top: 18px;
}

.tuition-box {
    margin-top: 16px;
    background: #eef9f1;
    border: 1px solid #c7e7d1;
    border-radius: 14px;
    padding: 14px 16px;
}

.tuition-box h3 {
    margin: 0;
    font-size: 20px;
    color: #0f6f3a;
    font-family: "Chakra Petch", sans-serif;
}

.tuition-box ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.tuition-box li {
    margin: 6px 0;
    color: #1f3f31;
    font-weight: 500;
}

.location-title {
    margin: 0;
    font-family: "Chakra Petch", sans-serif;
    font-size: 24px;
    color: #0f6f3a;
}

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

.course-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 8px 22px rgba(25, 45, 33, 0.06);
}

.course-level {
    display: inline-block;
    background: #f9f0e3;
    color: #9a5000;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.course-card h3 {
    margin: 12px 0 8px;
}

.course-card p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    color: #1d3b2f;
    font-size: 14px;
}

.course-foot {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.course-foot a {
    color: var(--brand-dark);
    font-weight: 700;
}

.form-page {
    padding: 46px 0 56px;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
}

.form-intro p {
    color: var(--muted);
    line-height: 1.7;
}

.tips-box {
    margin-top: 16px;
    background: #e6f6ea;
    border: 1px solid #c3e4cf;
    border-radius: var(--radius);
    padding: 16px;
}

.tips-box h3 {
    margin: 0 0 8px;
}

.tips-box ul {
    margin: 0;
    padding-left: 18px;
}

.tips-box li {
    margin: 6px 0;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border: 1px solid #c9dad0;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #67b889;
    box-shadow: 0 0 0 3px rgba(14, 159, 75, 0.12);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.full {
    width: 100%;
    margin-top: 4px;
}

.alert-error {
    margin-bottom: 14px;
    background: #fce7e9;
    color: #8d1820;
    border: 1px solid #efc5c9;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
}

.success-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.success-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.success-badge {
    display: inline-block;
    background: #dff4e6;
    color: #0f6f3a;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.success-meta {
    margin-top: 14px;
    padding: 12px;
    border: 1px dashed #b7d8c2;
    border-radius: 12px;
    background: #f6fcf8;
}

.admin-page {
    padding: 44px 0 60px;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid #e8f0eb;
    text-align: left;
    font-size: 14px;
}

thead th {
    background: #f2f8f4;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #355646;
}

.empty-state {
    margin-top: 14px;
    background: #fff5dc;
    border: 1px solid #f0dfb1;
    border-radius: 12px;
    padding: 12px;
}

.site-footer {
    background: linear-gradient(165deg, #11271d, #1f4634);
    color: #effaf2;
    padding: 34px 0;
}

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

.footer-grid h3 {
    margin-top: 0;
    font-size: 16px;
}

.footer-grid p {
    margin: 8px 0;
    opacity: 0.92;
    line-height: 1.6;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 223, 115, 0.8);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 223, 115, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 223, 115, 0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .form-layout,
    .footer-grid,
    .course-grid {
        grid-template-columns: 1fr;
    }
    .site-nav {
        overflow-x: auto;
        max-width: 52vw;
        padding-bottom: 4px;
    }
    /* Tablet adjustments */
    h1 {
        font-size: clamp(26px, 5vw, 40px);
    }
    .section-head h2 {
        font-size: clamp(24px, 4.5vw, 36px);
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .site-shell {
        width: min(1120px, calc(100% - 24px));
    }
    .page-section {
        padding: 48px 0;
    }
    /* Navigation tablet */
    .site-nav a {
        padding: 8px 14px;
        font-size: 14px;
    }
    .hero-section {
        padding: 40px 0 20px;
    }
    .hero-actions {
        gap: 10px;
        margin-top: 18px;
    }
    .btn-primary,
    .btn-secondary {
        padding: 11px 18px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(1120px, calc(100% - 16px));
    }
    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
        gap: 10px;
    }
    .site-header {
        padding: 8px 0;
    }
    .site-nav {
        max-width: 100%;
        width: 100%;
        gap: 4px;
        flex-wrap: wrap;
    }
    .site-nav a {
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 6px;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    /* Logo adjustment */
    .brand-logo-wrap {
        width: 70px;
        height: 70px;
    }
    .brand strong {
        font-size: 13px;
    }
    .brand small {
        font-size: 11px;
    }
    /* Hero section */
    .hero-section {
        padding: 28px 0 14px;
    }
    h1 {
        font-size: clamp(22px, 6vw, 30px);
        line-height: 1.25;
    }
    .eyebrow {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .hero-text {
        font-size: 14px;
        line-height: 1.6;
        margin-top: 10px;
    }
    .hero-actions {
        gap: 6px;
        margin-top: 14px;
        flex-wrap: wrap;
    }
    .btn-primary,
    .btn-secondary {
        padding: 9px 14px;
        font-size: 13px;
        border-radius: 8px;
        flex: 1;
        min-width: 120px;
    }
    /* Section headings */
    .section-head {
        margin-bottom: 14px;
    }
    .section-head h2 {
        font-size: clamp(20px, 5vw, 28px);
        margin-bottom: 6px;
    }
    .section-head p {
        font-size: 13px;
        line-height: 1.5;
    }
    /* Contact cards */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 16px;
    }
    .contact-card {
        padding: 14px;
        min-height: auto;
        border-radius: 14px;
    }
    .contact-card h4 {
        min-height: auto;
        font-size: 13px;
        margin-bottom: 6px;
    }
    .contact-card p {
        font-size: 12px;
        line-height: 1.4;
    }
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        margin-top: 14px;
    }
    .stat-card {
        padding: 14px 10px;
        border-radius: 14px;
    }
    .stat-card h3 {
        font-size: 20px;
        margin-bottom: 3px;
    }
    .stat-card p {
        font-size: 12px;
        line-height: 1.4;
    }
    /* Info cards */
    .info-grid {
        gap: 12px;
        margin-top: 16px;
    }
    .info-card {
        padding: 14px;
        border-radius: 14px;
    }
    .info-card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .info-card p {
        font-size: 12px;
        line-height: 1.5;
    }
    /* CTA panel */
    .cta-panel {
        padding: 36px 0;
    }
    .cta-panel h2 {
        font-size: clamp(18px, 5vw, 26px);
        margin-bottom: 10px;
    }
    .cta-panel p {
        font-size: 13px;
        margin-bottom: 16px;
    }
    /* Form */
    .form-layout {
        gap: 14px;
    }
    input,
    select,
    textarea {
        font-size: 16px;
        padding: 10px 12px;
        border-radius: 8px;
    }
    label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    /* Page section */
    .page-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .site-shell {
        width: min(1120px, calc(100% - 12px));
    }
    h1 {
        font-size: clamp(20px, 6vw, 26px);
    }
    .section-head h2 {
        font-size: clamp(18px, 4.5vw, 24px);
    }
    .hero-section {
        padding: 20px 0 10px;
    }
    .hero-text {
        font-size: 13px;
    }
    .btn-primary,
    .btn-secondary {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 100px;
    }
    .contact-grid {
        gap: 8px;
    }
    .contact-card {
        padding: 12px;
    }
    .contact-card h4 {
        font-size: 12px;
    }
    .contact-card p {
        font-size: 11px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .stat-card h3 {
        font-size: 18px;
    }
    .cta-panel {
        padding: 28px 0;
    }
}