
/* =========================================
   NHAT MINH EDU - WEBSITE STYLE
   File: style.css
========================================= */

/* 1. CAU HINH CHUNG */
:root {
    --green: #126344;
    --green-dark: #0b4933;
    --green-light: #eaf5ef;
    --gold: #d9ad50;
    --gold-light: #f8edcf;
    --white: #ffffff;
    --text: #26352e;
    --muted: #68766f;
    --background: #f7faf8;
    --border: #e3ebe5;
    --shadow: 0 8px 28px rgba(16, 70, 48, 0.09);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.section {
    padding: 85px 0;
}

/* 2. HEADER */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 49px;
    height: 49px;
    border-radius: 12px;
    background: var(--green);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 900;
    border: 2px solid var(--gold);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-text strong {
    font-size: 21px;
    color: var(--green);
    letter-spacing: 1px;
}

.logo-text small {
    font-size: 9px;
    letter-spacing: 1.3px;
    color: var(--muted);
}

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

.nav a {
    font-size: 13px;
    font-weight: 700;
    color: #35443c;
    transition: 0.25s;
}

.nav a:hover {
    color: var(--gold);
}

.nav .nav-contact {
    background: var(--green);
    color: var(--white);
    padding: 11px 19px;
    border-radius: 6px;
}

.nav .nav-contact:hover {
    background: var(--green-dark);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 13px;
    font-size: 22px;
}

/* 3. BUTTON */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 23px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.25s;
    text-align: center;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--green);
    border-color: var(--green);
    background: transparent;
}

.btn-outline:hover {
    background: var(--green);
    color: white;
}

.btn-light {
    background: var(--gold);
    color: var(--green-dark);
}

.btn-light:hover {
    background: #e9c36e;
    transform: translateY(-2px);
}

