/* style/index-latest-promotions.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --card-background-light: #FFFFFF;
  --card-border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-index-latest-promotions {
  color: var(--text-color-light-bg); /* Default text color for light background */
  background-color: var(--background-color); /* Default page background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Dark background sections */
.page-index-latest-promotions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

/* Light background sections */
.page-index-latest-promotions__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
}

/* Container for content width */
.page-index-latest-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

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

.page-index-latest-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-index-latest-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-index-latest-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-index-latest-promotions__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
  max-width: 100%;
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
}

.page-index-latest-promotions__intro-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-color-dark-bg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-index-latest-promotions__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.page-index-latest-promotions__btn-primary,
.page-index-latest-promotions__btn-secondary {
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
  flex-grow: 1;
  max-width: 220px;
}

.page-index-latest-promotions__btn-primary {
  background-color: var(--register-button-color); /* Custom color for register */
  color: var(--register-login-font-color); /* Custom font color */
  border: 2px solid var(--register-button-color);
}

.page-index-latest-promotions__btn-primary:hover {
  background-color: #A00707;
  border-color: #A00707;
}

.page-index-latest-promotions__btn-secondary {
  background-color: transparent;
  color: var(--text-color-dark-bg);
  border: 2px solid var(--text-color-dark-bg);
}

.page-index-latest-promotions__btn-secondary:hover {
  background-color: var(--text-color-dark-bg);
  color: var(--primary-color);
}

/* Section Titles and Descriptions */
.page-index-latest-promotions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-index-latest-promotions__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Promotions Overview */
.page-index-latest-promotions__promotions-overview {
  padding: 80px 0;
}

.page-index-latest-promotions__promo-types-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-index-latest-promotions__promo-type-item {
  background-color: var(--card-background-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-size: 1.05rem;
  color: var(--text-color-light-bg);
  border: 1px solid var(--card-border-color);
  transition: transform 0.3s ease;
}

.page-index-latest-promotions__promo-type-item:hover {
  transform: translateY(-5px);
}

/* Featured Promotions */
.page-index-latest-promotions__featured-promotions {
  padding: 80px 0;
}

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

.page-index-latest-promotions__promo-card {
  background-color: var(--card-background-light);
  color: var(--text-color-light-bg);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid var(--card-border-color);
}

.page-index-latest-promotions__promo-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index-latest-promotions__promo-card h3,
.page-index-latest-promotions__promo-card p {
  padding: 0 25px;
}

.page-index-latest-promotions__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 25px 0 10px 0;
  color: var(--primary-color);
}

.page-index-latest-promotions__promo-description {
  font-size: 1rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-index-latest-promotions__promo-card .page-index-latest-promotions__btn-primary {
  margin: 0 25px 25px 25px;
  align-self: flex-start;
  max-width: none;
  width: calc(100% - 50px); /* Adjust width to fit padding */
}

/* Why Choose Us */
.page-index-latest-promotions__why-choose-us {
  padding: 80px 0;
}

.page-index-latest-promotions__features-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  text-align: center;
}

.page-index-latest-promotions__feature-item {
  background-color: var(--card-background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  color: var(--text-color-light-bg);
  border: 1px solid var(--card-border-color);
}

.page-index-latest-promotions__feature-item strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* How to Claim */
.page-index-latest-promotions__how-to-claim {
  padding: 80px 0;
}

.page-index-latest-promotions__claim-steps-list {
  list-style: none;
  counter-reset: claim-step-counter;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-latest-promotions__claim-step-item {
  counter-increment: claim-step-counter;
  background-color: var(--card-background-light);
  color: var(--text-color-light-bg);
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  font-size: 1.05rem;
  text-align: left;
  border: 1px solid var(--card-border-color);
}

.page-index-latest-promotions__claim-step-item::before {
  content: "0" counter(claim-step-counter);
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--register-button-color);
  color: var(--register-login-font-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__claim-step-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.page-index-latest-promotions__claim-step-item a {
  color: var(--register-button-color);
  text-decoration: underline;
}

.page-index-latest-promotions__claim-step-item a:hover {
  text-decoration: none;
}

.page-index-latest-promotions__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-index-latest-promotions__faq-section {
  padding: 80px 0;
}

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

.page-index-latest-promotions__faq-item {
  background-color: var(--card-background-light);
  border: 1px solid var(--card-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-color-light-bg);
}

.page-index-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary-color);
  background-color: var(--card-background-light);
  position: relative;
  list-style: none; /* For details/summary */
}

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

.page-index-latest-promotions__faq-question::marker {
  display: none;
}

.page-index-latest-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--register-button-color);
}

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

.page-index-latest-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color-light-bg);
}

/* Final CTA Section */
.page-index-latest-promotions__final-cta {
  padding: 80px 0;
  text-align: center;
}

.page-index-latest-promotions__final-cta .page-index-latest-promotions__cta-buttons {
  margin-top: 40px;
}

.page-index-latest-promotions__final-cta .page-index-latest-promotions__btn-primary {
  background-color: var(--register-button-color);
  color: var(--register-login-font-color);
  border-color: var(--register-button-color);
}

.page-index-latest-promotions__final-cta .page-index-latest-promotions__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-index-latest-promotions__final-cta .page-index-latest-promotions__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index-latest-promotions__hero-image {
    height: 500px;
  }
}

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

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

  .page-index-latest-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-index-latest-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-index-latest-promotions__hero-image,
  .page-index-latest-promotions__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-latest-promotions__promo-card .page-index-latest-promotions__btn-primary {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-index-latest-promotions__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-index-latest-promotions__intro-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-index-latest-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-latest-promotions__btn-primary,
  .page-index-latest-promotions__btn-secondary,
  .page-index-latest-promotions a[class*="button"],
  .page-index-latest-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index-latest-promotions__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-index-latest-promotions__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-index-latest-promotions__promotions-overview,
  .page-index-latest-promotions__featured-promotions,
  .page-index-latest-promotions__why-choose-us,
  .page-index-latest-promotions__how-to-claim,
  .page-index-latest-promotions__faq-section,
  .page-index-latest-promotions__final-cta {
    padding: 40px 0;
  }

  .page-index-latest-promotions__promo-cards-grid,
  .page-index-latest-promotions__promo-types-list,
  .page-index-latest-promotions__features-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-latest-promotions__claim-step-item {
    padding: 20px 20px 20px 40px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-index-latest-promotions__claim-step-item::before {
    left: -10px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .page-index-latest-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  .page-index-latest-promotions__video-section,
  .page-index-latest-promotions__video-container,
  .page-index-latest-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure all images are responsive by default */
.page-index-latest-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all video elements are responsive by default */
.page-index-latest-promotions video,
.page-index-latest-promotions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-index-latest-promotions__video-section {
  width: 100%; /* Desktop width for video section */
  max-width: 100%;
  box-sizing: border-box;
}

.page-index-latest-promotions__video-container {
  width: 100%; /* Desktop width for video container */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* No CSS filter on images */
.page-index-latest-promotions img:not([class*="filter"]),
.page-index-latest-promotions__promo-image:not([class*="filter"]) {
  filter: none;
}