/* style/promotions.css */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f4f7f6;
    --border-light: #e0e0e0;
    --button-hover-dark: #0f1217; /* Darker shade for primary button hover */
    --button-hover-light: #f0c300; /* Darker shade for secondary button hover */
}

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

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

.page-promotions__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

.page-promotions__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-dark);
}

.page-promotions__text-center {
    text-align: center;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust as needed, padding-top is critical */
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a4a60 100%); /* Blend of primary color */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.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;
    position: relative;
    z-index: 1; /* Image below content */
}

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

.page-promotions__hero-content {
    position: absolute; /* Overlay content on the image area */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 80%; /* Adjust width for readability */
    color: var(--text-light); /* Light text for dark background */
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 12px;
}

.page-promotions__hero-title {
    font-size: 48px;
    color: var(--secondary-color); /* Golden color for title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color); /* Dark text on golden button */
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

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

.page-promotions__cta-button--large {
    padding: 20px 50px;
    font-size: 22px;
}

/* Introduction Section */
.page-promotions__introduction-section {
    background-color: var(--background-light);
}
.page-promotions__introduction-section .page-promotions__section-title {
    color: var(--primary-color);
}
.page-promotions__introduction-section .page-promotions__text-block {
    color: var(--text-dark);
}

/* Types Section (Dark Background) */
.page-promotions__types-section {
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-light); /* Light text */
}

.page-promotions__types-section .page-promotions__section-title {
    color: var(--secondary-color); /* Golden title on dark background */
}

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

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

.page-promotions__card {
    background-color: var(--background-light); /* Light card background */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.page-promotions__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin: 20px 20px 10px;
    font-weight: bold;
}

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

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

.page-promotions__card-description {
    font-size: 15px;
    color: var(--text-dark);
    padding: 0 20px 20px;
    flex-grow: 1;
    text-align: justify;
}

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 20px 20px;
    align-self: flex-start;
    border: 2px solid var(--primary-color);
}

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

.page-promotions__final-text-types {
    margin-top: 40px;
    text-align: center;
    font-size: 17px;
    color: var(--text-light);
}


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

.page-promotions__how-to-claim-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__steps-list li {
    background-color: #ffffff;
    border-left: 5px solid var(--secondary-color);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__step-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__steps-list p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 0;
}

.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Terms Section (Dark Background) */
.page-promotions__terms-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-promotions__terms-section .page-promotions__section-title {
    color: var(--secondary-color);
}

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

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 30px;
    color: var(--text-light);
}

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

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

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

.page-promotions__faq-section .page-promotions__section-title {
    color: var(--primary-color);
}

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

/* FAQ容器样式 */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.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 20px; /* Adjusted padding for better visual */
  opacity: 0;
  background-color: #f9f9f9;
  color: var(--text-dark);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important; /* Adjusted padding for better visual */
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}
.page-promotions__faq-answer p {
    margin-bottom: 0;
}


/* 问题样式 */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px; /* Match item border-radius */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color);
}

/* 切换图标 */
.page-promotions__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Golden color for toggle */
  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; /* Larger touch target */
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--primary-color); /* Darker when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Final CTA Section (Medium Background) */
.page-promotions__cta-final-section {
    background-color: var(--secondary-color); /* Golden background */
    color: var(--primary-color); /* Dark text on golden background */
    text-align: center;
}

.page-promotions__cta-final-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__cta-final-section .page-promotions__text-block {
    color: var(--primary-color);
    max-width: 800px;
    margin: 0 auto 30px;
}

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

/* Mobile responsiveness for images */
@media (max-width: 768px) {
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__section,
    .page-promotions__container,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section Mobile */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-content {
        position: relative; /* Make content flow below image on mobile */
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 20px;
        margin-top: -80px; /* Overlap slightly for visual effect */
        background-color: var(--primary-color); /* Solid background for content */
        color: var(--text-light);
        border-radius: 8px;
    }
    .page-promotions__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-promotions__hero-image img {
        border-radius: 4px;
    }
    
    /* General Section Titles */
    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Cards */
    .page-promotions__card-grid {
        gap: 20px;
    }
    .page-promotions__card img {
        
    }
    .page-promotions__card-title {
        font-size: 20px;
        margin: 15px 15px 8px;
    }
    .page-promotions__card-description {
        font-size: 14px;
        padding: 0 15px 15px;
    }
    .page-promotions__btn-secondary {
        margin: 0 15px 15px;
        padding: 8px 20px;
        font-size: 14px;
    }

    /* How to Claim */
    .page-promotions__steps-list li {
        padding: 20px 25px;
    }
    .page-promotions__step-title {
        font-size: 20px;
    }
    .page-promotions__steps-list p {
        font-size: 15px;
    }

    /* Buttons */
    .page-promotions__cta-button,
    .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;
        padding-right: 15px;
        font-size: 16px;
        padding: 12px 25px;
    }
    
    .page-promotions__cta-button--large {
        padding: 15px 30px;
        font-size: 18px;
    }

    .page-promotions__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
    .page-promotions__button-group a {
        margin: 0 auto; /* Center individual buttons */
    }

    /* FAQ Mobile */
    .page-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-promotions__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }
}