.page-index {
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #1a1a1a; /* Ensure consistency with body background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.page-index__section {
  padding: 80px 20px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
}

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

/* 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: #0d0d0d;
}

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

.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: 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: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 12px 25px;
  background: rgba(1, 116, 57, 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: var(--primary-color, #017439);
  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.15);
  border: none;
  cursor: pointer;
  min-width: 180px; /* Ensure button is not too small */
}

.page-index__play-now-button:hover {
  background: #005f2e; /* Darker shade of primary */
  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-color: #1a1a1a;
  padding: 60px 20px;
  text-align: center;
}

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

.page-index__main-title {
  font-size: 44px;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-index__title-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  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: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__btn-register {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
}

.page-index__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.page-index__btn-login {
  background-color: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom font color for login */
}

.page-index__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

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

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

.page-index__brand-title {
  font-size: 38px;
  color: #ffffff;
  margin-bottom: 50px;
  font-weight: 700;
  text-align: center;
}

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

.page-index__brand-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__brand-item-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__brand-item p {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-index__brand-advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-index__brand-advantages-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #e0e0e0;
}

.page-index__brand-advantages-list li::before {
  content: '✔';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index__advantage-highlight {
  color: #017439;
}

.page-index__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

/* Game Overview Section */
.page-index__game-overview-section {
  background-color: #1a1a1a;
  padding: 80px 20px;
}

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

.page-index__game-overview-title {
  font-size: 38px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.page-index__game-overview-description {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 50px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__game-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__game-card-title {
  font-size: 22px;
  color: #017439;
  margin: 20px 20px 10px;
  font-weight: 600;
}

.page-index__game-card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card-title a:hover {
  color: #005f2e;
}

.page-index__game-card-text {
  font-size: 15px;
  color: #e0e0e0;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__game-card-button {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-index__game-card-button:hover {
  background-color: #005f2e;
}

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

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

.page-index__promotions-title {
  font-size: 38px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.page-index__promotions-description {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 50px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__promotion-item {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__promotion-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__promotion-item-title {
  font-size: 22px;
  color: #017439;
  margin: 20px 20px 10px;
  font-weight: 600;
}

.page-index__promotion-item-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promotion-item-title a:hover {
  color: #005f2e;
}

.page-index__promotion-item-text {
  font-size: 15px;
  color: #e0e0e0;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__promotion-item-button {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-index__promotion-item-button:hover {
  background-color: #005f2e;
}

.page-index__full-promotions-cta {
  margin-top: 50px;
  text-align: center;
}

.page-index__full-promotions-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__full-promotions-button:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

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

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

.page-index__faq-title {
  font-size: 38px;
  color: #ffffff;
  margin-bottom: 50px;
  font-weight: 700;
  text-align: center;
}

.page-index__faq-list {
  text-align: left;
}

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

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

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 5px 5px;
  color: #e0e0e0;
  font-size: 16px;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #017439;
  border: 1px solid #005f2e;
  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: #005f2e;
  border-color: #004a25;
}

.page-index__faq-question:active {
  background: #004a25;
}

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

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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(45deg); /* Optional: change to a cross */
}

.page-index__app-download-cta {
  margin-top: 20px;
  text-align: center;
}

.page-index__app-download-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #C30808;
  color: #FFFF00;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__app-download-button:hover {
  background-color: #a00606;
}

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

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

.page-index__blog-title {
  font-size: 38px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.page-index__blog-description {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 50px;
  text-align: center;
  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-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__blog-item-title {
  font-size: 22px;
  color: #017439;
  margin: 20px 20px 10px;
  font-weight: 600;
}

.page-index__blog-item-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-item-title a:hover {
  color: #005f2e;
}

.page-index__blog-item-excerpt {
  font-size: 15px;
  color: #e0e0e0;
  padding: 0 20px;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

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

.page-index__view-all-news-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__view-all-news-button:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

/* Security Section */
.page-index__security-section {
  background-color: #1a1a1a;
  padding: 80px 20px;
}

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

.page-index__security-title {
  font-size: 38px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
}

.page-index__security-description {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 50px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index__security-feature-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-index__security-feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-index__security-feature-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__security-feature-item p {
  font-size: 16px;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-index__security-cta {
  margin-top: 50px;
  text-align: center;
}

.page-index__security-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__security-button:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

/* General responsive styles */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 38px;
  }
  .page-index__brand-title,
  .page-index__game-overview-title,
  .page-index__promotions-title,
  .page-index__faq-title,
  .page-index__blog-title,
  .page-index__security-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-index__section,
  .page-index__video-section,
  .page-index__title-section,
  .page-index__brand-section,
  .page-index__game-overview-section,
  .page-index__promotions-section,
  .page-index__faq-section,
  .page-index__blog-section,
  .page-index__security-section {
    padding: 40px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__container,
  .page-index__video-container,
  .page-index__title-container,
  .page-index__brand-container,
  .page-index__game-overview-container,
  .page-index__promotions-container,
  .page-index__faq-container,
  .page-index__blog-container,
  .page-index__security-container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-index__main-title {
    font-size: 30px;
  }

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

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

  .page-index__cta-button,
  .page-index__play-now-button,
  .page-index__full-promotions-button,
  .page-index__view-all-news-button,
  .page-index__security-button,
  .page-index__app-download-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__brand-title,
  .page-index__game-overview-title,
  .page-index__promotions-title,
  .page-index__faq-title,
  .page-index__blog-title,
  .page-index__security-title {
    font-size: 28px;
  }

  .page-index__brand-content,
  .page-index__game-cards,
  .page-index__promotion-items,
  .page-index__blog-list,
  .page-index__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__brand-item-title,
  .page-index__game-card-title,
  .page-index__promotion-item-title,
  .page-index__blog-item-title,
  .page-index__security-feature-title {
    font-size: 20px;
  }

  .page-index__brand-item p,
  .page-index__game-card-text,
  .page-index__promotion-item-text,
  .page-index__blog-item-excerpt,
  .page-index__security-feature-item p {
    font-size: 15px;
  }

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

  .page-index__faq-question h3 {
    font-size: 16px;
  }

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

  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }

  .page-index img,
  .page-index video,
  .page-index__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-index__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
    overflow: hidden !important;
  }

  .page-index__video-click-hint {
    font-size: 16px;
    padding: 10px 20px;
  }
}