/* style/promotions.css */
:root {
  --primary-color: #1A2B5B;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --background-light: #f8f9fa;
  --border-color: #3a4d7d;
  --card-background-dark: rgba(255, 255, 255, 0.08);
  --card-background-light: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark); /* Ensure consistency with shared.css body */
  padding-top: 10px; /* Desktop: Adjust based on fixed header height */
}

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

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

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

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

.page-promotions__hero-section {
  text-align: center;
  padding: 100px 0;
  background-image: url('[GALLERY:bg:iwin_promotions_hero,iwin68_club,banner]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-promotions__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-promotions__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px var(--shadow-dark);
}

.page-promotions__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section for contrast */
}

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

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-dark);
  border: none;
  cursor: pointer;
}

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

.page-promotions__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-dark);
}

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

.page-promotions__btn-secondary:hover {
  background: #101d3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-dark);
}

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

.page-promotions__card {
  background: var(--card-background-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px var(--shadow-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.page-promotions__card-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px var(--shadow-dark);
}

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

.page-promotions__card-text {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px var(--shadow-dark);
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.page-promotions__list-item {
  background: var(--card-background-light);
  color: var(--text-dark);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-light);
}

.page-promotions__list-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-promotions__list-text {
  font-size: 16px;
  color: var(--text-dark);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-promotions__steps-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background: var(--card-background-light);
  color: var(--text-dark);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-light);
}

.page-promotions__steps-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-promotions__steps-content {
  flex-grow: 1;
}

.page-promotions__steps-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-promotions__steps-text {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 0;
}

.page-promotions__content-block {
  background: var(--card-background-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-dark);
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-light);
}

.page-promotions__content-block h3 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-promotions__content-block ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-promotions__content-block li {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-light);
}

.page-promotions__content-block p {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-light);
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-light);
}

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

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

.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(--primary-color);
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-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 {
  transform: rotate(45deg); /* Change to X or just rotate for minus */
  color: var(--secondary-color);
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f0f0f0;
  color: var(--text-dark);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

/* Image responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-promotions {
    padding-top: 10px !important; /* Mobile: Adjust based on fixed header height */
    font-size: 15px;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

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

  .page-promotions__hero-section {
    padding: 80px 0;
  }

  .page-promotions__main-title {
    font-size: 32px;
  }

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

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

  .page-promotions__section-description {
    font-size: 16px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-promotions__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card {
    padding: 20px;
    border-radius: 8px;
  }

  .page-promotions__card-image {
    height: 200px; /* Adjust height for mobile */
    border-radius: 6px;
  }

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

  .page-promotions__card-text {
    font-size: 15px;
  }

  .page-promotions__card-button {
    padding: 10px 20px;
    font-size: 15px;
  }

  .page-promotions__list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-promotions__list-item {
    padding: 20px;
    border-radius: 8px;
  }

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

  .page-promotions__list-text {
    font-size: 15px;
  }

  .page-promotions__steps-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .page-promotions__steps-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

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

  .page-promotions__steps-text {
    font-size: 15px;
  }

  .page-promotions__content-block {
    padding: 20px;
    border-radius: 8px;
  }

  .page-promotions__content-block h3 {
    font-size: 20px;
  }

  .page-promotions__content-block ul,
  .page-promotions__content-block p,
  .page-promotions__content-block li {
    font-size: 15px;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
  }

  .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 20px;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__cta-buttons,
  .page-promotions__content-block,
  .page-promotions__faq-list,
  .page-promotions__faq-item,
  .page-promotions__faq-question,
  .page-promotions__steps-list,
  .page-promotions__list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-promotions__hero-section .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}