.page-index {
  color: #ffffff; /* Body background is dark #121212, so use light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Default padding-top for fixed header */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color, #FFD700);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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: 10px; /* Specific padding-top for video section */
}

.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.4);
}

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

.page-index__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none;
}

.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.4);
  border-radius: 12px;
  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: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 15px 30px;
  background: rgba(255, 215, 0, 0.8);
  border-radius: 50px;
  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: 18px 45px;
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #1A2B5B);
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-index__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section (Module 1) */
.page-index__hero-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color, #1A2B5B) 0%, #0d1a38 100%);
}

.page-index__main-title {
  font-size: 48px;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.page-index__hero-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__cta-button--primary {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #1A2B5B);
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-index__cta-button--primary:hover {
  background: #e6c200;
  color: #0d1a38;
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-index__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

/* Brand Intro Section (Module 3) */
.page-index__brand-intro-section {
  padding: 80px 0;
  background: var(--primary-color, #1A2B5B);
  color: #ffffff;
}

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

.page-index__brand-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index__brand-item-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__brand-item-title {
  font-size: 24px;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__brand-item-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  flex-grow: 1;
}

/* Games Overview Section */
.page-index__games-overview-section {
  padding: 80px 0;
  background: #121212;
  color: #ffffff;
}

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

.page-index__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  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;
  height: 100%;
}

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

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

.page-index__game-card-title {
  font-size: 22px;
  color: var(--secondary-color, #FFD700);
  padding: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-index__game-card-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-index__game-card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px 20px;
  padding: 12px 20px;
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #1A2B5B);
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__game-card-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* FAQ Section (Module 2) */
.page-index__faq-section {
  padding: 80px 0;
  background: #1a1a1a;
  color: #ffffff;
}

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

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

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

.page-index__faq-question:hover {
  background: #2a3e6e;
  border-color: 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: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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: 30px;
  height: 30px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #ffffff;
  transform: rotate(180deg);
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 0 0 10px 10px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* Blog Section (Module 4) */
.page-index__blog-section {
  padding: 80px 0;
  background: #0d1a38;
  color: #ffffff;
}

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

.page-index__blog-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  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;
  height: 100%;
}

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

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

.page-index__blog-item-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-index__blog-item-title {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: bold;
}

.page-index__blog-item-title a {
  color: var(--secondary-color, #FFD700);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-item-title a:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-index__blog-item-excerpt {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-index__blog-item-date, .page-index__blog-item-category {
  white-space: nowrap;
}

.page-index__blog-item-readmore {
  display: inline-block;
  margin-top: 20px;
  color: var(--secondary-color, #FFD700);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

.page-index__blog-item-readmore:hover {
  color: #e6c200;
  transform: translateX(5px);
}

/* General dark section styling */
.page-index__dark-section {
  background: var(--primary-color, #1A2B5B);
  color: #ffffff;
}

/* General light section styling (used for FAQ background for subtle contrast) */
.page-index__light-bg {
  background: #1a1a1a;
  color: #ffffff;
}

/* All images responsive */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__section-title {
    font-size: 30px;
  }
  .page-index__hero-description, .page-index__section-description {
    font-size: 17px;
  }
  .page-index__brand-item-title, .page-index__game-card-title, .page-index__blog-item-title {
    font-size: 20px;
  }
  .page-index__brand-item-text, .page-index__game-card-text, .page-index__blog-item-excerpt {
    font-size: 15px;
  }
  .page-index__play-now-button {
    padding: 16px 40px;
    font-size: 18px;
  }
  .page-index__cta-button {
    padding: 14px 35px;
    font-size: 16px;
  }
  .page-index__video-click-hint {
    font-size: 18px;
    padding: 12px 25px;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: 100px !important; /* Mobile padding-top for fixed header */
  }
  .page-index__container {
    padding: 0 15px;
  }

  /* Video Section Mobile */
  .page-index__video-section {
    padding-top: 10px !important; /* Mobile specific padding-top */
    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: 8px;
    overflow: hidden !important;
  }
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    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: 14px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index__video-click-hint {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }

  /* Hero Section Mobile */
  .page-index__hero-section {
    padding: 60px 0;
  }
  .page-index__main-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-index__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 25px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  /* Brand Intro Section Mobile */
  .page-index__brand-intro-section {
    padding: 60px 0;
  }
  .page-index__section-title {
    font-size: 28px;
  }
  .page-index__section-description {
    font-size: 15px;
  }
  .page-index__brand-item-icon {
    width: 80px;
    height: 80px;
  }
  .page-index__brand-item-title {
    font-size: 20px;
  }
  .page-index__brand-item-text {
    font-size: 15px;
  }

  /* Games Overview Section Mobile */
  .page-index__games-overview-section {
    padding: 60px 0;
  }
  .page-index__game-card-img {
    height: 180px;
  }
  .page-index__game-card-title {
    font-size: 19px;
  }
  .page-index__game-card-text {
    font-size: 14px;
  }
  .page-index__game-card-button {
    padding: 10px 15px;
    font-size: 15px;
  }

  /* FAQ Section Mobile */
  .page-index__faq-section {
    padding: 60px 0;
  }
  .page-index__faq-question {
    padding: 18px 20px;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-index__faq-answer {
    padding: 0 20px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }

  /* Blog Section Mobile */
  .page-index__blog-section {
    padding: 60px 0;
  }
  .page-index__blog-item-img {
    height: 180px;
  }
  .page-index__blog-item-title {
    font-size: 19px;
  }
  .page-index__blog-item-excerpt {
    font-size: 14px;
  }
  .page-index__blog-item-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Ensure all images are responsive and not too small */
.page-index img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Containers for images to prevent overflow on mobile */
.page-index__brand-item, .page-index__game-card, .page-index__blog-item, .page-index__video-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}