/* style/promotions.css */

/* Custom Colors */
:root {
  --page-promotions-bg: #08160F;
  --page-promotions-card-bg: #11271B;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-promotions-border: #2E7A4E;
  --page-promotions-glow: #57E38D;
}

.page-promotions {
  background-color: var(--page-promotions-bg); /* Dark background from custom colors */
  color: var(--page-promotions-text-main); /* Light text for dark background */
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  text-align: center;
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
}

.page-promotions__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-promotions-text-main);
}

.page-promotions__hero-description {
  font-size: clamp(1em, 1.5vw, 1.3em);
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-promotions-text-main);
}

.page-promotions__introduction-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-promotions__introduction-section .page-promotions__section-title {
  color: #333333;
}

.page-promotions__introduction-section .page-promotions__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: justify;
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__featured-promotions {
  padding: 80px 0;
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
}

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

.page-promotions__promotion-card {
  background-color: var(--page-promotions-card-bg); /* Dark card background */
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, will be responsive */
  object-fit: cover;
  display: block;
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-promotions-text-main);
}

.page-promotions__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: var(--page-promotions-btn-gradient);
  color: #ffffff;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__card-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-promotions__how-to-claim .page-promotions__section-title {
  color: #333333;
}

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

.page-promotions__step-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #11A84E;
}

.page-promotions__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: var(--page-promotions-btn-gradient);
  color: #ffffff;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}

.page-promotions__button-center {
  display: block;
  margin: 40px auto 0 auto;
}

.page-promotions__terms-conditions {
  padding: 80px 0;
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
  text-align: center;
}

.page-promotions__terms-conditions .page-promotions__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__link-text {
  color: var(--page-promotions-glow); /* Use a bright color for links */
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-promotions__link-text:hover {
  color: #ffffff;
}

.page-promotions__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-promotions__faq-section .page-promotions__section-title {
  color: #333333;
}

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

.page-promotions__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #333333;
  background-color: #eaf7ed; /* Light green for summary */
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #11A84E;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: "−";
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

.page-promotions__faq-item:not([open]) .page-promotions__faq-answer {
  display: none;
}

.page-promotions__final-cta {
  padding: 80px 0;
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
  text-align: center;
}

.page-promotions__final-cta .page-promotions__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__text-center {
  text-align: center;
}

.page-promotions__text-main {
  color: var(--page-promotions-text-main);
}

.page-promotions__text-secondary {
  color: var(--page-promotions-text-secondary);
}

.page-promotions__dark-bg {
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
}

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

/* Button specific styles for primary and secondary */
.page-promotions__btn-primary {
  background: var(--page-promotions-btn-gradient);
  color: #ffffff;
  border: none;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-promotions__hero-description {
    font-size: clamp(1em, 1.8vw, 1.2em);
  }
  .page-promotions__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.2em);
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__card-description {
    font-size: 0.9em;
  }
}

@media (max-width: 768px) {
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__introduction-section,
  .page-promotions__featured-promotions,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__final-cta,
  .page-promotions__card-grid,
  .page-promotions__promotion-card,
  .page-promotions__steps-list,
  .page-promotions__step-item,
  .page-promotions__faq-list,
  .page-promotions__faq-item,
  .page-promotions__cta-button,
  .page-promotions__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-promotions__hero-section,
  .page-promotions__introduction-section,
  .page-promotions__featured-promotions,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__final-cta {
    padding: 40px 0 !important; /* Adjust section padding for mobile */
  }

  .page-promotions__hero-section {
    padding-top: 10px !important;
  }

  .page-promotions__hero-content {
    margin-bottom: 30px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
  }

  .page-promotions__hero-description {
    font-size: clamp(0.9em, 3.5vw, 1.1em) !important;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5em, 6vw, 2em) !important;
    margin-bottom: 30px !important;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column;
  }

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

  .page-promotions__card-image {
    height: auto; /* Allow height to adjust for mobile */
  }

  .page-promotions__card-content {
    padding: 20px;
  }

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

  .page-promotions__card-description {
    font-size: 0.9em;
  }

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

  .page-promotions__faq-answer {
    padding: 0 20px 15px 20px;
  }
}