/* style/promotions.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --border-color: #e0e0e0;
  --bg-light: #f9f9f9;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--secondary-color); /* Body background is white */
}

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

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

.page-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-promotions__text-block {
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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, header offset handled by body */
  background: linear-gradient(135deg, var(--primary-color) 0%, #34C6F0 100%);
  color: var(--text-color-light);
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__hero-content h1 {
  font-size: clamp(28px, 4vw, 48px); /* Clamp for responsive H1 */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

.page-promotions__hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-color-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-color); /* Login color for CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-promotions__cta-button:hover {
  background: darken(var(--login-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Buttons */
.page-promotions__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.page-promotions__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

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

.page-promotions__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-promotions__button-group .page-promotions__btn-primary {
  min-width: 220px;
}

/* Card Styles */
.page-promotions__card {
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
}

.page-promotions__card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-promotions__card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-promotions__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-promotions__card-title a:hover {
  text-decoration: underline;
}

.page-promotions__card p {
  font-size: 15px;
  color: var(--text-color-dark);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__link-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__link-text:hover {
  text-decoration: underline;
}

.page-promotions__external-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__external-link:hover {
  text-decoration: underline;
}

/* Games Intro Section */
.page-promotions__games-intro {
  background-color: var(--bg-light);
}

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

.page-promotions__game-cards .page-promotions__card {
  padding: 20px;
}

/* Promotions List Section */
.page-promotions__promotions-list {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__promotions-list .page-promotions__section-title,
.page-promotions__promotions-list .page-promotions__text-block {
  color: var(--text-color-light);
}

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

.page-promotions__promo-card {
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
}

.page-promotions__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-promotions__promo-card .page-promotions__card-title {
  color: var(--primary-color);
}

.page-promotions__promo-card p {
  color: var(--text-color-dark);
  flex-grow: 1;
}

/* Security & Support Section */
.page-promotions__security-support {
  background-color: var(--secondary-color);
}

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

.page-promotions__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: var(--bg-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.page-promotions__feature-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-promotions__feature-item h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__feature-item p {
  font-size: 15px;
  color: var(--text-color-dark);
}

.page-promotions__contact-cta {
  margin-top: 40px;
  font-size: 17px;
  text-align: center;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--bg-light);
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
}

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: #f5f5f5;
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: var(--bg-light);
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}

.page-promotions__faq-answer p {
  text-align: left;
  margin: 0;
  padding: 0;
}

/* Latest Blog Section */
.page-promotions__latest-blog {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__latest-blog .page-promotions__section-title,
.page-promotions__latest-blog .page-promotions__text-block {
  color: var(--text-color-light);
}

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

.page-promotions__blog-card {
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.page-promotions__blog-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-promotions__blog-card .page-promotions__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__blog-card .page-promotions__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-promotions__blog-card .page-promotions__card-title a:hover {
  text-decoration: underline;
}

.page-promotions__blog-card p {
  font-size: 14px;
  color: var(--text-color-dark);
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-promotions__blog-date {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.page-promotions__blog-card .page-promotions__btn-secondary {
  align-self: flex-start;
  margin-top: auto;
}

.page-promotions__view-all {
  text-align: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-content h1 {
    font-size: 32px;
  }

  .page-promotions__hero-content p {
    font-size: 16px;
  }

  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-promotions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 15px;
  }

  .page-promotions__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__button-group .page-promotions__btn-primary {
    min-width: unset;
    width: 100%;
    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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__card img {
    border-radius: 4px;
  }

  .page-promotions__game-cards,
  .page-promotions__promo-grid,
  .page-promotions__features-grid,
  .page-promotions__blog-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card,
  .page-promotions__promo-card,
  .page-promotions__feature-item,
  .page-promotions__blog-card {
    padding: 15px;
  }

  .page-promotions__card-title {
    font-size: 18px;
  }

  .page-promotions__card p {
    font-size: 14px;
  }

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

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px;
  }

  .page-promotions__faq-qtext {
    font-size: 15px;
  }

  .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-content h1 {
    font-size: 28px;
  }

  .page-promotions__section-title {
    font-size: 22px;
  }

  .page-promotions__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
}

/* Contrast Fixes for specific backgrounds */
.page-promotions__dark-bg {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__dark-bg .page-promotions__text-block {
  color: var(--text-color-light);
}

.page-promotions__light-bg {
  background: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-promotions__light-bg .page-promotions__text-block {
  color: var(--text-color-dark);
}

/* Ensure no image filters */
.page-promotions img {
  filter: none;
}