.page-index {
  color: var(--text-main, #F3F8FF); /* Default light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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; /* Small top padding, body handles header offset */
  background-color: var(--deep-navy, #08162B);
}

.page-index__video-container {
  position: relative;
  width: 100%; /* Important for desktop flex alignment */
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.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; /* Prevents 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(43, 115, 246, 0.8); /* Using button gradient start 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: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-index__play-now-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-index__title-section {
  background-color: var(--deep-navy, #08162B);
  padding: 80px 20px;
  text-align: center;
}

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

.page-index__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: bold;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-index__title-description {
  font-size: 1.1em;
  color: var(--text-secondary, #AFC4E8);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1em;
  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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background: #10233F; /* Card BG */
  color: var(--text-main, #F3F8FF);
  border: 2px solid var(--border-color, #244D84);
}

.page-index__btn-secondary:hover {
  background: var(--border-color, #244D84);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__games-showcase-section {
  background-color: var(--deep-navy, #08162B);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid var(--divider, #1B3357);
}

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

.page-index__games-showcase-title {
  font-size: 2.2em;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__games-showcase-description {
  font-size: 1.1em;
  color: var(--text-secondary, #AFC4E8);
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__game-card {
  background: var(--card-bg, #10233F);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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.3);
}

.page-index__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--divider, #1B3357);
}

.page-index__game-card-title {
  font-size: 1.5em;
  color: var(--text-main, #F3F8FF);
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-index__game-card-text {
  font-size: 0.95em;
  color: var(--text-secondary, #AFC4E8);
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-index__faq-section {
  background-color: var(--deep-navy, #08162B);
  padding: 80px 20px;
  border-top: 1px solid var(--divider, #1B3357);
}

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

.page-index__faq-title {
  font-size: 2.2em;
  color: var(--text-main, #F3F8FF);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__faq-description {
  font-size: 1.1em;
  color: var(--text-secondary, #AFC4E8);
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

details.page-index__faq-item {
  background: var(--card-bg, #10233F);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #244D84);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-main, #F3F8FF);
}

details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}

details.page-index__faq-item summary.page-index__faq-question:hover {
  background: var(--border-color, #244D84);
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-index__faq-item[open] .page-index__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar visually */
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-navy, #08162B);
  border-radius: 0 0 12px 12px;
  color: var(--text-secondary, #AFC4E8);
  font-size: 0.95em;
}

.page-index__brand-section {
  background-color: var(--deep-navy, #08162B);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid var(--divider, #1B3357);
}

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

.page-index__brand-title {
  font-size: 2.2em;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__brand-description {
  font-size: 1.1em;
  color: var(--text-secondary, #AFC4E8);
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__brand-item {
  background: var(--card-bg, #10233F);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #244D84);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-index__brand-item-title {
  font-size: 1.5em;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__brand-item p {
  font-size: 0.95em;
  color: var(--text-secondary, #AFC4E8);
  flex-grow: 1;
}

.page-index__blog-section {
  background-color: var(--deep-navy, #08162B);
  padding: 80px 20px;
  border-top: 1px solid var(--divider, #1B3357);
}

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

.page-index__blog-title {
  font-size: 2.2em;
  color: var(--text-main, #F3F8FF);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__blog-description {
  font-size: 1.1em;
  color: var(--text-secondary, #AFC4E8);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__blog-item {
  background: var(--card-bg, #10233F);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #244D84);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--divider, #1B3357);
}

.page-index__blog-item-title {
  font-size: 1.3em;
  color: var(--text-main, #F3F8FF);
  margin: 20px 20px 10px;
  font-weight: bold;
  line-height: 1.4;
}

.page-index__blog-item-excerpt {
  font-size: 0.9em;
  color: var(--text-secondary, #AFC4E8);
  margin: 0 20px 15px;
  flex-grow: 1;
}

.page-index__blog-item-date {
  font-size: 0.85em;
  color: var(--text-secondary, #AFC4E8);
  margin: 0 20px 20px;
  display: block;
  text-align: right;
}

.page-index__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-index__view-all-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* General image responsiveness */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Apply general border-radius */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-index__games-grid, .page-index__brand-content, .page-index__blog-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__video-section,
  .page-index__title-section,
  .page-index__games-showcase-section,
  .page-index__faq-section,
  .page-index__brand-section,
  .page-index__blog-section {
    padding: 40px 15px; /* Adjust padding for mobile */
    padding-top: 10px !important; /* Specific for video section */
  }

  .page-index__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-index__title-description,
  .page-index__games-showcase-description,
  .page-index__faq-description,
  .page-index__brand-description,
  .page-index__blog-description {
    font-size: 1em;
  }

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

  .page-index__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index__play-now-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
  }

  .page-index__video-container,
  .page-index__games-showcase-container,
  .page-index__faq-container,
  .page-index__brand-container,
  .page-index__blog-container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-index img,
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 4px; /* Slightly smaller radius for mobile */
  }

  .page-index__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }

  .page-index__game-card-image,
  .page-index__blog-item-image {
    height: 180px; /* Adjust image height for mobile cards */
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px 20px;
  }

  .page-index__faq-qtext {
    font-size: 1em;
  }

  .page-index__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-index__main-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
  }
  .page-index__games-grid, .page-index__brand-content, .page-index__blog-list {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image,
  .page-index__blog-item-image {
    height: 160px;
  }
}