/* style/sic-bo.css */

/* 🚨 Cần điều chỉnh padding-top cho main content để tránh bị header cố định che khuất */
.page-sic-bo {
    padding-top: 120px; /* Khoảng cách cho desktop */
    color: #f0f0f0; /* Màu chữ mặc định cho nền tối */
}

@media (max-width: 768px) {
    .page-sic-bo {
        padding-top: 100px; /* Khoảng cách cho mobile */
    }
}

.page-sic-bo__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-sic-bo__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Màu vàng kim */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-sic-bo__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #8B0000; /* Màu đỏ sẫm */
    border-radius: 2px;
}

.page-sic-bo__text-block {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #f0f0f0; /* Màu chữ sáng trên nền tối */
    text-align: justify;
}

.page-sic-bo__link {
    color: #FFD700; /* Màu vàng kim cho link */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sic-bo__link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-sic-bo__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-sic-bo__list-item {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #e0e0e0; /* Màu chữ sáng */
}

.page-sic-bo__image-wrapper {
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Hero Section */
.page-sic-bo__hero-section {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a); /* Nền tối */
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-sic-bo__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-sic-bo__hero-title {
    font-size: 52px;
    font-weight: 900;
    color: #FFD700; /* Màu vàng kim */
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    line-height: 1.2;
}

.page-sic-bo__hero-description {
    font-size: 24px;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-sic-bo__hero-button {
    display: inline-block;
    background-color: #8B0000; /* Màu đỏ sẫm */
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
}

.page-sic-bo__hero-button:hover {
    background-color: #a00000;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(139, 0, 0, 0.6);
}

/* Introduction Section */
.page-sic-bo__introduction-section {
    background-color: #1a1a1a;
    padding: 60px 0;
}

/* How To Play Section */
.page-sic-bo__how-to-play-section {
    background-color: #0a0a0a;
    padding: 60px 0;
}

/* Advantages Section */
.page-sic-bo__advantages-section {
    background-color: #1a1a1a;
    padding: 60px 0;
}

.page-sic-bo__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sic-bo__advantage-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-sic-bo__advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-sic-bo__advantage-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-sic-bo__advantage-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-sic-bo__advantage-description {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Tips Section */
.page-sic-bo__tips-section {
    background-color: #0a0a0a;
    padding: 60px 0;
}

/* Promotions Section */
.page-sic-bo__promotions-section {
    background-color: #1a1a1a;
    padding: 60px 0;
}

.page-sic-bo__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sic-bo__promotion-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.page-sic-bo__promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-sic-bo__promotion-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-sic-bo__promotion-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    padding: 20px 20px 10px;
}

.page-sic-bo__promotion-description {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
    padding: 0 20px 20px;
}

.page-sic-bo__promotion-button {
    display: block;
    background-color: #8B0000;
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.page-sic-bo__promotion-button:hover {
    background-color: #a00000;
}

/* FAQ Section */
.page-sic-bo__faq-section {
    background-color: #0a0a0a;
    padding: 60px 0;
}

.page-sic-bo__faq-list {
    margin-top: 40px;
}

.page-sic-bo__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #2a2a2a;
}

.page-sic-bo__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: #e0e0e0;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 20px !important;
    opacity: 1;
    background: #3a3a3a;
    border-radius: 0 0 5px 5px;
}

.page-sic-bo__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-sic-bo__faq-question:hover {
    background: #2a2a2a;
    border-color: #FFD700;
}

.page-sic-bo__faq-question:active {
    background: #3a3a3a;
}

.page-sic-bo__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #FFD700;
}

.page-sic-bo__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg);
}

/* CTA Section */
.page-sic-bo__cta-section {
    background-color: #8B0000; /* Màu đỏ sẫm */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-sic-bo__cta-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.page-sic-bo__cta-description {
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.page-sic-bo__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Màu vàng kim */
    color: #8B0000;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__cta-button:hover {
    background-color: #ffe04d;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sic-bo__hero-title {
        font-size: 44px;
    }
    .page-sic-bo__hero-description {
        font-size: 20px;
    }
    .page-sic-bo__section-title {
        font-size: 32px;
    }
    .page-sic-bo__advantage-title {
        font-size: 22px;
    }
    .page-sic-bo__promotion-title {
        font-size: 20px;
    }
    .page-sic-bo__cta-title {
        font-size: 36px;
    }
    .page-sic-bo__cta-description {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-sic-bo__hero-section {
        padding: 60px 0;
    }
    .page-sic-bo__hero-title {
        font-size: 36px;
    }
    .page-sic-bo__hero-description {
        font-size: 18px;
    }
    .page-sic-bo__hero-button {
        padding: 15px 30px;
        font-size: 20px;
    }
    .page-sic-bo__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-sic-bo__text-block,
    .page-sic-bo__list-item,
    .page-sic-bo__advantage-description,
    .page-sic-bo__promotion-description {
        font-size: 16px;
    }
    .page-sic-bo__advantages-grid,
    .page-sic-bo__promotions-grid {
        gap: 20px;
    }
    .page-sic-bo__advantage-icon {
        width: 80px;
        height: 80px;
    }
    .page-sic-bo__advantage-title {
        font-size: 20px;
    }
    .page-sic-bo__promotion-image {
        height: 200px;
    }
    .page-sic-bo__promotion-title {
        font-size: 18px;
    }
    .page-sic-bo__promotion-button {
        font-size: 16px;
    }
    .page-sic-bo__faq-question h3 {
        font-size: 16px;
    }
    .page-sic-bo__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
        padding: 15px !important;
    }
    .page-sic-bo__cta-section {
        padding: 60px 0;
    }
    .page-sic-bo__cta-title {
        font-size: 32px;
    }
    .page-sic-bo__cta-description {
        font-size: 18px;
    }
    .page-sic-bo__cta-button {
        padding: 15px 30px;
        font-size: 20px;
    }
    .page-sic-bo__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sic-bo img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-sic-bo__hero-title {
        font-size: 30px;
    }
    .page-sic-bo__hero-description {
        font-size: 16px;
    }
    .page-sic-bo__hero-button {
        font-size: 18px;
        padding: 12px 25px;
    }
    .page-sic-bo__section-title {
        font-size: 24px;
    }
    .page-sic-bo__text-block,
    .page-sic-bo__list-item,
    .page-sic-bo__advantage-description,
    .page-sic-bo__promotion-description {
        font-size: 15px;
    }
    .page-sic-bo__advantage-card,
    .page-sic-bo__promotion-card {
        padding: 20px;
    }
    .page-sic-bo__advantage-icon {
        width: 70px;
        height: 70px;
    }
    .page-sic-bo__advantage-title {
        font-size: 18px;
    }
    .page-sic-bo__promotion-image {
        height: 180px;
    }
    .page-sic-bo__promotion-title {
        font-size: 16px;
    }
    .page-sic-bo__cta-title {
        font-size: 28px;
    }
    .page-sic-bo__cta-description {
        font-size: 16px;
    }
    .page-sic-bo__cta-button {
        font-size: 18px;
        padding: 12px 25px;
    }
}