/* style/promotions.css */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --bg-color: #F5F7FA;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for light background */
    background-color: var(--bg-color);
}

.page-promotions h1, .page-promotions h2, .page-promotions h3 {
    color: var(--primary-color);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-promotions h1 {
    font-weight: bold;
    letter-spacing: -0.02em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
}

.page-promotions p {
    margin-bottom: 1em;
}

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

/* HERO Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-color);
    overflow: hidden;
}

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

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions__main-title {
    font-size: clamp(2.2em, 5vw, 3.5em);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__description {
    font-size: 1.1em;
    color: var(--text-main-color);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-promotions__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

/* Common Section Styles */
.page-promotions__overview-section,
.page-promotions__main-promos-section,
.page-promotions__security-support-section,
.page-promotions__latest-blog-section {
    padding: 60px 0;
}

.page-promotions__dark-bg {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-promotions__dark-bg h2, .page-promotions__dark-bg h3 {
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: var(--bg-color);
    color: var(--text-main-color);
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-promotions__features {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-promotions__feature-item {
    flex: 1;
    min-width: 280px;
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Fast Access Section */
.page-promotions__fast-access-section {
    text-align: center;
    padding: 60px 0;
}

.page-promotions__access-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-promotions__access-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-promotions__access-btn:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.page-promotions__fast-access-section img {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-promotions__promo-card,
.page-promotions__blog-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.page-promotions__promo-card:hover,
.page-promotions__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-card img,
.page-promotions__blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-promotions__promo-card .page-promotions__card-title,
.page-promotions__blog-card .page-promotions__card-title {
    font-size: 1.4em;
    margin: 20px 20px 10px;
    flex-grow: 1;
}

.page-promotions__promo-card p,
.page-promotions__blog-card p {
    margin: 0 20px 20px;
    color: #666;
}

.page-promotions__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 30px;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    margin: 0 20px 20px;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Game Types Section */
.page-promotions__game-tabs {
    margin-top: 40px;
}

.page-promotions__tab-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.page-promotions__tab-button {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.page-promotions__tab-button:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.page-promotions__tab-button--active {
    background: var(--button-gradient);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-promotions__tab-pane {
    display: none;
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-promotions__tab-pane--active {
    display: block;
}

.page-promotions__tab-pane h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-promotions__game-types-section .page-promotions__btn-secondary {
    margin: 20px 0 0 0;
}

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

.page-promotions__info-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-promotions__info-card .page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__security-support-section img {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 40px auto 0 auto;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    background-color: #ffffff;
}

details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
    background: #f5f5f5;
}

.page-promotions__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}

.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 25px 25px;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
    color: #555;
}

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

.page-promotions__blog-card .page-promotions__card-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-promotions__blog-card .page-promotions__card-title a:hover {
    color: var(--secondary-color);
}

.page-promotions__blog-date {
    font-size: 0.9em;
    color: #999;
    margin: -10px 20px 15px;
}

.page-promotions__btn-text {
    display: inline-block;
    margin: 0 20px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions__btn-text:hover {
    color: var(--secondary-color);
}

.page-promotions__view-all-button {
    text-align: center;
    margin-top: 50px;
}

/* General Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__hero-image img {
      border-radius: 6px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-image img {
        border-radius: 4px;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 1.1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.8em);
    }
    .page-promotions__description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-promotions__overview-section, 
    .page-promotions__main-promos-section, 
    .page-promotions__security-support-section, 
    .page-promotions__latest-blog-section, 
    .page-promotions__fast-access-section, 
    .page-promotions__faq-section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__feature-item {
        min-width: unset;
        flex-basis: 100%;
        padding: 25px;
    }
    .page-promotions__access-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .page-promotions__access-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-promotions__promo-grid,
    .page-promotions__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__promo-card img,
    .page-promotions__blog-card img {
        
    }
    .page-promotions__promo-card .page-promotions__card-title,
    .page-promotions__blog-card .page-promotions__card-title {
        font-size: 1.2em;
        margin: 15px 15px 5px;
    }
    .page-promotions__promo-card p,
    .page-promotions__blog-card p {
        margin: 0 15px 15px;
        font-size: 0.95em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__btn-secondary {
        margin: 15px 0 15px 0;
    }
    .page-promotions__tab-header {
        flex-direction: column;
        gap: 8px;
    }
    .page-promotions__tab-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px;
    }
    .page-promotions__tab-pane {
        padding: 20px;
    }
    .page-promotions__tab-pane h3 {
        font-size: 1.5em;
    }
    .page-promotions__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    details.page-promotions__faq-item summary.page-promotions__faq-question {
        padding: 15px;
    }
    .page-promotions__faq-qtext {
        font-size: 1em;
    }
    details.page-promotions__faq-item .page-promotions__faq-answer {
        padding: 0 15px 15px;
    }
    .page-promotions__blog-date {
        margin: -5px 15px 10px;
    }
    .page-promotions__btn-text {
        margin: 0 15px 15px;
    }
    .page-promotions__view-all-button {
        margin-top: 30px;
    }

    /* Mobile image overflow prevention */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-promotions__section, .page-promotions__card, .page-promotions__container, .page-promotions__promo-card, .page-promotions__blog-card, .page-promotions__info-card, .page-promotions__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__hero-container, .page-promotions__fast-access-section .page-promotions__container, .page-promotions__game-types-section .page-promotions__container, .page-promotions__security-support-section .page-promotions__container, .page-promotions__faq-section .page-promotions__container, .page-promotions__latest-blog-section .page-promotions__container {
      padding-left: 15px !important;
      padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6em, 8vw, 2.5em);
    }
    .page-promotions__cta-button {
        font-size: 1em;
        padding: 10px 25px;
    }
    .page-promotions__promo-card img,
    .page-promotions__blog-card img {
        
    }
}