/* style/promotions.css */

:root {
  --primary-color: #0A2239;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light-gray: #f1f3f5;
  --border-light: #e0e0e0;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.7;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, typically a dark color */
}

/* Padding for fixed header */
.page-promotions__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

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

.page-promotions__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-promotions__light-bg {
  background-color: var(--bg-light-gray);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-promotions__main-title,
.page-promotions__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: inherit;
}

.page-promotions__main-title {
  font-size: 42px;
  margin-bottom: 30px;
}

.page-promotions__intro-text,
.page-promotions__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: inherit;
}

.page-promotions__intro-text a,
.page-promotions__section-description a,
.page-promotions__offer-description a,
.page-promotions__type-text a,
.page-promotions__guide-steps a,
.page-promotions__news-excerpt a,
.page-promotions__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__intro-text a:hover,
.page-promotions__section-description a:hover,
.page-promotions__offer-description a:hover,
.page-promotions__type-text a:hover,
.page-promotions__guide-steps a:hover,
.page-promotions__news-excerpt a:hover,
.page-promotions__faq-answer a:hover {
  text-decoration: underline;
}

/* Featured Offers Section */
.page-promotions__offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__offer-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__offer-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-promotions__offer-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-promotions__offer-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.page-promotions__offer-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-promotions__offer-title a:hover {
  text-decoration: underline;
}

.page-promotions__offer-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-promotions__offer-description strong {
  color: #E74C3C;
}

.page-promotions__offer-details {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-promotions__offer-details li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
}

.page-promotions__detail-icon {
  color: #28a745;
  font-size: 18px;
  margin-right: 10px;
}

/* Common CTA Button Styles */
.page-promotions__cta-button {
  display: inline-block;
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
  width: 100%;
}

.page-promotions__btn-primary {
  background: linear-gradient(135deg, var(--secondary-color), #f0c200);
  color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(135deg, #f0c200, var(--secondary-color));
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 5px 15px rgba(10, 34, 57, 0.2);
}

.page-promotions__btn-secondary:hover {
  background: #1a3a5e;
  border-color: #f0c200;
  box-shadow: 0 8px 20px rgba(10, 34, 57, 0.3);
  transform: translateY(-2px);
}

.page-promotions__center-button {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

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

.page-promotions__type-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__type-icon {
  width: 150px; /* Min size 200x200px, but this is an icon for illustration */
  height: auto;
  margin-bottom: 20px;
  display: block;
  border-radius: 8px;
}

.page-promotions__type-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__type-text {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-promotions__step-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(10, 34, 57, 0.2);
}

.page-promotions__step-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

/* News Section */
.page-promotions__news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__news-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions__news-content {
  padding: 25px;
}

.page-promotions__news-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__news-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-promotions__news-title a:hover {
  text-decoration: underline;
}

.page-promotions__news-excerpt {
  font-size: 15px;
  margin-bottom: 15px;
}

.page-promotions__read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.page-promotions__read-more:hover {
  text-decoration: underline;
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
  background: #eeeeee;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: inherit;
}

.page-promotions__faq-question h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-promotions__faq-question h3 a:hover {
  text-decoration: underline;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 36px;
  }
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__intro-text,
  .page-promotions__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-promotions__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile fixed header height */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__dark-section,
  .page-promotions__light-bg {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__main-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

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

  .page-promotions__intro-text,
  .page-promotions__section-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-promotions__offers-grid,
  .page-promotions__type-cards,
  .page-promotions__guide-steps,
  .page-promotions__news-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-promotions__offer-title {
    font-size: 20px;
  }

  .page-promotions__offer-description,
  .page-promotions__offer-details li,
  .page-promotions__type-text,
  .page-promotions__step-text,
  .page-promotions__news-excerpt {
    font-size: 14px;
  }

  .page-promotions__cta-button {
    padding: 12px 20px;
    font-size: 15px;
  }

  .page-promotions__type-icon {
    width: 120px;
  }

  .page-promotions__type-title {
    font-size: 18px;
  }

  .page-promotions__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

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

  .page-promotions__news-image {
    height: 160px;
  }

  .page-promotions__news-title {
    font-size: 18px;
  }

  .page-promotions__read-more {
    font-size: 14px;
  }

  .page-promotions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-promotions__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-promotions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive and do not cause horizontal scrolling */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 28px;
  }
  .page-promotions__section-title {
    font-size: 24px;
  }
  .page-promotions__offer-title {
    font-size: 18px;
  }
  .page-promotions__type-title,
  .page-promotions__step-title,
  .page-promotions__news-title {
    font-size: 16px;
  }
  .page-promotions__cta-button {
    font-size: 14px;
    padding: 10px 15px;
  }
  .page-promotions__offer-image {
    height: 150px;
  }
  .page-promotions__type-icon {
    width: 100px;
  }
}