/* promotions.css */

:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-background-dark: #08160F;
    --color-card-bg: #11271B;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background-dark);
}

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

.page-promotions__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-promotions__dark-section {
    background-color: var(--color-background-dark);
    color: var(--color-text-main);
}

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

.page-promotions__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

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

.page-promotions__hero-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin-top: 50px;
    max-width: 900px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.page-promotions__main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.page-promotions__hero-description {
    font-size: 20px;
    color: var(--color-text-main);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box;
    border: 2px solid transparent;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border-color: var(--color-gold);
}

.page-promotions__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-background-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us Section */
.page-promotions__why-choose-us {
    background-color: var(--color-card-bg);
}

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

.page-promotions__feature-item {
    background: var(--color-background-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.page-promotions__feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.page-promotions__feature-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Featured Promotions Section */
.page-promotions__featured-promos {
    background-color: var(--color-background-dark);
}

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

.page-promotions__promo-card {
    background: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.page-promotions__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__promo-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__promo-content .page-promotions__btn-primary {
    align-self: flex-start;
    margin-top: auto; /* Push button to bottom */
}

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

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

.page-promotions__step-item {
    background: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

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

.page-promotions__step-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.page-promotions__step-text a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
}

.page-promotions__step-text a:hover {
    text-decoration: underline;
}

.page-promotions__cta-buttons--center {
    margin-top: 40px;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
    background-color: var(--color-card-bg);
}

.page-promotions__terms-list {
    list-style: disc;
    margin: 40px auto 30px;
    max-width: 900px;
    padding-left: 25px;
    color: var(--color-text-main);
    font-size: 17px;
    line-height: 1.8;
}

.page-promotions__terms-list li {
    margin-bottom: 15px;
}

.page-promotions__article-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-main);
    max-width: 900px;
    margin: 0 auto 30px;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--color-background-dark);
}

.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: 5px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-card-bg);
  color: var(--color-text-main);
}
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;
  color: var(--color-gold);
  font-weight: 600;
}
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: var(--color-deep-green);
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-gold);
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-gold);
  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: var(--color-deep-green);
  border-radius: 0 0 5px 5px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* Final CTA Section */
.page-promotions__final-cta {
    background-color: var(--color-card-bg);
}

/* --- Responsive Design --- */

/* Tablet and smaller desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-promotions__container {
        padding: 15px;
    }

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

    .page-promotions__section-title {
        font-size: 32px;
    }

    .page-promotions__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-promotions__hero-content-wrapper {
        padding: 60px 15px;
        margin-top: 30px;
    }

    .page-promotions__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }

    .page-promotions__hero-description {
        font-size: 18px;
    }

    .page-promotions__cta-buttons {
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-promotions__features-grid,
    .page-promotions__promotions-grid,
    .page-promotions__steps-grid {
        gap: 25px;
        margin-top: 30px;
    }

    .page-promotions__feature-title {
        font-size: 22px;
    }

    .page-promotions__promo-image {
        height: 220px;
    }

    .page-promotions__promo-title {
        font-size: 24px;
    }

    .page-promotions__step-title {
        font-size: 24px;
    }

    .page-promotions__terms-list,
    .page-promotions__article-body {
        font-size: 16px;
    }

    .page-promotions__faq-qtext {
        font-size: 17px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-promotions__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-promotions__section-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

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

    .page-promotions__hero-image-wrapper {
        position: relative;
        height: auto;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        margin-bottom: 20px;
    }

    .page-promotions__hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important; /* contain for mobile */
        aspect-ratio: unset !important; /* unset aspect ratio */
    }

    .page-promotions__hero-content-wrapper {
        padding: 30px 15px;
        margin-top: 0;
        width: calc(100% - 30px);
        box-sizing: border-box;
        border-radius: 5px;
        margin-bottom: 20px;
    }

    .page-promotions__main-title {
        font-size: clamp(24px, 7vw, 40px);
        margin-bottom: 15px;
    }

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

    /* 按钮与按钮容器 */
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .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: 12px 15px;
        font-size: 16px;
    }

    .page-promotions__features-grid,
    .page-promotions__promotions-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }

    .page-promotions__feature-item,
    .page-promotions__promo-card,
    .page-promotions__step-item {
        padding: 20px;
    }

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

    .page-promotions__promo-image {
        height: 180px;
    }

    .page-promotions__promo-title {
        font-size: 22px;
    }

    .page-promotions__promo-text {
        font-size: 15px;
    }

    .page-promotions__step-title {
        font-size: 22px;
    }

    .page-promotions__step-number {
        width: 50px;
        height: 50px;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-promotions__terms-list,
    .page-promotions__article-body {
        font-size: 15px;
        padding-left: 20px;
    }

    /* 通用图片与容器 */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container, /* already has padding in desktop */
    .page-promotions__promo-card,
    .page-promotions__feature-item,
    .page-promotions__step-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Already handled by .page-promotions__container */
        /* padding-right: 15px; */ /* Already handled by .page-promotions__container */
    }

    /* FAQ */
    details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
    .page-promotions__faq-qtext { font-size: 16px; }
    .page-promotions__faq-toggle { font-size: 20px; width: 24px; height: 24px; margin-left: 10px; }
    details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }
}

/* Desktop specific image handling for HERO to ensure object-fit:cover */
@media (min-width: 769px) {
    .page-promotions__hero-image {
        object-fit: cover;
    }
}