/* style/promotions.css */

/* Base styles for promotions page */
.page-promotions {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: 120px; /* Fixed header spacing for desktop */
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px; /* Fixed header spacing for mobile */
  }
}

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

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 20px 15px;
  }
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #ffc107; /* Auxiliary color for titles */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

.page-promotions__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0; /* Slightly off-white for body text */
}

@media (max-width: 768px) {
  .page-promotions__text-block {
    font-size: 16px;
    line-height: 1.7;
  }
}

.page-promotions__highlight {
  color: #ffc107;
  font-weight: bold;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-promotions__btn-primary {
  background-color: #007bff; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-promotions__btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #ffc107; /* Auxiliary brand color */
  border: 2px solid #ffc107;
}

.page-promotions__btn-secondary:hover {
  background-color: #ffc107;
  color: #121212; /* Dark text on light background */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

@media (max-width: 768px) {
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }
}

/* Hero Banner Section */
.page-promotions__hero-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.page-promotions__hero-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-promotions__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 12px;
}

.page-promotions__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffc107; /* Auxiliary color for hero title */
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 38px;
  }
  .page-promotions__hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-content {
    padding: 15px;
    width: 90%;
  }
  .page-promotions__hero-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

/* Promotions List Section */
.page-promotions__promotions-list-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  padding: 60px 0;
}

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

.page-promotions__promo-card {
  background-color: #2a2a2a; /* Darker background for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-promotions__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffc107;
}

.page-promotions__promo-description {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__promo-content .page-promotions__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start;
}

@media (max-width: 768px) {
  .page-promotions__promotions-list-section {
    padding: 40px 0;
  }
  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-image {
    height: 200px;
  }
  .page-promotions__promo-title {
    font-size: 20px;
  }
  .page-promotions__promo-description {
    font-size: 15px;
  }
}

/* How To Claim Section */
.page-promotions__how-to-claim-section {
  padding: 60px 0;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-promotions__steps-list li {
  background-color: #2a2a2a;
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 12px;
  position: relative;
  padding-left: 80px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #007bff;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
}

.page-promotions__steps-list li h3 {
  color: #ffc107;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__steps-list li p {
  color: #e0e0e0;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .page-promotions__steps-list li {
    padding: 20px 20px 20px 70px;
  }
  .page-promotions__steps-list li::before {
    left: 20px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  .page-promotions__steps-list li h3 {
    font-size: 20px;
  }
  .page-promotions__steps-list li p {
    font-size: 16px;
  }
}

/* Terms Section */
.page-promotions__terms-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 60px 0;
}

.page-promotions__terms-list {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 30px;
}

.page-promotions__terms-list li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-promotions__terms-list li p {
  display: inline;
}

@media (max-width: 768px) {
  .page-promotions__terms-list {
    padding-left: 15px;
  }
  .page-promotions__terms-list li {
    font-size: 16px;
  }
}

/* Safety & Support Section */
.page-promotions__safety-support-section {
  padding: 60px 0;
  text-align: center;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 60px 0;
}

.page-promotions__faq-list {
  margin-top: 30px;
}

/* FAQ container style */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ default state - answer hidden */
.page-promotions__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 20px;
  opacity: 0;
  background-color: #2a2a2a;
  color: #e0e0e0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough to contain any content */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #3a3a3a;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-promotions__faq-question:hover {
  background-color: #4a4a4a;
  border-color: #5a5a5a;
}

/* Question title style */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffc107;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: #007bff;
  transform: rotate(45deg); /* Change to X or rotate for minus sign */
}

@media (max-width: 768px) {
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }
  .page-promotions__faq-answer p {
    font-size: 15px;
  }
}

/* Blog Section */
.page-promotions__blog-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-promotions__blog-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-promotions__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-promotions__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__blog-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #ffc107;
}

.page-promotions__blog-link {
  color: #ffc107;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__blog-link:hover {
  color: #007bff;
}

.page-promotions__blog-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__blog-date {
  font-size: 14px;
  color: #999999;
  margin-top: auto;
}

.page-promotions__view-all-button {
  margin-top: 40px;
}

@media (max-width: 768px) {
  .page-promotions__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__blog-image {
    height: 180px;
  }
  .page-promotions__blog-title {
    font-size: 18px;
  }
  .page-promotions__blog-excerpt {
    font-size: 15px;
  }
  .page-promotions__view-all-button {
    margin-top: 30px;
  }
}

/* Global image responsive styles */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-promotions__section,
.page-promotions__card,
.page-promotions__container,
.page-promotions__hero-banner,
.page-promotions__promotions-list-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__safety-support-section,
.page-promotions__faq-section,
.page-promotions__blog-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Ensure no horizontal scrollbar */
}

/* Mobile specific forced image styles */
@media (max-width: 768px) {
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-banner,
  .page-promotions__promotions-list-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__safety-support-section,
  .page-promotions__faq-section,
  .page-promotions__blog-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}