/* style/promotions.css */

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

/* Base styles for the page, assuming dark body background from shared.css */
.page-promotions {
  color: var(--page-promotions-text-main); /* Light text for dark background */
  background-color: var(--bg-color); /* Inherit from shared.css */
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-promotions__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--page-promotions-text-main);
  margin-bottom: 20px;
  /* clamp for font-size to ensure responsiveness without fixed large values */
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.page-promotions__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-promotions__btn-primary {
  background: var(--page-promotions-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background: var(--page-promotions-glow);
  color: var(--page-promotions-card-bg);
  transform: translateY(-2px);
}

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

.page-promotions__intro-section {
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
}

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

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--page-promotions-gold);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-promotions__intro-section .page-promotions__section-title,
.page-promotions__guide-section .page-promotions__section-title,
.page-promotions__why-choose-section .page-promotions__section-title,
.page-promotions__conclusion-section .page-promotions__section-title {
  color: var(--page-promotions-deep-green);
}

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

.page-promotions__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions__types-section .page-promotions__text-block {
  color: var(--page-promotions-text-secondary);
}

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

.page-promotions__card {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-promotions-text-main);
  border: 1px solid var(--page-promotions-border);
}

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

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

.page-promotions__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__card .page-promotions__btn-primary,
.page-promotions__card .page-promotions__btn-secondary {
  margin-top: auto;
  width: fit-content;
  align-self: center;
}

.page-promotions__guide-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-promotions__guide-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__guide-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__guide-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--page-promotions-deep-green);
  margin-bottom: 15px;
}

.page-promotions__guide-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__guide-item .page-promotions__btn-primary,
.page-promotions__guide-item .page-promotions__btn-secondary {
  margin-top: auto;
  width: fit-content;
}

.page-promotions__terms-section {
  background-color: var(--page-promotions-deep-green);
  color: var(--page-promotions-text-main);
}

.page-promotions__terms-section .page-promotions__section-title {
  color: var(--page-promotions-gold);
}

.page-promotions__terms-section .page-promotions__text-block {
  color: var(--page-promotions-text-secondary);
}

.page-promotions__why-choose-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-promotions__feature-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__feature-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-promotions-deep-green);
  margin-bottom: 15px;
}

.page-promotions__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

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

.page-promotions__faq-section .page-promotions__section-title {
  color: var(--page-promotions-gold);
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-promotions-text-main);
  background-color: var(--page-promotions-card-bg);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: var(--page-promotions-deep-green);
}

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

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

.page-promotions__faq-item summary {
  list-style: none;
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__conclusion-section {
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-promotions__conclusion-section .page-promotions__section-title {
  color: var(--page-promotions-deep-green);
}

.page-promotions__conclusion-section .page-promotions__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

  .page-promotions__main-title {
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    margin-bottom: 25px;
  }

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

  .page-promotions__grid-cards,
  .page-promotions__guide-steps,
  .page-promotions__features-grid {
    gap: 20px;
  }

  .page-promotions__card,
  .page-promotions__guide-item,
  .page-promotions__feature-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  /* Mobile specific overrides */
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-promotions__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
  }

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

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

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

  .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,
  .page-promotions__guide-item,
  .page-promotions__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow for containers */
  }

  .page-promotions__card-image {
    height: auto;
  }

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

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

@media (max-width: 480px) {
  .page-promotions__card-title {
    font-size: 1.4rem;
  }

  .page-promotions__guide-heading {
    font-size: 1.3rem;
  }

  .page-promotions__feature-heading {
    font-size: 1.2rem;
  }
}