/* style/promotions.css */

/* Base styles for page-promotions */
.page-promotions {
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #f5f5f5); /* Fallback to light grey if var not defined */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  color: #ffffff;
  background-color: #017439;
}

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

.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: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  /* Use clamp for responsive font size without fixed large values */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-promotions__description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-promotions__subtitle {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #f0f0f0;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-promotions__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* Background colors for contrast */
.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-promotions__dark-section .page-promotions__text-block {
  color: #f0f0f0;
}

/* Promotion Grid and Cards */
.page-promotions__promo-grid,
.page-promotions__features-grid,
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

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

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

.page-promotions__dark-bg-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__dark-bg-card .page-promotions__card-text {
  color: #f0f0f0;
}

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

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-promotions__card-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-promotions__promo-card .page-promotions__btn-primary,
.page-promotions__step-card .page-promotions__btn-secondary {
  margin-top: auto;
}

/* Event List */
.page-promotions__event-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__event-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-promotions__event-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-promotions__event-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

/* Why Choose Us Features */
.page-promotions__feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-promotions__feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  object-fit: contain;
  /* No filter property */
}

.page-promotions__feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-promotions__feature-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555555;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9; /* Lighter green for summary */
  border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom-color: transparent;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  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: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

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

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

.page-promotions__faq-item summary {
  list-style: none;
}

/* Call to Action Bottom */
.page-promotions__cta-bottom {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions__cta-bottom .page-promotions__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

  .page-promotions__description {
    font-size: 1.1rem;
  }

  .page-promotions__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 15px 40px;
  }

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

  .page-promotions__description {
    font-size: 1rem;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-promotions__promo-grid,
  .page-promotions__features-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions__card-title {
    font-size: 1.2rem;
  }

  .page-promotions__event-item {
    padding: 15px;
  }

  .page-promotions__event-title {
    font-size: 1.1rem;
  }

  .page-promotions__feature-item {
    padding: 15px;
  }

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

  .page-promotions__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

  .page-promotions__cta-bottom {
    padding: 40px 15px;
  }

  /* Image/Video/Button Responsive Adaptations */
  .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__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__feature-item,
  .page-promotions__faq-item,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-promotions__hero-section {
    padding-top: 10px !important;
  }

  .page-promotions__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
}