/* style/promotions.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-highlight: #FFFF00;
  --background-light: #FFFFFF;
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

/* 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;
  color: var(--text-light);
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

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

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

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

.page-promotions__main-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.3em;
  margin-bottom: 30px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* General Section Styling */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-promotions__intro-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__video-section {
  padding: 60px 0;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Color Schemes for Sections */
.page-promotions__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-promotions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: var(--secondary-color);
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-promotions__btn-primary:hover {
  background-color: #a00707; /* Darken #C30808 */
  border-color: #a00707; /* Darken #C30808 */
}

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

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

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

/* Types Section Grid */
.page-promotions__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-promotions__card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-dark);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

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

.page-promotions__card-text {
  font-size: 1em;
  padding: 0 15px;
  text-align: justify;
}

/* How to Claim Section */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-promotions__step-item {
  text-align: center;
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  color: var(--text-dark);
}

.page-promotions__step-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-promotions__step-description {
  font-size: 1em;
  text-align: justify;
}

.page-promotions__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

.page-promotions__cta-bottom .page-promotions__text-block {
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Why Choose Us Section */
.page-promotions__why-choose-us-section {
  padding: 60px 0;
}

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

.page-promotions__feature-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.page-promotions__feature-icon {
  width: 200px; /* Minimum width */
  height: 150px; /* Minimum height */
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

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

.page-promotions__feature-description {
  font-size: 1em;
  text-align: justify;
}

/* Video Section */
.page-promotions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 30px auto;
  border-radius: 10px;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block; /* Ensure it behaves as a block element */
  cursor: pointer;
}

.page-promotions__video-cta {
  text-align: center;
  font-size: 1.1em;
}

.page-promotions__video-cta a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid var(--primary-color);
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  background-color: var(--secondary-color);
  text-align: justify;
}

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

/* Conclusion Section */
.page-promotions__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__conclusion-section .page-promotions__text-block {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.8em;
  }

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

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

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

  .page-promotions__container {
    padding: 30px 15px;
  }

  .page-promotions__intro-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__video-section,
  .page-promotions__why-choose-us-section,
  .page-promotions__conclusion-section {
    padding: 40px 0;
  }

  .page-promotions__grid-layout,
  .page-promotions__steps-grid,
  .page-promotions__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card-image,
  .page-promotions__step-image {
    height: 200px;
  }

  .page-promotions__feature-icon {
    width: 200px !important;
    height: auto !important; /* Adjusted to fit content, ensuring min 200px */
    max-width: 100% !important;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__hero-image,
  .page-promotions__card-image,
  .page-promotions__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Override fixed height for responsiveness */
    object-fit: cover !important;
  }

  /* Mobile video responsiveness */
  .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;
  }

  /* Mobile button responsiveness */
  .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;
    margin-bottom: 15px; /* Add some spacing between stacked buttons */
  }
  
  .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-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex context for stacking */
    flex-direction: column; /* Stack buttons vertically */
  }
  
  .page-promotions__video-section .page-promotions__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__video-section .page-promotions__text-block {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em;
  }

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}