/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-background: #0a0a0a;
  --light-text: #ffffff;
  --dark-text: #333333;
  --login-button-color: #EA7C07;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--light-text); /* Default text color for dark body background */
  background-color: var(--dark-background); /* Ensure consistency with body */
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding: 80px 0; /* Adjust as needed */
  background-color: var(--dark-background);
  color: var(--light-text);
  padding-top: var(--header-offset, 120px);
}

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

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

.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.5);
}

.page-promotions__hero-description {
  font-size: 1.25em;
  margin-bottom: 30px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  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%);
  transform: translateY(-2px);
}

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

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

/* Content Area */
.page-promotions__content-area {
  background-color: var(--secondary-color);
  color: var(--dark-text);
  padding: 60px 0;
}

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

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

.page-promotions__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__text-block a:hover {
  text-decoration: underline;
}

/* Grid for Promotion Cards */
.page-promotions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-promotions__card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--dark-text);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 0 20px 15px;
  flex-grow: 1;
}

.page-promotions__card p {
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-promotions__card-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

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

/* Process Steps */
.page-promotions__process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-promotions__step-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--dark-text);
}

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

/* FAQ Section */
.page-promotions__faq-list {
  margin-bottom: 60px;
}

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

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

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

.page-promotions__faq-question-text {
  margin: 0;
  color: var(--primary-color);
}

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

.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;
  background-color: #ffffff;
  color: var(--dark-text);
}

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

/* Features Grid */
.page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-promotions__feature-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--dark-text);
}

.page-promotions__feature-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-promotions__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 0 20px 15px;
  flex-grow: 1;
}

.page-promotions__feature-item p {
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__card-title,
  .page-promotions__step-title,
  .page-promotions__feature-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    min-height: 450px;
    padding: 60px 0;
  }
  .page-promotions__hero-title {
    font-size: 2.5em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-promotions__content-area {
    padding: 40px 0;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__text-block {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-promotions__grid,
  .page-promotions__process-steps,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-promotions__card,
  .page-promotions__step-item,
  .page-promotions__feature-item {
    padding: 20px;
  }
  .page-promotions__card-image,
  .page-promotions__feature-image {
    height: 200px;
  }
  .page-promotions__card-title,
  .page-promotions__step-title,
  .page-promotions__feature-title {
    font-size: 1.2em;
  }
  .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: 15px 20px;
  }

  /* Mobile image responsiveness (IMPORTANT) */
  .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-section,
  .page-promotions__cta-buttons,
  .page-promotions__grid,
  .page-promotions__process-steps,
  .page-promotions__features-grid,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-promotions__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-promotions__content-area .page-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}