﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
main {
    background-image: url('../images/body.webp'); /* Hình nền */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 5;
        border: 2px solid #ddd; /* Viền nhẹ */
        border-radius: 10px; /* Bo góc */
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Hiệu ứng đổ bóng */
        padding: 15px;
        background: #fff;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }
}

.logo-img {
    height: 80px; /* Điều chỉnh chiều cao theo ý muốn */
    width: auto; /* Giữ tỷ lệ ảnh */
    margin-right: 40px;
    border-radius: 5px; /* Bo tròn 4 góc */
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px; /* Giảm kích thước logo trên màn hình nhỏ */
        border-radius: 10px; /* Bo tròn 4 góc */
    }
}

.navbar-nav .nav-link {
    font-weight: bold; /* Làm chữ đậm hơn */
    letter-spacing: 2px; /* Tăng khoảng cách giữa các chữ */
    padding: 10px 15px; /* Tăng khoảng cách giữa các mục menu */
    margin-right: 40px;
    font-size: 20px;
    color: #fff;
    
}

.nav-link.active {
    color: #fff !important; /* Màu khi active (Xanh lá) */
}


.navbar {
    background-color: #ff9f08;
    padding: 15px 20px;
    text-align: center;
    font-size: 20px;
    /*color: black;*/
    width: 100%;
    position: relative; /* Ban đầu là relative */
    transition: all 0.3s ease; /* Hiệu ứng mượt */
    z-index: 999;
}


    /* Khi cuộn xuống, navbar sẽ trở thành fixed */
.navbar.sticky {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Hiệu ứng đổ bóng */
    }

@media screen and (max-width: 768px) {
    .navbar.sticky {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Hiệu ứng đổ bóng */
    }

   
}

/* Container chứa banner + nội dung */
.banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px;
}

/* Banner (Hình ảnh bên trái) */
.banner {
    flex: 1;
    /*max-width: 100%;*//* Chiếm 40% chiều rộng */
}

.banner img {
    width: 100%; /* Full chiều rộng */
    height: auto;
    border-radius: 15px; /* Bo góc nếu cần */
}

/* Nội dung bên phải */
.banner-content {
    flex: 2;
    /*max-width: 50%;*/ /* Chiếm 55% chiều rộng */
    padding: 20px;
}

/* Khi responsive, hình ảnh sẽ full chiều rộng và nội dung nằm dưới */
@media screen and (max-width: 768px) {
    .banner-container {
        flex-direction: column; /* Chuyển thành cột dọc */
        text-align: center;
    }

    .banner {
        max-width: 100%; /* Hình ảnh full-width */
    }

    .banner-content {
        max-width: 100%;
        padding-top: 20px;
    }
}


/* Đặt kích thước cố định cho slider */
#carouselExample {
    width: 100%;
    max-width: 100%; /* Giới hạn chiều rộng */
    height: 400px; /* Chiều cao cố định */
    margin: auto; /* Căn giữa */
    overflow: hidden; /* Tránh tràn nội dung */
}

    /* Đảm bảo hình ảnh phù hợp với kích thước */
    #carouselExample .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Đảm bảo hình ảnh không bị méo */
    }

/* Ẩn slider khi responsive (màn hình nhỏ hơn 768px) */
@media (max-width: 768px) {
    #carouselExample {
        display: none;
    }
}


.flag-icon {
    width: 50px; /* Kích thước cờ */
    height: 50px;
    border-radius: 50%; /* Làm tròn */
    object-fit: cover; /* Cắt hình để vừa khung tròn */
    border: 2px solid #fff; /* Viền trắng */
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

    .flag-icon:hover {
        transform: scale(1.1); /* Hiệu ứng khi hover */
    }

.language-switch {
    display: flex;
    gap: 10px; /* Khoảng cách giữa hai nút */
    align-items: center;
    /*position: absolute;*/
    right: 15px;
    top: 25px;
}

    /* Thiết lập kiểu cho icon lá cờ */
    .language-switch img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #ddd;
        cursor: pointer;
        transition: transform 0.2s ease-in-out;
    }

        .language-switch img:hover {
            transform: scale(1.1);
        }

/* Khi responsive, đẩy xuống dưới */
@media (max-width: 768px) {
    .language-switch {
        position: static; /* Không còn absolute */
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

.hero {
    background: url('../images/education_baner.webp') no-repeat center center;
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        background: url('../images/education_baner.webp') no-repeat center center;
        background-size: cover;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
    }
}

.footer {
   
    background-color: #ff9f08;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.info-img {
    width: 200px; /* Điều chỉnh kích thước ảnh */
    height: 200px;
    border-radius: 50%; /* Bo tròn ảnh */
    object-fit: cover; /* Đảm bảo ảnh không bị méo */
    margin-bottom: 10px;
}

.section {
    padding: 50px 0;
}

.info-box {
    text-align: center; /* Căn giữa nội dung */
}

.nav-link.active {
    border-bottom: 3px solid #fff; /* Gạch dưới màu trắng */
    font-weight: bold;
}


.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.navbar-nav {
    white-space: nowrap; /* Giữ menu trên một dòng */
}



/* Nút lên đầu trang */
.scroll-to-top {
    position: fixed;
    bottom: 10vh; /* Dùng viewport height thay vì px */
    left: 20px;
    padding: 10px 15px;
    background-color: rgba(0, 123, 255, 0.5) !important;
    color: white !important;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 9999 !important;
}

    /* Khi cuộn xuống thì hiện ra */
    .scroll-to-top.show {
        opacity: 1 !important;
        visibility: visible !important;
    }



.info-box {
    border: 2px solid #ddd; /* Viền nhẹ */
    border-radius: 10px; /* Bo góc */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Hiệu ứng đổ bóng */
    text-align: center;
    padding: 15px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.info-box-link
{
    text-decoration:none;
}

.info-box:hover {
    transform: scale(1.05); /* Hiệu ứng phóng to nhẹ */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.info-img {
    width: 100%; /* Đảm bảo ảnh vừa khung */
    border-radius: 10px; /* Bo góc ảnh */
}

.info-box h3 {
    color: #007bff; /* Màu chữ xanh dương */
    margin-top: 10px;
}

.info-box p {
    color: #555;
    font-size: 14px;
}



.address-container {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .address-container h2 {
        margin-top: 0;
        font-size: 26px;
        color: #333;
        text-align: center;
        padding-bottom: 10px;
        border-bottom: 2px solid #ddd;
    }

.address-item {
    margin: 20px 0;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 5px solid #0088cc;
    transition: all 0.3s ease;
}

    .address-item:hover {
        background: #eef7fb;
        border-left-color: #005f99;
    }

    .address-item span {
        display: block;
        font-weight: bold;
        color: #222;
        margin-bottom: 5px;
    }

    .address-item p {
        margin: 0;
        color: #555;
        font-size: 15px;
        line-height: 1.5;
    }