/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive H2 title */
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__text-block {
  font-size: 16px;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden;
  box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no filter changes image color */
}

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-promotions__hero-title {
  font-size: clamp(32px, 5vw, 56px); /* Responsive H1 title */
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 18px;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button Base */
.page-promotions__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
}

.page-promotions__cta-button--hero {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #F2FFF6; /* Custom Text Main */
  border: none;
  box-shadow: 0 6px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__cta-button--hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

/* Intro Section */
.page-promotions__intro-section,
.page-promotions__types-section,
.page-promotions__featured-promos,
.page-promotions__how-to-claim,
.page-promotions__video-section,
.page-promotions__faq-section,
.page-promotions__final-cta {
  padding: 60px 0;
}

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

.page-promotions__promo-card {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* Ensure no filter changes image color */
}

.page-promotions__card-title {
  font-size: 22px;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-promotions__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-promotions__card-title a:hover {
  color: #57E38D; /* Custom Glow */
}

.page-promotions__card-description {
  font-size: 15px;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__cta-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #F2FFF6; /* Custom Text Main */
  border: none;
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
}

.page-promotions__promo-card .page-promotions__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* How to Claim Section */
.page-promotions__claim-steps {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
}

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: #11271B; /* Custom Card BG */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: #57E38D; /* Custom Glow */
  color: #08160F; /* Dark text for bright background */
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  margin-right: 20px;
}

.page-promotions__step-title {
  font-size: 20px;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 5px;
  font-weight: bold;
}

.page-promotions__step-description {
  font-size: 15px;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-promotions__cta-button--large {
  width: auto;
  min-width: 280px;
  margin-top: 30px;
  padding: 16px 35px;
  font-size: 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #F2FFF6; /* Custom Text Main */
  border: none;
  box-shadow: 0 6px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__cta-button--large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

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

.page-promotions__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Adjust max-width as needed */
  margin: 40px auto 20px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.page-promotions__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2; /* Ensure overlay is above video for click */
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: none; /* Ensure no filter changes video appearance */
}

.page-promotions__video-description {
  font-size: 16px;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-top: 20px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  list-style: none; /* Remove default marker */
  position: relative;
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome/Safari marker */
}

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

.page-promotions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Custom Glow */
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: #A7D9B8; /* Custom Text Secondary */
  line-height: 1.7;
}

/* Final CTA Section */
.page-promotions__final-cta {
  text-align: center;
}

.page-promotions__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-promotions__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #F2FFF6; /* Custom Text Main */
  border: none;
  box-shadow: 0 6px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-promotions__cta-button--secondary {
  background-color: transparent;
  color: #57E38D; /* Custom Glow */
  border: 2px solid #57E38D; /* Custom Glow */
}

.page-promotions__cta-button--secondary:hover {
  background-color: #57E38D;
  color: #08160F; /* Dark text for bright background */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(87, 227, 141, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-promotions__hero-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }
  .page-promotions__hero-description {
    font-size: 17px;
  }
  .page-promotions__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-promotions__hero-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-promotions__hero-description {
    font-size: 16px;
  }
  .page-promotions__cta-button {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-promotions__section-title {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 30px;
  }
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-promotions__promo-card {
    padding: 20px;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 20px;
  }
  .page-promotions__card-description {
    font-size: 14px;
  }
  .page-promotions__claim-steps {
    margin-top: 30px;
  }
  .page-promotions__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }
  .page-promotions__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-promotions__step-title {
    font-size: 18px;
  }
  .page-promotions__step-description {
    font-size: 14px;
  }
  .page-promotions__cta-button--large {
    font-size: 18px;
    padding: 14px 30px;
    min-width: unset;
    width: 100%;
  }
  .page-promotions__video-wrapper {
    margin-top: 30px;
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 14px;
  }
  .page-promotions__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__cta-button--primary, .page-promotions__cta-button--secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General mobile content area padding */
  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__intro-section, .page-promotions__types-section, .page-promotions__featured-promos, .page-promotions__how-to-claim, .page-promotions__video-section, .page-promotions__faq-section, .page-promotions__final-cta {
    padding: 40px 0;
  }
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-promotions__hero-description {
    font-size: 15px;
  }
  .page-promotions__section-title {
    font-size: clamp(22px, 6vw, 28px);
  }
  .page-promotions__cta-button--large {
    font-size: 16px;
    padding: 12px 25px;
  }
}