/* style/promotions.css */

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

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

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

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
  margin-top: 50px;
}

.page-promotions__main-title {
  color: var(--gold-color);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--glow-color);
}

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

.page-promotions__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-promotions__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

.page-promotions__intro-section, 
.page-promotions__promotion-types, 
.page-promotions__how-to-claim, 
.page-promotions__why-choose, 
.page-promotions__faq-section, 
.page-promotions__conclusion-section {
  padding: 60px 0;
  background-color: var(--background-dark-color);
}

.page-promotions__section-title {
  color: var(--gold-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

.page-promotions__card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--divider-color);
}

.page-promotions__card-title {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-promotions__card-description {
  color: var(--text-secondary-color);
  font-size: 0.95rem;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-promotions__step-list {
  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-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.page-promotions__step-item:hover {
    transform: translateY(-5px);
}

.page-promotions__step-title {
  color: var(--gold-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--divider-color);
  padding-bottom: 10px;
}

.page-promotions__step-description {
  color: var(--text-secondary-color);
  font-size: 1rem;
}

.page-promotions__button-container {
    text-align: center;
    margin-top: 50px;
}

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

.page-promotions__feature-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
}

.page-promotions__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px var(--glow-color));
}

.page-promotions__feature-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-promotions__feature-description {
  color: var(--text-secondary-color);
  font-size: 1rem;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main-color);
  font-size: 1.1rem;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--text-main-color);
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  margin-left: 20px;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 15px 25px;
  color: var(--text-secondary-color);
  background-color: var(--card-bg-color);
  font-size: 1rem;
  border-top: 1px solid var(--divider-color);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-promotions__hero-content {
    margin-top: 20px;
    padding: 15px;
  }

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

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

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-promotions__section-title {
    font-size: 2rem;
  }

  .page-promotions__intro-section, 
  .page-promotions__promotion-types, 
  .page-promotions__how-to-claim, 
  .page-promotions__why-choose, 
  .page-promotions__faq-section, 
  .page-promotions__conclusion-section {
    padding: 40px 0;
  }

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

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

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

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

  .page-promotions__faq-question {
    font-size: 1rem;
    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__container,
  .page-promotions__promotion-grid,
  .page-promotions__card,
  .page-promotions__step-list,
  .page-promotions__step-item,
  .page-promotions__button-container,
  .page-promotions__feature-grid,
  .page-promotions__feature-item,
  .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; /* Ensure no overflow */
  }
  
  /* Mobile button responsiveness */
  .page-promotions__cta-button,
  .page-promotions__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

/* Color contrast safety */
.page-promotions {
  color: var(--text-main-color); /* F2FFF6 against 08160F */
}

.page-promotions__text-block, .page-promotions__hero-description, .page-promotions__card-description, .page-promotions__step-description, .page-promotions__feature-description, .page-promotions__faq-answer {
  color: var(--text-secondary-color); /* A7D9B8 against 08160F (body) or 11271B (card) */
}

.page-promotions__card {
  background-color: var(--card-bg-color); /* 11271B */
  color: var(--text-main-color); /* F2FFF6 */
}

.page-promotions__faq-question {
  background-color: var(--deep-green-color); /* 0A4B2C */
  color: var(--text-main-color); /* F2FFF6 */
}

.page-promotions__cta-button, .page-promotions__card-button {
  color: #ffffff; /* White text against gradient button */
}