/* style/promotions.css */

/* Custom Colors */
:root {
  --page-promotions-primary-color: #11A84E;
  --page-promotions-secondary-color: #22C768;
  --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-promotions-card-bg: #11271B;
  --page-promotions-background: #08160F;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-border: #2E7A4E;
  --page-promotions-glow: #57E38D;
  --page-promotions-gold: #F2C14E;
  --page-promotions-divider: #1E3A2A;
  --page-promotions-deep-green: #0A4B2C;
}

.page-promotions {
  color: var(--page-promotions-text-main);
  background-color: var(--page-promotions-background);
  font-family: Arial, sans-serif;
}

.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-top: 10px; /* body handles --header-offset, this is decorative */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
  background-color: var(--page-promotions-deep-green);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-promotions__hero-content {
  position: relative; /* Ensure content is above the image but not overlapping */
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the bottom part of the hero image */
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.page-promotions__main-title {
  color: var(--page-promotions-gold);
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__subtitle {
  color: var(--page-promotions-text-main);
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 180px;
}

.page-promotions__btn-primary {
  background: var(--page-promotions-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--page-promotions-primary-color);
  border: 2px solid var(--page-promotions-primary-color);
  margin-left: 20px;
}

.page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-primary-color);
  color: #ffffff;
}

.page-promotions__introduction-section,
.page-promotions__how-to-claim,
.page-promotions__why-choose {
  padding: 80px 0;
  background-color: var(--page-promotions-background);
  color: var(--page-promotions-text-main);
}

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

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

.page-promotions__section-title {
  font-size: 2.8em;
  color: var(--page-promotions-gold);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__offers-grid {
  padding: 80px 0;
  background-color: var(--page-promotions-card-bg);
}

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

.page-promotions__card {
  background-color: var(--page-promotions-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-promotions-divider);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-promotions__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

.page-promotions__card-title {
  font-size: 1.6em;
  color: var(--page-promotions-text-main);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

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

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 50px auto 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-promotions__step-item {
  background-color: var(--page-promotions-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-promotions-divider);
}

.page-promotions__step-title {
  font-size: 1.8em;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__step-description {
  font-size: 1.1em;
  color: var(--page-promotions-text-secondary);
  line-height: 1.6;
  text-align: left;
}

.page-promotions__step-description a {
  color: var(--page-promotions-primary-color);
  text-decoration: underline;
}

.page-promotions__step-description a:hover {
  color: var(--page-promotions-secondary-color);
}

.page-promotions__list {
  list-style: disc;
  padding-left: 25px;
  max-width: 900px;
  margin: 50px auto 0 auto;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__list-item {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1.1em;
}

.page-promotions__list-item strong {
  color: var(--page-promotions-text-main);
}

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

.page-promotions__feature-item {
  text-align: center;
  background-color: var(--page-promotions-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-promotions-divider);
}

.page-promotions__feature-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-promotions__feature-title {
  font-size: 1.5em;
  color: var(--page-promotions-text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__feature-description {
  font-size: 1em;
  color: var(--page-promotions-text-secondary);
  line-height: 1.6;
}

.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--page-promotions-card-bg);
}

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

.page-promotions__faq-item {
  background-color: var(--page-promotions-background);
  border: 1px solid var(--page-promotions-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-item summary {
  list-style: none;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-promotions-text-main);
  cursor: pointer;
  background-color: var(--page-promotions-deep-green);
  border-bottom: 1px solid var(--page-promotions-divider);
}

.page-promotions__faq-question:hover {
  background-color: var(--page-promotions-primary-color);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-promotions-gold);
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: var(--page-promotions-text-secondary);
  line-height: 1.6;
  background-color: var(--page-promotions-background);
}

.page-promotions__faq-answer p {
  margin: 0;
}

.page-promotions__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-promotions-deep-green);
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-promotions__section-title {
    font-size: 2.2em;
  }

  .page-promotions__grid,
  .page-promotions__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-promotions__subtitle {
    font-size: 1em;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0; /* Remove margin for single column */
    margin-bottom: 15px; /* Add space between stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    align-items: center;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    gap: 10px;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }

  .page-promotions__text-block {
    font-size: 0.95em;
  }

  .page-promotions__offers-grid,
  .page-promotions__introduction-section,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__why-choose,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    padding: 40px 0;
  }

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

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

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

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

  .page-promotions__feature-icon {
    width: 120px;
    height: 120px;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

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

  .page-promotions__faq-answer {
    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;
  }
  
  .page-promotions__hero-image-wrapper,
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__grid,
  .page-promotions__features-grid,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body has padding, this is decorative */
  }
}