/* style/promotions.css */
:root {
  --page-promotions-primary-color: #26A9E0;
  --page-promotions-secondary-color: #FFFFFF;
  --page-promotions-login-color: #EA7C07;
  --page-promotions-dark-text: #333333;
  --page-promotions-light-text: #ffffff;
  --page-promotions-bg-light: #f8f9fa;
  --page-promotions-bg-dark: #1a1a1a; /* Assuming a dark body background from shared.css */
}

.page-promotions {
  color: var(--page-promotions-light-text); /* Default text color for dark body background */
  background-color: var(--page-promotions-bg-dark); /* Placeholder, actual body bg from shared */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background-color: var(--page-promotions-primary-color);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-promotions__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
  color: var(--page-promotions-light-text);
}

.page-promotions__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-promotions-light-text);
  margin-bottom: 20px;
}

.page-promotions__hero-description {
  font-size: 1.15em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-promotions-light-text);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button,
.page-promotions__faq-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: var(--page-promotions-login-color);
  color: var(--page-promotions-light-text);
  border: 2px solid var(--page-promotions-login-color);
}

.page-promotions__btn-primary:hover {
  background: darken(var(--page-promotions-login-color), 10%);
  border-color: darken(var(--page-promotions-login-color), 10%);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--page-promotions-light-text);
  border: 2px solid var(--page-promotions-light-text);
}

.page-promotions__btn-secondary:hover {
  background: var(--page-promotions-light-text);
  color: var(--page-promotions-primary-color);
}

/* General Section Styling */
.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-promotions__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

/* Color Schemes for Sections */
.page-promotions__light-bg {
  background-color: var(--page-promotions-secondary-color);
  color: var(--page-promotions-dark-text);
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__text-block,
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__card-description,
.page-promotions__light-bg .page-promotions__game-promo-title,
.page-promotions__light-bg .page-promotions__game-promo-description,
.page-promotions__light-bg .page-promotions__guide-list li h3,
.page-promotions__light-bg .page-promotions__guide-list li p {
  color: var(--page-promotions-dark-text);
}

.page-promotions__dark-section {
  background-color: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
}

.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__text-block,
.page-promotions__dark-section .page-promotions__card-title,
.page-promotions__dark-section .page-promotions__card-description,
.page-promotions__dark-section .page-promotions__terms-list li {
  color: var(--page-promotions-light-text);
}

/* Promotion Types Grid */
.page-promotions__types-section {
  padding-bottom: 80px;
}

.page-promotions__types-section .page-promotions__section-title {
  color: var(--page-promotions-light-text);
}

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

.page-promotions__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px;
  color: var(--page-promotions-light-text);
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--page-promotions-light-text);
}

.page-promotions__card-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
  color: var(--page-promotions-light-text);
}

.page-promotions__card-button {
  background: var(--page-promotions-login-color);
  color: var(--page-promotions-light-text);
  border: 2px solid var(--page-promotions-login-color);
  width: auto; /* Allow button to size naturally */
}

.page-promotions__card-button:hover {
  background: darken(var(--page-promotions-login-color), 10%);
  border-color: darken(var(--page-promotions-login-color), 10%);
}

/* Game Specific Promotions */
.page-promotions__game-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__game-promo-card {
  background: var(--page-promotions-secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-promotions-dark-text);
}

.page-promotions__game-promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-promotions__game-promo-content {
  padding: 25px;
}

.page-promotions__game-promo-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--page-promotions-dark-text);
}

.page-promotions__game-promo-description {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--page-promotions-dark-text);
}

/* Terms Section */
.page-promotions__terms-section .page-promotions__section-title {
  color: var(--page-promotions-light-text);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-list li {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--page-promotions-login-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.05em;
  line-height: 1.6;
  color: var(--page-promotions-light-text);
}

.page-promotions__terms-list li strong {
  color: var(--page-promotions-light-text);
}

/* Guide Section */
.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__guide-list li {
  background: var(--page-promotions-secondary-color);
  border: 1px solid #e0e0e0;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--page-promotions-dark-text);
}

.page-promotions__guide-list li h3 {
  font-size: 1.6em;
  color: var(--page-promotions-primary-color);
  margin-bottom: 15px;
}

.page-promotions__guide-list li p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-promotions-dark-text);
}

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title {
  color: var(--page-promotions-light-text);
}

.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-promotions__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-promotions-light-text);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--page-promotions-light-text);
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-promotions-light-text);
}

.page-promotions__faq-answer p {
  color: var(--page-promotions-light-text);
}

.page-promotions__faq-more-btn {
  margin-top: 30px;
  background: var(--page-promotions-login-color);
  border-color: var(--page-promotions-login-color);
  color: var(--page-promotions-light-text);
}

.page-promotions__faq-more-btn:hover {
  background: darken(var(--page-promotions-login-color), 10%);
  border-color: darken(var(--page-promotions-login-color), 10%);
}

/* Bottom CTA Section */
.page-promotions__cta-bottom-section .page-promotions__section-title {
  color: var(--page-promotions-dark-text);
}

.page-promotions__cta-bottom-section .page-promotions__text-block {
  color: var(--page-promotions-dark-text);
}

.page-promotions__cta-bottom-section .page-promotions__btn-primary {
  background: var(--page-promotions-login-color);
  border-color: var(--page-promotions-login-color);
  color: var(--page-promotions-light-text);
}

.page-promotions__cta-bottom-section .page-promotions__btn-primary:hover {
  background: darken(var(--page-promotions-login-color), 10%);
  border-color: darken(var(--page-promotions-login-color), 10%);
}

.page-promotions__cta-bottom-section .page-promotions__btn-secondary {
  background: transparent;
  color: var(--page-promotions-primary-color);
  border: 2px solid var(--page-promotions-primary-color);
}

.page-promotions__cta-bottom-section .page-promotions__btn-secondary:hover {
  background: var(--page-promotions-primary-color);
  color: var(--page-promotions-light-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-promotions__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__text-block {
    font-size: 0.95em;
  }
  .page-promotions__grid,
  .page-promotions__game-promo-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__card {
    min-height: auto;
  }
  .page-promotions__card-image,
  .page-promotions__game-promo-image {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__guide-list li h3 {
    font-size: 1.4em;
  }
  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button,
  .page-promotions__faq-more-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-image,
  .page-promotions__card-image,
  .page-promotions__game-promo-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__hero-image-wrapper,
  .page-promotions__card,
  .page-promotions__game-promo-card,
  .page-promotions__container,
  .page-promotions__cta-buttons,
  .page-promotions__faq-list,
  .page-promotions__guide-list,
  .page-promotions__terms-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__game-promo-card .page-promotions__game-promo-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__guide-list li,
  .page-promotions__terms-list li {
    padding: 15px;
  }
}

/* Darken function for hover effects (simulated, needs preprocessor or custom JS for real effect) */
/* For pure CSS, one might use a slightly darker predefined color or rgba */
/* Example for darken(var(--page-promotions-login-color), 10%) could be #c96d06 */
/* Example for darken(var(--page-promotions-primary-color), 10%) could be #2297c9 */