/* style/resources-latest-promotions-analysis.css */

/* Base Styles */
.page-resources-latest-promotions-analysis {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Inherited from body, explicit for context */
}

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

.page-resources-latest-promotions-analysis__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Use auxiliary color for section titles */
  line-height: 1.2;
}

.page-resources-latest-promotions-analysis__text-block {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Color Contrast Handling */
.page-resources-latest-promotions-analysis__dark-bg {
  background-color: #1A202C; /* Main primary color */  n  color: #ffffff; /* Light text */
  padding: 80px 0;
}

.page-resources-latest-promotions-analysis__light-bg {
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text */
  padding: 80px 0;
}

/* Hero Section */
.page-resources-latest-promotions-analysis__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden; /* Ensure image doesn't overflow */
  text-align: center;
  background-color: #1A202C; /* Explicit dark background */
  color: #ffffff;
}

.page-resources-latest-promotions-analysis__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.8)); /* Dark overlay for text readability */
  z-index: 1;
}

.page-resources-latest-promotions-analysis__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.6); /* Slightly dim the background image */
}

.page-resources-latest-promotions-analysis__hero-section > .page-resources-latest-promotions-analysis__container {
  position: relative;
  z-index: 2;
}

.page-resources-latest-promotions-analysis__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for main title */
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-resources-latest-promotions-analysis__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources-latest-promotions-analysis__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-latest-promotions-analysis__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-resources-latest-promotions-analysis__btn-primary {
  background: #FFD700; /* Auxiliary color */
  color: #1A202C; /* Main primary color for text */
}

.page-resources-latest-promotions-analysis__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-promotions-analysis__btn-secondary {
  background: #1A202C; /* Main primary color */
  color: #FFD700; /* Auxiliary color for text */
  border: 2px solid #FFD700;
}

