/* style/promotions.css */

/* Base Styles */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text on dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8));
  min-height: 600px;
  overflow: hidden;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-promotions__main-title {
  font-size: 3.5em;
  color: #FFFF00;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-promotions__intro-text {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.5;
}

.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: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

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

.page-promotions__btn-small {
  padding: 12px 25px;
  font-size: 0.95em;
}

.page-promotions__cta-buttons--center {
  margin-top: 40px;
}

/* Video Section */
.page-promotions__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-promotions__video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  cursor: pointer;
}

.page-promotions__video-caption {
  font-style: italic;
  color: #cccccc;
  margin-top: 15px;
}

/* Featured Offers Section */
.page-promotions__featured-offers {
  padding: 80px 20px;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.page-promotions__featured-offers .page-promotions__section-title {
  color: #017439;
}

.page-promotions__featured-offers .page-promotions__section-description {
  color: #555555;
}

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

.page-promotions__offer-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-promotions__card-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

.page-promotions__card-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-promotions__card-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__offer-card .page-promotions__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
  align-self: flex-start;
}

.page-promotions__offer-card .page-promotions__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* How To Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-promotions__step-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__step-text {
  font-size: 1em;
  color: #e0e0e0;
}

.page-promotions__step-text a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-promotions__step-text a:hover {
  color: #ffffff;
}

/* Benefits Section */
.page-promotions__benefits {
  padding: 80px 20px;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.page-promotions__benefits .page-promotions__section-title {
  color: #017439;
}

.page-promotions__benefits .page-promotions__section-description {
  color: #555555;
}

.page-promotions__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-promotions__benefits-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-promotions__benefits-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-promotions__benefits-heading {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__benefits-text {
  font-size: 1em;
  color: #666666;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 20px;
  background-color: #017439; /* Brand color dark background */
  color: #ffffff;
}

.page-promotions__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

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

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-heading {
  margin: 0;
  color: #ffffff;
  font-size: 1em; /* Adjusted for consistency with parent font-size */
}

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

.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: #e0e0e0;
}

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

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

/* CTA Bottom Section */
.page-promotions__cta-bottom {
  padding: 80px 20px;
  text-align: center;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.page-promotions__cta-bottom .page-promotions__section-title {
  color: #017439;
}

.page-promotions__cta-bottom .page-promotions__section-description {
  color: #555555;
}

.page-promotions__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Dark/Light Background Specific Styles */
.page-promotions__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__section-description {
  color: #f0f0f0;
}

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

.page-promotions__light-bg .page-promotions__section-title {
  color: #017439;
}

.page-promotions__light-bg .page-promotions__section-description {
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.8em;
  }
  .page-promotions__intro-text {
    font-size: 1.1em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

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

  .page-promotions__hero-section {
    padding: 60px 15px;
  }

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

  .page-promotions__intro-text {
    font-size: 1em;
  }

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

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

  .page-promotions__video-section,
  .page-promotions__featured-offers,
  .page-promotions__how-to-claim,
  .page-promotions__benefits,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom {
    padding: 40px 15px;
  }

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

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-promotions__offer-card,
  .page-promotions__step-item,
  .page-promotions__benefits-item {
    padding: 20px;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__card-title {
    font-size: 1.3em;
  }

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

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

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Image and video responsive fix */
  .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;
  }
  
  .page-promotions__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-promotions__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
  .page-promotions__cta-buttons a {
    width: 100%;
  }
  .page-promotions__benefits-icon {
    min-width: 80px; /* Adjust min size for mobile if needed, but keep it >= 200px if it's a content image */
    min-height: 80px;
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em;
  }
  .page-promotions__intro-text {
    font-size: 0.9em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}