/* Base styles for the promotions page */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

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

.page-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD86A; /* Gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #FFD86A, transparent);
  border-radius: 2px;
}

.page-promotions__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF5E1;
}

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 550px;
  overflow: hidden;
  position: relative;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #FFD86A;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 19px;
  line-height: 1.7;
  color: #FFF5E1;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container fills width */
  max-width: 600px; /* Max width for button group */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #FFD86A;
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 216, 106, 0.6);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: #FFD86A;
  border: 2px solid #FFD86A;
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.2);
}

.page-promotions__btn-secondary:hover {
  background: rgba(255, 216, 106, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 216, 106, 0.4);
}

/* Overview & Why Choose Sections */
.page-promotions__dark-section {
  background-color: #7A0E0E; /* Deep Red */
  padding: 60px 0;
}

.page-promotions__overview-section .page-promotions__text-block,
.page-promotions__why-choose-section .page-promotions__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Featured Promotions Grid */
.page-promotions__featured-promotions {
  padding: 60px 0;
}

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

.page-promotions__promo-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border */
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-image {
  width: 100%;
  height: 220px;
  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: 24px;
  font-weight: 700;
  color: #FFD86A;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__promo-description {
  font-size: 16px;
  line-height: 1.7;
  color: #FFF5E1;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__promo-expiry {
  font-size: 14px;
  color: #F4D34D; /* Gold */
  margin-top: auto;
  margin-bottom: 15px;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 60px 0;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 900px;
}

.page-promotions__step-item {
  background-color: #D32F2F;
  border: 1px solid #F2B544;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 70px;
}

.page-promotions__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD86A;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__step-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #FFF5E1;
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
  padding: 60px 0;
  counter-reset: h3-counter;
}

.page-promotions__article-body {
  max-width: 900px;
  margin: 40px auto 0;
  background-color: #D32F2F;
  border: 1px solid #F2B544;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__article-body p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-promotions__article-body h3.page-promotions__article-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #FFD86A;
  margin-top: 30px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-promotions__article-body h3.page-promotions__article-subtitle::before {
  content: counter(h3-counter) ". ";
  counter-increment: h3-counter;
  position: absolute;
  left: 0;
  top: 0;
  color: #F4D34D;
}

.page-promotions__article-body a {
  color: #F4D34D;
  text-decoration: underline;
}

.page-promotions__article-body a:hover {
  color: #FFD86A;
}

/* Why Choose Section */
.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;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__benefit-item {
  background-color: #D32F2F;
  border: 1px solid #F2B544;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-promotions__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD86A;
  margin-bottom: 15px;
}

.page-promotions__benefit-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #FFF5E1;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #FFD86A;
}

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: rgba(255, 216, 106, 0.1);
}

.page-promotions__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A;
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F4D34D; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 25px;
  background: #B71C1C; /* Background */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1;
  font-size: 16px;
  line-height: 1.7;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-image-wrapper {
    max-height: 450px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__hero-description {
    font-size: 18px;
  }
  .page-promotions__btn-primary, .page-promotions__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__promo-title {
    font-size: 22px;
  }
  .page-promotions__step-title {
    font-size: 20px;
  }
  .page-promotions__article-body h3.page-promotions__article-subtitle {
    font-size: 22px;
  }
  .page-promotions__benefit-title {
    font-size: 20px;
  }
  details.page-promotions__faq-item summary.page-promotions__faq-question {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* HERO Section mobile */
  .page-promotions__hero-section {
    padding-bottom: 40px;
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-promotions__hero-image-wrapper {
    max-height: 300px; /* Adjust height for smaller screens */
  }
  .page-promotions__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio for contain */
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section titles mobile */
  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  /* Text blocks mobile */
  .page-promotions__text-block {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
  }

  /* Featured Promotions Grid mobile */
  .page-promotions__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-image {
    height: 180px;
  }
  .page-promotions__promo-title {
    font-size: 20px;
  }
  .page-promotions__promo-description {
    font-size: 15px;
  }

  /* How to Claim mobile */
  .page-promotions__steps-list {
    margin-top: 30px;
  }
  .page-promotions__step-item {
    padding: 25px 20px 25px 60px;
    margin-bottom: 20px;
  }
  .page-promotions__step-item::before {
    left: 15px;
    top: 25px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  .page-promotions__step-title {
    font-size: 18px;
  }
  .page-promotions__step-item p {
    font-size: 15px;
  }

  /* Terms and Conditions mobile */
  .page-promotions__article-body {
    padding: 25px;
    margin-top: 30px;
  }
  .page-promotions__article-body p {
    font-size: 16px;
  }
  .page-promotions__article-body h3.page-promotions__article-subtitle {
    font-size: 20px;
    margin-top: 25px;
    padding-left: 25px;
  }

  /* Why Choose mobile */
  .page-promotions__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-promotions__benefit-title {
    font-size: 18px;
  }
  .page-promotions__benefit-item p {
    font-size: 15px;
  }

  /* FAQ mobile */
  .page-promotions__faq-list {
    margin-top: 30px;
  }
  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  /* General image and container rules for mobile */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-promotions__section, .page-promotions__card, .page-promotions__container, .page-promotions__promo-card, .page-promotions__step-item, .page-promotions__article-body, .page-promotions__benefit-item, details.page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__promotions-grid, .page-promotions__benefits-list, .page-promotions__cta-buttons {
    overflow-x: hidden !important;
  }
}