/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Fallback for body color */
  background-color: var(--bg-color);
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: var(--bg-color); /* Ensure dark background */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image wrapper */
  margin-bottom: 30px;
}

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

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

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 20px;
}

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

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

.page-promotions__dark-section {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--main-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions__section-title--light {
  color: var(--gold-color);
}

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

.page-promotions__text-block--light {
  color: var(--text-secondary-color);
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--card-bg-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Promotion Types Grid */
.page-promotions__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-main-color);
}

.page-promotions__card--dark {
  background-color: var(--deep-green-color);
  border-color: var(--divider-color);
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-promotions__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  text-align: justify;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Ordered/Unordered Lists */
.page-promotions__ordered-list, .page-promotions__unordered-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-promotions__ordered-list li, .page-promotions__unordered-list li {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main-color);
}

.page-promotions__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 10px;
}

.page-promotions__list-title--light {
  color: var(--gold-color);
}

.page-promotions__list-text {
  font-size: 1rem;
  color: var(--text-secondary-color);
}

.page-promotions__list-text a {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-promotions__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 30px 0;
  object-fit: cover;
}

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

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

.page-promotions__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-color);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary-color);
  border-top: 1px solid var(--divider-color);
}

.page-promotions__faq-answer p {
  margin: 0;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
  text-align: center;
  padding: 80px 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding: 40px 20px;
  }

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

  .page-promotions__description {
    font-size: 1rem;
  }

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

  .page-promotions__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

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

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-promotions__hero-content {
    padding: 0 15px;
  }

  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

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

  .page-promotions__cta-button {
    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: 1rem;
  }

  .page-promotions__section, .page-promotions__dark-section {
    padding: 30px 15px;
  }

  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 0.9rem;
  }

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

  .page-promotions__card {
    padding: 20px;
  }

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

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

  .page-promotions__card-text {
    font-size: 0.85rem;
  }

  .page-promotions__ordered-list li, .page-promotions__unordered-list li {
    padding: 20px;
    margin-bottom: 15px;
  }

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

  .page-promotions__list-text {
    font-size: 0.9rem;
  }

  .page-promotions__image-full-width {
    margin: 20px 0;
  }

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

  .page-promotions__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }

  /* Force responsive images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers with images/buttons are responsive */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__promotion-grid,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .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;
  }

  .page-promotions__conclusion-section {
    padding: 60px 15px;
  }
}

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

.page-promotions a {
  color: var(--gold-color);
}

.page-promotions a:hover {
  color: var(--glow-color);
}