/* style/promotions.css */
:root {
    --primary-color: #B80F0A;
    --secondary-color: #FFD700;
    --dark-bg-color: #000000;
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --border-color: #e0e0e0;
    --card-bg-color: #ffffff;
    --hover-bg-color: #f5f5f5;
}

.page-promotions {
    color: var(--light-text-color); /* Body background is dark, so use light text */
    background-color: var(--dark-bg-color);
    font-family: 'Arial', sans-serif;
}

/* Fixed header padding */
.page-promotions__hero-promotions {
    padding-top: 120px; /* Adjust for fixed header on desktop */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-promotions__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    color: var(--light-text-color);
}

.page-promotions__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light-text-color);
}

.page-promotions__hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--light-text-color);
}

.page-promotions__hero-description a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-promotions__hero-description a:hover {
    color: var(--light-text-color);
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--dark-text-color);
    color: var(--light-text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button:hover {
    background: var(--light-text-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--light-text-color);
}

.page-promotions__section-title .text-highlight {
    color: var(--secondary-color);
}

.page-promotions__text-block {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--light-text-color);
    text-align: justify;
}

.page-promotions__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-promotions__text-block a:hover {
    color: var(--light-text-color);
}

.page-promotions__intro-section, 
.page-promotions__main-promotions-section, 
.page-promotions__game-specific-promotions-section, 
.page-promotions__guide-section,
.page-promotions__latest-news-section {
    padding: 60px 0;
    background-color: var(--dark-bg-color);
}

.page-promotions__promotion-grid, .page-promotions__game-promo-grid, .page-promotions__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__promotion-card, .page-promotions__game-promo-card, .page-promotions__news-card {
    background: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--dark-text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promotion-card:hover, .page-promotions__game-promo-card:hover, .page-promotions__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__promotion-card .page-promotions__card-title,
.page-promotions__game-promo-card .page-promotions__card-title,
.page-promotions__news-card .page-promotions__card-title {
    font-size: 22px;
    font-weight: bold;
    padding: 20px 25px 10px;
    margin: 0;
    color: var(--primary-color);
}

.page-promotions__news-card .page-promotions__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-promotions__news-card .page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-description {
    font-size: 16px;
    line-height: 1.7;
    padding: 0 25px 20px;
    flex-grow: 1;
}

.page-promotions__card-description a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

.page-promotions__card-button {
    display: block;
    width: calc(100% - 50px);
    margin: 0 25px 25px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 800px;
}

.page-promotions__guide-list li {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--secondary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--light-text-color);
}

.page-promotions__guide-list li strong {
    color: var(--secondary-color);
}

.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--dark-bg-color);
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--dark-text-color);
}

.page-promotions__faq-question:hover {
    background: var(--hover-bg-color);
    border-color: #d0d0d0;
}

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Allow click on entire div, not just text */
    color: var(--dark-text-color);
}

.page-promotions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: 32px;
    height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change + to X */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9; /* Light background for answer text */
    color: var(--dark-text-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
    border: 1px solid var(--border-color);
    border-top: none;
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text-color);
}

.page-promotions__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-promotions__faq-answer a:hover {
    color: var(--dark-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 36px;
    }
    .page-promotions__hero-description {
        font-size: 17px;
    }
    .page-promotions__section-title {
        font-size: 30px;
    }
    .page-promotions__text-block, .page-promotions__guide-list li, .page-promotions__faq-answer p {
        font-size: 16px;
    }
    .page-promotions__promotion-card .page-promotions__card-title,
    .page-promotions__game-promo-card .page-promotions__card-title,
    .page-promotions__news-card .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__card-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-promotions {
        padding-top: 100px !important; /* Adjust for fixed header on mobile */
        padding-bottom: 40px;
    }
    .page-promotions__hero-container {
        padding: 0 15px;
    }
    .page-promotions__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }
    .page-promotions__container {
        padding: 30px 15px;
    }
    .page-promotions__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-promotions__text-block, .page-promotions__guide-list li, .page-promotions__faq-answer p {
        font-size: 15px;
    }
    .page-promotions__promotion-grid, .page-promotions__game-promo-grid, .page-promotions__news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__promotion-card .page-promotions__card-title,
    .page-promotions__game-promo-card .page-promotions__card-title,
    .page-promotions__news-card .page-promotions__card-title {
        font-size: 18px;
        padding: 15px 20px 8px;
    }
    .page-promotions__card-description {
        font-size: 14px;
        padding: 0 20px 15px;
    }
    .page-promotions__card-button {
        width: calc(100% - 40px);
        margin: 0 20px 20px;
        padding: 10px 15px;
        font-size: 16px;
    }
    .page-promotions__guide-list li {
        padding: 12px 15px;
        font-size: 15px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all images and containers are fully responsive */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-promotions__hero-promotions,
    .page-promotions__intro-section,
    .page-promotions__main-promotions-section,
    .page-promotions__game-specific-promotions-section,
    .page-promotions__guide-section,
    .page-promotions__faq-section,
    .page-promotions__latest-news-section,
    .page-promotions__container,
    .page-promotions__promotion-grid,
    .page-promotions__game-promo-grid,
    .page-promotions__news-grid,
    .page-promotions__promotion-card,
    .page-promotions__game-promo-card,
    .page-promotions__news-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-promotions__promotion-card,
    .page-promotions__game-promo-card,
    .page-promotions__news-card {
        margin: 0 auto;
    }
}