/* style/promotions.css */

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

/* Base styles for the page */
.page-promotions {
  background-color: var(--color-background);
  color: var(--color-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 0; /* body already handles padding-top */
}

.page-promotions h1, .page-promotions h2, .page-promotions h3, .page-promotions h4, .page-promotions h5, .page-promotions h6 {
  color: var(--color-text-main);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-promotions h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 30px;
}

.page-promotions h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-gold);
}

.page-promotions__section-title {
  color: var(--color-gold);
  font-weight: bold;
  margin-bottom: 30px;
}

.page-promotions__sub-title {
  color: var(--color-text-main);
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-promotions__text-block {
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.page-promotions__list, .page-promotions__ordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-promotions__list li, .page-promotions__ordered-list li {
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

.page-promotions__list li::marker, .page-promotions__ordered-list li::marker {
  color: var(--color-gold);
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 20px 60px; /* Small top padding as body handles header offset */
  background-color: var(--color-background);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  z-index: 0;
  margin-bottom: 40px; /* 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 {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--color-glow);
}

.page-promotions__cta-button--secondary {
  background: none;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

.page-promotions__cta-button--secondary:hover {
  background: rgba(var(--color-primary), 0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 10px var(--color-primary);
}

/* Section Styling */
.page-promotions__section {
  padding: 60px 0;
}

.page-promotions__introduction-section {
  background-color: var(--color-background);
}

.page-promotions__welcome-bonus-section {
  background-color: var(--color-deep-green);
}

.page-promotions__current-promotions-section {
  background-color: var(--color-background);
}

.page-promotions__vip-section {
  background-color: var(--color-deep-green);
}

.page-promotions__guide-section {
  background-color: var(--color-background);
}

.page-promotions__cta-final-section {
  background-color: var(--color-deep-green);
  text-align: center;
}

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

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

.page-promotions__card:hover, .page-promotions__promo-card:hover {
  transform: translateY(-5px);
}

.page-promotions__card-image, .page-promotions__promo-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-promotions__card-title, .page-promotions__promo-title {
  font-size: 1.8rem;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-promotions__card-text, .page-promotions__promo-text {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-list {
  text-align: left;
  width: 100%;
  margin-bottom: 20px;
  padding-left: 0;
  list-style: none;
}

.page-promotions__card-list li {
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-promotions__card-list li::before {
  content: '✓';
  color: var(--color-glow);
  position: absolute;
  left: 0;
  top: 0;
}

.page-promotions__button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--color-text-secondary);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--color-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
  background-color: var(--color-deep-green);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

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

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

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-divider);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    min-height: 500px;
  }
  .page-promotions__card-grid, .page-promotions__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions h1 {
    font-size: 2.2rem;
  }
  .page-promotions h2 {
    font-size: 1.8rem;
  }
  .page-promotions h3 {
    font-size: 1.3rem;
  }
  .page-promotions__hero-section {
    padding: 10px 15px 40px;
    min-height: 400px;
  }
  .page-promotions__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-promotions__hero-content {
    padding: 0 15px;
  }
  .page-promotions__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__card, .page-promotions__promo-card {
    padding: 20px;
  }
  .page-promotions__card-title, .page-promotions__promo-title {
    font-size: 1.5rem;
  }
  .page-promotions__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile specific image and container rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__faq-list,
  .page-promotions__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-promotions__cta-button,
  .page-promotions a[class*="button"],
  .page-promotions 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-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column !important; /* Stack buttons vertically */
  }
  /* Fixed header spacing for first content block, not var(--header-offset) */
  .page-promotions__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-promotions h1 {
    font-size: 1.8rem;
  }
  .page-promotions h2 {
    font-size: 1.5rem;
  }
  .page-promotions__hero-section {
    min-height: 350px;
  }
  .page-promotions__card-grid, .page-promotions__promo-grid {
    grid-template-columns: 1fr;
  }
}