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

/* Base styles */
.page-promotions-latest-offers {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--primary-color, #0A1931); /* Inherit from shared or use primary color */
}

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

.page-promotions-latest-offers__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions-latest-offers__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-promotions-latest-offers__text-contrast-fix {
  color: #333333 !important; /* Ensure high contrast on light backgrounds */
}

/* Hero Section */
.page-promotions-latest-offers__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Space for fixed header */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  background-color: #0A1931;
}

.page-promotions-latest-offers__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}

.page-promotions-latest-offers__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-promotions-latest-offers__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-promotions-latest-offers__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-promotions-latest-offers__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A1931;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-promotions-latest-offers__cta-button:hover {
  background-color: #e6c200;
  color: #000000;
}

.page-promotions-latest-offers__cta-button--large {
  padding: 18px 40px;
  font-size: 1.4em;
}

/* Overview Section */
.page-promotions-latest-offers__overview-section {
  padding: 80px 0;
  background-color: #0A1931;
}

/* Featured Promotions Section */
.page-promotions-latest-offers__featured-promotions {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

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

.page-promotions-latest-offers__promotion-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for light card background */
}

.page-promotions-latest-offers__promotion-card:hover {
  transform: translateY(-10px);
}

.page-promotions-latest-offers__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-promotions-latest-offers__card-title {
  font-size: 1.6em;
  color: #0A1931;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-promotions-latest-offers__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 15px;
}

.page-promotions-latest-offers__card-button {
  display: inline-block;
  background-color: #0A1931;
  color: #FFD700;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-promotions-latest-offers__card-button:hover {
  background-color: #1a345e;
  color: #FFD700;
}

/* How to Claim Section */
.page-promotions-latest-offers__how-to-claim-section {
  padding: 80px 0;
  background-color: #0A1931;
}

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

.page-promotions-latest-offers__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-latest-offers__list-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-promotions-latest-offers__list-item p {
  color: #f0f0f0;
  font-size: 1em;
}

.page-promotions-latest-offers__list-item a {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions-latest-offers__list-item a:hover {
  color: #e6c200;
}

/* Terms Section */
.page-promotions-latest-offers__terms-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-promotions-latest-offers__terms-list {
  list-style: disc inside;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-promotions-latest-offers__terms-list .page-promotions-latest-offers__list-item {
  background-color: transparent;
  padding: 5px 0;
  text-align: left;
  box-shadow: none;
}

.page-promotions-latest-offers__terms-list .page-promotions-latest-offers__list-item p {
  color: #555555;
}

/* Why Choose Section */
.page-promotions-latest-offers__why-choose-section {
  padding: 80px 0;
  background-color: #0A1931;
}

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

/* CTA Section */
.page-promotions-latest-offers__cta-section {
  padding: 80px 0;
  background-color: #ffffff;
  text-align: center;
  color: #333333;
}

/* FAQ Section */
.page-promotions-latest-offers__faq-section {
  padding: 80px 0;
  background-color: #0A1931;
}

.page-promotions-latest-offers__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-promotions-latest-offers__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-promotions-latest-offers__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-promotions-latest-offers__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions-latest-offers__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-promotions-latest-offers__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-promotions-latest-offers__faq-item.active .page-promotions-latest-offers__faq-answer {
  max-height: 1000px !important; /* Ensure content fits */
  padding: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions-latest-offers__hero-title {
    font-size: 3em;
  }
}

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

  .page-promotions-latest-offers__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-promotions-latest-offers__hero-title {
    font-size: 2.5em;
  }

  .page-promotions-latest-offers__hero-description {
    font-size: 1.1em;
  }

  .page-promotions-latest-offers__section-title {
    font-size: 2em;
  }

  .page-promotions-latest-offers__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-promotions-latest-offers__cta-button,
  .page-promotions-latest-offers__card-button,
  .page-promotions-latest-offers__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions-latest-offers__promotions-grid,
  .page-promotions-latest-offers__steps-list,
  .page-promotions-latest-offers__advantages-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-latest-offers__promotion-card,
  .page-promotions-latest-offers__list-item,
  .page-promotions-latest-offers__faq-item,
  .page-promotions-latest-offers__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions-latest-offers img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions-latest-offers__hero-image,
  .page-promotions-latest-offers__card-image {
    height: auto;
  }

  /* Ensure content area does not cause horizontal scroll */
  .page-promotions-latest-offers {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-promotions-latest-offers__terms-list {
    padding-left: 20px;
  }
}