:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 40px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: var(--deep-green); /* Fallback background for hero */
}

.page-promotions__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-promotions__hero-content {
  position: relative; /* Ensure content is above image if needed, but not overlaying */
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  margin-top: -100px; /* Pull content up slightly to overlap image bottom */
  background-color: var(--card-bg); /* Use card background for content block */
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px); /* Adjust to position correctly */
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--gold); /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__description {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 30px;
}

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

.page-promotions__cta-buttons--center {
  margin-top: 30px;
  justify-content: center;
}

.page-promotions__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping for desktop */
  box-sizing: border-box;
  text-align: center;
}

.page-promotions__btn--primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn--primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn--secondary:hover {
  background-color: var(--gold);
  color: var(--deep-green); /* Darker text on gold hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn--small {
  padding: 10px 20px;
  font-size: 0.95rem;
  margin-top: 15px;
}

/* General Section Styling */
.page-promotions__section {
  padding: 60px 0;
  background-color: var(--background);
}

.page-promotions__section--introduction {
  background-color: var(--deep-green);
}

.page-promotions__section--types {
  background-color: var(--background);
}

.page-promotions__section--terms {
  background-color: var(--deep-green);
}

.page-promotions__section--guide {
  background-color: var(--background);
}

.page-promotions__section--faq {
  background-color: var(--deep-green);
}

.page-promotions__section--conclusion {
  background-color: var(--background);
}

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

.page-promotions__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--gold);
  border-radius: 2px;
}

.page-promotions__text-block {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-promotions__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-promotions__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-grow: 1; /* Allow text to take up available space */
  margin-bottom: 20px;
}

/* Lists */
.page-promotions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-promotions__list-ordered {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-promotions__list-item {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.page-promotions__list-item strong {
  color: var(--gold);
}

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

.page-promotions__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

.page-promotions__faq-question:hover {
  background-color: #1a5a3a; /* Slightly lighter deep green on hover */
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
  margin-left: 15px;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

/* Color Contrast Specifics */
.page-promotions__dark-bg {
  color: var(--text-main); /* Should be F2FFF6 */
  background: var(--card-bg); /* #11271B */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -80px;
    transform: translateY(-40px);
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-promotions__hero-content {
    margin-top: -60px;
    transform: translateY(-30px);
    padding: 15px;
    max-width: 95%;
  }

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

  .page-promotions__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__section {
    padding: 40px 0;
  }

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

  .page-promotions__grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card {
    padding: 20px;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__card-title {
    font-size: 1.3rem;
  }

  .page-promotions__text-block,
  .page-promotions__list-item,
  .page-promotions__faq-answer p {
    font-size: 0.95rem;
  }

  .page-promotions__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .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;
  }
  .page-promotions__cta-buttons--center {
    flex-direction: column;
  }
}

/* Ensure contrast for all elements */
h1,
h2,
h3,
.page-promotions__card-title,
.page-promotions__faq-question .page-promotions__faq-qtext,
.page-promotions__faq-toggle {
  color: var(--gold); /* Gold on dark backgrounds */
}

.page-promotions p,
.page-promotions li,
.page-promotions__text-block,
.page-promotions__description {
  color: var(--text-main); /* Main text color on dark backgrounds */
}

.page-promotions__card-text,
.page-promotions__faq-answer p {
  color: var(--text-secondary); /* Secondary text on card background */
}

/* Ensure buttons have white text on primary gradient, and gold text on transparent secondary */
.page-promotions__btn--primary {
  color: #ffffff;
}
.page-promotions__btn--secondary {
  color: var(--gold);
}
.page-promotions__btn--secondary:hover {
  color: var(--deep-green); /* Darker text on gold hover for contrast */
}