/* style/promotions.css */

/* Variables for colors and spacing */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a; /* Body background from shared.css */
  --login-color: #EA7C07;
}

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text on dark body background */
  background-color: var(--bg-dark);
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px; /* Adjust padding for overall section */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background: var(--primary-color);
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--text-light);
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-promotions__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

.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-light);
  transform: translateY(-2px);
}

.page-promotions__center-button {
  display: block;
  margin: 30px auto 0;
  max-width: 300px;
}

.page-promotions__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Titles & Descriptions */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-light);
}

.page-promotions__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

/* Grid Cards */
.page-promotions__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly translucent white on dark background */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

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

.page-promotions__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-promotions__card-text {
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* General Section Styling */
.page-promotions__overview-section,
.page-promotions__daily-promotions,
.page-promotions__claim-guide,
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-promotions__dark-section {
  padding: 80px 0;
  background-color: rgba(38, 169, 224, 0.1); /* Lighter tint of primary on dark bg */
  color: var(--text-light);
}

/* Promotion Item */
.page-promotions__promotion-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-promotions__promotion-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__promotion-item p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-promotions__benefits-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.page-promotions__benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

/* Guide List */
.page-promotions__guide-list {
  list-style: decimal;
  padding-left: 20px;
  max-width: 800px;
  margin: 40px auto;
  color: var(--text-light);
}

.page-promotions__guide-list li {
  margin-bottom: 20px;
  font-size: 1rem;
}

.page-promotions__guide-list li strong {
  color: var(--primary-color);
}

/* Terms & Conditions */
.page-promotions__terms-list {
  list-style: disc;
  padding-left: 20px;
  max-width: 800px;
  margin: 40px auto;
  color: var(--text-light);
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-promotions__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-light);
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  color: var(--text-light);
}

.page-promotions__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-promotions__final-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--primary-color); /* Use primary color as background for final CTA */
  color: var(--text-light);
}

.page-promotions__final-cta .page-promotions__section-title,
.page-promotions__final-cta .page-promotions__section-description {
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding: 40px 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-promotions__grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-promotions__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-promotions__hero-description {
    font-size: 1rem;
  }

  .page-promotions__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .page-promotions__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-promotions__overview-section,
  .page-promotions__dark-section,
  .page-promotions__daily-promotions,
  .page-promotions__claim-guide,
  .page-promotions__faq-section,
  .page-promotions__final-cta {
    padding: 50px 0;
  }

  .page-promotions__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-promotions__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__promotion-item {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-promotions__promotion-subtitle {
    font-size: 1.3rem;
  }

  .page-promotions__guide-list,
  .page-promotions__terms-list {
    margin: 30px auto;
    padding-left: 15px;
  }

  .page-promotions__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  .page-promotions__cta-button {
    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__button-group {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile image and video responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-section {
    padding: 20px 10px;
    padding-top: 10px !important; /* body handles --header-offset */
  }
  .page-promotions__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-promotions__hero-description {
    font-size: 0.9rem;
  }
  .page-promotions__cta-button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .page-promotions__section-title {
    font-size: clamp(1.2rem, 7vw, 1.6rem);
  }
  .page-promotions__card-title {
    font-size: 1.1rem;
  }
  .page-promotions__card-text {
    font-size: 0.85rem;
  }
  .page-promotions__faq-item summary {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  .page-promotions__faq-answer {
    padding: 12px 15px;
  }
  .page-promotions__guide-list,
  .page-promotions__terms-list {
    padding-left: 10px;
  }
}