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

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

.page-promotions__section {
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

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

.page-promotions__hero-content {
  max-width: 900px;
  z-index: 2;
  padding: 0 20px 60px;
  color: var(--page-promotions-text-main);
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-promotions-text-main);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 40px;
  color: var(--page-promotions-text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.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: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 300px; /* Limit button width on larger screens */
}

.page-promotions__btn-primary {
  background: var(--page-promotions-button-gradient);
  color: #ffffff; /* Always white text for dark buttons */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--page-promotions-glow-color);
  border: 2px solid var(--page-promotions-glow-color);
  box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

/* General Section Titles & Text */
.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-promotions-text-main);
}

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

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

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

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

.page-promotions__card {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--page-promotions-border-color);
  box-sizing: border-box;
}

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

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

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__list li::before {
  content: '✓';
  color: var(--page-promotions-glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-promotions__card-button {
  margin-top: auto; /* Push button to the bottom */
  width: 100%;
  max-width: none; /* Override max-width for full card width */
}

/* Numbered List */
.page-promotions__numbered-list {
  list-style: none;
  counter-reset: my-counter;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__numbered-list li {
  counter-increment: my-counter;
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
  font-size: 1.1em;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__numbered-list li::before {
  content: counter(my-counter) ".";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: var(--page-promotions-glow-color);
  font-size: 1.2em;
  top: 0;
}

/* Terms & Conditions Grid */
.page-promotions__terms-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-promotions__term-item {
  background-color: var(--page-promotions-deep-green-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--page-promotions-border-color);
  box-sizing: border-box;
}

.page-promotions__term-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-promotions-gold-color);
}

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

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

.page-promotions__feature-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Minimum size requirement */
  display: block;
}

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

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: var(--page-promotions-deep-green-color);
  border: 1px solid var(--page-promotions-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-promotions-text-main);
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-promotions-glow-color);
  transition: transform 0.3s ease;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    padding: 0 15px 40px;
  }

  .page-promotions__section {
    padding: 40px 15px;
  }

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

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

  .page-promotions__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
}

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

  .page-promotions__hero-image-wrapper {
    max-height: 400px;
  }

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

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

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promotions__section {
    padding: 30px 15px;
  }

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

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

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

  .page-promotions__card {
    padding: 25px;
  }

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

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

  .page-promotions__numbered-list li {
    font-size: 1em;
    padding-left: 35px;
  }

  .page-promotions__numbered-list li::before {
    font-size: 1.1em;
  }

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

  .page-promotions__term-item {
    padding: 20px;
  }

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

  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__feature-item {
    padding: 20px;
  }

  .page-promotions__feature-image {
    height: 150px;
  }

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

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

  .page-promotions__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Mobile responsive image override */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__hero-image-wrapper,
  .page-promotions__hero-content,
  .page-promotions__cta-buttons,
  .page-promotions__grid,
  .page-promotions__term-item,
  .page-promotions__features-grid,
  .page-promotions__feature-item,
  .page-promotions__faq-item,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

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

  .page-promotions__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .page-promotions__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}