/* style/promotions.css */
/* Body background is #121212 (dark), so default text color should be light */
.page-promotions {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Main content background is transparent to show body background */
}

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

/* HERO Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure no overflow */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text content */
}

.page-promotions__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* General Section Styling */
.page-promotions__section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for sections */
  margin-bottom: 20px;
}

.page-promotions__section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.08); /* Alternate section background for visual separation */
}

.page-promotions__dark-section {
  background-color: #26A9E0; /* Brand primary color for specific sections */
  color: #ffffff;
}

.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

.page-promotions__section-description {
  font-size: 1rem;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Promotion Grid */
.page-promotions__promotions-grid,
.page-promotions__steps-grid,
.page-promotions__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promotion-card,
.page-promotions__step-card,
.page-promotions__benefit-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__card-image,
.page-promotions__step-image {
  width: 100%;
  height: auto;
  max-height: 200px; /* Limit height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
}

.page-promotions__card-title,
.page-promotions__step-title,
.page-promotions__benefit-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #26A9E0; /* Brand primary for titles */
  margin-bottom: 15px;
}

.page-promotions__card-text,
.page-promotions__step-text,
.page-promotions__benefit-text {
  font-size: 0.95rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

/* Buttons */
.page-promotions__cta-button,
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-login {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
  background-color: #26A9E0; /* Brand primary */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand primary */
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions__btn-login {
  background-color: #EA7C07; /* Login specific color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-promotions__btn-login:hover {
  background-color: #bb6205;
  border-color: #bb6205;
}

/* Terms and Conditions Section */
.page-promotions__terms-content {
  margin-top: 40px;
  display: grid;
  gap: 25px;
}

.page-promotions__term-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #26A9E0;
  padding: 20px 25px;
  border-radius: 5px;
}

.page-promotions__term-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__term-text {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  display: grid;
  gap: 15px;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden; /* For details tag */
}

.page-promotions__faq-item summary { /* For details tag */
  list-style: none; /* Remove default marker */
  cursor: pointer;
}
.page-promotions__faq-item summary::-webkit-details-marker { /* For details tag */
  display: none; /* Remove default marker for webkit */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #26A9E0;
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* Floating Buttons */
.page-promotions__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-promotions__floating-button {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-promotions__hero-image {
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-promotions__hero-description {
    font-size: 1rem;
  }

  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-promotions__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .page-promotions__promotions-grid,
  .page-promotions__steps-grid,
  .page-promotions__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card-title,
  .page-promotions__step-title,
  .page-promotions__benefit-title {
    font-size: 1.3rem;
  }

  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-promotions__term-item {
    padding: 15px 20px;
  }

  /* Image, Video, Button Responsive Rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-content,
  .page-promotions__terms-content,
  .page-promotions__faq-list,
  .page-promotions__promotions-grid,
  .page-promotions__steps-grid,
  .page-promotions__benefits-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-login,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Make buttons full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__floating-buttons {
    flex-direction: row; /* Horizontal on mobile for floating buttons */
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: calc(100% - 20px);
    justify-content: space-around;
    align-items: center;
    background-color: rgba(18, 18, 18, 0.9); /* Dark background for visibility */
    padding: 10px;
    border-radius: 10px;
  }

  .page-promotions__floating-button {
    flex: 1; /* Distribute space evenly */
    margin: 0 5px; /* Small margin between buttons */
    font-size: 0.85rem;
    padding: 8px 10px;
  }
}