/* style/promotions.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-on-dark: #FFFFFF;
  --text-on-light: #333333;
  --register-btn-bg: #C30808;
  --register-btn-text: #FFFF00;
}

.page-promotions {
  color: var(--text-on-dark); /* Body background is #000 (dark), so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.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%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
}

.page-promotions__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

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

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

/* General Section Styles */
.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-on-light);
}

.page-promotions__categories-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

.page-promotions__featured-section,
.page-promotions__cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-promotions__featured-section .page-promotions__section-title,
.page-promotions__cta-section .page-promotions__section-title {
  color: var(--secondary-color);
}

.page-promotions__featured-section .page-promotions__section-subtitle,
.page-promotions__cta-section .page-promotions__section-subtitle {
  color: var(--text-on-dark);
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-promotions__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-promotions__btn-secondary:hover {
  background-color: lighten(var(--primary-color), 50%);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-promotions__btn-large {
  font-size: 1.1em;
  padding: 18px 35px;
}

/* Custom button for Register/Login - Using specific colors */
.page-promotions__hero-content .page-promotions__btn-primary,
.page-promotions__cta-section .page-promotions__btn-primary {
  background-color: var(--register-btn-bg);
  color: var(--register-btn-text);
  border-color: var(--register-btn-bg);
}

.page-promotions__hero-content .page-promotions__btn-primary:hover,
.page-promotions__cta-section .page-promotions__btn-primary:hover {
  background-color: darken(var(--register-btn-bg), 10%);
  border-color: darken(var(--register-btn-bg), 10%);
}

.page-promotions__cta-section .page-promotions__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--register-btn-bg);
  border-color: var(--register-btn-bg);
}

.page-promotions__cta-section .page-promotions__btn-secondary:hover {
  background-color: lighten(var(--register-btn-bg), 50%);
  color: var(--register-btn-bg);
  border-color: var(--register-btn-bg);
}

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

.page-promotions__category-card {
  background: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
  color: var(--text-on-light);
}

.page-promotions__category-card:hover {
  transform: translateY(-10px);
}

.page-promotions__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-promotions__category-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

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

.page-promotions__category-description {
  font-size: 0.95em;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* Featured Promotions */
.page-promotions__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-on-dark);
}

.page-promotions__promo-image {
  width: 40%;
  height: auto;
  object-fit: cover;
}

.page-promotions__promo-content {
  padding: 30px;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-promotions__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

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

.page-promotions__promo-description {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-promotions__promo-features {
  list-style: disc inside;
  margin-bottom: 25px;
  padding-left: 20px;
}

.page-promotions__promo-features li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

/* How to Claim */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-promotions__step-item {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-on-light);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px;
}

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

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

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

.page-promotions__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* Video Section */
.page-promotions__video-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  text-align: center;
  color: var(--text-on-light);
}

.page-promotions__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px; /* Max width for video */
  margin: 40px auto 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-promotions__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  z-index: 0;
}

/* Terms & Conditions */
.page-promotions__terms-content {
  background: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  padding: 30px;
  margin-top: 40px;
  border-radius: 8px;
  color: var(--text-on-light);
}

.page-promotions__terms-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

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

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

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-on-light);
}

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

.page-promotions__faq-question:hover {
  background-color: #eef;
}

.page-promotions__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: var(--primary-color);
}

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

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-on-light);
}

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

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

/* CTA Section */
.page-promotions__cta-section {
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__promo-card {
    flex-direction: column;
  }
  .page-promotions__promo-image,
  .page-promotions__promo-content {
    width: 100%;
  }
}

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

  .page-promotions__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
  }

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

  .page-promotions__section-title {
    font-size: 1.8em;
  }

  .page-promotions__section-subtitle {
    font-size: 0.9em;
  }

  .page-promotions__categories-grid,
  .page-promotions__featured-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__category-image,
  .page-promotions__promo-image {
    height: auto;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    gap: 15px;
  }

  .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__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;
  }

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

  .page-promotions__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
  }

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

  .page-promotions__faq-question h3 {
    font-size: 1em;
  }

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

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-promotions__hero-description {
    font-size: 0.9em;
  }
  .page-promotions__btn-large {
    font-size: 1em;
    padding: 15px 25px;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5em;
  }
}