/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared, fallback to white */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__card-title,
.page-promotions__dark-bg .page-promotions__benefit-title,
.page-promotions__dark-bg .page-promotions__faq-question span {
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 100px 0 60px;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-promotions__hero-section .page-promotions__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-promotions__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-promotions__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-promotions__btn-primary:hover {
  background-color: #d16b05;
  border-color: #d16b05;
}

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

.page-promotions__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7bb0;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__overview-image {
  max-width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Types Section */
.page-promotions__types-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-promotions__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333;
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-promotions__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card .page-promotions__btn-primary {
  align-self: flex-end;
  margin-top: auto; /* Push button to bottom */
}

/* Video Section */
.page-promotions__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Ensure it behaves like a block element */
}

.page-promotions__video-cta {
  margin-top: 30px;
  text-align: center;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 80px 0;
  text-align: center;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__claim-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
  text-align: left;
}

.page-promotions__claim-steps li {
  counter-increment: step-counter;
  margin-bottom: 25px;
  padding-left: 50px;
  position: relative;
  font-size: 1.1em;
  color: #ffffff;
}

.page-promotions__claim-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #EA7C07;
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-promotions__claim-steps li strong {
  color: #EA7C07;
}

/* Benefits Section */
.page-promotions__benefits-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-promotions__benefit-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-promotions__benefit-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-promotions__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f0f8ff; /* Light blue background for question */
  border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-question:hover {
  background-color: #e6f3ff;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #EA7C07;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-promotions__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__hero-description {
    font-size: 1.2em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-promotions__hero-title {
    font-size: 2.5em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions__overview-section,
  .page-promotions__types-section,
  .page-promotions__video-section,
  .page-promotions__terms-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__benefits-section,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    padding: 60px 0;
  }

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

  .page-promotions__grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card {
    padding: 20px;
  }

  .page-promotions__card-title {
    font-size: 1.5em;
  }

  .page-promotions__card-image {
    height: 200px;
  }

  .page-promotions__video-wrapper {
    margin-top: 30px;
  }

  .page-promotions__claim-steps {
    padding: 0 15px;
  }

  .page-promotions__claim-steps li {
    padding-left: 45px;
    font-size: 1em;
  }

  .page-promotions__claim-steps li::before {
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

  .page-promotions__benefit-title {
    font-size: 1.3em;
  }

  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Mobile video responsiveness */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}