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

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

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-promotions__hero-content {
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-promotions__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.page-promotions__btn-primary {
  background-color: var(--button-register); /* Custom color for Register */
  color: var(--button-text-yellow); /* Custom color for Register/Login text */
  border: 2px solid var(--button-register);
}

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

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--button-text-yellow); /* Custom color for Register/Login text */
  border: 2px solid var(--button-register);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--button-register);
  color: var(--text-light);
}

/* Section common styles */
.page-promotions__intro-section,
.page-promotions__offers-section,
.page-promotions__terms-section,
.page-promotions__tips-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
  padding: 60px 0;
}

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

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

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

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

.page-promotions__offer-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

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

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

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-promotions__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__offer-card .page-promotions__btn-primary,
.page-promotions__offer-card .page-promotions__btn-secondary {
  width: 100%;
  margin-top: auto;
}

/* Terms & Conditions Section */
.page-promotions__terms-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-promotions__term-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
}

.page-promotions__term-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-promotions__term-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Tips Section */
.page-promotions__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__tips-list li {
  font-size: 1.05em;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.page-promotions__tips-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
}

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

.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.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

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

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

.page-promotions__faq-question::marker {
  display: none;
}

.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: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-dark);
}

/* CTA Section */
.page-promotions__cta-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-promotions__cta-section .page-promotions__section-title {
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-promotions__hero-content {
    margin-top: 10px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 15px;
  }
  .page-promotions__hero-section {
    padding: 10px 15px 40px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }
  .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% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-promotions__offers-grid,
  .page-promotions__terms-list {
    grid-template-columns: 1fr;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__text-block {
    font-size: 0.95em;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__card-image {
    height: 200px;
  }
  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px;
  }
  /* Mobile specific image adaptation */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__hero-image-wrapper,
  .page-promotions__offer-card,
  .page-promotions__term-item,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__hero-image {
    border-radius: 0; /* Remove border-radius on mobile for full width */
  }
  .page-promotions__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.4em, 7vw, 2em);
  }
  .page-promotions__section-title {
    font-size: 1.6em;
  }
  .page-promotions__hero-section,
  .page-promotions__intro-section,
  .page-promotions__offers-section,
  .page-promotions__terms-section,
  .page-promotions__tips-section,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    padding: 40px 0;
  }
}

/* Ensure contrast for dark background elements */
.page-promotions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__dark-bg p,
.page-promotions__dark-bg li {
  color: rgba(255, 255, 255, 0.8);
}

.page-promotions__light-bg {
  background-color: var(--background-color);
  color: var(--text-dark);
}

.page-promotions__light-bg p,
.page-promotions__light-bg li {
  color: var(--text-dark);
}

/* No filter on images */
.page-promotions img {
  filter: none;
}