.page-resources-latest-promotions-analysis__btn-secondary:hover {
  background: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Promotions Overview Section */
.page-resources-latest-promotions-analysis__promotions-overview {
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-resources-latest-promotions-analysis__promotion-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources-latest-promotions-analysis__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-resources-latest-promotions-analysis__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1A202C;
  padding: 0 20px;
}

.page-resources-latest-promotions-analysis__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-resources-latest-promotions-analysis__card-button {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: auto; /* Push button to bottom */
  margin-left: auto;
  margin-right: auto;
  max-width: calc(100% - 40px); /* Ensure button fits card width */
  box-sizing: border-box;
}

/* Terms & Conditions Section */
.page-resources-latest-promotions-analysis__terms-section {
  background-color: #1A202C;
  color: #ffffff;
}

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

.page-resources-latest-promotions-analysis__content-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-promotions-analysis__item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-resources-latest-promotions-analysis__item-text {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Optimization Section */
.page-resources-latest-promotions-analysis__optimization-section {
  background-color: #f8f8f8;
  color: #333333;
}

.page-resources-latest-promotions-analysis__list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-latest-promotions-analysis__list-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-resources-latest-promotions-analysis__list-item:hover {
  transform: translateY(-5px);
}

.page-resources-latest-promotions-analysis__list-item .page-resources-latest-promotions-analysis__item-title {
  color: #1A202C;
  margin-bottom: 10px;
}

.page-resources-latest-promotions-analysis__list-item p {
  color: #555555;
  font-size: 16px;
  line-height: 1.7;
}

/* Comparison Section */
.page-resources-latest-promotions-analysis__comparison-section {
  background-color: #1A202C;
  color: #ffffff;
  text-align: center;
}

/* FAQ Section */
.page-resources-latest-promotions-analysis__faq-section {
  background-color: #f8f8f8;
  color: #333333;
}

.page-resources-latest-promotions-analysis__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-latest-promotions-analysis__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-latest-promotions-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-latest-promotions-analysis__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-latest-promotions-analysis__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #1A202C;
  pointer-events: none;
}

.page-resources-latest-promotions-analysis__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Auxiliary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources-latest-promotions-analysis__faq-item.active .page-resources-latest-promotions-analysis__faq-toggle {
  color: #1A202C;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-resources-latest-promotions-analysis__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f0f0f0;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

.page-resources-latest-promotions-analysis__faq-item.active .page-resources-latest-promotions-analysis__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-resources-latest-promotions-analysis__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Conclusion Section */
.page-resources-latest-promotions-analysis__conclusion-section {
  text-align: center;
  background-color: #1A202C;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-latest-promotions-analysis__main-title {
    font-size: 40px;
  }
  .page-resources-latest-promotions-analysis__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-resources-latest-promotions-analysis {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-latest-promotions-analysis__container {
    padding: 0 15px;
  }

  .page-resources-latest-promotions-analysis__dark-bg,
  .page-resources-latest-promotions-analysis__light-bg {
    padding: 60px 0;
  }

  .page-resources-latest-promotions-analysis__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-latest-promotions-analysis__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-resources-latest-promotions-analysis__description {
    font-size: 17px;
    margin-bottom: 30px;
  }

  /* CTA Buttons */
  .page-resources-latest-promotions-analysis__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-latest-promotions-analysis__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-latest-promotions-analysis__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources-latest-promotions-analysis__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Image responsiveness */
  .page-resources-latest-promotions-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-resources-latest-promotions-analysis__promotion-card {
    padding-bottom: 20px;
  }

  .page-resources-latest-promotions-analysis__card-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-resources-latest-promotions-analysis__card-title {
    font-size: 20px;
  }

  .page-resources-latest-promotions-analysis__card-text {
    font-size: 15px;
  }
  
  .page-resources-latest-promotions-analysis__card-button {
    padding: 10px 20px;
    font-size: 15px;
    max-width: calc(100% - 30px) !important;
  }

  .page-resources-latest-promotions-analysis__content-item {
    padding: 25px;
  }

  .page-resources-latest-promotions-analysis__item-title {
    font-size: 20px;
  }

  .page-resources-latest-promotions-analysis__item-text {
    font-size: 15px;
  }

  .page-resources-latest-promotions-analysis__list-item {
    padding: 20px;
  }

  .page-resources-latest-promotions-analysis__list-item p {
    font-size: 15px;
  }

  /* FAQ mobile adjustments */
  .page-resources-latest-promotions-analysis__faq-question {
    padding: 15px 20px;
  }
  
  .page-resources-latest-promotions-analysis__faq-question h3 {
    font-size: 16px;
  }
  
  .page-resources-latest-promotions-analysis__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  
  .page-resources-latest-promotions-analysis__faq-answer {
    padding: 0 20px;
  }
  
  .page-resources-latest-promotions-analysis__faq-item.active .page-resources-latest-promotions-analysis__faq-answer {
    padding: 15px 20px !important;
  }
  
  .page-resources-latest-promotions-analysis__faq-answer p {
    font-size: 15px;
  }

  /* Ensure no overflow for sections/containers */
  .page-resources-latest-promotions-analysis__hero-section,
  .page-resources-latest-promotions-analysis__promotions-overview,
  .page-resources-latest-promotions-analysis__terms-section,
  .page-resources-latest-promotions-analysis__optimization-section,
  .page-resources-latest-promotions-analysis__comparison-section,
  .page-resources-latest-promotions-analysis__faq-section,
  .page-resources-latest-promotions-analysis__conclusion-section,
  .page-resources-latest-promotions-analysis__container,
  .page-resources-latest-promotions-analysis__grid,
  .page-resources-latest-promotions-analysis__content-grid,
  .page-resources-latest-promotions-analysis__faq-list,
  .page-resources-latest-promotions-analysis__promotion-card,
  .page-resources-latest-promotions-analysis__content-item,
  .page-resources-latest-promotions-analysis__list-item,
  .page-resources-latest-promotions-analysis__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}