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

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

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

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 30px;
  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: var(--primary-color);
  border-radius: 2px;
}

.page-promotions__section-description {
  font-size: 18px;
  color: var(--text-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__hero-content h1 {
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-content p {
  font-size: 20px;
  color: var(--text-main-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-promotions__intro-section {
  padding: 80px 0;
  background-color: var(--card-background-color);
  border-bottom: 1px solid var(--divider-color);
}

/* Current Promotions Section */
.page-promotions__current-promotions {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-promotions__promo-card {
  background-color: var(--card-background-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

.page-promotions__promo-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-promotions__promo-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-promotions__promo-card h3.page-promotions__card-title {
  font-size: 24px;
  color: var(--gold-color);
  padding: 20px 20px 10px;
  margin: 0;
  text-align: left;
}

.page-promotions__promo-card p.page-promotions__card-description {
  font-size: 16px;
  color: var(--text-secondary-color);
  padding: 0 20px 20px;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.page-promotions__promo-card .page-promotions__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__promo-card .page-promotions__btn-small:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  border-top: 1px solid var(--divider-color);
}

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

.page-promotions__step-item {
  background-color: var(--card-background-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-promotions__step-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__step-item h3 {
  font-size: 22px;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-promotions__step-item p {
  font-size: 16px;
  color: var(--text-secondary-color);
}

.page-promotions__step-item p a {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__step-item p a:hover {
  text-decoration: underline;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 80px 0;
  background-color: var(--card-background-color);
  text-align: center;
  border-top: 1px solid var(--divider-color);
}

.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--background-color);
  border-top: 1px solid var(--divider-color);
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-background-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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: rgba(var(--primary-color-rgb), 0.1);
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-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: var(--deep-green-color);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary-color);
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__section-description {
    font-size: 17px;
  }
  .page-promotions__hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__hero-content p {
    font-size: 18px;
  }
  .page-promotions__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-promotions__promo-card h3.page-promotions__card-title {
    font-size: 22px;
  }
  .page-promotions__promo-card p.page-promotions__card-description {
    font-size: 15px;
  }
  .page-promotions__step-item h3 {
    font-size: 20px;
  }
  .page-promotions__faq-qtext {
    font-size: 17px;
  }
}

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

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

  .page-promotions__hero-image img {
    border-radius: 8px;
  }

  .page-promotions__hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-promotions__hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-promotions__cta-button {
    padding: 12px 30px;
    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: auto;
    margin-right: auto;
  }

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

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

  .page-promotions__current-promotions, 
  .page-promotions__how-to-claim, 
  .page-promotions__terms-section, 
  .page-promotions__faq-section, 
  .page-promotions__intro-section {
    padding: 60px 0;
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-image-wrapper {
    height: 180px;
  }

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

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

  .page-promotions__promo-card .page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 14px;
    margin: 0 15px 15px;
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-promotions__step-item h3 {
    font-size: 18px;
  }

  .page-promotions__step-item p {
    font-size: 14px;
  }

  .page-promotions__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  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: 24px;
  }

  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }

  /* Ensure all content containers are responsive */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__promo-card,
  .page-promotions__step-item {
    padding-left: 0;
    padding-right: 0;
  }
}