/* style/promotions.css */

/* Custom Colors */
:root {
  --vokbet-primary: #11A84E;
  --vokbet-secondary: #22C768;
  --vokbet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --vokbet-card-bg: #11271B;
  --vokbet-background: #08160F;
  --vokbet-text-main: #F2FFF6;
  --vokbet-text-secondary: #A7D9B8;
  --vokbet-border: #2E7A4E;
  --vokbet-glow: #57E38D;
  --vokbet-gold: #F2C14E;
  --vokbet-divider: #1E3A2A;
  --vokbet-deep-green: #0A4B2C;
}

/* Base Styles for Page Promotions */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--vokbet-text-main); /* Default text color for dark background */
  background-color: var(--vokbet-background); /* Default background */
}

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

.page-promotions__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  color: var(--vokbet-text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-promotions__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--vokbet-text-secondary);
}

.page-promotions__dark-bg {
  background-color: var(--vokbet-background);
  color: var(--vokbet-text-main);
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em);
  font-weight: 800;
  color: var(--vokbet-gold);
  line-height: 1.1;
  margin-bottom: 20px;
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--vokbet-button-gradient);
  color: var(--vokbet-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--vokbet-secondary);
  color: var(--vokbet-background);
  transform: translateY(-3px);
}

/* Why vokbet Promotions Section */
.page-promotions__why-vokbet-promos {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-promotions__feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-promotions__feature-title {
  font-size: 1.4em;
  color: var(--vokbet-primary);
  margin-bottom: 15px;
}

.page-promotions__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-promotions__feature-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 50px auto 0;
  border-radius: 10px;
  object-fit: cover;
}

/* Featured Promotions Section */
.page-promotions__featured-promos {
  padding: 80px 0;
}

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

.page-promotions__promo-card {
  background-color: var(--vokbet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-promotions__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-promotions__promo-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--vokbet-text-main);
  margin-bottom: 15px;
}

.page-promotions__promo-description {
  font-size: 1em;
  color: var(--vokbet-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__promo-content .page-promotions__btn-primary,
.page-promotions__promo-content .page-promotions__btn-secondary {
  width: 100%;
  text-align: center;
  margin-top: auto; /* Push button to bottom */
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 0;
  text-align: center;
}

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

.page-promotions__step-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 60px;
}

.page-promotions__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--vokbet-primary);
  color: var(--vokbet-text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(17, 168, 78, 0.5);
}

.page-promotions__step-title {
  font-size: 1.3em;
  color: var(--vokbet-primary);
  margin-bottom: 15px;
}

.page-promotions__step-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-promotions__process-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 50px auto 0;
  border-radius: 10px;
  object-fit: cover;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-promotions__terms-item {
  background-color: var(--vokbet-card-bg);
  border: 1px solid var(--vokbet-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1em;
  color: var(--vokbet-text-secondary);
  line-height: 1.5;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
}

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

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

.page-promotions__faq-item[open] {
  background-color: #f0f0f0;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--vokbet-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--vokbet-secondary);
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
}

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

/* Call to Action Bottom */
.page-promotions__cta-bottom {
  padding: 80px 0;
  text-align: center;
}

/* Text Color Overrides for specific backgrounds */
.page-promotions__text-main {
  color: var(--vokbet-text-main) !important;
}

.page-promotions__text-secondary {
  color: var(--vokbet-text-secondary) !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image {
    height: 500px;
  }
  .page-promotions__promo-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-section,
  .page-promotions__why-vokbet-promos,
  .page-promotions__featured-promos,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    margin-bottom: 30px;
  }

  .page-promotions__hero-image-wrapper,
  .page-promotions__hero-image,
  .page-promotions__feature-image,
  .page-promotions__process-image,
  .page-promotions__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-promotions__promo-card {
    flex-direction: column;
  }

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promotions__hero-description,
  .page-promotions__text-block,
  .page-promotions__feature-description,
  .page-promotions__step-description,
  .page-promotions__terms-item,
  .page-promotions__faq-answer p {
    font-size: 0.95em;
  }

  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-promotions__hero-content {
    padding: 0 15px;
  }

  /* Ensure no horizontal scroll */
  .page-promotions,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__hero-image-wrapper,
  .page-promotions__why-vokbet-promos,
  .page-promotions__featured-promos,
  .page-promotions__promo-grid,
  .page-promotions__promo-card,
  .page-promotions__how-to-claim,
  .page-promotions__steps-grid,
  .page-promotions__step-item,
  .page-promotions__terms-conditions,
  .page-promotions__terms-list,
  .page-promotions__terms-item,
  .page-promotions__faq-section,
  .page-promotions__faq-list,
  .page-promotions__faq-item,
  .page-promotions__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .page-promotions__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-image {
    height: 200px;
  }
  .page-promotions__promo-image {
    height: 150px;
  }
  .page-promotions__feature-grid,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }
}