* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;

}
html {
     scroll-behavior: smooth !important;
}
body {
    font-family: 'Poppins', sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    background-color: #fffaf0;
}

header {
    background-color: #f5e6ca;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #c47b3d;
}
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #8B4513;
    border-radius: 25px;
    margin: 20px auto;
    width: fit-content;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}
.search-box {
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 16px;
    width: 200px;
}

.category-menu button {
    padding: 12px 20px;
    border: none;
    background-color: #D2691E;
    color: white;
    cursor: pointer;
    border-radius: 20px;
    font-size: 16px;
    transition: all 0.3s;
}
.category-menu button:hover, .category-menu button.active {
    background-color: #A0522D;
    transform: scale(1.1);
}

.category-menu {
    display: flex;
    gap: 15px;
}

.food-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
    min-height: 400px;
}
.food-item {
    display: none;
    text-align: center;
    width: 330px;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    text-align: center;
    cursor: pointer;
    position: relative;
}
.food-item img {
    width: 250px;
    height: 230px;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.food-item h2 {
    font-size: 1.5rem;
    color: #c47b3d;
    margin-bottom: 0.2rem;
}
.food-item:hover {
    transform: translateY(-5px);

}
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #c47b3d;
}

.hero {
    background: url(photo/bg1.png) no-repeat center center/cover;
    color: white;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding-left: 10%;
}

h1 {
    font-size: 3rem;                                                                                            
    margin-bottom: 1rem;
    color: #CC6600;
    text-indent: 30px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
}
.container {
    display: flex;
    justify-content: space-around;
    background-color: #f8f8f8;
    padding: 20px;
}
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 22%;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}
.card img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}
.card h3 {
    color: #d09343;
    margin-top: 40px;
    margin-bottom: 10px;
}
.card p {
    color: #555;
    font-size: 14px;
}
.video-container {
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: flex-start; /* Căn trên theo chiều dọc */
    height: 100vh; /* Chiều cao của viewport */
}
.section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.section:hover {
    transform: translateY(-5px);
}

.section img {
    width: 250px;
    height: 230px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.section h2 {
    font-size: 1.5rem;
    color: #c47b3d;
    margin-bottom: 0.5rem;
}

.section p {
    font-size: 1rem;
    color: #4a4a4a;
}

.extra-info {
    display: none;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
}

footer {
    background-color: #f5e6ca;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    font-size: 0.9rem;
    color: #4a4a4a;
}

footer a {
    text-decoration: none;
    color: #c47b3d;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .sections {
        max-width: 100%; /* Không vượt quá chiều rộng màn hình */
        width: 100%; /* Luôn chiếm toàn bộ chiều rộng có thể */
        display: flex;
        flex-wrap: wrap; /* Cho phép xuống dòng khi không đủ chỗ */
        gap: 1rem;
        justify-content: center;
        }
    
    .section {
            padding: 1rem;
        }
}
    
