/* style/promotions.css */
:root {
  --primary-color: #0056b3;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f1f3f5;
  --border-color: #e0e0e0;
}

.page-promotions {
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
}

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

/* Fixed navigation bar spacing */
.page-promotions__hero-intro-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
  background: var(--bg-dark);
  text-align: center;
}

.page-promotions__main-title {
  font-size: 42px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-promotions__hero-description a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__hero-description a:hover {
  color: var(--primary-color);
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-color);
}

.page-promotions__cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions__intro-section,
.page-promotions__promotions-types-section,
.page-promotions__games-promo-section,
.page-promotions__faq-section,
.page-promotions__latest-news-section {
  padding: 60px 0;
}

.page-promotions__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--text-light);
}

.page-promotions__section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: -20px auto 40px auto;
  color: #cccccc;
}

.page-promotions__section-description a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__section-description a:hover {
  color: var(--primary-color);
}

.page-promotions__text-block p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-promotions__text-block p a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__text-block p a:hover {
  color: var(--primary-color);
}

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

.page-promotions__promo-card {
  background: #2a2a2a; /* Darker card background */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-icon {
  max-width: 150px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
}

.page-promotions__card-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-promotions__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
  flex-grow: 1;
  margin-bottom: 25px;
}

.page-promotions__card-text a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__card-text a:hover {
  color: var(--primary-color);
}

.page-promotions__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  margin-top: auto;
}

.page-promotions__card-button:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-promotions__game-promo-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-promotions__game-promo-item {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__game-promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__game-promo-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-promotions__game-promo-content {
  padding: 30px;
  width: 60%;
}

.page-promotions__game-promo-title {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-promotions__game-promo-text {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 25px;
}

.page-promotions__game-promo-text a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__game-promo-text a:hover {
  color: var(--primary-color);
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a; /* Darker background for FAQ items */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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;
  padding: 0 20px;
  opacity: 0;
  background: #1a1a1a; /* Even darker background for answer */
  color: #e0e0e0;
  font-size: 15px;
  line-height: 1.7;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-answer p a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__faq-answer p a:hover {
  color: var(--primary-color);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #004a9e;
  border-color: #004a9e;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Change + to X */
}

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

.page-promotions__news-card {
  background: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__news-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions__news-card h3 {
  padding: 20px 20px 10px 20px;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.3;
}

.page-promotions__news-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__news-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__news-excerpt {
  padding: 0 20px 15px 20px;
  font-size: 15px;
  color: #e0e0e0;
  line-height: 1.6;
}

.page-promotions__news-excerpt a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-promotions__news-excerpt a:hover {
  color: var(--primary-color);
}

.page-promotions__news-date {
  display: block;
  padding: 0 20px 20px 20px;
  font-size: 14px;
  color: #888888;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 36px;
  }
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__game-promo-item {
    flex-direction: column;
  }
  .page-promotions__game-promo-image {
    width: 100%;
    height: 250px;
  }
  .page-promotions__game-promo-content {
    width: 100%;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-intro-section {
    padding-top: 120px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__main-title {
    font-size: 28px;
  }
  .page-promotions__hero-description {
    font-size: 16px;
  }
  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-promotions__intro-section,
  .page-promotions__promotions-types-section,
  .page-promotions__games-promo-section,
  .page-promotions__faq-section,
  .page-promotions__latest-news-section {
    padding: 40px 0;
  }
  .page-promotions__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-promotions__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-promotions__text-block p {
    font-size: 15px;
  }
  .page-promotions__promo-card-grid {
    gap: 20px;
  }
  .page-promotions__promo-card {
    padding: 25px;
  }
  .page-promotions__promo-icon {
    max-width: 120px;
    margin-bottom: 15px;
  }
  .page-promotions__card-title {
    font-size: 20px;
  }
  .page-promotions__card-text {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-promotions__card-button {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-promotions__game-promo-list {
    gap: 30px;
  }
  .page-promotions__game-promo-item {
    flex-direction: column;
  }
  .page-promotions__game-promo-image {
    width: 100%;
    height: 200px;
  }
  .page-promotions__game-promo-content {
    width: 100%;
    padding: 20px;
  }
  .page-promotions__game-promo-title {
    font-size: 22px;
  }
  .page-promotions__game-promo-text {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-promotions__faq-list {
    max-width: 100%;
  }
  .page-promotions__faq-item {
    margin-bottom: 10px;
  }
  .page-promotions__faq-question {
    padding: 15px;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-promotions__faq-answer {
    padding: 0 15px;
    font-size: 14px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }
  .page-promotions__news-grid {
    gap: 20px;
  }
  .page-promotions__news-thumbnail {
    height: 150px;
  }
  .page-promotions__news-card h3 {
    font-size: 18px;
    padding: 15px 15px 8px 15px;
  }
  .page-promotions__news-excerpt {
    font-size: 14px;
    padding: 0 15px 10px 15px;
  }
  .page-promotions__news-date {
    padding: 0 15px 15px 15px;
  }
  /* Ensure all images are responsive and do not cause horizontal scroll */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__game-promo-item,
  .page-promotions__news-card,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__hero-intro-section .page-promotions__hero-intro-container,
  .page-promotions__intro-section .page-promotions__container,
  .page-promotions__promotions-types-section .page-promotions__container,
  .page-promotions__games-promo-section .page-promotions__container,
  .page-promotions__faq-section .page-promotions__container,
  .page-promotions__latest-news-section .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}