/* style/promotions.css */

/* --- Base Styles --- */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Assuming body background is light, or this section is light */
}

/* Ensure all content sections are within a max-width and centered */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

/* --- Hero Section --- */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: #ffffff; /* Default background */
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-promotions__main-title {
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: bold;
  /* No fixed font-size for H1, relying on shared/browser defaults for large displays */
}

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

/* --- Buttons --- */
.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-promotions__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-promotions__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #26A9E0;
}

.page-promotions__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #EA7C07; /* Login color for action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

/* --- Section Backgrounds --- */
.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-promotions__dark-bg .page-promotions__card-title a {
  color: #ffffff; /* White links on dark background */
}

.page-promotions__dark-bg .page-promotions__card-title a:hover {
  color: #f0f0f0; /* Slightly lighter white on hover */
}

/* --- Promotions List Grid --- */
.page-promotions__promotions-list .page-promotions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding-top: 20px;
}

.page-promotions__card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Ensure text is dark on white card */
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 15px 20px 10px 20px;
  line-height: 1.3;
}

.page-promotions__card-title a {
  text-decoration: none;
  color: #26A9E0; /* Brand color for card titles on light background */
  transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
  color: #1e87c2;
}

.page-promotions__card-description {
  font-size: 0.95em;
  margin: 0 20px 20px 20px;
  flex-grow: 1; /* Make description take available space */
}

.page-promotions__card .page-promotions__btn-small {
  align-self: flex-start; /* Align button to start of card */
  margin: 0 20px 20px 20px;
}

/* --- How to Participate Section --- */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-promotions__step-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-promotions__step-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__step-item p a {
  color: #EA7C07; /* Login color for links within content */
  text-decoration: underline;
}

.page-promotions__step-item p a:hover {
  color: #d16b06;
}

/* --- Terms & Conditions Section --- */
.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 20px;
}

.page-promotions__term-item {
  margin-bottom: 10px;
  color: #ffffff; /* White text on dark background */
}

.page-promotions__terms-conditions p a {
  color: #ffffff; /* White links on dark background */
  text-decoration: underline;
}

.page-promotions__terms-conditions p a:hover {
  color: #f0f0f0;
}

/* --- 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;
  color: #333333;
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker for <details> */
  cursor: pointer;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  background-color: #eaf7fc; /* Light blue background for question */
  transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary:hover {
  background-color: #d8edf7;
}

/* For Webkit browsers, hide the default marker */
.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: "−"; /* Change to minus when open, handled by JS */
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px 25px;
  border-top: 1px solid #e0e0e0;
  color: #555555;
}

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

.page-promotions__faq-answer p a {
  color: #EA7C07;
  text-decoration: underline;
}
.page-promotions__faq-answer p a:hover {
  color: #d16b06;
}

/* --- Why Choose Us Section --- */
.page-promotions__reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-promotions__reason-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #333333; /* Dark text on white card */
}

.page-promotions__reason-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__reason-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__reason-description {
  font-size: 0.95em;
  color: #555555;
}

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

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

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

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 20px 15px;
  }

  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__hero-image {
    margin-bottom: 20px;
  }

  .page-promotions__hero-content {
    padding: 0 15px;
  }

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

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__promotions-list .page-promotions__grid,
  .page-promotions__reason-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__card,
  .page-promotions__reason-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Images responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers with images also adapt */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific override for sections that already have padding in container */
  .page-promotions__overview-section .page-promotions__container,
  .page-promotions__promotions-list .page-promotions__container,
  .page-promotions__how-to-participate .page-promotions__container,
  .page-promotions__terms-conditions .page-promotions__container,
  .page-promotions__faq-section .page-promotions__container,
  .page-promotions__why-choose-us .page-promotions__container {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
  .page-promotions__promotions-list .page-promotions__grid,
  .page-promotions__reason-grid {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
  .page-promotions__hero-content {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
  .page-promotions__hero-section {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
}

/* No CSS filters for images */
.page-promotions img {
  filter: none;
}