/* style/index-latest-promotions.css */

:root {
  --primary-color: #0A2239;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f8f9fa;
  --background-dark: var(--dark-bg-1);
  --card-background: rgba(255, 255, 255, 0.1);
}

/* Base styles for the page content */
.page-index-latest-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-index-latest-promotions__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-index-latest-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit; /* Inherit from section for contrast */
}

.page-index-latest-promotions__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-index-latest-promotions__inline-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-index-latest-promotions__inline-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-index-latest-promotions__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text-light);
  padding-top: 0; /* Header offset handled by main */
}

.page-index-latest-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-index-latest-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-index-latest-promotions__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-index-latest-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-index-latest-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-index-latest-promotions__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-index-latest-promotions__btn-primary,
.page-index-latest-promotions__btn-secondary,
.page-index-latest-promotions__card-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-index-latest-promotions__btn-center {
  display: block;
  margin: 40px auto 20px auto;
  max-width: 300px;
}

/* Section backgrounds and text colors for contrast */
.page-index-latest-promotions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-index-latest-promotions__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 60px 0;
}

/* Overview Section */
.page-index-latest-promotions__overview-section .page-index-latest-promotions__text-block {
  color: var(--text-dark);
}

.page-index-latest-promotions__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Promo Grid Section */
.page-index-latest-promotions__types-section .page-index-latest-promotions__section-title,
.page-index-latest-promotions__types-section .page-index-latest-promotions__text-block {
  color: var(--text-light);
}

.page-index-latest-promotions__promo-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);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-light);
}

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

.page-index-latest-promotions__card-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-index-latest-promotions__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-latest-promotions__card-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  margin-top: auto;
  width: 100%;
}

.page-index-latest-promotions__card-button:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

/* Evaluation Section */
.page-index-latest-promotions__evaluation-section .page-index-latest-promotions__section-title,
.page-index-latest-promotions__evaluation-section .page-index-latest-promotions__text-block {
  color: var(--text-dark);
}

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

.page-index-latest-promotions__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.page-index-latest-promotions__step-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index-latest-promotions__step-text {
  font-size: 0.95em;
  flex-grow: 1;
}

/* Claim Section */
.page-index-latest-promotions__claim-section .page-index-latest-promotions__section-title,
.page-index-latest-promotions__claim-section .page-index-latest-promotions__text-block {
  color: var(--text-light);
}

.page-index-latest-promotions__claim-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-index-latest-promotions__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.page-index-latest-promotions__step-number {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  flex-shrink: 0;
}

.page-index-latest-promotions__step-content h3 {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 5px;
}

.page-index-latest-promotions__step-content p {
  font-size: 1em;
  color: var(--text-light);
}

/* Safety Section */
.page-index-latest-promotions__safety-section .page-index-latest-promotions__section-title,
.page-index-latest-promotions__safety-section .page-index-latest-promotions__text-block {
  color: var(--text-dark);
}

.page-index-latest-promotions__safety-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  color: var(--text-dark);
}

.page-index-latest-promotions__safety-item {
  background-color: #ffffff;
  border-left: 5px solid var(--secondary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.05em;
}

.page-index-latest-promotions__safety-item strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-index-latest-promotions__faq-section .page-index-latest-promotions__section-title,
.page-index-latest-promotions__faq-section .page-index-latest-promotions__text-block {
  color: var(--text-light);
}

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

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

.page-index-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.page-index-latest-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-index-latest-promotions__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-index-latest-promotions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-index-latest-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
}

.page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

/* CTA Bottom Section */
.page-index-latest-promotions__cta-bottom {
  text-align: center;
  padding: 80px 0;
}

.page-index-latest-promotions__cta-bottom .page-index-latest-promotions__section-title,
.page-index-latest-promotions__cta-bottom .page-index-latest-promotions__text-block {
  color: var(--text-light);
}

.page-index-latest-promotions__cta-content {
  max-width: 800px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-index-latest-promotions__hero-title {
    font-size: 3em;
  }
  .page-index-latest-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-index-latest-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index-latest-promotions {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
  }

  .page-index-latest-promotions__hero-section {
    height: 500px;
  }
  .page-index-latest-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-index-latest-promotions__hero-description {
    font-size: 1em;
  }
  .page-index-latest-promotions__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-latest-promotions__btn-primary,
  .page-index-latest-promotions__btn-secondary,
  .page-index-latest-promotions__card-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-index-latest-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index-latest-promotions__promo-grid,
  .page-index-latest-promotions__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-index-latest-promotions__promo-card,
  .page-index-latest-promotions__step-card,
  .page-index-latest-promotions__safety-item,
  .page-index-latest-promotions__faq-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-latest-promotions__card-image,
  .page-index-latest-promotions__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-index-latest-promotions__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-index-latest-promotions__step-number {
    margin-bottom: 15px;
  }

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

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

  .page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-index-latest-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-index-latest-promotions__hero-description {
    font-size: 0.9em;
  }
  .page-index-latest-promotions__section-title {
    font-size: 1.5em;
  }
  .page-index-latest-promotions__hero-section {
    height: 400px;
  }
}