/* style/promotions.css */

/* Biến CSS */
:root {
    --primary-color: #FFD700; /* Vàng kim */
    --secondary-color: #1A1A1A; /* Đen đậm */
    --text-light: #F0F0F0; /* Màu chữ sáng */
    --text-dark: #333333; /* Màu chữ tối */
    --bg-dark-accent: #2c2c2c; /* Nền tối nhấn nhá */
    --button-hover-dark: #e6c200; /* Vàng khi hover */
    --border-color: #444444;
}

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

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

/* Hero Section */
.page-promotions .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #3a3a3a 100%);
    overflow: hidden;
}

.page-promotions .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.page-promotions .hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.page-promotions .hero-image img:hover {
    transform: scale(1.03);
}

.page-promotions .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    background-color: rgba(26, 26, 26, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: -80px; /* Overlap with image */
}

.page-promotions-title {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page-promotions-subtitle {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-promotions-cta-button:hover {
    background: var(--button-hover-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-promotions section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.page-promotions .section-intro {
    background-color: var(--bg-dark-accent);
    padding-top: 80px;
}

.page-promotions-section-heading {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: bold;
}

.page-promotions-text-content {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: justify;
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-promotions-text-content strong {
    color: var(--primary-color);
}

.page-promotions-link-button {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
    padding: 14px 35px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-link-button:hover {
    background: var(--button-hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Offers Grid */
.page-promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions-card {
    background-color: var(--bg-dark-accent);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-promotions-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-promotions-card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-promotions-card-text {
    font-size: 1em;
    color: var(--text-light);
    padding: 0 20px 20px;
    flex-grow: 1;
    text-align: justify;
}

.page-promotions-card-button {
    display: inline-block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions-card-button:hover {
    background: var(--button-hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* How to Claim & Terms Sections */
.page-promotions .section-how-to-claim, .page-promotions .section-terms {
    background-color: var(--secondary-color);
}

.page-promotions-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.page-promotions-list li {
    background-color: var(--bg-dark-accent);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.1em;
    color: var(--text-light);
    line-height: 1.7;
    border-left: 5px solid var(--primary-color);
}

.page-promotions-list li strong {
    color: var(--primary-color);
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
}

.page-promotions-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions-list li a:hover {
    color: var(--button-hover-dark);
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions .section-faq {
    background-color: var(--bg-dark-accent);
}

.page-promotions-faq-list {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #333333;
    border: 1px solid #444444;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #4a4a4a;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--primary-color);
    font-weight: bold;
    flex-grow: 1;
}

.faq-toggle {
    font-size: 2em;
    font-weight: normal;
    color: var(--primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

/* FAQ default state - answer hidden */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #282828;
    color: var(--text-light);
    border-radius: 0 0 8px 8px;
    line-height: 1.7;
}

/* FAQ expanded state */
.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
    border-top: 1px solid #444444;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Call to Action Final Section */
.page-promotions .section-call-to-action {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 80px 20px;
    border-top: none;
}

.page-promotions .section-call-to-action .page-promotions-section-heading {
    color: var(--secondary-color);
    text-shadow: none;
}

.page-promotions .section-call-to-action .page-promotions-text-content {
    color: var(--secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-promotions-cta-buttons .page-promotions-cta-button.primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-promotions-cta-buttons .page-promotions-cta-button.primary:hover {
    background: #444444;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions-cta-buttons .page-promotions-cta-button.secondary {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.page-promotions-cta-buttons .page-promotions-cta-button.secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-title {
        font-size: 2.8em;
    }
    .page-promotions-subtitle {
        font-size: 1.2em;
    }
    .page-promotions-section-heading {
        font-size: 2.2em;
    }
    .page-promotions-card-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-promotions .hero-section {
        padding: 40px 15px;
    }
    .page-promotions .hero-content {
        margin-top: -60px;
        padding: 15px;
    }
    .page-promotions-title {
        font-size: 2.2em;
    }
    .page-promotions-subtitle {
        font-size: 1.1em;
    }
    .page-promotions-cta-button {
        padding: 14px 35px;
        font-size: 1.1em;
    }
    .page-promotions section {
        padding: 40px 0;
    }
    .page-promotions-section-heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions-text-content {
        font-size: 1em;
    }
    .page-promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions-card img {
        height: 180px;
    }
    .page-promotions-card-title {
        font-size: 1.3em;
        padding: 15px;
    }
    .page-promotions-card-text {
        padding: 0 15px 15px;
    }
    .page-promotions-card-button {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
    }
    .page-promotions-list li {
        padding: 15px;
        font-size: 1em;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 1.8em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-promotions-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions-cta-buttons .page-promotions-cta-button {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-promotions-title {
        font-size: 1.8em;
    }
    .page-promotions-subtitle {
        font-size: 0.95em;
    }
    .page-promotions-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-promotions-section-heading {
        font-size: 1.6em;
    }
    .page-promotions-card-title {
        font-size: 1.1em;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 1.5em;
    }
}