/* style/promotions.css */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #26A9E0; /* Primary brand color for hero background */
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  padding: 30px;
  border-radius: 10px;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-promotions__btn-center {
  display: block;
  margin: 30px auto 0 auto;
  width: fit-content;
}

/* General Sections */
.page-promotions__promotions-grid,
.page-promotions__conditions-section,
.page-promotions__how-to-join-section,
.page-promotions__why-choose-section,
.page-promotions__faq-section {
  padding: 60px 0;
}

.page-promotions__light-bg {
  background-color: #f5f5f5;
  color: #333333; /* Dark text for light background */
}

.page-promotions__dark-bg {
  background-color: #26A9E0;
  color: #ffffff; /* Light text for dark background */
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Grid Layout */
.page-promotions__grid,
.page-promotions__steps-grid,
.page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Card Styles */
.page-promotions__card,
.page-promotions__step-card,
.page-promotions__feature-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-promotions__card-image,
.page-promotions__step-image,
.page-promotions__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-promotions__feature-image {
  height: 150px;
  width: auto;
  margin: 20px auto 0 auto;
  border-radius: 8px;
}

.page-promotions__card-title,
.page-promotions__step-title,
.page-promotions__feature-title {
  font-size: 1.5em;
  margin: 20px 15px 10px 15px;
  color: #26A9E0;
}

.page-promotions__card-text,
.page-promotions__step-card p,
.page-promotions__feature-card p {
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-promotions__card-button,
.page-promotions__step-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 90%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover,
.page-promotions__step-button:hover {
  background-color: #1e87c0;
}

/* Conditions Section Specific */
.page-promotions__conditions-section .page-promotions__section-title,
.page-promotions__conditions-section .page-promotions__section-description {
  color: #ffffff;
}

.page-promotions__content-block {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-promotions__text-block {
  flex: 1;
  min-width: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

.page-promotions__sub-title {
  font-size: 1.8em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-promotions__text-block p {
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  list-style: none;
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

details > summary {
  list-style: none;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 10px 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-promotions__promotions-grid,
  .page-promotions__steps-grid,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__card-image,
  .page-promotions__step-image,
  .page-promotions__feature-image {
    height: 200px;
  }
  .page-promotions__text-block {
    min-width: unset;
  }
  .page-promotions__sub-title {
    font-size: 1.5em;
  }
  
  /* Ensure all content area images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure all content area image containers are responsive */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__steps-grid,
  .page-promotions__features-grid,
  .page-promotions__content-block,
  .page-promotions__text-block,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  /* Specific padding for sections in mobile */
  .page-promotions__promotions-grid,
  .page-promotions__conditions-section,
  .page-promotions__how-to-join-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section {
    padding: 40px 0;
  }
  .page-promotions__card-button,
  .page-promotions__step-button {
    max-width: 100% !important;
    width: calc(100% - 40px) !important; /* Adjust for padding within card */
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-promotions__hero-description {
    font-size: 0.9em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}

/* Image size constraint for content area */
.page-promotions img:not(.shared-logo, .shared-social-icon, .shared-game-icon) {
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__feature-image {
  min-width: 150px; /* Adjusted min-width for smaller feature images */
  min-height: 100px; /* Adjusted min-height for smaller feature images */
}

/* Override specific element min-width/height if necessary for smaller images like feature cards */
@media (max-width: 768px) {
  .page-promotions__feature-image {
    min-width: 150px !important;
    min-height: 100px !important;
  }
}