:root {
    --blue: #0b4ea2;
    --gold: #d4af37;
    --light: #f8f9fa;
    --dark: #1a1a1a;
}
body { font-family: 'Segoe UI', sans-serif; margin: 0; background: var(--light); display: flex; }
.sidebar { width: 260px; background: var(--blue); min-height: 100vh; color: white; padding: 20px; position: fixed; }
.sidebar h2 { color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 10px; text-align: center; }
.nav-link { display: block; color: white; text-decoration: none; padding: 15px; border-radius: 5px; margin-bottom: 5px; transition: 0.3s; }
.nav-link:hover { background: rgba(255,255,255,0.1); color: var(--gold); }
.main { margin-left: 300px; padding: 40px; width: calc(100% - 340px); }
.card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; }
.btn-gold { background: var(--gold); border: none; padding: 10px 20px; font-weight: bold; cursor: pointer; border-radius: 5px; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { border-bottom: 1px solid #ddd; padding: 12px; text-align: left; }
th { background: #eee; }
/* --- CẤU HÌNH CHO THIẾT BỊ DI ĐỘNG (MOBILE) --- */

/* 1. Đảm bảo hình ảnh không bao giờ tràn màn hình */
img {
    max-width: 100%;
    height: auto;
}

/* 2. Thiết lập cho màn hình điện thoại (dưới 768px) */
@media screen and (max-width: 768px) {
    /* Chuyển Sidebar từ cố định sang ẩn hoặc dạng khác nếu cần, 
       ở đây chúng ta sẽ cho nó nằm trên cùng để người dùng vẫn thấy menu */
    body {
        flex-direction: column; /* Chuyển giao diện từ ngang sang dọc */
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative; /* Không cố định ở bên trái nữa */
        padding: 10px;
        box-sizing: border-box;
    }

    .main {
        margin-left: 0; /* Bỏ khoảng cách bên trái của vùng nội dung chính */
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    /* Chuyển các lưới (Grid) thành 1 cột duy nhất */
    .main-content, 
    .courses, 
    .teachers, 
    .contact, 
    .countries, 
    .services {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Điều chỉnh Banner cho gọn */
    .banner-container {
        flex-direction: column;
        height: auto;
    }

    .banner-left, .banner-right {
        padding: 30px 20px;
    }

    .banner-center {
        height: 250px;
    }

    /* Thu nhỏ font chữ tiêu đề để không bị vỡ dòng quá nhiều */
    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }

    /* Điều chỉnh bảng (Table) để có thể kéo ngang trên điện thoại */
    .table-container {
        overflow-x: auto;
        display: block;
    }
}