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

.page-promotions {
  background-color: var(--fb8-background);
  color: var(--fb8-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--fb8-deep-green);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px;
}

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

.page-promotions__hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: var(--fb8-text-main);
}

.page-promotions__hero-title {
  color: var(--fb8-gold);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  color: var(--fb8-text-secondary);
  margin-bottom: 30px;
}

.page-promotions__section-title {
  font-size: 2.5rem;
  color: var(--fb8-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-promotions__intro-section,
.page-promotions__steps-section,
.page-promotions__terms-section,
.page-promotions__tips-section,
.page-promotions__conclusion-section {
  padding: 60px 0;
  background-color: var(--fb8-background);
}

.page-promotions__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--fb8-text-secondary);
  text-align: justify;
}

.page-promotions__types-section {
  padding: 80px 0;
  background-color: var(--fb8-card-bg);
}

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

.page-promotions__card {
  background-color: var(--fb8-deep-green);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--fb8-text-main);
  border: 1px solid var(--fb8-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 15px var(--fb8-glow);
}

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

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--fb8-gold);
  padding: 20px;
  margin-bottom: 10px;
}

.page-promotions__card-description {
  font-size: 0.95rem;
  color: var(--fb8-text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-promotions__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--fb8-glow);
}

.page-promotions__btn-secondary {
  background-color: var(--fb8-deep-green);
  color: var(--fb8-primary-color);
  border: 2px solid var(--fb8-primary-color);
  margin: 0 20px 20px;
}

.page-promotions__btn-secondary:hover {
  background-color: var(--fb8-primary-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn--large {
  padding: 15px 35px;
  font-size: 1.1rem;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-promotions__steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
}

.page-promotions__step-item {
  background-color: var(--fb8-card-bg);
  border: 1px solid var(--fb8-border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding-left: 80px;
}

.page-promotions__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  background-color: var(--fb8-primary-color);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.page-promotions__step-title {
  color: var(--fb8-gold);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.page-promotions__step-item p {
  color: var(--fb8-text-secondary);
}

.page-promotions__terms-list,
.page-promotions__tips-list {
  list-style: none;
  padding: 0;
}

.page-promotions__term-item,
.page-promotions__tip-item {
  background-color: var(--fb8-card-bg);
  border: 1px solid var(--fb8-border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-promotions__term-title,
.page-promotions__tip-title {
  color: var(--fb8-gold);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.page-promotions__term-item p,
.page-promotions__tip-item p {
  color: var(--fb8-text-secondary);
}

.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--fb8-deep-green);
}

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

.page-promotions__faq-item {
  background-color: var(--fb8-card-bg);
  border: 1px solid var(--fb8-border);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: var(--fb8-text-main);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--fb8-gold);
  cursor: pointer;
  list-style: none;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--fb8-primary-color);
  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: 1rem;
  line-height: 1.6;
  color: var(--fb8-text-secondary);
}

.page-promotions__conclusion-section {
  text-align: center;
}

/* --- Responsive Design --- */

/* Desktop */
@media (min-width: 769px) {
  .page-promotions__hero-image-wrapper {
    height: 450px; /* Fixed height for larger screens */
  }
  .page-promotions__hero-image {
    height: 100%;
  }
}

/* Tablet and Mobile */
@media (max-width: 768px) {
  .page-promotions__container,
  .page-promotions__card-grid,
  .page-promotions__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important;
  }

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

  .page-promotions__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

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

  .page-promotions__intro-section,
  .page-promotions__types-section,
  .page-promotions__steps-section,
  .page-promotions__terms-section,
  .page-promotions__tips-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    padding: 40px 0;
  }

  .page-promotions__card-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-promotions__card-title {
    font-size: 1.2rem;
    padding: 15px;
  }

  .page-promotions__card-description {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  .page-promotions__btn,
  .page-promotions a[class*="button"],
  .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-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-promotions__btn-secondary {
    margin-bottom: 15px !important;
  }

  .page-promotions__btn--large {
    padding: 12px 25px !important;
    font-size: 1rem !important;
  }

  .page-promotions__steps-list {
    padding: 0 15px;
  }

  .page-promotions__step-item {
    padding: 20px;
    padding-left: 65px;
  }

  .page-promotions__step-item::before {
    left: 20px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .page-promotions__step-title {
    font-size: 1.1rem;
  }

  .page-promotions__term-title,
  .page-promotions__tip-title {
    font-size: 1.1rem;
  }

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

  .page-promotions__faq-answer {
    padding: 0 20px 15px;
  }

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