/* style/promotions.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #00CED1; /* Turquoise */
  --dark-bg-color: #1a1a2e; /* From shared.css body background */
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-promotions {
  color: var(--text-light); /* Light text on dark body background */
  background-color: var(--dark-bg-color);
  padding-top: 120px; /* Spacing for fixed header */
}

.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: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-promotions__main-title {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.page-promotions__intro-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-bg-color) 0%, #2a2a4a 100%);
  border-bottom: 5px solid var(--secondary-color);
}

.page-promotions__intro-text {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-promotions__intro-text .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-promotions__cta-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

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

.page-promotions__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Promo Types Section */
.page-promotions__types-section {
  padding: 60px 0;
  background-color: var(--dark-bg-color);
}

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

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

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

.page-promotions__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure images are not too small */
}

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

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

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

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

.page-promotions__card-button {
  margin-top: auto; /* Push button to bottom */
  display: inline-block;
  padding: 12px 25px;
  font-size: 16px;
}

/* Top Platforms Section */
.page-promotions__top-platforms-section {
  padding: 60px 0;
  background-color: #242440; /* Slightly different dark background */
}

.page-promotions__platform-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-promotions__platform-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__platform-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__platform-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--primary-color);
}

.page-promotions__platform-info {
  flex-grow: 1;
}

.page-promotions__platform-name {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.page-promotions__platform-link {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-promotions__platform-promo {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

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

.page-promotions__platform-promo a:hover {
  text-decoration: underline;
}

.page-promotions__platform-button {
  padding: 10px 20px;
  font-size: 15px;
  white-space: nowrap;
}

/* Guide Section */
.page-promotions__guide-section {
  padding: 60px 0;
  background-color: var(--dark-bg-color);
}

.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
}

.page-promotions__guide-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 80px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__guide-item::before {
  counter-increment: guide-step;
  content: "0" counter(guide-step);
  position: absolute;
  left: 20px;
  top: 30px;
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  line-height: 1;
}

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

.page-promotions__guide-step-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

.page-promotions__guide-step-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__guide-step-text a:hover {
  text-decoration: underline;
}

/* News Section */
.page-promotions__news-section {
  padding: 60px 0;
  background-color: #2a2a4a;
}

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

.page-promotions__news-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.page-promotions__news-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

.page-promotions__news-excerpt {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

.page-promotions__news-excerpt a:hover {
  text-decoration: underline;
}

.page-promotions__news-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0 80px 0;
  background-color: var(--dark-bg-color);
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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 20px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
}

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

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

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

.page-promotions__faq-answer a:hover {
  text-decoration: underline;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg);
  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: rgba(255, 255, 255, 0.15);
}

.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(--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: 30px;
  height: 30px;
}

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

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

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

  .page-promotions__intro-text,
  .page-promotions__section-description {
    font-size: 17px;
  }

  .page-promotions__promo-card,
  .page-promotions__news-card,
  .page-promotions__platform-item {
    padding: 25px;
  }

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

  .page-promotions__card-text,
  .page-promotions__news-excerpt,
  .page-promotions__guide-step-text {
    font-size: 15px;
  }

  .page-promotions__platform-name {
    font-size: 24px;
  }

  .page-promotions__platform-icon {
    width: 100px;
    height: 100px;
  }

  .page-promotions__guide-item {
    padding-left: 70px;
  }

  .page-promotions__guide-item::before {
    font-size: 32px;
    left: 15px;
    top: 25px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px !important; /* Mobile spacing for fixed header */
  }

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

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

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

  .page-promotions__intro-section {
    padding: 60px 0;
  }

  .page-promotions__intro-text,
  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-promotions__cta-wrapper {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .page-promotions__cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-promotions__types-section,
  .page-promotions__top-platforms-section,
  .page-promotions__guide-section,
  .page-promotions__news-section,
  .page-promotions__faq-section {
    padding: 40px 0;
  }

  .page-promotions__promo-grid,
  .page-promotions__news-grid {
    gap: 20px;
  }

  .page-promotions__promo-card,
  .page-promotions__news-card,
  .page-promotions__platform-item,
  .page-promotions__guide-item {
    padding: 20px;
    border-radius: 8px;
  }

  .page-promotions__promo-image {
    min-height: 180px;
  }

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

  .page-promotions__card-text {
    font-size: 14px;
    margin-bottom: 20px;
  }

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

  .page-promotions__platform-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .page-promotions__platform-icon {
    width: 90px;
    height: 90px;
  }

  .page-promotions__platform-name {
    font-size: 22px;
  }

  .page-promotions__platform-button {
    width: 100%;
  }

  .page-promotions__guide-item {
    padding-left: 20px; /* Reset padding for mobile */
  }

  .page-promotions__guide-item::before {
    position: static; /* Remove absolute positioning */
    display: block;
    text-align: left;
    margin-bottom: 10px;
    font-size: 28px;
    color: var(--secondary-color);
  }

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

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

  .page-promotions__news-image {
    height: 180px;
  }

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

  .page-promotions__news-excerpt {
    font-size: 14px;
  }

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

  .page-promotions__faq-question h3 {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }

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

  /* Mobile image forced responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__news-card,
  .page-promotions__platform-item,
  .page-promotions__guide-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__intro-section .page-promotions__container,
  .page-promotions__types-section .page-promotions__container,
  .page-promotions__top-platforms-section .page-promotions__container,
  .page-promotions__guide-section .page-promotions__container,
  .page-promotions__news-section .page-promotions__container,
  .page-promotions__faq-section .page-promotions__container {
    padding-left: 0;
    padding-right: 0;
  }
}