/* style/promotions.css */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

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

.page-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 116, 57, 0.7); /* Primary color with opacity */
  z-index: -1;
}

.page-promotions__hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-promotions__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-promotions__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* General Section Styling */
.page-promotions__highlights-section,
.page-promotions__game-specific-promos,
.page-promotions__why-choose-us,
.page-promotions__faq-section,
.page-promotions__cta-section {
  padding: 60px 0;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-promotions__dark-bg .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__dark-bg .page-promotions__section-description {
  color: #f0f0f0;
}

/* Button Styles */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login yellow text */
  border-color: #C30808;
}

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

.page-promotions__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border-color: #017439;
}

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

.page-promotions__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-promotions__btn-small:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

/* Grid Cards */
.page-promotions__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-promotions__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #333333;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-promotions__card-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-promotions__card-text {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tabs for Game Specific Promos */
.page-promotions__tabs {
  margin-top: 40px;
}

.page-promotions__tab-header {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.page-promotions__tab-button {
  background-color: #005f2e;
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  min-width: 150px;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__tab-button:hover,
.page-promotions__tab-button--active {
  background-color: #ffffff;
  color: #017439;
}

.page-promotions__tab-content {
  display: none;
}

.page-promotions__tab-content--active {
  display: block;
}

.page-promotions__promo-item {
  display: flex;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
  overflow: hidden;
  color: #333333;
  align-items: center;
}

.page-promotions__promo-image {
  width: 40%;
  height: 250px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__promo-details {
  width: 60%;
  padding: 25px;
}

.page-promotions__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #017439;
}

.page-promotions__promo-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-promotions__promo-text {
  margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-promotions__advantage-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
}

.page-promotions__advantage-list li {
  background-color: #f8f8f8;
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  line-height: 1.5;
}

.page-promotions__advantage-list li strong {
  color: #017439;
}

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

.page-promotions__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  font-weight: bold;
  font-size: 1.1em;
  color: #017439;
}

.page-promotions__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px;
}

.page-promotions__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

.page-promotions__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
  color: #005f2e;
}

/* CTA Section */
.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.5em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__promo-item {
    flex-direction: column;
  }
  .page-promotions__promo-image,
  .page-promotions__promo-details {
    width: 100%;
  }
  .page-promotions__promo-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-promotions__hero-title {
    font-size: 2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-promotions__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__section-description {
    font-size: 0.95em;
  }
  .page-promotions__grid-cards {
    grid-template-columns: 1fr;
  }
  .page-promotions__card-image {
    height: 200px;
  }
  .page-promotions__tab-header {
    flex-direction: column;
    gap: 10px;
  }
  .page-promotions__tab-button {
    width: 100% !important;
    margin-bottom: 0;
  }
  .page-promotions__promo-item {
    flex-direction: column;
  }
  .page-promotions__promo-image,
  .page-promotions__promo-details {
    width: 100%;
  }
  .page-promotions__promo-image {
    height: 180px;
  }
}