.page-index-latest-promotions {
  color: #ffffff; /* Default text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--dark-bg); /* Inherit from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-index-latest-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

.page-index-latest-promotions__btn-primary,
.page-index-latest-promotions__btn-secondary,
.page-index-latest-promotions a[class*="button"],
.page-index-latest-promotions a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-latest-promotions__btn-primary {
  background-color: #FFD700;
  color: #1a1a1a;
  border: 2px solid #FFD700;
}

.page-index-latest-promotions__btn-primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
}

.page-index-latest-promotions__btn-secondary {
  background-color: #8B0000;
  color: #ffffff;
  border: 2px solid #8B0000;
}

.page-index-latest-promotions__btn-secondary:hover {
  background-color: #6a0000;
  border-color: #6a0000;
}

/* HERO Section */
.page-index-latest-promotions__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared handles body padding-top */
  margin-top: 0;
}

.page-index-latest-promotions__hero-container {
  position: relative;
  margin: 0 auto;
}

.page-index-latest-promotions__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Products Section */
.page-index-latest-promotions__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #1a1a1a; /* Dark background for products */
}

.page-index-latest-promotions__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 20px;
}

.page-index-latest-promotions__products-grid {
  display: grid;
  gap: 20px;
}

.page-index-latest-promotions__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-index-latest-promotions__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-index-latest-promotions__product-card {
  width: 100%;
  max-width: 300px; /* Max width for product cards */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.page-index-latest-promotions__product-card:hover {
  transform: translateY(-5px);
}

.page-index-latest-promotions__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index-latest-promotions__product-card-image {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}

.page-index-latest-promotions__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Intro Section */
.page-index-latest-promotions__intro-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-index-latest-promotions__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 25px;
}

.page-index-latest-promotions__description {
  font-size: 20px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-latest-promotions__content-block {
  margin-top: 40px;
}

.page-index-latest-promotions__subtitle {
  font-size: 28px;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index-latest-promotions__intro-section p {
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* Quick Access Section */
.page-index-latest-promotions__quick-access-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  text-align: center;
}

.page-index-latest-promotions__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index-latest-promotions__note {
  color: #cccccc;
  margin-top: 30px;
  font-size: 14px;
}

/* Games Overview Section */
.page-index-latest-promotions__games-overview-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-index-latest-promotions__game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index-latest-promotions__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-index-latest-promotions__game-description {
  color: #cccccc;
  font-size: 15px;
  margin-bottom: 20px;
}

/* Promotions Detail Section */
.page-index-latest-promotions__promotions-detail-section {
  padding: 80px 0;
  background-color: #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: 10px;
  overflow: hidden;
  box-shadow: 0 5px 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 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index-latest-promotions__promo-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.page-index-latest-promotions__promo-title {
  font-size: 22px;
  color: #FFD700;
  padding: 15px 20px 0;
}

.page-index-latest-promotions__promo-description {
  color: #cccccc;
  font-size: 15px;
  padding: 10px 20px 20px;
}

.page-index-latest-promotions__promo-card .page-index-latest-promotions__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Security & Support Section */
.page-index-latest-promotions__security-support-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-index-latest-promotions__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__feature-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

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

.page-index-latest-promotions__feature-description {
  color: #cccccc;
  font-size: 15px;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-index-latest-promotions__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

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

.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;
  padding: 0 15px;
  opacity: 0;
}

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

.page-index-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #333333;
  border: 1px solid #444444;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-index-latest-promotions__faq-question:hover {
  background: #444444;
  border-color: #555555;
}

.page-index-latest-promotions__faq-question:active {
  background: #555555;
}

.page-index-latest-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700;
}

.page-index-latest-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-toggle {
  color: #ffffff;
}

/* Blog Section */
.page-index-latest-promotions__blog-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

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

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

.page-index-latest-promotions__blog-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
}

.page-index-latest-promotions__blog-title {
  font-size: 22px;
  color: #FFD700;
  padding: 15px 20px 0;
}

.page-index-latest-promotions__blog-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-index-latest-promotions__blog-title a:hover {
  text-decoration: underline;
}

.page-index-latest-promotions__blog-summary {
  color: #cccccc;
  font-size: 15px;
  padding: 10px 20px;
}

.page-index-latest-promotions__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  padding: 0 20px 20px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-index-latest-promotions__products-container {
    grid-template-columns: 1fr; /* Stack product grids */
  }
  
  .page-index-latest-promotions__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-index-latest-promotions__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index-latest-promotions__main-title {
    font-size: 36px;
  }

  .page-index-latest-promotions__section-title {
    font-size: 32px;
  }

  .page-index-latest-promotions__subtitle {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-index-latest-promotions {
    padding-top: var(--header-offset, 120px);
  }
  
  .page-index-latest-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-latest-promotions__hero-section {
    padding-top: 0 !important;
  }

  .page-index-latest-promotions__products-section {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .page-index-latest-promotions__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .page-index-latest-promotions__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-index-latest-promotions__products-grid--small .page-index-latest-promotions__product-card,
  .page-index-latest-promotions__products-grid--small .page-index-latest-promotions__product-card-image {
    max-width: 100%; /* Allow cards to fill grid space */
  }
  
  .page-index-latest-promotions__products-grid--large {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-index-latest-promotions__products-grid--large .page-index-latest-promotions__product-card,
  .page-index-latest-promotions__products-grid--large .page-index-latest-promotions__product-card-image {
    max-width: 100%; /* Allow cards to fill grid space */
  }

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

  .page-index-latest-promotions__main-title {
    font-size: 30px;
  }

  .page-index-latest-promotions__section-title {
    font-size: 28px;
  }

  .page-index-latest-promotions__subtitle {
    font-size: 22px;
  }

  .page-index-latest-promotions__btn-primary,
  .page-index-latest-promotions__btn-secondary,
  .page-index-latest-promotions a[class*="button"],
  .page-index-latest-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index-latest-promotions__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    gap: 15px;
  }

  .page-index-latest-promotions__game-cards-grid,
  .page-index-latest-promotions__promo-grid,
  .page-index-latest-promotions__features-grid,
  .page-index-latest-promotions__blog-grid {
    grid-template-columns: 1fr;
  }
  
  .page-index-latest-promotions__game-card img,
  .page-index-latest-promotions__promo-card img,
  .page-index-latest-promotions__feature-item img,
  .page-index-latest-promotions__blog-card img {
    width: 100%;
    height: auto;
  }

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

  .page-index-latest-promotions__promo-card .page-index-latest-promotions__btn-primary {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
  }
}