/* style/khuyen-mai.css */

/* Biến CSS cho màu sắc */
:root {
    --primary-color: #0047AB; /* Xanh sapphire đậm */
    --secondary-color: #FFD700; /* Vàng kim loại */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #F8F8F8;
    --background-dark: #003380; /* Tối hơn primary */
    --border-color: #E0E0E0;
    --accent-color: #DC143C; /* Đỏ tươi cho điểm nhấn */
}

.page-khuyen-mai {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.page-khuyen-mai-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-khuyen-mai-section {
    padding: 60px 0;
    text-align: center;
}

.page-khuyen-mai-section:nth-child(odd) {
    background-color: #FFFFFF;
}

.page-khuyen-mai-section:nth-child(even) {
    background-color: var(--background-light);
}

.page-khuyen-mai h1,
.page-khuyen-mai h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.3;
}

.page-khuyen-mai h1 {
    font-size: 3.2em;
    color: var(--text-light);
}

.page-khuyen-mai h2 {
    font-size: 2.5em;
}

.page-khuyen-mai h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-khuyen-mai h3 a {
    color: inherit;
    text-decoration: none;
}

.page-khuyen-mai h3 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-khuyen-mai p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;
}

.page-khuyen-mai ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    display: inline-block;
}

.page-khuyen-mai ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--text-dark);
}

.page-khuyen-mai ol {
    list-style: decimal;
    padding-left: 40px;
    margin: 20px auto;
    text-align: left;
    max-width: 800px;
}

.page-khuyen-mai ol li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: var(--text-dark);
}

.page-khuyen-mai a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyen-mai a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Hero Section */
.page-khuyen-mai-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-dark) 100%);
    color: var(--text-light);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
}

.page-khuyen-mai-hero-content {
    max-width: 900px;
}

.page-khuyen-mai-hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
}

.page-khuyen-mai-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    min-width: 300px; /* Đảm bảo kích thước tối thiểu */
    min-height: 200px;
    object-fit: cover;
}

.page-khuyen-mai-cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 18px 45px;
    border-radius: 8px;
    font-size: 1.25em;
    font-weight: bold;
    text-decoration: none;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai-cta-button:hover {
    background-color: #FFEB3B; /* Sáng hơn secondary */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Offer Grid */
.page-khuyen-mai-offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-khuyen-mai-offer-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-khuyen-mai-offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-khuyen-mai-offer-card img {
    max-width: 100%;
    height: 250px; /* Kích thước cố định cho hình ảnh thẻ */
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Đảm bảo kích thước tối thiểu */
    min-height: 200px;
}

.page-khuyen-mai-offer-card h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-khuyen-mai-offer-card p {
    font-size: 1em;
    color: #666666;
    flex-grow: 1;
}

.page-khuyen-mai-offer-card ul {
    margin: 15px 0;
    padding-left: 0;
    width: 100%;
}

.page-khuyen-mai-offer-card ul li {
    font-size: 0.95em;
    color: #555555;
    padding-left: 25px;
    background-size: 18px;
    margin-bottom: 8px;
}

.page-khuyen-mai-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: center;
}

.page-khuyen-mai-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Daily/Weekly Offers List */
.page-khuyen-mai-offer-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.page-khuyen-mai-list-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-khuyen-mai-list-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    min-width: 120px; /* Đảm bảo kích thước tối thiểu */
    min-height: 120px;
}

.page-khuyen-mai-list-item h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-khuyen-mai-list-item p {
    font-size: 1em;
    color: #666666;
    margin-bottom: 15px;
}

.page-khuyen-mai-text-link {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-khuyen-mai-text-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Game Specific Offers Grid */
.page-khuyen-mai-game-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-khuyen-mai-game-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-khuyen-mai-game-card img {
    max-width: 100%;
    height: 200px; /* Kích thước cố định cho hình ảnh game */
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Đảm bảo kích thước tối thiểu */
    min-height: 200px;
}

.page-khuyen-mai-game-card h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-khuyen-mai-game-card p {
    font-size: 0.95em;
    color: #666666;
    flex-grow: 1;
}

.page-khuyen-mai-small-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-khuyen-mai-small-button:hover {
    background-color: #FFEB3B;
    transform: translateY(-2px);
}

/* Terms and Conditions & How to Claim */
.page-khuyen-mai-terms-conditions ul,
.page-khuyen-mai-how-to-claim ol {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuyen-mai-terms-conditions ul li strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-khuyen-mai-faq {
    background-color: var(--background-light);
}

.page-khuyen-mai-faq .faq-container {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-khuyen-mai-faq .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.page-khuyen-mai-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-khuyen-mai-faq .faq-question:hover {
    background: #F0F5FF; /* Màu xanh nhạt hơn primary */
}

.page-khuyen-mai-faq .faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--primary-color);
}

.page-khuyen-mai-faq .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-khuyen-mai-faq .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.page-khuyen-mai-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #F9F9F9;
    color: #444444;
}

