/* style/index-latest-promotions.css */

/* --- General Page Styling --- */
.page-index-latest-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background, so light text */
  background-color: var(--dark-bg-1, #0d0d0d); /* Fallback if var not defined */
}

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

.page-index-latest-promotions__section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-latest-promotions__section:last-of-type {
  border-bottom: none;
}

.page-index-latest-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFCC00; /* Auxiliary color for titles */
}

.page-index-latest-promotions__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Banner Section --- */
.page-index-latest-promotions__hero-banner {
  padding-top: 120px; /* Fixed header spacing - Desktop */
  padding-bottom: 80px;
  background: linear-gradient(135deg, #003366, #1a4a80); /* Blend of main color */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index-latest-promotions__main-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFCC00;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-latest-promotions__subtitle {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-latest-promotions__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-index-latest-promotions__btn--primary {
  background-color: #FFCC00;
  color: #003366;
  border-color: #FFCC00;
}

.page-index-latest-promotions__btn--primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__btn--secondary {
  background-color: transparent;
  color: #FFCC00;
  border-color: #FFCC00;
}

.page-index-latest-promotions__btn--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__btn--small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

/* --- Intro Section --- */
.page-index-latest-promotions__section--intro {
  background-color: var(--dark-bg-1, #0d0d0d);
}

.page-index-latest-promotions__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-index-latest-promotions__content-grid:last-of-type {
  margin-bottom: 0;
}

.page-index-latest-promotions__text-block-title {
  font-size: 28px;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-index-latest-promotions__text-block p {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-index-latest-promotions__image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-index-latest-promotions__image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Quick Links Section --- */
.page-index-latest-promotions__section--quick-links {
  background-color: var(--dark-bg-2, #1a1a1a);
}

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

.page-index-latest-promotions__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-latest-promotions__card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index-latest-promotions__card-title {
  font-size: 24px;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-index-latest-promotions__card p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* --- Promotions Detail Section --- */
.page-index-latest-promotions__section--promotions-detail {
  background-color: var(--dark-bg-1, #0d0d0d);
}

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

.page-index-latest-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-latest-promotions__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-index-latest-promotions__promo-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 220px); /* Adjust height for content */
}

.page-index-latest-promotions__promo-title {
  font-size: 22px;
  color: #FFCC00;
  margin-bottom: 10px;
}

.page-index-latest-promotions__promo-content p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Security & Support Section --- */
.page-index-latest-promotions__section--security-support {
  background-color: var(--dark-bg-2, #1a1a1a);
}

.page-index-latest-promotions__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-index-latest-promotions__info-block {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__info-title {
  font-size: 22px;
  color: #FFCC00;
  margin-bottom: 10px;
}

.page-index-latest-promotions__info-block p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-index-latest-promotions__contact-cta {
  text-align: center;
  padding: 30px;
  background-color: rgba(0, 51, 102, 0.6); /* Semi-transparent main color */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__contact-cta p {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 25px;
}

/* --- FAQ Section --- */
.page-index-latest-promotions__section--faq {
  background-color: var(--dark-bg-1, #0d0d0d);
}

.page-index-latest-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-index-latest-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-index-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #003366; /* Main brand color for question background */
  border: 1px solid #004080;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index-latest-promotions__faq-question:hover {
  background-color: #004080;
  border-color: #0050a0;
}

.page-index-latest-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFCC00; /* Auxiliary color for question text */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-index-latest-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or change to '-' */
  color: #ffffff;
}

.page-index-latest-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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.1); /* Lighter background for answer */
  border-radius: 0 0 8px 8px;
  color: #f0f0f0;
}

.page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-index-latest-promotions__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #f0f0f0;
}

/* --- Latest News Section --- */
.page-index-latest-promotions__section--latest-news {
  background-color: var(--dark-bg-2, #1a1a1a);
}

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

.page-index-latest-promotions__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index-latest-promotions__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-index-latest-promotions__news-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.page-index-latest-promotions__news-title a {
  color: #FFCC00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-latest-promotions__news-title a:hover {
  color: #e6b800;
}

.page-index-latest-promotions__news-date {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-index-latest-promotions__news-summary {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-latest-promotions__read-more {
  display: inline-block;
  color: #FFCC00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-index-latest-promotions__read-more:hover {
  color: #e6b800;
  text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index-latest-promotions__main-title {
    font-size: 40px;
  }
  .page-index-latest-promotions__subtitle {
    font-size: 18px;
  }
  .page-index-latest-promotions__section-title {
    font-size: 32px;
  }
  .page-index-latest-promotions__content-grid {
    grid-template-columns: 1fr;
  }
  .page-index-latest-promotions__content-grid:nth-child(2) { /* Reverse order for second grid on mobile */
    grid-template-areas:
      "image-wrapper"
      "text-block";
  }
  .page-index-latest-promotions__content-grid:nth-child(2) .page-index-latest-promotions__image-wrapper {
    grid-area: image-wrapper;
  }
  .page-index-latest-promotions__content-grid:nth-child(2) .page-index-latest-promotions__text-block {
    grid-area: text-block;
  }
}

@media (max-width: 768px) {
  /* Mobile padding-top for fixed header */
  .page-index-latest-promotions__hero-banner {
    padding-top: 100px; /* Fixed header spacing - Mobile */
    padding-bottom: 60px;
  }

  .page-index-latest-promotions__main-title {
    font-size: 32px;
  }
  .page-index-latest-promotions__subtitle {
    font-size: 16px;
  }
  .page-index-latest-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index-latest-promotions__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-index-latest-promotions__section {
    padding: 50px 0;
  }
  .page-index-latest-promotions__section-title {
    font-size: 28px;
  }
  .page-index-latest-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index-latest-promotions__text-block-title {
    font-size: 24px;
  }
  .page-index-latest-promotions__text-block p {
    font-size: 15px;
  }
  .page-index-latest-promotions__link-cards,
  .page-index-latest-promotions__promo-grid,
  .page-index-latest-promotions__info-grid,
  .page-index-latest-promotions__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-latest-promotions__card,
  .page-index-latest-promotions__promo-card,
  .page-index-latest-promotions__info-block,
  .page-index-latest-promotions__news-card {
    padding: 20px;
  }
  .page-index-latest-promotions__card-title,
  .page-index-latest-promotions__promo-title,
  .page-index-latest-promotions__info-title,
  .page-index-latest-promotions__news-title {
    font-size: 20px;
  }
  .page-index-latest-promotions__card p,
  .page-index-latest-promotions__promo-content p,
  .page-index-latest-promotions__info-block p,
  .page-index-latest-promotions__news-summary {
    font-size: 14px;
  }
  .page-index-latest-promotions__promo-image,
  .page-index-latest-promotions__news-image {
    height: 180px;
  }
  .page-index-latest-promotions__contact-cta p {
    font-size: 16px;
  }
  .page-index-latest-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-index-latest-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-index-latest-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-index-latest-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-answer {
    padding: 15px 20px !important;
  }
  .page-index-latest-promotions__faq-answer p {
    font-size: 14px;
  }
  
  /* Mobile image responsive adaptation */
  .page-index-latest-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index-latest-promotions__section,
  .page-index-latest-promotions__card,
  .page-index-latest-promotions__container,
  .page-index-latest-promotions__image-wrapper,
  .page-index-latest-promotions__promo-card,
  .page-index-latest-promotions__info-block,
  .page-index-latest-promotions__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-latest-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-index-latest-promotions__card,
  .page-index-latest-promotions__promo-card,
  .page-index-latest-promotions__info-block,
  .page-index-latest-promotions__news-card {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Contrast Fixes (as per instructions) */
.page-index-latest-promotions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-index-latest-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}