:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f8f8;
    --border-color: #e0e0e0;
    --button-register: #C30808;
    --button-login: #C30808;
    --font-login-register: #FFFF00;
}

/* Base styles for the page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
}

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

.page-promotions__section {
    padding: 40px 0;
    margin-bottom: 20px;
    background: var(--secondary-color);
}

.page-promotions__section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

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

.page-promotions__text-block {
    font-size: 16px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top margin, assuming body handles header offset */
    background-color: var(--primary-color);
}

.page-promotions__hero-image {
    width: 100%;
    height: 500px; /* Fixed height for desktop hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop to fill space */
    display: block;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px 60px;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Clamp for H1, no fixed large size */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-promotions__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-primary:hover {
    background-color: #005a2e; /* Slightly darker green for hover */
    border-color: #005a2e;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

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

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__cta-buttons--center {
    justify-content: center;
}

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

.page-promotions__card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-promotions__card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-promotions__card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 20px 10px;
    line-height: 1.3;
}

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

.page-promotions__card-title a:hover {
    color: #005a2e;
}

.page-promotions__card-description {
    font-size: 15px;
    color: #666;
    padding: 0 20px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-promotions__card .page-promotions__btn-secondary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    box-sizing: border-box;
}

/* Why Choose Us Section */
.page-promotions__why-choose-us .page-promotions__container {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__benefit-item {
    background: rgba(255, 255, 255, 0.1); /* Light transparent background for contrast */
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    height: 100%;
}

.page-promotions__benefit-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-promotions__benefit-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    background: var(--background-light);
}

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

.page-promotions__step-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-promotions__step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__step-card p {
    font-size: 15px;
    color: #555;
    flex-grow: 1;
}

/* Terms and Responsible Gambling Section */
.page-promotions__terms-responsible {
    background: var(--secondary-color);
    padding-bottom: 60px;
}

.page-promotions__terms-responsible a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-promotions__terms-responsible a:hover {
    color: #005a2e;
}

/* FAQ Section */
.page-promotions__faq-section {
    background: var(--background-light);
    padding-bottom: 60px;
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  font-size: 15px;
  color: #555;
}
details.page-promotions__faq-item .page-promotions__faq-answer p {
    margin: 0;
}

/* Bottom CTA Section */
.page-promotions__cta-bottom .page-promotions__container {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Copyright Info */
.page-promotions__copyright-info {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
    background-color: var(--background-light);
    margin-top: 20px;
}

/* Responsive Styles */
/* All images must set max-width: 100%; height: auto; */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-promotions__container {
        padding: 15px;
    }

    .page-promotions__section {
        padding: 30px 0;
    }

    .page-promotions__section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .page-promotions__text-block {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* HERO 主图区域 */
    .page-promotions__hero-section {
        padding-top: 10px; /* Consistent small top padding */
    }

    .page-promotions__hero-image {
        height: 250px; /* Adjust height for mobile */
    }

    .page-promotions__hero-image img {
        object-fit: contain !important; /* Mobile hero image must contain, not cover */
        aspect-ratio: unset !important; /* Remove aspect ratio if set for desktop */
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__hero-content {
        padding: 20px 15px 30px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }

    .page-promotions__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Ensure internal padding */
        padding-right: 15px;
        margin-left: 0 !important; /* Remove margin-left for stacked buttons */
    }

    .page-promotions__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* 产品展示图区域 (General card grid, not gameshow for this page) */
    .page-promotions__promotions-grid {
        grid-template-columns: 1fr; /* Single column for promotion cards */
        gap: 20px;
    }
    
    .page-promotions__card img {
         /* Adjust card image height for mobile */
    }

    .page-promotions__card-title {
        font-size: 18px;
    }
    .page-promotions__card-description {
        font-size: 14px;
    }
    .page-promotions__card .page-promotions__btn-secondary {
        width: calc(100% - 40px) !important;
    }


    .page-promotions__why-choose-us .page-promotions__container {
        padding: 40px 15px;
    }

    .page-promotions__benefits-list {
        grid-template-columns: 1fr; /* Single column for benefits */
        gap: 20px;
    }

    .page-promotions__benefit-title {
        font-size: 20px;
    }

    /* Long text / Article body (General content blocks) */
    .page-promotions__text-block {
        text-align: left; /* Align text left for better readability on mobile */
        padding: 0 10px; /* Slight padding for text blocks */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 通用图片与容器 */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__step-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__how-to-claim .page-promotions__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__steps-grid {
        gap: 20px;
        padding: 0 15px;
    }
    .page-promotions__step-card {
        padding: 20px;
    }
    .page-promotions__step-title {
        font-size: 18px;
    }
    .page-promotions__step-card p {
        font-size: 14px;
    }

    details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
    .page-promotions__faq-qtext { font-size: 15px; }
    details.page-promotions__faq-item .page-promotions__faq-answer {
        padding: 0 15px 15px;
    }

    .page-promotions__cta-bottom .page-promotions__container {
        padding: 40px 15px;
    }
    .page-promotions__copyright-info {
        padding: 15px;
    }
}