.page-khuyen-mai-faq .faq-item.active .faq-answer {
    max-height: 500px; /* Đủ lớn để chứa nội dung */
    padding: 20px 25px;
}

.page-khuyen-mai-faq .faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
}

/* Conclusion */
.page-khuyen-mai-conclusion {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 80px 20px;
}

.page-khuyen-mai-conclusion h2 {
    color: var(--secondary-color);
}

.page-khuyen-mai-conclusion p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15em;
}

.page-khuyen-mai-conclusion a {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-khuyen-mai-conclusion a:hover {
    color: #FFEB3B;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-khuyen-mai-hero {
        flex-direction: column;
        gap: 30px;
        padding: 60px 20px;
    }
    .page-khuyen-mai-hero-content h1 {
        font-size: 2.8em;
    }
    .page-khuyen-mai-hero-content p {
        font-size: 1.1em;
    }
    .page-khuyen-mai h2 {
        font-size: 2.2em;
    }
    .page-khuyen-mai h3 {
        font-size: 1.6em;
    }
    .page-khuyen-mai-offer-card h3 {
        font-size: 1.4em;
    }
    .page-khuyen-mai-list-item img {
        width: 100px;
        height: 100px;
        min-width: 100px;
        min-height: 100px;
    }
    .page-khuyen-mai-list-item h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-khuyen-mai-section {
        padding: 40px 0;
    }
    .page-khuyen-mai-hero {
        padding: 50px 15px;
    }
    .page-khuyen-mai-hero-content h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-khuyen-mai-hero-content p {
        font-size: 1em;
    }
    .page-khuyen-mai-cta-button {
        padding: 15px 35px;
        font-size: 1.1em;
    }
    .page-khuyen-mai h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-khuyen-mai h3 {
        font-size: 1.4em;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .page-khuyen-mai p {
        font-size: 0.95em;
    }
    .page-khuyen-mai ul,
    .page-khuyen-mai ol {
        padding-left: 20px;
        margin: 15px auto;
    }
    .page-khuyen-mai ul li,
    .page-khuyen-mai ol li {
        font-size: 0.9em;
        padding-left: 25px;
        background-size: 18px;
    }
    .page-khuyen-mai-offer-grid,
    .page-khuyen-mai-game-offers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-khuyen-mai-offer-card,
    .page-khuyen-mai-game-card {
        padding: 20px;
        align-items: center; /* Căn giữa nội dung trong card trên mobile */
        text-align: center;
    }
    .page-khuyen-mai-offer-card h3,
    .page-khuyen-mai-game-card h3 {
        text-align: center;
    }
    .page-khuyen-mai-offer-card ul {
        text-align: left;
        margin: 10px 0;
    }
    .page-khuyen-mai-button,
    .page-khuyen-mai-small-button {
        font-size: 1em;
        padding: 10px 25px;
        align-self: center;
    }
    .page-khuyen-mai-list-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .page-khuyen-mai-list-item img {
        margin-bottom: 15px;
    }
    .page-khuyen-mai-list-item h3 {
        font-size: 1.2em;
    }
    .page-khuyen-mai-faq .faq-question {
        padding: 15px 20px;
    }
    .page-khuyen-mai-faq .faq-question h3 {
        font-size: 1.1em;
    }
    .page-khuyen-mai-faq .faq-toggle {
        font-size: 20px;
    }
    .page-khuyen-mai-faq .faq-answer {
        padding: 0 20px;
    }
    .page-khuyen-mai-faq .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-khuyen-mai-conclusion {
        padding: 50px 15px;
    }
    .page-khuyen-mai-conclusion h2 {
        font-size: 1.8em;
    }
    .page-khuyen-mai-conclusion p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-khuyen-mai-hero-content h1 {
        font-size: 1.8em;
    }
    .page-khuyen-mai-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-khuyen-mai h2 {
        font-size: 1.5em;
    }
    .page-khuyen-mai h3 {
        font-size: 1.2em;
    }
    .page-khuyen-mai-offer-card img,
    .page-khuyen-mai-game-card img {
        height: 180px;
    }
}