/* ===============================
   RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(to bottom, #fff5ec, #ffe8cc);
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* ===============================
   PHÁO HOA NỀN
================================ */
body::after {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: url("https://i.imgur.com/8QfQZ6M.png");
    background-size: cover;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* ===============================
   BANNER LUXURY
================================ */
.banner {
    height: 250px;
    background: linear-gradient(rgba(120,0,0,0.9), rgba(170,0,0,0.9)),
                url('./img/tet-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: gold;
    border-bottom: 6px solid gold;
    position: relative;
    overflow: hidden;
}

/* Ánh sáng chạy */
.banner::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,215,0,0.4), transparent);
    animation: shine 6s infinite linear;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 65px;
    letter-spacing: 4px;
    text-shadow: 0 0 20px gold,
                 0 0 40px #ffcc00;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 24px;
    margin-bottom: 30px;
}

/* Lồng đèn */
.banner::after {
    content: "🏮       🏮";
    position: absolute;
    top: 20px;
    width: 100%;
    font-size: 50px;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
}

/* ===============================
   BUTTON
================================ */
.btn {
    background: linear-gradient(45deg, gold, #ffcc00);
    color: #8b0000;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 0 25px rgba(255,215,0,0.8);
}

.btn:hover {
    transform: scale(1.1);
}

/* ===============================
   MENU
================================ */
nav {
    background: linear-gradient(to right, #990000, #cc0000);
    padding: 15px 0;
    text-align: center;
    border-top: 4px solid gold;
    border-bottom: 4px solid gold;
}

nav a {
    color: gold;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    background: gold;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ===============================
   HOME CONTAINER
================================ */
.home-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 100px 10%;
    background: #fffdf7;
    border-radius: 30px;
    margin: 80px auto;
    border: 6px solid gold;
    box-shadow: 0 30px 60px rgba(139,0,0,0.2);
    position: relative;
    z-index: 2;
    transition: 0.4s;
}

.home-image {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.home-image img {
    width: 100%;
    max-width: 650px;
    border-radius: 20px;
    border: 6px solid gold;
    box-shadow: 0 20px 40px rgba(139,0,0,0.2);
    transition: 0.4s;
}

.home-image img:hover {
    transform: scale(1.05);
}

.home-text {
    flex: 1.3;
}

.home-text h2 {
    color: #b30000;
    font-size: 34px;
    margin-bottom: 20px;
}

.home-text p {
    font-size: 1.2em;
    line-height: 2;
    margin-bottom: 15px;
    text-align: justify;
}

/* ===============================
   FOOTER
================================ */
footer {
    background: linear-gradient(to right, #8b0000, #b30000);
    color: gold;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    border-top: 5px solid gold;
}

/* ===============================
   HOA ĐÀO RƠI MỀM
================================ */
body::before {
    content: "🌸 🌸 🌸 🌸 🌸 🌸 🌸 🌸 🌸 🌸";
    position: fixed;
    top: -30px;
    left: 0;
    width: 100%;
    font-size: 26px;
    opacity: 0.4;
    animation: fall 18s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes fall {
    0% { transform: translateY(-30px); }
    100% { transform: translateY(130vh); }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

    .banner-content h1 {
        font-size: 38px;
    }

    .home-container {
        flex-direction: column;
        padding: 50px 20px;
        text-align: center;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }
}


/*Container chung cho mỗi mục*/
.flex-item{
    display:flex;
    align-items: center; /* Căn giữa chữ và ảnh theo chiều dọc */
    justify-content: space-between;
    margin-bottom: 50px; /* Khoảng cách giữa các mục lớn */
    gap: 30px; /* Khoảng cách giữa cột chữ và cột ảnh */
    padding: 20px;
    background-color: #fffaf0; /* Màu nền nhẹ để phân biệt các mục */
    border-radius: 10px;
}
/* Cột chứa văn bản */
text-content {
    flex: 1.5; /* Ưu tiên độ rộng cho chữ hơn một chút */
}
/* Cột chứa ảnh */
.image-content { 
    flex: 1; text-align: right; /* Đẩy ảnh về phía bên phải */
}
.image-content img {
    width: 100%; /* Ảnh co giãn theo khung */
    max-width: 400px; /* Giới hạn ảnh không quá to */
    height: auto; border-radius: 8px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    border: 3px solid #b22222; /* Viền đỏ đặc trưng ngày Tết */
}


/* Container bao quanh nội dung */
.home-container {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: center;
    padding: 50px 10%; /* Tạo khoảng trống lề */ gap: 50px; /* Khoảng cách giữa ảnh và chữ */
}
/* Phần chứa ảnh bên trái */
.home-image {
    flex: 1; /* Chiếm 1 phần độ rộng */
}
.home-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px; /* Bo góc ảnh */
    box-shadow: -10px 10px 20px rgba(0,0,0,0.15); /* Bóng đổ đổ về bên trái cho cân đối */
    border: 5px solid #fff; /* Viền trắng giả khung ảnh */
}
/* Phần chứa văn bản bên phải */
.home-text {
    flex: 1.2; /* Văn bản rộng hơn ảnh một chút */
    line-height: 1.8; /* Giúp đoạn văn thoáng, dễ đọc */
    font-size: 1.1em;
    text-align: justify;
}
/* Tương thích điện thoại: Ảnh lên trên, chữ xuống dưới */
@media (max-width: 768px) {
    .home-container {
        flex-direction: column;
        padding: 20px; }
        .home-image img { max-width: 100%; }
}



/* ===============================
   SECTION CHUNG
================================ */
section {
    padding: 80px 10%;
}

section h2 {
    text-align: center;
    font-size: 38px;
    color: #b30000;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(255,215,0,0.4);
}

/* ===============================
   GRID LAYOUT
================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* ===============================
   CARD STYLE
================================ */
.card {
    background: #fffdf7;
    border-radius: 25px;
    padding: 25px;
    border: 5px solid gold;
    box-shadow: 0 20px 40px rgba(139,0,0,0.15);
    transition: 0.4s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hiệu ứng ánh sáng nhẹ */
.card::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(120deg, transparent, rgba(180, 170, 117, 0.3), transparent);
    transition: 0.6s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(139,0,0,0.25);
}

/* Ảnh */
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid #b30000;
    margin-bottom: 20px;
    transition: 0.4s;
}

.card img:hover {
    transform: scale(1.05);
}

/* Tiêu đề card */
.card h3 {
    color: #b30000;
    font-size: 22px;
    margin-bottom: 15px;
}

/* Nội dung */
.card p {
    font-size: 1.05em;
    line-height: 1.7;
    text-align: justify;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

    section {
        padding: 60px 20px;
    }

    section h2 {
        font-size: 28px;
    }

    .card img {
        height: 180px;
    }
}



/* ===============================
   FORM ĐÓNG GÓP
================================ */
form {
    max-width: 700px;
    margin: 50px auto;
    background: #fffdf7;
    padding: 40px;
    border-radius: 25px;
    border: 5px solid gold;
    box-shadow: 0 25px 50px rgba(139,0,0,0.15);
}

form label {
    display: block;
    font-weight: bold;
    color: #b30000;
    margin-bottom: 8px;
    margin-top: 20px;
}

form input,
form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid #ddd;
    font-size: 16px;
    transition: 0.3s;
    outline: none;
}

form input:focus,
form textarea:focus {
    border-color: gold;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* Nút gửi */
form button {
    margin-top: 25px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(45deg, gold, #ffcc00);
    color: #8b0000;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(255,215,0,0.7);
}

form button:hover {
    transform: scale(1.05);
}

/* ===============================
   THÔNG TIN NGƯỜI THỰC HIỆN
================================ */
section p {
    max-width: 600px;
    margin: 10px auto;
    padding: 10px 20px;
    background: #fffdf7;
    border-left: 6px solid gold;
    border-radius: 8px;
}

/* ===============================
   GOOGLE MAP
================================ */
iframe {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(139,0,0,0.2);
}