/* CSS for PTC Menu Tong Hop - Style: Vintage Classic & Elegant */

.ptc-th-wrap {
    margin: 40px auto;
    color: #333;
}

.ptc-th-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #8b0000; /* Đỏ đậm */
    text-transform: uppercase;
    position: relative;
    letter-spacing: 2px;
}

/* Đường kẹp trang trí tiêu đề */
.ptc-th-title::before,
.ptc-th-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4af37; /* Màu vàng kim */
}
.ptc-th-title::before {
    width: 100px;
    height: 2px;
}
.ptc-th-title::after {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 2px solid #d4af37;
    transform: translateX(-50%) rotate(45deg);
    bottom: -14px;
}

.ptc-th-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 25px;
}

.ptc-th-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    padding: 35px 25px 30px;
    
    /* Nền màu giấy ngà ấm áp */
    background-color: #fffdf5; 
    
    /* Viền vàng kim */
    border: 1px solid #e6c98f; 
    border-radius: 8px;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    
    /* Quan trọng: giữ các họa tiết bên trong không bị tràn */
    overflow: hidden; 
    z-index: 1;
}

/* --- Họa tiết Nền (Watermark) dùng Unicode --- */
.ptc-th-card::before {
    content: "☯"; /* Ký tự Âm Dương */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 180px;
    color: #000;
    opacity: 0.03; /* Mờ tối đa */
    z-index: -1;
    pointer-events: none;
    line-height: 1;
}

/* --- Con dấu trang trí (Góc phải) --- */
.ptc-th-card::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(162, 19, 19, 0.6); /* Viền đỏ mờ */
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px #fffdf5, inset 0 0 0 6px rgba(162, 19, 19, 0.4); /* Tạo hình tròn đôi */
    z-index: 2;
}

/* Hiệu ứng Hover */
.ptc-th-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37; /* Viền sáng hơn */
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2); /* Bóng vàng */
    background-color: #ffffff;
}

/* --- Icon --- */
.ptc-th-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #b71c1c 0%, #8b0000 100%);
    border-radius: 50%;
    color: #fff;
    /* Viền vàng cho icon */
    border: 2px solid #d4af37;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.ptc-th-card:hover .ptc-th-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
}

.ptc-th-icon svg {
    width: 50%;
    height: 50%;
    fill: currentColor;
}

/* --- Tiêu đề --- */
.ptc-th-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3e2723; /* Màu nâu đậm */
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

/* Đường kẻ vàng dưới tiêu đề */
.ptc-th-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #d4af37;
}

.ptc-th-card:hover .ptc-th-name {
    color: #8b0000;
}

/* --- Mô tả --- */
.ptc-th-desc {
    position: relative;
    font-size: 0.9rem;
    color: #5d4037; /* Nâu nhẹ */
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .ptc-th-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ptc-th-grid {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    .ptc-th-title {
        font-size: 1.4rem;
    }
}