/* ==========================================
   1. CẤU HÌNH HỆ THỐNG & CHUNG
   ========================================== */
*{
    box-sizing: border-box;
}

body{
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* ==========================================
   2. GIAO DIỆN HEADER & COVER
   ========================================== */
header{
    background: #222;
    color: #fff;
    padding: 25px;
    text-align: center;
}

header h1{
    margin: 0;
    font-size: 40px;
}

.cover{
    width: 100%;
    /* height: 420px; */ /* Đã sửa lỗi comment đúng chuẩn CSS */
    object-fit: cover;
    display: block;
}

.section{
    padding: 50px 20px;
}

.tieude{
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
    color: #4b0082;
}

/* ==========================================
   3. CẤU TRÚC LƯỚI KHUNG MENU (GRID)
   ========================================== */
.khung-menu{
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.box{
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.box:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.box img{
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.noidung{
    padding: 25px;
}

.noidung h2{
    margin: 0 0 15px;
    color: #4b0082;
    font-size: 28px;
}

.noidung p{
    margin: 0;
    line-height: 28px;
    color: #555;
}

.sanpham{
    background: #fff;
}

/* ==========================================
   4. CSS KHUNG GIỚI THIỆU ĐỀN PHÚC KHÁNH
   ========================================== */
.intro-card-phuckhanh {
    background-color: #ffffff;
    border-top: 4px solid #8B0000;
    border-radius: 4px;
    padding: 25px;
    margin: 20px auto;
    max-width: 1300px; /* Cho bằng chiều rộng với .khung-menu của bạn */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card-phuckhanh:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(139, 0, 0, 0.15);
}

.intro-badge {
    display: inline-block;
    background-color: #fff8eb;
    color: #8B0000;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #D4AF37;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.intro-card-phuckhanh h3 {
    color: #8B0000;
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.intro-card-phuckhanh p {
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    text-align: justify;
}

.btn-readmore {
    display: inline-block;
    background-color: #8B0000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 4px;
    border: 1px solid #8B0000;
    transition: all 0.3s ease;
}

.btn-readmore:hover {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #222222;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* ==========================================
   5. CẤU HÌNH RESPONSIVE (MÀN HÌNH NHỎ)
   ========================================== */
@media(max-width:1000px){
    .khung-menu{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:700px){
    .khung-menu{
        grid-template-columns: 1fr;
    }
    .tieude{
        font-size: 30px;
    }
}