/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --background-dark: #0a0a0a;
  --button-login-color: #EA7C07;
  --button-text-color: #FFFFFF;
  --card-background-dark: rgba(255, 255, 255, 0.08);
  --border-color-light: #e0e0e0;
}

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

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

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

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

.page-promotions__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color) 0%, #1a7fb8 100%);
}

.page-promotions__hero-section .page-promotions__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-promotions__hero-content {
  max-width: 800px;
  text-align: center;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--secondary-color);
  opacity: 0.9;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background-color: var(--button-login-color); /* Use login color for primary CTA */
  color: var(--button-text-color);
  border: 2px solid var(--button-login-color);
}

.page-promotions__btn-primary:hover {
  background-color: #ff8c00;
  border-color: #ff8c00;
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-promotions__hero-image-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 900px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: var(--secondary-color);
  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(--primary-color);
  border-radius: 2px;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
  text-align: justify;
}

.page-promotions__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__text-block a:hover {
  text-decoration: underline;
}

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

.page-promotions__promo-card {
  background-color: var(--card-background-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: var(--text-color-dark-bg);
}

.page-promotions__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
  line-height: 1.3;
}

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

.page-promotions__card-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__card-description a:hover {
  text-decoration: underline;
}

.page-promotions__card-content .page-promotions__btn-primary,
.page-promotions__card-content .page-promotions__btn-secondary {
  width: fit-content;
  align-self: flex-start;
  margin-top: auto; /* Push button to bottom */
}

.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__guide-item {
  background-color: var(--card-background-dark);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__guide-step-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__guide-item p {
  font-size: 1.05em;
  color: var(--text-color-dark-bg);
  text-align: justify;
}

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

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

.page-promotions__cta-buttons--centered {
  margin-top: 40px;
  text-align: center;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__terms-item {
  background-color: var(--card-background-dark);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__terms-subtitle {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__terms-item p {
  font-size: 1em;
  color: var(--text-color-dark-bg);
  text-align: justify;
}

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

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

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

.page-promotions__faq-item {
  background-color: var(--card-background-dark);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-color-dark-bg);
  text-align: justify;
}

.page-promotions__faq-answer p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__faq-answer p a:hover {
  text-decoration: underline;
}

.page-promotions__cta-bottom-content {
  text-align: center;
  max-width: 900px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }

  .page-promotions__hero-description {
    font-size: 1.2em;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto;
  }

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

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

  .page-promotions__text-block,
  .page-promotions__card-description,
  .page-promotions__guide-item p,
  .page-promotions__terms-item p,
  .page-promotions__faq-answer p {
    font-size: 0.95em;
  }

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

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

  .page-promotions__guide-step-title {
    font-size: 1.5em;
  }

  .page-promotions__terms-subtitle {
    font-size: 1.2em;
  }

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

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }
  
  /* Ensure all content containers are responsive */
  .page-promotions__section,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__guide-item,
  .page-promotions__terms-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-promotions__container {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }
  
  .page-promotions__hero-section .page-promotions__container {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }

  .page-promotions__cta-bottom-content .page-promotions__cta-buttons {
      flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }

  .page-promotions__hero-description {
    font-size: 0.9em;
  }

  .page-promotions__section-title {
    font-size: 1.5em;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 0.9em;
  }
}