/* style/promo.css */

/* Root variables for consistent styling */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-dark: #0A0A0A;
  --card-background: #111111;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

.page-promo {
  background-color: var(--background-dark);
  color: var(--text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-promo__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--background-dark);
}

.page-promo__video-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promo__hero-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit video height on larger screens */
}

.page-promo__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-promo__hero-title {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.page-promo__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #DDD;
}

/* Section Titles */
.page-promo__section-title {
  color: var(--primary-color);
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

/* CTA Buttons */
.page-promo__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promo__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 193, 78, 0.4);
}

/* General Content Sections */
.page-promo__overview-section,
.page-promo__welcome-bonus-section,
.page-promo__sports-promo-section,
.page-promo__casino-promo-section,
.page-promo__vip-section,
.page-promo__how-to-claim-section,
.page-promo__why-okbet-section,
.page-promo__media-partners-section,
.page-promo__faq-section,
.page-promo__final-cta-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-promo__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Cards */
.page-promo__card-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-promo__card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  flex: 1 1 calc(50% - 30px);
  box-sizing: border-box;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  min-width: 300px;
}

.page-promo__card:hover {
  transform: translateY(-5px);
}

.page-promo__card-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promo__card-title {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promo__card p {
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-promo__card .page-promo__cta-button {
  margin-top: 20px;
  display: block;
  width: fit-content;
}

/* How to Claim Steps */
.page-promo__claim-steps {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promo__claim-steps li {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-promo__claim-steps li strong {
  color: var(--primary-color);
  font-size: 1.1em;
  margin-right: 15px;
  flex-shrink: 0;
}

/* Why OKBET List */
.page-promo__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-promo__advantage-list li {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  padding-left: 45px;
}

.page-promo__advantage-list li::before {
  content: '✔';
  color: var(--secondary-color);
  font-size: 1.5em;
  position: absolute;
  left: 15px;
  top: 15px;
}

/* Media Partners */
.page-promo__partners-description {
  text-align: center;
  margin-bottom: 40px;
  color: #DDD;
}

.page-promo__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for desktop */
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.page-promo__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.page-promo__partner-logo:hover {
  transform: scale(1.05);
}

/* FAQ Section */
.page-promo__faq-item {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

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

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

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main);
}

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

.page-promo__faq-answer p {
  margin-bottom: 15px;
}

/* Final CTA */
.page-promo__final-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-promo__final-cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #DDD;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promo__card {
    flex: 1 1 calc(100% - 30px);
  }
  .page-promo__partners-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for tablet */
  }
}

@media (max-width: 768px) {
  .page-promo {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promo__hero-section {
    padding-bottom: 40px;
  }

  .page-promo__hero-title {
    font-size: clamp(2em, 8vw, 2.8em); /* Clamp for H1 font size */
  }

  .page-promo__section-title {
    font-size: 2em;
    padding-top: 40px;
    margin-bottom: 30px;
  }

  .page-promo__cta-button,
  .page-promo a[class*="button"],
  .page-promo 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;
  }

  .page-promo__hero-content,
  .page-promo__container,
  .page-promo__overview-section,
  .page-promo__welcome-bonus-section,
  .page-promo__sports-promo-section,
  .page-promo__casino-promo-section,
  .page-promo__vip-section,
  .page-promo__how-to-claim-section,
  .page-promo__why-okbet-section,
  .page-promo__media-partners-section,
  .page-promo__faq-section,
  .page-promo__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promo__hero-video,
  .page-promo__image-full-width,
  .page-promo__card-image,
  .page-promo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promo__video-section {
    padding-top: 10px !important;
  }

  .page-promo__card {
    flex: 1 1 100%;
    padding: 20px;
  }

  .page-promo__card .page-promo__cta-button {
    width: 100%;
  }

  .page-promo__claim-steps li {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .page-promo__claim-steps li strong {
    margin-bottom: 10px;
  }

  .page-promo__advantage-list {
    grid-template-columns: 1fr;
  }

  .page-promo__advantage-list li::before {
    top: 10px;
  }

  .page-promo__partners-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
  }

  .page-promo__partner-logo {
    width: 100%;
    height: auto;
    max-width: 167px;
    max-height: 127px;
  }

  .page-promo__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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

  .page-promo__faq-item.active .page-promo__faq-answer {
    padding: 15px;
    padding-top: 0;
  }
}