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

.page-promotions {
  background-color: var(--background-color-page);
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 0; /* body already handles padding-top */
}

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

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-green-color);
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

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

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

.page-promotions__hero-description {
  color: var(--text-secondary);
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-link,
.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  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);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-promotions__btn-secondary {
  background-color: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(17, 168, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-link {
  background: none;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9em;
}

.page-promotions__btn-link:hover {
  background-color: var(--gold-color);
  color: var(--background-color-page);
}

.page-promotions__section-title {
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  font-weight: bold;
  line-height: 1.3;
  text-shadow: 0 0 5px rgba(242, 255, 246, 0.2);
}

.page-promotions__introduction-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
  padding: 80px 0;
}

.page-promotions__promotion-types-section,
.page-promotions__terms-conditions-section,
.page-promotions__cta-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-promotions__text-block {
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
  font-size: 1.05em;
}

.page-promotions__text-block a {
  color: var(--gold-color);
  text-decoration: underline;
}

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

.page-promotions__promotion-card {
  background-color: var(--deep-green-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px 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__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

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

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

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

.page-promotions__step-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  display: block;
}

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

.page-promotions__step-description {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-promotions__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  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;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--text-main);
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-item summary:hover {
  background-color: var(--deep-green-color);
}

.page-promotions__faq-item[open] summary {
  background-color: var(--deep-green-color);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold-color);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.6;
  border-top: 1px solid var(--divider-color);
  margin-top: -1px; /* Overlap border for cleaner look */
}

.page-promotions__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
}

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

.page-promotions__cta-section .page-promotions__section-title {
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-promotions__cta-section .page-promotions__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__promotion-grid,
  .page-promotions__steps-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__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-promotions__hero-content {
    padding: 0 15px;
  }

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

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-promotions__introduction-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__promotion-types-section,
  .page-promotions__terms-conditions-section,
  .page-promotions__cta-section {
    padding: 50px 0;
  }

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

  /* Image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__card-image,
  .page-promotions__step-image {
    height: auto !important; /* Allow auto height for mobile */
  }
  .page-promotions__hero-image {
    max-height: 300px !important;
  }

  /* Button responsiveness */
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-link,
  .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;
    padding-right: 15px;
    margin-bottom: 15px; /* Add margin for stacked buttons */
  }
  .page-promotions__btn-primary:last-child,
  .page-promotions__btn-secondary:last-child,
  .page-promotions__btn-link:last-child {
    margin-bottom: 0;
  }
  .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;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-promotions__promotion-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promotion-card,
  .page-promotions__step-item {
    padding: 20px;
  }

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

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

  .page-promotions__text-block {
    padding: 0 15px;
  }
}