.page-index {
  color: #ffffff; /* Body background is dark, so main text should be light */
  background-color: #000000; /* Assuming shared.css sets body to #000000 */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-index__section-title {
  font-size: 38px;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-index__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 10px;
}

.page-index__cta-button--primary {
  background: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-index__cta-button--primary:hover {
  background: #d46c05;
  border-color: #d46c05;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--secondary {
  background: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-index__cta-button--secondary:hover {
  background: #1e87bb;
  border-color: #1e87bb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-index__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #000000;
}

.page-index__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-index__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
  opacity: 1;
}

.page-index__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(38, 169, 224, 0.8); /* Using primary color */
  border-radius: 5px;
  white-space: nowrap;
}

.page-index__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-index__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login/CTA color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: #d46c05;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Title Section */
.page-index__title-section {
  background: url('[GALLERY:bg:1920x1080:jun88_v1,hero_background,abstract_pattern]') no-repeat center center/cover;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 0;
}

.page-index__title-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-index__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__title-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.8;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Features Section */
.page-index__features-section {
  background-color: #000000;
  padding: 80px 20px;
  text-align: center;
}

.page-index__features-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(38, 169, 224, 0.3);
}

.page-index__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Games Overview Section */
.page-index__games-overview-section {
  background-color: #0d0d0d;
  padding: 80px 20px;
  text-align: center;
}

.page-index__games-overview-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__game-card {
  display: block;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__game-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 30px rgba(38, 169, 224, 0.4);
}

.page-index__game-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__game-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  margin: 20px 15px 10px 15px;
}

.page-index__game-card-description {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 15px 20px 15px;
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: #000000;
  padding: 80px 20px;
  text-align: center;
}

.page-index__promotions-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(38, 169, 224, 0.3);
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  margin: 20px 15px 10px 15px;
}

.page-index__promo-description {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 15px 20px 15px;
}

.page-index__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: #EA7C07;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  margin: 0 15px 20px 15px;
  transition: background-color 0.3s ease;
}

.page-index__promo-button:hover {
  background: #d46c05;
}

.page-index__view-all-promos {
  margin-top: 60px;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #0d0d0d;
  padding: 80px 20px;
  color: #f0f0f0;
}

.page-index__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index__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;
  background: rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 5px 5px;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #26A9E0;
}

.page-index__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

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

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0;
  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__faq-item.active .page-index__faq-toggle {
  color: #EA7C07;
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

/* Brand Section */
.page-index__brand-section {
  background-color: #26A9E0; /* Primary brand color for dark background */
  padding: 80px 20px;
  color: #FFFFFF;
  text-align: center;
}

.page-index__brand-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__brand-section .page-index__section-title {
  color: #FFFFFF;
}

.page-index__brand-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__brand-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__brand-subtitle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-index__brand-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-index__brand-cta {
  margin-top: 60px;
}

/* Blog Section */
.page-index__blog-section {
  background-color: #000000;
  padding: 80px 20px;
  text-align: center;
}

.page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__blog-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(38, 169, 224, 0.3);
}

.page-index__blog-link {
  display: block;
  text-decoration: none;
  color: #ffffff;
}

.page-index__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  margin: 20px 15px 10px 15px;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 15px;
  margin-bottom: 15px;
}

.page-index__blog-item-date {
  display: block;
  font-size: 14px;
  color: #888;
  padding: 0 15px 20px 15px;
}

.page-index__view-all-articles {
  margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }

  .page-index__section-title {
    font-size: 32px;
  }

  .page-index__title-description {
    font-size: 18px;
  }

  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-index__play-now-button {
    font-size: 18px;
    padding: 12px 30px;
  }
}

@media (max-width: 768px) {
  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-index__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-index__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }
  
  .page-index__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-index__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-index__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-index__main-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .page-index__section-title {
    font-size: 28px;
  }

  .page-index__title-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-index__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__features-section, .page-index__games-overview-section, .page-index__promotions-section, .page-index__faq-section, .page-index__brand-section, .page-index__blog-section {
    padding: 50px 15px;
  }

  .page-index__features-grid, .page-index__game-categories, .page-index__promotions-grid, .page-index__brand-content, .page-index__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-index__feature-item, .page-index__game-card, .page-index__promo-card, .page-index__brand-item, .page-index__blog-item {
    padding: 20px;
  }

  .page-index__feature-image, .page-index__game-card-image, .page-index__promo-image, .page-index__blog-item-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index__feature-title, .page-index__game-card-title, .page-index__promo-title, .page-index__brand-subtitle, .page-index__blog-item-title {
    font-size: 20px;
  }

  .page-index__feature-description, .page-index__game-card-description, .page-index__promo-description, .page-index__brand-text, .page-index__blog-item-excerpt {
    font-size: 14px;
  }

  .page-index__promo-button {
    width: calc(100% - 30px);
    margin: 0 15px 15px 15px;
  }

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

  .page-index__view-all-promos, .page-index__view-all-articles {
    margin-top: 40px;
  }
}