/* style/promotions.css */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #f9f9f9; /* Light background for the page content */
}

/* Hero Section */
.page-promotions__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #ffffff;
  overflow: hidden; /* Ensure no overflow from image */
}

.page-promotions__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Image above text for desktop */
  align-items: center;
  gap: 30px;
  padding: 0 20px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-promotions__hero-text-block {
  text-align: center;
  max-width: 800px;
}

.page-promotions__main-title {
  font-size: 48px;
  font-weight: 700;
  color: #26A9E0; /* Brand color for title */
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-promotions__description {
  font-size: 18px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%; /* Essential for button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

.page-promotions__btn-primary:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
  transform: translateY(-2px);
}

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

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

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions__overview-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto 0;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Promotion Categories */
.page-promotions__promo-categories {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-promotions__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promotions__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  padding: 20px 20px 10px;
}

.page-promotions__card p {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
  padding: 0 20px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-promotions__card-button {
  display: block;
  margin: 20px;
  background-color: #EA7C07; /* Login color for action button */
  color: #ffffff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  max-width: calc(100% - 40px); /* Adjust for margin */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background-color: #d16b06;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-promotions__faq-list {
  margin-top: 30px;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333; /* Ensure text color is dark for light background */
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: #f5f5f5;
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px; /* Slightly larger for readability */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
  font-size: 16px;
  line-height: 1.7;
}

/* Ensure all images are responsive by default */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  /* General page content padding for mobile */
  .page-promotions__container,
  .page-promotions__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-promotions__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-bottom: 30px;
  }

  .page-promotions__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-promotions__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Override any desktop margins */
    margin-right: 0 !important;
  }
  
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Overview Section */
  .page-promotions__overview-section {
    padding: 40px 0;
  }

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

  .page-promotions__overview-section p {
    font-size: 15px;
  }

  .page-promotions__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Promotion Categories */
  .page-promotions__promo-categories {
    padding: 40px 0;
  }

  .page-promotions__grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-promotions__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 180px; /* Adjust height for mobile */
  }

  .page-promotions__card-title {
    font-size: 20px;
    padding: 15px 15px 8px;
  }

  .page-promotions__card p {
    font-size: 14px;
    padding: 0 15px;
  }

  .page-promotions__card-button {
    margin: 15px !important;
    font-size: 15px;
    padding: 10px 15px;
    max-width: calc(100% - 30px) !important; /* Adjust for margin */
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section */
  .page-promotions__faq-section {
    padding: 40px 0;
  }
  details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; }
  .page-promotions__faq-qtext { font-size: 16px; }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }
}