/* ===== RESET & BASE ===== */
html {
    scroll-behavior: smooth;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Be Vietnam Pro', sans-serif;
}
/* ===== SLIDESHOW ===== */
#reward-slideshow {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}
 
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 8%;
}
 
.slide.active {
    opacity: 1;
}
 
/* Ảnh nền toàn slide */
.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
 
/* Lớp phủ tối để chữ dễ đọc */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 10, 0, 0.55);
}
 
/* Nội dung chữ trên slide */
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #fff;
    animation: slideIn 0.7s ease both;
}
 
@keyframes slideIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
.reward-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
 
.reward-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #f0e0cc;
    margin-bottom: 28px;
}
 
.button-reward {
    display: inline-block;
    padding: 14px 36px;
    background-color: #d2853f;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
}
 
.button-reward:hover {
    background-color: #b8692a;
    transform: translateY(-3px);
}
 
/* Nút prev / next */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.slide-btn:hover { background: rgba(255,255,255,0.35); }
.slide-prev { left: 20px; }
.slide-next { right: 20px; }
 
/* Dots chỉ vị trí slide */
.slide-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
 
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
 
.dot.active {
    background: #d2853f;
    transform: scale(1.3);
}
 
/* ===== LAYOUT CHÍNH ===== */
#main {
    background-color: #fff;
    width: 100%;
    flex: 1;
}
 
.inner-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
 
.main-section {
    padding: 80px 0;
}
 
.main-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
    color: #3e2723;
}
 
.main-title1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
    color: whitesmoke;
}
 
.section-intro1 {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: whitesmoke;
    font-size: 18px;
    line-height: 1.6;
}
 
/* ===== THÀNH VIÊN ===== */
#quyen-loi {
    background-color: #3e2723;
}
 
.membership-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
 
.member-card {
    flex: 1;
    min-width: 260px;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #f2e7d5;
}
 
.member-card:hover { transform: translateY(-10px); }
 
.card-header {
    padding: 30px;
    text-align: center;
    color: #fff;
}
 
.rank-new    .card-header { background-color: burlywood; }
.rank-silver .card-header { background-color: gray; }
.rank-gold   .card-header { background-color: goldenrod; }
 
.rank-name {
    display: block;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
 
.rank-icon {
    font-size: 38px;
    margin-top: 10px;
    display: block;
}
 
.card-body { padding: 28px 30px; }
 
.condition {
    font-weight: 600;
    color: #3e2723;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0d5c1;
}
 
.benefit-list { list-style: none; padding: 0; }
 
.benefit-list li {
    padding: 7px 0 7px 22px;
    font-size: 15px;
    color: #5d4037;
    position: relative;
}
 
.benefit-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d2853f;
    font-weight: bold;
}
 
/* ===== KHUYẾN MÃI ===== */
.bg-light-coffee { background-color: #fdfaf5; }
 
.promo-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}
 
.promo-card {
    display: flex;
    background: #fff;
    border: 2px dashed #e0d5c1;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding: 24px 40px;
    align-items: center;
    transition: 0.3s;
}
 
.promo-card:hover {
    border-color: #d2853f;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}
 
.promo-badge {
    background: #d2853f;
    color: #fff;
    padding: 5px 14px;
    font-weight: bold;
    font-size: 13px;
    border-radius: 5px;
    position: absolute;
    top: 20px;
    left: -8px;
    transform: rotate(-5deg);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
 
.promo-info { padding-left: 20px; }
 
.promo-info h3 {
    color: #3e2723;
    font-size: 20px;
    margin-bottom: 8px;
}
 
.promo-info p {
    color: #5d4037;
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.6;
}
 
.promo-date {
    font-size: 13px;
    font-style: italic;
    color: #9e9e9e;
}
 
/* ===== CHÍNH SÁCH ===== */
#chinh-sach { background-color: #fdfaf5; }
 
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #f2e7d5;
}
 
.policy-content ul { list-style: none; padding: 0; }
 
.policy-content li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 18px;
    font-size: 16px;
    color: #5d4037;
    line-height: 1.7;
}
 
.policy-content li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #d2853f;
    font-weight: bold;
}
 
/* ===== FAQ ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
 
details {
    background: #fff;
    margin-bottom: 14px;
    padding: 16px 24px;
    border-radius: 10px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}
 
details[open] {
    border-color: #d2853f;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
 
summary {
    font-weight: 600;
    font-size: 17px;
    color: #3e2723;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
summary::after {
    content: "+";
    font-size: 22px;
    color: #d2853f;
}
 
details[open] summary::after { content: "−"; }
 
details p {
    margin-top: 14px;
    color: #6d4c41;
    line-height: 1.7;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
}
 
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #reward-slideshow { height: 420px; }
    .reward-title { font-size: 26px; }
    .reward-subtitle { font-size: 15px; }
    .button-reward { padding: 11px 24px; font-size: 14px; }
    .membership-grid { flex-direction: column; align-items: center; }
    .slide-content { padding: 0 10px; }
}
 
@media (max-width: 480px) {
    #reward-slideshow { height: 360px; }
    .reward-title { font-size: 21px; }
    .promo-card { padding: 20px 24px; }
    .slide-btn { width: 36px; height: 36px; font-size: 17px; }
}