/* style/index-promotion-highlights.css */

/* Root variables for consistent spacing and colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-index-promotion-highlights {
  font-family: 'Arial', sans-serif;
  color: var(--color-text-main); /* Default text color for the page */
  background-color: var(--color-background); /* Page background from custom colors */
  line-height: 1.6;
}

.page-index-promotion-highlights__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index-promotion-highlights__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Hero Section */
.page-index-promotion-highlights__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  overflow: hidden;
}

.page-index-promotion-highlights__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height to prevent excessive stretching */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-index-promotion-highlights__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
}

.page-index-promotion-highlights__hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.page-index-promotion-highlights__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-gold); /* Using gold for main title */
  letter-spacing: 1px;
}

.page-index-promotion-highlights__description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-promotion-highlights__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.page-index-promotion-highlights__btn-primary,
.page-index-promotion-highlights__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-index-promotion-highlights__btn-primary {
  background: var(--button-gradient);
  color: var(--color-text-main); /* White-ish text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index-promotion-highlights__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-index-promotion-highlights__btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.page-index-promotion-highlights__btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-main);
  transform: translateY(-2px);
}

/* Section Titles */
.page-index-promotion-highlights__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-gold); /* Using gold for section titles */
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-index-promotion-highlights__text-block {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Card Grid */
.page-index-promotion-highlights__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-promotion-highlights__card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.page-index-promotion-highlights__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card image display */
  object-fit: cover;
  display: block;
}

.page-index-promotion-highlights__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index-promotion-highlights__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-index-promotion-highlights__card-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How-To-Claim Section */
.page-index-promotion-highlights__how-to-claim {
  background-color: var(--color-background);
}

.page-index-promotion-highlights__steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
}

.page-index-promotion-highlights__list-item {
  position: relative;
  padding: 25px 0 25px 70px;
  border-bottom: 1px solid var(--color-border);
}

.page-index-promotion-highlights__list-item:last-child {
  border-bottom: none;
}

.page-index-promotion-highlights__list-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 25px;
  width: 45px;
  height: 45px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

.page-index-promotion-highlights__list-title {
  font-size: 1.3rem;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.page-index-promotion-highlights__list-item p {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.page-index-promotion-highlights__list-item a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.page-index-promotion-highlights__list-item a:hover {
  color: var(--color-gold);
}

/* FAQ Section */
.page-index-promotion-highlights__faq-section {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

.page-index-promotion-highlights__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-index-promotion-highlights__faq-item {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index-promotion-highlights__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: background-color 0.3s ease;
}

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

.page-index-promotion-highlights__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-index-promotion-highlights__faq-qtext {
  flex-grow: 1;
  color: var(--color-gold);
}

.page-index-promotion-highlights__faq-toggle {
  font-size: 1.8rem;
  font-weight: 700;
  margin-left: 15px;
  color: var(--color-secondary);
}

.page-index-promotion-highlights__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-promotion-highlights__hero-content {
    padding: 0 15px;
  }
  .page-index-promotion-highlights__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-index-promotion-highlights__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }
  .page-index-promotion-highlights__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index-promotion-highlights__section {
    padding: 40px 15px;
  }
  .page-index-promotion-highlights__hero-image-wrapper {
    max-height: 400px;
  }
  .page-index-promotion-highlights__hero-content {
    padding: 0 10px;
  }
  .page-index-promotion-highlights__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-index-promotion-highlights__description {
    font-size: 1rem;
  }
  .page-index-promotion-highlights__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-promotion-highlights__btn-primary,
  .page-index-promotion-highlights__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .page-index-promotion-highlights__card-grid {
    grid-template-columns: 1fr;
  }
  .page-index-promotion-highlights__card-image {
    height: 200px; /* Adjust height for smaller screens */
  }
  .page-index-promotion-highlights__card-title {
    font-size: 1.2rem;
  }
  .page-index-promotion-highlights__list-item {
    padding: 20px 0 20px 60px;
  }
  .page-index-promotion-highlights__list-item::before {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    top: 20px;
  }
  .page-index-promotion-highlights__list-title {
    font-size: 1.15rem;
  }
  .page-index-promotion-highlights__faq-item summary {
    font-size: 1rem;
    padding: 18px 20px;
  }
  .page-index-promotion-highlights__faq-qtext {
    color: var(--color-gold);
  }
  .page-index-promotion-highlights__faq-toggle {
    font-size: 1.5rem;
  }
  .page-index-promotion-highlights__faq-answer {
    padding: 0 20px 18px 20px;
  }

  /* Force responsive image and container styles for mobile */
  .page-index-promotion-highlights img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index-promotion-highlights__section,
  .page-index-promotion-highlights__container,
  .page-index-promotion-highlights__card,
  .page-index-promotion-highlights__cta-buttons,
  .page-index-promotion-highlights__button-group,
  .page-index-promotion-highlights__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-promotion-highlights__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-index-promotion-highlights__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Ensure images are not filtered */
.page-index-promotion-highlights img {
  filter: none !important;
}

/* Color contrast classes for safety (though main theme is dark) */
.page-index-promotion-highlights__dark-bg {
  color: var(--color-text-main); /* Deep background, light text */
}
.page-index-promotion-highlights__light-bg {
  color: #333333; /* Light background, dark text (fallback, not used in this dark theme) */
  background: #ffffff; /* fallback */
}