/* Base styles */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #1F2D3D);
  background-color: var(--page-bg, #F4F7FB);
}

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

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-dark, #000000);
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-promotions__section-title--white {
  color: #ffffff;
}

.page-promotions__section-description {
  font-size: 18px;
  color: var(--text-main, #1F2D3D);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px; /* Adjust as needed */
  padding-top: 10px; /* Small top padding, assuming body has header offset */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 500px; /* Limit height for desktop */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 800;
  color: var(--text-dark, #000000);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 1.1rem;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 700px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.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: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%));
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-promotions__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #2F6BFF);
  border: 2px solid var(--primary-color, #2F6BFF);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color, #2F6BFF);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

/* Featured Promotions Section */
.page-promotions__featured-promos {
  padding: 60px 0;
  background-color: var(--page-bg, #F4F7FB);
}

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

.page-promotions__promo-card {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #1F2D3D);
}

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

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

.page-promotions__card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-dark, #000000);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-promotions__card-text {
  font-size: 16px;
  color: var(--text-main, #1F2D3D);
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 20px;
}

.page-promotions__card-button {
  margin-top: auto; /* Push button to bottom */
  width: calc(100% - 40px); /* Adjust for padding */
}

/* How To Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: var(--primary-color, #2F6BFF);
  color: #ffffff;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  max-width: 400px;
  text-align: left;
}

.page-promotions__step-number {
  font-size: 32px;
  font-weight: bold;
  color: var(--glow-color, #A5C4FF);
  margin-right: 20px;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--glow-color, #A5C4FF);
  border-radius: 50%;
}

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

.page-promotions__step-title {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-promotions__step-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--page-bg, #F4F7FB);
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #D6E2FF);
  overflow: hidden;
  background: var(--card-bg, #FFFFFF);
  color: var(--text-main, #1F2D3D);
}
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;
}
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: #f5f5f5;
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark, #000000);
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color, #2F6BFF);
  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: #f9f9f9; /* Slightly different background for answer */
  border-radius: 0 0 5px 5px;
}
.page-promotions__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: var(--text-main, #1F2D3D);
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding-bottom: 30px;
  }
  .page-promotions__hero-image-wrapper {
    max-height: 400px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
  .page-promotions__promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-promotions__step-item {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-promotions__hero-section {
    padding-top: 10px !important; /* Small top padding, no var(--header-offset) */
    padding-bottom: 20px;
  }
  .page-promotions__hero-image-wrapper {
    max-height: 250px;
    margin-bottom: 20px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-promotions__description {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 15px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Featured Promotions Section */
  .page-promotions__featured-promos {
    padding: 40px 0;
  }
  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 15px;
    padding: 0 15px;
  }
  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }
  .page-promotions__promo-card {
    padding-bottom: 20px;
  }
  .page-promotions__promo-image {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 20px;
    padding: 0 15px;
  }
  .page-promotions__card-text {
    font-size: 15px;
    padding: 0 15px;
  }
  .page-promotions__card-button {
    width: calc(100% - 30px);
  }

  /* How To Claim Section */
  .page-promotions__how-to-claim {
    padding: 50px 0;
  }
  .page-promotions__steps-list {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }
  .page-promotions__step-item {
    max-width: 100%;
  }
  .page-promotions__step-number {
    font-size: 28px;
    width: 45px;
    height: 45px;
  }
  .page-promotions__step-title {
    font-size: 20px;
  }
  .page-promotions__step-description {
    font-size: 15px;
  }

  /* FAQ Section */
  .page-promotions__faq-section {
    padding: 40px 0;
  }
  .page-promotions__faq-list {
    margin-top: 30px;
    padding: 0 15px;
  }
  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; }
  details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }
  .page-promotions__faq-answer p { font-size: 15px; }

  /* General image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-promotions__container,
  .page-promotions__hero-content,
  .page-promotions__promo-grid,
  .page-promotions__how-to-claim .page-promotions__container,
  .page-promotions__faq-section .page-promotions__container,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}