/* 4. BANNER TRANG CHU */
.hero {
    background:
        radial-gradient(circle at 85% 30%, rgba(217, 173, 80, 0.18), transparent 28%),
        linear-gradient(120deg, #0b4933, #126344 65%, #1c7652);
    color: white;
    overflow: hidden;
}

.hero-content {
    min-height: 520px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 55px;
    padding-top: 45px;
    padding-bottom: 45px;
}

.hero-label {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 13px;
}

.hero h1 {
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1.2;
    margin: 20px 0;
    font-weight: 900;
}

.hero h1 span {
    color: var(--gold);
}

.hero-text p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    max-width: 570px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-box {
    width: 100%;
    max-width: 390px;
    min-height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-symbol {
    width: 130px;
    height: 130px;
    border: 4px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-image-box h3 {
    font-size: 25px;
    letter-spacing: 2px;
}

.hero-image-box p {
    color: var(--gold);
    margin-top: 8px;
}

/* 5. TIEU DE CAC SECTION */
.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 45px;
}

.section-heading span {
    display: inline-block;
    color: var(--gold);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-heading h2 {
    color: var(--green-dark);
    font-size: clamp(26px, 3vw, 35px);
    line-height: 1.3;
    margin-bottom: 14px;
}

.section-heading p {
    color: var(--muted);
    font-size: 15px;
}

/* 6. GIOI THIEU */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: var(--green);
    font-size: 25px;
    margin-bottom: 18px;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 17px;
}

.about-text .btn {
    margin-top: 12px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.info-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    transition: 0.25s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.info-card strong {
    color: var(--gold);
    font-size: 30px;
}

.info-card h4 {
    color: var(--green);
    font-size: 17px;
    margin: 8px 0;
}

.info-card p {
    color: var(--muted);
    font-size: 13px;
}

/* 7. TUYEN SINH */
.admissions {
    background: var(--background);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.program-card,
.course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 27px 23px;
    transition: 0.25s;
}

.program-card:hover,
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.card-icon {
    font-size: 35px;
    margin-bottom: 18px;
}

.card-tag {
    display: inline-block;
    color: var(--green);
    background: var(--green-light);
    border-radius: 4px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.program-card h3,
.course-card h3 {
    font-size: 19px;
    color: var(--green-dark);
    margin: 14px 0 10px;
}

.program-card p,
.course-card p {
    color: var(--muted);
    font-size: 13px;
    min-height: 78px;
    margin-bottom: 18px;
}

.program-card a,
.course-card a {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.program-card a:hover,
.course-card a:hover {
    color: var(--gold);
}

.section-action {
    text-align: center;
    margin-top: 35px;
}

/* 8. KHOA HOC */
.courses {
    background: var(--white);
}

.course-icon {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

/* 9. TIN TUC */
.news {
    background: var(--background);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.25s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.news-placeholder {
    height: 175px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--green-dark), #34835e);
    color: var(--gold);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 2px;
}

.news-content {
    padding: 23px;
}

.news-content span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.news-content h3 {
    color: var(--green-dark);
    font-size: 18px;
    line-height: 1.45;
    margin: 10px 0;
}

.news-content p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 15px;
}

.news-content a {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

/* 10. HOC TRUC TUYEN */
.online-learning {
    background: white;
}

.online-box {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 55px;
    align-items: center;
    padding: 55px;
    border-radius: 18px;
    background: linear-gradient(120deg, #0b4933, #176c49);
    color: white;
}

.online-text > span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.online-text h2 {
    font-size: 34px;
    line-height: 1.3;
    margin: 15px 0;
}

.online-text p {
    color: rgba(255, 255, 255, 0.83);
    margin-bottom: 25px;
}

.online-panel {
    background: white;
    color: var(--text);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.online-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--green);
    padding-bottom: 17px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.online-panel-header span {
    background: var(--gold-light);
    color: #946b1d;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
}

.learning-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.learning-item > span {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--green);
    background: var(--green-light);
    font-size: 18px;
}

.learning-item div {
    display: flex;
    flex-direction: column;
}

.learning-item strong {
    color: var(--green-dark);
    font-size: 13px;
}

.learning-item small {
    color: var(--muted);
    font-size: 11px;
}

.demo-note {
    color: #a17a2b;
    background: var(--gold-light);
    padding: 9px;
    border-radius: 5px;
    text-align: center;
    font-size: 11px;
    margin-top: 17px;
}

/* 11. TRA CUU HO SO */
.lookup {
    background: var(--background);
}

.lookup-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.lookup-box .section-heading {
    margin-bottom: 25px;
}

.lookup-form {
    display: flex;
    gap: 12px;
}

.lookup-form input {
    flex: 1;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
}

.lookup-form input:focus {
    border-color: var(--green);
}

.form-message {
    color: var(--muted);
    font-size: 12px;
    margin-top: 14px;
}

/* 12. CONG TAC VIEN */
.collaborators {
    background: white;
}

.collaborator-box {
    background: var(--gold-light);
    border-left: 5px solid var(--gold);
    border-radius: 10px;
    padding: 38px 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.collaborator-box span {
    color: #92702c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.collaborator-box h2 {
    color: var(--green-dark);
    font-size: 26px;
    margin: 8px 0;
}

.collaborator-box p {
    color: var(--muted);
    font-size: 14px;
    max-width: 650px;
}

/* 13. DANG KY TU VAN */
.registration {
    background: var(--background);
}

.registration-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 55px;
    align-items: start;
}

.registration-info {
    padding-top: 25px;
}

.registration-info > span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.registration-info h2 {
    color: var(--green-dark);
    font-size: 34px;
    line-height: 1.3;
    margin: 15px 0;
}

.registration-info > p {
    color: var(--muted);
    margin-bottom: 25px;
}

.contact-line {
    margin: 14px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-line strong {
    color: var(--green);
}

.contact-line a {
    color: var(--green);
    font-weight: 800;
}

.registration-form {
    background: white;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.registration-form h3 {
    color: var(--green-dark);
    font-size: 23px;
    margin-bottom: 20px;
}

.registration-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #46574c;
    margin: 12px 0 6px;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 13px;
    outline: none;
    background: white;
    color: var(--text);
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
    border-color: var(--green);
}

.registration-form textarea {
    resize: vertical;
}

.registration-form button {
    width: 100%;
    margin-top: 18px;
}

/* 14. LIEN HE */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 15px;
    background: var(--background);
}

.contact-card > span {
    font-size: 30px;
}

.contact-card h3 {
    color: var(--green);
    font-size: 17px;
    margin: 10px 0;
}

.contact-card p,
.contact-card a {
    color: var(--muted);
    font-size: 14px;
}

.contact-card a {
    color: var(--green);
    font-weight: 800;
}

/* 15. FOOTER */
.footer {
    background: #093b2a;
    color: white;
    padding-top: 55px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 40px;
}

.footer-logo {
    color: var(--gold);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.footer h3 {
    color: var(--gold);
    font-size: 15px;
    margin-bottom: 17px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a,
.footer-contact p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

/* 16. TABLET */
@media (max-width: 1000px) {
    .nav {
        gap: 12px;
    }

    .nav a {
        font-size: 11px;
    }

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .online-box {
        padding: 35px;
        gap: 30px;
    }
}

/* 17. DIEN THOAI */
@media (max-width: 760px) {
    .section {
        padding: 60px 0;
    }

    .header-container {
        min-height: 70px;
    }

    .logo-icon {
        width: 43px;
        height: 43px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 15px 4%;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 12px 8px;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
    }

    .nav .nav-contact {
        margin-top: 10px;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-image-box {
        min-height: 260px;
    }

    .about-content,
    .registration-content,
    .online-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .online-box {
        padding: 30px 22px;
    }

    .online-text h2 {
        font-size: 27px;
    }

    .collaborator-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 25px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .lookup-box {
        padding: 28px 18px;
    }

    .lookup-form {
        flex-direction: column;
    }

    .lookup-form button {
        width: 100%;
    }
}

/* 18. DIEN THOAI NHO */
@media (max-width: 480px) {
    .container {
        width: 91%;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .about-cards,
    .card-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .registration-form {
        padding: 22px 17px;
    }

    .registration-info h2 {
        font-size: 28px;
    }

    .collaborator-box h2 {
        font-size: 23px;
    }
}
