/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #FFF3E6); /* Default text color from custom palette */
  background-color: var(--background-color, #0D0E12); /* Default background color from custom palette */
}

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

.page-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFF3E6; /* Text Main color */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 18px;
  color: #FFF3E6; /* Text Main color */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 810px; /* Max height for the hero image */
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(13, 14, 18, 0.7); /* Slightly transparent background for readability */
  border-radius: 10px;
  margin-top: -80px; /* Pull content slightly over the image, but not covering text */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #FFF3E6; /* Text Main color */
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.2rem;
  color: #FFF3E6; /* Text Main color */
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Primary Button */
.page-promotions__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 145, 26, 0.4);
  max-width: 100%; /* Ensure button adapts */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 145, 26, 0.6);
}

/* Secondary Button */
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #17191F; /* Card BG color */
  color: #FFA53A; /* Auxiliary color */
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid #A84F0C; /* Border color */
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button adapts */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-secondary:hover {
  background: #2a2d34;
  color: #FFB04D; /* Glow color */
  border-color: #FFB04D;
}

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

.page-promotions__dark-section {
  background-color: #0D0E12;
  color: #FFF3E6;
}

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

.page-promotions__category-card {
  background: #17191F; /* Card BG color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border color */
}

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

.page-promotions__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-promotions__category-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-promotions__category-text {
  font-size: 16px;
  color: #FFF3E6; /* Text Main color */
  margin-bottom: 25px;
}

/* Details Section */
.page-promotions__details-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background color */
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__promotion-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background: #17191F; /* Card BG color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
}

.page-promotions__promotion-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-promotions__promotion-image-wrapper {
  flex: 1;
  min-width: 300px; /* Minimum width for image wrapper */
}

.page-promotions__promotion-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-promotions__promotion-content {
  flex: 2;
}

.page-promotions__promotion-title {
  font-size: 28px;
  font-weight: 700;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-promotions__promotion-content p {
  font-size: 17px;
  margin-bottom: 15px;
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__promotion-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-promotions__promotion-content ul li {
  font-size: 16px;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__promotion-content ul li::before {
  content: '✓';
  color: #FFA53A; /* Auxiliary color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-promotions__term-card {
  background: #17191F; /* Card BG color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border color */
}

.page-promotions__term-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-promotions__term-card p {
  font-size: 16px;
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__terms-cta {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

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

.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG color */
  color: #FFF3E6; /* Text Main color */
}

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;
}

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: #2a2d34;
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFA53A; /* Auxiliary color */
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  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: #0D0E12; /* Background color */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* General image and button responsive styles */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-buttons,
.page-promotions__button-group,
.page-promotions__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-promotions__container {
    padding: 20px 30px;
  }

  .page-promotions__hero-content {
    padding: 30px 20px;
    margin-top: -60px;
  }

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

  .page-promotions__hero-description {
    font-size: 1.1rem;
  }

  .page-promotions__promotion-item {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .page-promotions__promotion-item:nth-child(even) {
    flex-direction: column;
  }

  .page-promotions__promotion-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-promotions__promotion-content ul {
    text-align: left;
  }

  .page-promotions__promotion-content ul li {
    padding-left: 0;
  }

  .page-promotions__promotion-content ul li::before {
    left: -25px;
  }
}

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

  .page-promotions__hero-section {
    padding-top: 10px; /* Still small top padding */
    margin-bottom: 30px;
  }

  .page-promotions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Ensure full image visibility on smaller screens */
  }

  .page-promotions__hero-content {
    padding: 20px 15px;
    margin-top: -40px;
  }

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

  .page-promotions__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .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-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-promotions__promotion-categories,
  .page-promotions__terms-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__category-card,
  .page-promotions__term-card,
  .page-promotions__promotion-item {
    padding: 20px;
  }

  .page-promotions__category-image {
    height: 180px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
  }

  .page-promotions__category-title {
    font-size: 20px;
  }

  .page-promotions__promotion-title {
    font-size: 22px;
  }

  .page-promotions__promotion-content p,
  .page-promotions__promotion-content ul li,
  .page-promotions__term-card p {
    font-size: 15px;
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px;
  }
  .page-promotions__faq-qtext {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
  }
  .page-promotions__faq-answer p {
    font-size: 15px;
  }
  .page-promotions__content-area,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__overview-section,
  .page-promotions__details-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}