:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000080; /* Navy Blue */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212; /* Body background from shared.css */
    --card-bg-dark-mode: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark bg */
    --border-color-dark-mode: rgba(255, 255, 255, 0.15);
    --shadow-color-dark-mode: rgba(0, 0, 0, 0.4);
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Ensure consistency if body background is not global */
    line-height: 1.6;
    padding-bottom: 80px; /* Space above footer */
}

/* Fixed Header Padding */
.page-promotions__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0a0a4a 100%);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: hidden;
}

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

.page-promotions__main-title {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 8px var(--shadow-color-dark-mode);
    line-height: 1.2;
    font-weight: 700;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color-dark-mode);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-promotions__cta-button--primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--primary:hover {
    background: #e6c200; /* Slightly darker gold */
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color-dark-mode);
}

.page-promotions__cta-button--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color-dark-mode);
}

.page-promotions__cta-button--small {
    padding: 10px 25px;
    font-size: 1em;
}

.page-promotions__cta-button--tiny {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 1px 4px var(--shadow-color-dark-mode);
    font-weight: 600;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: #c0c0c0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

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

.page-promotions__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-color-dark-mode);
}

.page-promotions__feature-image {
    width: 100%;
    max-width: 300px; /* Example size */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
    min-width: 200px; /* Minimum size requirement */
}

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

.page-promotions__feature-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Featured Promotions Section */
.page-promotions__featured-promos-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

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

.page-promotions__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-color-dark-mode);
}

.page-promotions__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
    min-width: 200px; /* Minimum size requirement */
}

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

.page-promotions__promo-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__promo-text {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-promotions__step-item {
    background: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color-dark-mode);
    border: 1px solid var(--border-color-dark-mode);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--shadow-color-dark-mode);
}

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

.page-promotions__step-text {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-item {
    background: var(--card-bg-dark-mode);
    border: 1px solid var(--border-color-dark-mode);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1em;
    color: #e0e0e0;
    box-shadow: 0 2px 10px var(--shadow-color-dark-mode);
}

.page-promotions__terms-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: #c0c0c0;
}

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

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

/* FAQ容器样式 */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark-mode);
  background: var(--card-bg-dark-mode);
  box-shadow: 0 2px 10px var(--shadow-color-dark-mode);
}

/* 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;
  opacity: 0;
  color: #e0e0e0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở ra */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa bất kỳ nội dung nào */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Nền sáng hơn một chút cho câu trả lời đã mở */
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark-mode);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: rgba(255, 255, 255, 0.12); /* Sáng hơn khi di chuột */
}

.page-promotions__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

/* Vấn đề tiêu đề kiểu */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
}

/* Chuyển đổi biểu tượng */
.page-promotions__faq-toggle {
  font-size: 24px;
  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; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Xoay cho dấu trừ */
  background: rgba(255, 255, 255, 0.2);
}

/* Bottom CTA Section */
.page-promotions__cta-bottom-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a4a 0%, var(--secondary-color) 100%);
    text-align: center;
    color: var(--text-light);
}

/* General image styling */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 60px;
    }

    .page-promotions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        padding: 0 15px; /* Add padding to container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-promotions__cta-button {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 25px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

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

    .page-promotions__overview-section,
    .page-promotions__featured-promos-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 60px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-promotions__features-grid,
    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .page-promotions__feature-title,
    .page-promotions__promo-title,
    .page-promotions__step-title {
        font-size: 1.3em;
    }

    .page-promotions__feature-image,
    .page-promotions__promo-image {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

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

    /* All images must be responsive */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}