/* style/promotions.css */
/* 
   General Styles for .page-promotions
   Ensuring text contrast based on body background (which is light #FFFFFF from shared.css)
*/
.page-promotions {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light background */
  background-color: #f8f8f8; /* A very light grey to distinguish from pure white */
  line-height: 1.6;
  padding-bottom: 60px;
}

/* Fixed header offset - applied to the first content section or the main container */
.page-promotions__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Container for main content width */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section styling */
.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__section-title {
  font-size: 36px;
  color: #26A9E0; /* Primary color for titles */
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.page-promotions__text-block {
  font-size: 17px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.7;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Primary to white gradient */
  padding-bottom: 60px; /* Adjusted to combine with padding-top from var(--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;
}

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

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

.page-promotions__main-title {
  font-size: 48px;
  color: #FFFFFF; /* White text on primary background */
  margin-bottom: 15px;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__description {
  font-size: 20px;
  color: #f0f0f0; /* Slightly off-white for description */
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  background: #d46c05; /* Slightly darker orange on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Feature Grid for Overview */
.page-promotions__feature-grid,
.page-promotions__promo-grid,
.page-promotions__vip-grid,
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__feature-card,
.page-promotions__promo-card,
.page-promotions__vip-card,
.page-promotions__step-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%; /* Ensure cards are same height */
  box-sizing: border-box;
}

.page-promotions__feature-card:hover,
.page-promotions__promo-card:hover,
.page-promotions__vip-card:hover,
.page-promotions__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__feature-card img,
.page-promotions__promo-card img,
.page-promotions__vip-card img,
.page-promotions__step-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Important for responsiveness */
  max-width: 100%; /* Ensure responsiveness */
}

.page-promotions__card-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-promotions__feature-card p,
.page-promotions__promo-card p,
.page-promotions__vip-card p,
.page-promotions__step-card p {
  font-size: 16px;
  color: #555555;
  flex-grow: 1; /* Make paragraphs take available space */
}

/* Dark section styling */
.page-promotions__dark-section {
  background-color: #26A9E0; /* Primary color background */
  color: #ffffff; /* White text for dark background */
}

.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__text-block,
.page-promotions__dark-section .page-promotions__card-title {
  color: #ffffff;
}

/* Promo List (Daily/Weekly Offers) */
.page-promotions__promo-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__list-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__list-item img {
  width: 200px;
  
  object-fit: cover;
  border-radius: 8px;
  margin-right: 25px;
  flex-shrink: 0;
  display: block; /* Important for responsiveness */
  max-width: 100%; /* Ensure responsiveness */
}

.page-promotions__list-content {
  flex-grow: 1;
}

.page-promotions__list-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-promotions__list-content p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
}

/* Buttons within cards/lists */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 15px;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: none;
}

.page-promotions__btn-primary:hover {
  background: #d46c05;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-promotions__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Primary color text */
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Terms & Conditions list */
.page-promotions__terms-list {
  list-style: disc inside;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 30px auto;
  padding-left: 20px;
  font-size: 16px;
  color: #555555;
}

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

.page-promotions__terms-list strong {
  color: #333333;
}

.page-promotions__terms-list a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-promotions__terms-list a:hover {
  color: #1a7fb3;
}

/* How-to-claim steps */
.page-promotions__step-card .page-promotions__btn-primary {
  margin-top: auto; /* Push button to bottom of card */
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

/* FAQ default state - answer hidden */
.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;
  background: #f9f9f9;
  color: #555555;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough for content */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
}

/* Question style */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

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

/* Question title style */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click events */
}