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

/* Base styles for the page content */
.page-resources-latest-promotions-analysis {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8; /* Light background for sections */
}

/* Fixed header offset - applied to the first main content section or hero */
.page-resources-latest-promotions-analysis__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #e0f2f1, #ffffff); /* Light, subtle gradient */
  padding-bottom: 60px;
}

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

/* Hero Section */
.page-resources-latest-promotions-analysis__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-resources-latest-promotions-analysis__hero-content {
  margin-bottom: 40px;
}

.page-resources-latest-promotions-analysis__hero-title {
  font-size: 48px;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-latest-promotions-analysis__hero-description {
  font-size: 20px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-resources-latest-promotions-analysis__hero-image {
  width: 100%;
  max-width: 1000px; /* Adjust max-width for visual balance */
  margin-top: 20px;
}

.page-resources-latest-promotions-analysis__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* General Section Styling */
.page-resources-latest-promotions-analysis__section {
  padding: 60px 0;
  background-color: #ffffff; /* Default light background for content sections */
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-latest-promotions-analysis__section:nth-child(even) {
  background-color: #fdfdfd; /* Slightly different background for alternating sections */
}

.page-resources-latest-promotions-analysis__section-title {
  font-size: 36px;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-resources-latest-promotions-analysis__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-resources-latest-promotions-analysis__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
  color: #444444;
}

/* Promotion Types Grid */
.page-resources-latest-promotions-analysis__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-resources-latest-promotions-analysis__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources-latest-promotions-analysis__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-latest-promotions-analysis__promo-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources-latest-promotions-analysis__card-title {
  font-size: 22px;
  color: #017439;
  margin: 20px 20px 10px 20px;
  flex-grow: 1; /* Allow title to take up available space */
}

.page-resources-latest-promotions-analysis__card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-latest-promotions-analysis__card-title a:hover {
  color: #005f2c; /* Slightly darker green on hover */
  text-decoration: underline;
}

.page-resources-latest-promotions-analysis__card-text {
  font-size: 16px;
  color: #666666;
  padding: 0 20px 20px 20px;
  text-align: justify;
}

/* How to Claim Section - Steps Grid */
.page-resources-latest-promotions-analysis__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-resources-latest-promotions-analysis__step-item {
  text-align: center;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-latest-promotions-analysis__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources-latest-promotions-analysis__step-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-latest-promotions-analysis__step-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
}

.page-resources-latest-promotions-analysis__step-description {
  font-size: 16px;
  color: #555555;
}

.page-resources-latest-promotions-analysis__step-description a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-resources-latest-promotions-analysis__step-description a:hover {
  text-decoration: underline;
}

/* Terms Section */
.page-resources-latest-promotions-analysis__list {
  list-style: disc;
  margin-left: 25px;
  font-size: 18px;
  color: #444444;
}

.page-resources-latest-promotions-analysis__list li {
  margin-bottom: 10px;
}

.page-resources-latest-promotions-analysis__list li strong {
  color: #017439;
}

.page-resources-latest-promotions-analysis__list a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-resources-latest-promotions-analysis__list a:hover {
  text-decoration: underline;
}

/* Safety Section - Features Grid */
.page-resources-latest-promotions-analysis__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  text-align: center;
}

.page-resources-latest-promotions-analysis__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-latest-promotions-analysis__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources-latest-promotions-analysis__feature-item img {
  width: 200px; 
  height: 200px;
  object-fit: contain; 
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-latest-promotions-analysis__feature-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
}

.page-resources-latest-promotions-analysis__feature-description {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-resources-latest-promotions-analysis__faq-list {
  margin-top: 30px;
}

.page-resources-latest-promotions-analysis__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-resources-latest-promotions-analysis__faq-item.active .page-resources-latest-promotions-analysis__faq-answer {
  max-height: 2000px !important; /* Use !important and large value */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-resources-latest-promotions-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  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:active {
  background: #eeeeee;
}

.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: #333333; /* Ensure contrast */
  pointer-events: none;
}

.page-resources-latest-promotions-analysis__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-resources-latest-promotions-analysis__faq-item.active .page-resources-latest-promotions-analysis__faq-toggle {
  color: #017439; /* Change color when active */
  transform: rotate(45deg); /* Plus to X effect */
}


/* Final CTA Section */
.page-resources-latest-promotions-analysis__cta-final-section .page-resources-latest-promotions-analysis__container {
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text for contrast */
  padding: 50px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-promotions-analysis__cta-final-section .page-resources-latest-promotions-analysis__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-resources-latest-promotions-analysis__cta-final-section .page-resources-latest-promotions-analysis__section-title::after {
  background-color: #ffffff;
}

.page-resources-latest-promotions-analysis__cta-final-section .page-resources-latest-promotions-analysis__text-block {
  color: #e0e0e0;
  margin-bottom: 30px;
}

/* Buttons */
.page-resources-latest-promotions-analysis__cta-button,
.page-resources-latest-promotions-analysis__btn-primary,
.page-resources-latest-promotions-analysis__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-resources-latest-promotions-analysis__cta-button,
.page-resources-latest-promotions-analysis__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-resources-latest-promotions-analysis__cta-button:hover,
.page-resources-latest-promotions-analysis__btn-primary:hover {
  background-color: #e01212;
  border-color: #e01212;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-promotions-analysis__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  margin-left: 20px;
}

.page-resources-latest-promotions-analysis__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources-latest-promotions-analysis__button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px; /* Space between buttons */
  width: 100%; /* For responsiveness */
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  overflow: hidden; /* For responsiveness */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-latest-promotions-analysis__hero-title {
    font-size: 40px;
  }
  .page-resources-latest-promotions-analysis__hero-description {
    font-size: 18px;
  }
  .page-resources-latest-promotions-analysis__section-title {
    font-size: 30px;
  }
  .page-resources-latest-promotions-analysis__text-block {
    font-size: 16px;
  }
  .page-resources-latest-promotions-analysis__promo-card img {
    
  }
}

@media (max-width: 768px) {
  .page-resources-latest-promotions-analysis__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Override desktop padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-latest-promotions-analysis__hero-title {
    font-size: 32px;
  }
  .page-resources-latest-promotions-analysis__hero-description {
    font-size: 16px;
  }
  .page-resources-latest-promotions-analysis__section {
    padding: 40px 0;
  }
  .page-resources-latest-promotions-analysis__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-resources-latest-promotions-analysis__text-block {
    font-size: 15px;
  }
  .page-resources-latest-promotions-analysis__promo-grid,
  .page-resources-latest-promotions-analysis__steps-grid,
  .page-resources-latest-promotions-analysis__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-latest-promotions-analysis__promo-card img {
    height: 200px; /* Ensure minimum 200px height for images in cards */
  }
  .page-resources-latest-promotions-analysis__feature-item img {
    width: 200px !important;
    height: 200px !important;
  }

  /* Images responsiveness */
  .page-resources-latest-promotions-analysis img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Containers responsiveness */
  .page-resources-latest-promotions-analysis__section,
  .page-resources-latest-promotions-analysis__card,
  .page-resources-latest-promotions-analysis__container,
  .page-resources-latest-promotions-analysis__promo-card,
  .page-resources-latest-promotions-analysis__step-item,
  .page-resources-latest-promotions-analysis__feature-item,
  .page-resources-latest-promotions-analysis__cta-final-section .page-resources-latest-promotions-analysis__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsiveness */
  .page-resources-latest-promotions-analysis__cta-button,
  .page-resources-latest-promotions-analysis__btn-primary,
  .page-resources-latest-promotions-analysis__btn-secondary,
  .page-resources-latest-promotions-analysis a[class*="button"],
  .page-resources-latest-promotions-analysis a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove margin-left for secondary button */
  }
  
  .page-resources-latest-promotions-analysis__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px; /* Add padding to button group itself */
    padding-right: 15px;
  }

  .page-resources-latest-promotions-analysis__faq-question {
    padding: 15px;
  }
  .page-resources-latest-promotions-analysis__faq-question h3 {
    font-size: 16px;
  }
  .page-resources-latest-promotions-analysis__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-resources-latest-promotions-analysis__faq-item.active .page-resources-latest-promotions-analysis__faq-answer {
    padding: 15px !important;
  }
}