/* style/promotions.css */

/* Base Styles */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Inherit from shared.css body */
}

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

.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

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

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small,
.page-promotions__btn-text-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Custom color for Login/Register */
  color: #FFFF00; /* Custom font color for Login/Register */
  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;
  margin-left: 15px;
}

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

.page-promotions__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #017439;
  color: #FFFFFF;
  border: 1px solid #017439;
}

.page-promotions__btn-small:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-promotions__btn-text-link {
    background: none;
    border: none;
    color: #FFFF00; /* Custom font color for Login/Register */
    padding: 0;
    text-decoration: underline;
    font-weight: normal;
    margin-top: 10px;
    display: inline-block;
}

.page-promotions__btn-text-link:hover {
    color: #e02020;
}


/* Hero Section */
.page-promotions__hero-section {
  background: linear-gradient(135deg, #017439, #005f2e); /* Brand color gradient */
  color: #ffffff;
  padding: 100px 0 60px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  position: relative;
  overflow: hidden;
}

.page-promotions__hero-section .page-promotions__container {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-promotions__hero-content {
  flex: 1;
}

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

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-promotions__hero-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Featured Promotions */
.page-promotions__featured-promos {
  background-color: var(--dark-bg-color); /* Inherit from shared.css */
  color: #ffffff;
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark bg */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-promotions__promo-card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for titles */
  line-height: 1.3;
}

.page-promotions__promo-card-title a {
  color: #FFFF00;
  text-decoration: none;
}

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

.page-promotions__promo-card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-promotions__promo-card-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-promotions__promo-card-features li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.page-promotions__promo-card-features li::before {
  content: '✓';
  color: #017439; /* Brand color checkmark */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* How to Claim */
.page-promotions__how-to-claim {
  background-color: #017439; /* Main brand color for dark section */
  color: #ffffff;
}

.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__section-description {
  color: #ffffff;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background-color: #FFFF00; /* Custom color */
  color: #C30808; /* Custom color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-promotions__step-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-promotions__step-text {
  color: #cccccc;
}

.page-promotions__steps-image-wrapper {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__steps-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Why Choose */
.page-promotions__why-choose {
  background-color: var(--dark-bg-color); /* Inherit from shared.css */
  color: #ffffff;
}

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

.page-promotions__benefit-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__benefit-title {
  font-size: 1.5em;
  color: #FFFF00; /* Custom color for titles */
  margin-bottom: 10px;
}

.page-promotions__benefit-text {
  color: #cccccc;
}

.page-promotions__why-choose-image-wrapper {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__why-choose-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* FAQ Section */
.page-promotions__faq-section {
  background-color: #004d26; /* Slightly darker brand color */
  color: #ffffff;
}

.page-promotions__faq-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-description {
  color: #ffffff;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-promotions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Custom 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: #cccccc;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Important for JS to expand */
  padding: 15px 25px 25px;
}

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


/* CTA Banner */
.page-promotions__cta-banner {
  background: linear-gradient(90deg, #C30808, #ff5050); /* Custom color gradient */
  color: #ffffff;
  padding: 80px 0;
}

.page-promotions__cta-container {
  max-width: 900px;
}

.page-promotions__cta-title {
  font-size: 2.8em;
  color: #FFFF00; /* Custom color */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Image specific styles - no filter */
.page-promotions img {
  border: none; /* Ensure no unwanted borders */
  vertical-align: middle;
  -webkit-user-drag: none; /* Prevent dragging */
  user-select: none; /* Prevent selection */
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Dark background specific styles for text elements, ensuring contrast */
.page-promotions__dark-bg {
  color: #ffffff; /* Deep dark background, so light text */
}

/* Light background specific styles for text elements */
.page-promotions__light-bg {
  color: #333333; /* Light background, so dark text */
}

/* Medium background specific styles for text elements */
.page-promotions__medium-bg {
  color: #000000; /* Medium background, default dark text */
}

/* Contrast Fix */
.page-promotions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__hero-description {
    font-size: 1.2em;
  }
  .page-promotions__section-title {
    font-size: 2.2em;
  }
  .page-promotions__cta-title {
    font-size: 2.5em;
  }
}

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

  /* Fixed header spacing for mobile */
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-promotions__hero-section .page-promotions__container {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__hero-content {
    order: 2; /* Content after image on mobile */
  }

  .page-promotions__hero-image-wrapper {
    order: 1; /* Image first on mobile */
    margin-bottom: 30px;
  }

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