﻿/* --- LAYOUT CHUNG --- */
.event-detail-section {
    padding: 40px 0 80px 0;
    min-height: 800px;
}

    .event-detail-section .container {
        max-width: 900px; /* Giới hạn chiều rộng bài viết cho dễ đọc giống Blog/Medium */
        margin: 0 auto;
        padding: 0 20px;
    }

/* --- BREADCRUMB --- */
.e-breadcrumb {
    text-align: center;
    font-family: "Kanit", sans-serif;
    color: #888;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

    .e-breadcrumb a {
        color: #888;
        text-decoration: none;
        transition: 0.3s;
    }

        .e-breadcrumb a:hover {
            color: #4B3022;
        }

    .e-breadcrumb span {
        color: #4B3022;
        font-weight: 500;
    }

/* --- HEADER SỰ KIỆN --- */
.e-header {
    text-align: center;
    margin-bottom: 40px;
}

.e-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.e-badge {
    padding: 6px 15px;
    border-radius: 20px;
    color: #fff;
    font-family: "Kanit";
    font-size: 0.85rem;
    font-weight: 600;
}

    .e-badge.active {
        background: #6fb490;
    }
    /* Xanh lá */
    .e-badge.upcoming {
        background: #ff6b81;
    }
    /* Hồng/Đỏ */
    .e-badge.expired {
        background: #95a5a6;
    }
/* Xám */

.e-date {
    font-family: "Kanit";
    color: #666;
    font-size: 0.95rem;
}

.e-title {
    font-family: "Allura", cursive;
    font-size: 4.5rem;
    line-height: 1.1;
    color: #4B3022;
    margin-bottom: 25px;
}

.e-discount-banner {
    background-color: #FFF8E1; /* Màu vàng nhạt */
    border: 1px dashed #FFD700;
    color: #4B3022;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: "Kanit";
    font-size: 1.1rem;
}

    .e-discount-banner i {
        color: #ff6b81;
        margin-right: 5px;
    }

/* --- ẢNH BÌA --- */
.e-feature-image {
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

    .e-feature-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 1s ease;
    }

    .e-feature-image:hover img {
        transform: scale(1.03);
    }

/* --- NỘI DUNG BÀI VIẾT (Rich Text) --- */
.content-wrapper {
    font-family: "Kanit", sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

    /* Style cho các thẻ HTML bên trong nội dung (vì là HtmlRaw) */
    .content-wrapper h2, .content-wrapper h3 {
        font-family: "Pacifico", cursive;
        color: #4B3022;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .content-wrapper p {
        margin-bottom: 20px;
        text-align: justify;
    }

    .content-wrapper img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 20px 0;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .content-wrapper ul {
        margin-bottom: 20px;
        padding-left: 20px;
    }

    .content-wrapper li {
        margin-bottom: 10px;
    }

/* --- DANH SÁCH SẢN PHẨM KHUYẾN MÃI --- */
.e-products {
    margin-top: 60px;
}

.divider-section {
    text-align: center;
    margin-bottom: 20px;
}

    .divider-section img {
        height: 30px;
        opacity: 0.5;
    }

.e-subtitle {
    font-family: "Pacifico", cursive;
    font-size: 2.5rem;
    color: #4B3022;
    text-align: center;
    margin-bottom: 40px;
}

/* Điều chỉnh lại grid sản phẩm cho vừa container nhỏ hơn */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Điều chỉnh giá tiền khi có giảm giá */
.price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

/* Nút quay lại */
.btn-back {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #8D6E63;
    border-radius: 50px;
    color: #8D6E63;
    text-decoration: none;
    font-family: "Kanit";
    font-weight: 600;
    transition: 0.3s;
}

    .btn-back:hover {
        background: #8D6E63;
        color: #fff;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .e-title {
        font-size: 3rem;
    }

    .e-feature-image {
        height: 250px;
    }

    .content-wrapper {
        padding: 25px;
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}
