/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #222;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Ảnh responsive nhưng không ép kích thước cứng */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER ===== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

/* Header sử dụng Grid 3 cột với cột trái và phải cố định */
.header-container {
    display: grid;
    grid-template-columns: 150px 1fr 150px;  /* cố định chiều rộng 2 bên */
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Cột trái: cố định kích thước, logo nằm bên trong */
.header-left {
    width: 150px;           /* cố định, không thay đổi dù logo to */
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Logo – bạn có thể tăng/giảm kích thước ảnh tùy ý, không ảnh hưởng đến cột */
.logo img {
    width: 80px;            /* ← chỉnh kích thước mong muốn */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;         /* không bị co lại */
}

.brand-name {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #c89b63;
    white-space: nowrap;
}

/* Cột giữa: menu căn giữa */
.desktop-nav {
    justify-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.desktop-nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    list-style: none;
    white-space: nowrap;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #c89b63;
}

.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #c89b63;
    border-radius: 2px;
}

/* Cột phải: cố định để cân bằng */
.header-right {
    width: 150px;          /* giống cột trái, giúp menu nằm chính giữa */
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: #222;
    border-radius: 3px;
    transition: 0.2s;
}

/* Mobile Menu (giữ nguyên) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 200;
}
.menu-overlay.active {
    visibility: visible;
    opacity: 1;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 300;
    transition: right 0.3s ease-out;
    padding: 2rem 1.5rem;
}
.mobile-menu.active {
    right: 0;
}
.close-menu {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 2rem;
    color: #333;
    width: 100%;
    text-align: right;
}
.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mobile-menu a {
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.2s;
}
.mobile-menu a:hover {
    color: #c89b63;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #c89b63;
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn-primary:hover {
    background: #b5874e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 155, 99, 0.25);
}
.btn-outline {
    border: 1.5px solid #c89b63;
    color: #c89b63;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s;
    background: transparent;
}
.btn-outline:hover {
    background: #c89b63;
    color: white;
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero-image {
    position: relative;
    height: 80vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
}
.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}
@media (max-width: 768px) {
    .hero-title {
        white-space: normal;
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: #f7f3ef;
    padding: 4rem 0;
    text-align: center;
}
.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.divider {
    width: 70px;
    height: 3px;
    background: #c89b63;
    margin: 1rem auto 0;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    width: 100%;
}
.quote-bg {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}
.quote-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}
.quote-content p {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.quote-content span {
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 300;
}
@media (max-width: 768px) {
    .quote-content p {
        font-size: 1.3rem;
    }
    .quote-bg {
        height: 320px;
    }
}

/* ===== INTRO ===== */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 5rem 0;
}
.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.intro-text p {
    margin-bottom: 1.5rem;
    color: #333;
}
.intro-image img {
    border-radius: 28px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* ===== CARD GRID ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.class-card, .news-card, .info-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.class-card:hover, .news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
}
.class-card img, .news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content {
    padding: 1.5rem;
}
.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}
.date {
    color: #c89b63;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Detailed class card */
.class-card.detailed {
    position: relative;
}
.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #c89b63;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.class-card.detailed ul {
    margin-top: 0.8rem;
    padding-left: 1.2rem;
    color: #444;
}
.class-card.detailed li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s;
}
.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.2);
}

/* About info cards */
.three-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.info-card {
    background: #f7f3ef;
    padding: 1.8rem;
    text-align: center;
    border-radius: 1.5rem;
    transition: transform 0.3s;
}
.info-card:hover {
    transform: translateY(-5px);
}
.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Philosophy text */
.philosophy-section {
    margin: 4rem auto;
    text-align: center;
}
.philosophy-text {
    max-width: 900px;
    margin: 0 auto;
}
.philosophy-text h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}
.philosophy-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #2c2c2c;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}
.contact-info, .contact-form {
    background: #f7f3ef;
    padding: 2rem;
    border-radius: 1.5rem;
}
.contact-info p {
    margin: 1.2rem 0;
    line-height: 1.6;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #e0dbd4;
    border-radius: 1rem;
    font-family: inherit;
    background: white;
    transition: 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #c89b63;
    box-shadow: 0 0 0 2px rgba(200, 155, 99, 0.2);
}
.map-container {
    margin: 2rem 0 3rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.12);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #000000;
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    color: #c89b63;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: #dddddd;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #c89b63;
}
.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #aaa;
}

/* ===== FLOATING BUTTONS ===== */
.float-buttons {
    position: fixed;
    bottom: 28px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 99;
}
.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.float-btn.zalo {
    background: linear-gradient(135deg, #0068ff, #0052cc);
    color: white;
    box-shadow: 0 6px 18px rgba(0, 104, 255, 0.35);
}
.float-btn.call {
    background: linear-gradient(135deg, #c89b63, #b47c44);
    color: white;
    box-shadow: 0 6px 18px rgba(200, 155, 99, 0.4);
}
.float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.float-btn.call:hover {
    box-shadow: 0 12px 28px rgba(200, 155, 99, 0.6);
}
.float-btn.zalo:hover {
    box-shadow: 0 12px 28px rgba(0, 104, 255, 0.6);
}

/* ===== SCROLL ANIMATION ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.7s ease;
}
.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
/* Điều chỉnh menu cho các màn hình trung bình để không xuống dòng */
@media (max-width: 1100px) and (min-width: 769px) {
    .desktop-nav ul {
        gap: 1.2rem;
    }
    .desktop-nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .desktop-nav ul {
        gap: 0.8rem;
    }
    .desktop-nav a {
        font-size: 0.85rem;
    }
    .brand-name {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .two-columns, .contact-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Chuyển sang mobile: ẩn desktop menu, hiện hamburger */
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    /* Trên mobile, header grid chuyển sang 2 cột: logo và hamburger */
    .header-container {
        grid-template-columns: 1fr auto;
    }
    .header-left {
        width: auto;  /* tự do trên mobile */
    }
    .header-right {
        display: none;
    }
    .brand-name {
        font-size: 1rem;
    }
    .logo img {
        width: 60px;  /* có thể nhỏ hơn trên mobile nếu muốn */
        height: 60px;
    }

    .two-columns, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 480px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .card-grid {
        gap: 1.5rem;
    }
}
.footer-col .credit {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 1rem;
}