body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Navbar */
.navbar {
    width: 100%;
    background-color: rgb(255, 255, 255);
    color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navbar Logo */
.navbar-logo {
    display: flex;
    align-items: center; /* Vertically centers the logo and text */
    text-decoration: none;
}

.navbar-logo a {
    display: flex;
    align-items: center; /* Ensures logo and text are aligned horizontally */
    text-decoration: none;
    color: black; /* Set text color to black for visibility */
}

.navbar-logo img {
    height: 40px; /* Set the height of the logo */
    width: auto;
    margin-right: 10px; /* Space between logo and text */
}

.navbar-logo p {
    font-size: 20px;
    font-weight: bold;
    color: darkgreen;
    margin: 0;
    text-transform: uppercase;
}

.navbar-nav {
    display: flex;
    gap: 50px;
}

.nav-item a {
    color: darkblue;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-item a:hover {
    color: #f39c12;
}

/* Thanh tìm kiếm */
.search-bar {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 5px 20px;
    border: solid 2px darkblue;
    margin-right: 15px; 
}

.search-bar input {
    border: none;
    outline: none;
    background: #fff;
    color: darkblue;
    padding: 5px 10px;
    font-size: 20px;
    width: 200px;
}

.search-bar input::placeholder {
    color: black;
}

.search-bar button {
    border: none;
    background-color: white;
    color: darkblue;
    font-size: 20px;
    cursor: pointer;
    margin-top: 5px;
}

/* User menu */
.user-menu {
    color: darkblue;
    text-decoration: none;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    margin-right: 0px;
}

.user-menu:hover {
    color: #f39c12;
}

/* Dropdown menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: -10px;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.dropdown a {
    color: #fff;
    padding: 10px;
    font-size: 13px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown a:hover {
    background-color: #f39c12;
}

/* Hiển thị dropdown khi hover vào user menu hoặc dropdown */
.user-menu:hover + .dropdown,
.dropdown:hover {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 10px;
    margin: 10px;

    overflow-y: auto;
}

.main-content h1 {
    font-size: 24px;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 10px;
}

.main-content p {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Slider Container */
.slider-container {
    position: relative;
    max-width: 100%;
    background-color: #000;
    overflow: hidden; /* Đảm bảo không bị cuộn ngang */
    border-radius: 20px;
}

/* Slider */
.slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    border-radius: 20px;
}

/* Slide */
.slide {
    min-width: 100%;
    height: 500px; /* Đảm bảo chiều cao của slide */
    display: relative;;
    justify-content: center;
    align-items: center;
    
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo hình ảnh lấp đầy toàn bộ slide */
    object-position: center; /* Căn giữa ảnh trong slide */
}

.slider-dots {
    text-align: center;
    position: absolute; /* Đặt dấu chấm tuyệt đối trong slider */
    bottom: 5px; /* Đặt dấu chấm cách đáy hình ảnh một chút */
    left: 50%; /* Căn giữa dấu chấm */
    transform: translateX(-50%); /* Căn giữa hoàn hảo */
    z-index: 10; /* Đảm bảo dấu chấm không bị ẩn dưới ảnh */
}

.slider-dots .dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.slider-dots .dot.active {
    background-color: #f39c12; /* Màu của dấu chấm khi active */
}

/* Footer */
.footer {
    background-color: cornflowerblue;
    color: #fff;
    padding: 10px 0;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.footer p {
    margin: 0;
}

@media (max-width: 480px) {
    /* Default slider style */
    .slider-container {
        position: relative;
        max-width: 100%;
        background-color: #000;
        overflow: hidden;
        border-radius: 15px;
    }

    .slider {
        display: flex;
        transition: transform 0.5s ease;
        width: 100%;
        border-radius: 20px;
    }

    .slide {
        min-width: 100%;
        height: 140px; /* Đảm bảo chiều cao của slide */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .slide img {
        max-width:  100%; /* Ảnh chiếm toàn bộ chiều rộng container */
        max-height: 100%; /* Ảnh chiếm toàn bộ chiều cao container */
        object-fit: contain; /* Giữ tỷ lệ ảnh và không bị cắt */
        object-position: center; /* Căn giữa ảnh trong container */
        display: block; /* Giúp ảnh không tạo khoảng trắng ở dưới */
    }

    /* Slider dots container */
    .slider-dots {
        display: grid; /* Sử dụng grid để tạo 1 hàng */
        grid-template-columns: repeat(10, auto); /* 10 cột cho 10 chấm */
        gap: 5px; /* Khoảng cách giữa các chấm */
        text-align: center;
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    /* Slider dot style */
    .slider-dots .dot {
        height: 12px;
        width: 12px;
        background-color: #bbb;
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.3s ease;
        cursor: pointer;
    }

    /* Active dot style */
    .slider-dots .dot.active {
        background-color: #f39c12; /* Màu của dấu chấm khi active */
    }
    /* Navbar Logo */
    .navbar-logo {
        display: flex;
        align-items: center; /* Vertically centers the logo and text */
        text-decoration: none;
    }

    .navbar-logo a {
        display: flex;
        align-items: center; /* Ensures logo and text are aligned horizontally */
        text-decoration: none;
        color: black; /* Set text color to black for visibility */
    }

    .navbar-logo img {
        height: 30px; /* Set the height of the logo */
        width: auto;
        margin-right: 10px; /* Space between logo and text */
    }

    .navbar-logo p {
        font-size: 20px;
        font-weight: bold;
        color: darkgreen;
        margin: 0;
        text-transform: uppercase;
    }
    .navbar-nav {
        display: flex;
        gap: 10px;
    }
    
    .nav-item a {
        color: darkblue;
        text-decoration: none;
        font-size: 20px;
        font-weight: bold;
        padding: 8px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    /* Thanh tìm kiếm */
    .search-bar {
        display: flex;
        align-items: center;
        background-color: #fff;
        border-radius: 10px;
        padding: 5px 10px; /* Reduce padding to make it smaller */
        border: solid 2px darkblue;
        margin-right: 15px;
        margin: 0;
    }

    .search-bar input {
        border: none;
        outline: none;
        background: #fff;
        color: darkblue;
        padding: 5px 20px; /* Adjust padding to make input smaller */
        font-size: 20px; /* Smaller font size for input text */
        width: 150px; /* Reduce the width */
        height: 30px; /* Reduce the height */
    }

    .search-bar input::placeholder {
        color: black;
    }

    .search-bar button {
        border: none;
        background-color: white;
        color: darkblue;
        font-size: 20px; /* Smaller button font size */
        cursor: pointer;
        margin-left: 5px; /* Space between input and button */
        padding: 5px 8px; /* Make button smaller */
    }

    /* User menu */
    .user-menu {
        color: darkblue;
        text-decoration: none;
        padding: 8px;
        font-size: 20px;
        font-weight: bold;
        position: relative;
        cursor: pointer;
        margin-right: 0px;
        margin-top: 5px;
    }

    .user-menu:hover {
        color: #f39c12;
    }

    /* Dropdown menu */
    .dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: -20px;
        background-color: #333;
        min-width: 100px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0s 0.3s;
    }

    .dropdown a {
        color: #fff;
        padding: 10px;
        font-size: 12px;
        text-decoration: none;
        display: block;
        transition: background-color 0.3s ease;
    }

    .dropdown a:hover {
        background-color: #f39c12;
    }

    /* Hiển thị dropdown khi hover vào user menu hoặc dropdown */
    .user-menu:hover + .dropdown,
    .dropdown:hover {
        display: block;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0s 0s;
    }

    /* Footer */
    .footer {
        background-color: cornflowerblue;
        color: #fff;
        padding: 5px 0; /* Reduce padding to make the footer smaller */
        box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.2);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-shrink: 0;
        height: 20px;
    }

    /* Footer text */
    .footer p {
        margin: 0;
        font-size: 14px; /* Reduce font size */
    }

}

