/* style.css - Toàn bộ giao diện hệ thống */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@700&family=Oswald:wght@500&family=Dancing+Script:wght@700&display=swap');

:root {
    --tet-red: #B22222;
    /* Đỏ đô truyền thống */
    --tet-gold: #FFD700;
    /* Vàng hoa mai */
    --dark-text: #2C3E50;
    --light-bg: #FFFDF5;
    /* Màu giấy xuyến chỉ */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    color: var(--dark-text);
    line-height: 1.6;
}

/* --- HEADER & NAV --- */
header {
    background-color: var(--tet-red);
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--tet-gold);
}

.logo a {
    font-family: 'Oswald', sans-serif;
    color: var(--tet-gold);
    font-size: 1.8rem;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--tet-gold);
}

/* --- BANNER --- */
.banner {
    height: 45vh;
    background-image: url('bia.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--tet-gold);
    border-bottom: 8px double var(--tet-gold);
    text-align: center;
    position: relative;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.banner h2 {
    position: relative;
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- CONTAINER & CHUNG --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--tet-red);
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 50px;
    font-style: italic;
}

/* --- CẤU TRÚC XEN KẼ (Z-PATTERN) --- */
.featured-sections,
.subpage-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.home-content-block,
.content-block {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.home-content-block:nth-child(even),
.content-block:nth-child(even) {
    flex-direction: row-reverse;
}

.block-image,
.content-block img {
    flex: 1;
    border-radius: 10px;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 4px solid #fff;
    outline: 2px solid var(--tet-gold);
    max-width: 100%;
    overflow: hidden;
}

.block-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.block-text,
.content-text {
    flex: 1;
}

.block-text h3,
.content-text h3 {
    color: var(--tet-red);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.btn-direct {
    display: inline-block;
    padding: 10px 20px;
    background: var(--tet-red);
    color: white !important;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
}

.btn-direct:hover {
    background: var(--tet-gold);
    color: var(--tet-red) !important;
}

/* --- GALLERY (Grid) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* --- FOOTER --- */
footer {
    background: var(--tet-red);
    color: var(--tet-gold);
    text-align: center;
    padding: 30px;
    border-top: 5px solid var(--tet-gold);
    margin-top: 50px;
}

@media (max-width: 768px) {

    .home-content-block,
    .content-block {
        flex-direction: column !important;
    }

    header {
        flex-direction: column;
        padding: 10px;
    }

    .nav-links {
        gap: 10px;
        font-size: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
}