:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  /* --header-offset will be set by shared.css */
}

.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--page-bg);
  line-height: 1.6;
}

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

.page-index__section {
  padding: 60px 0;
  text-align: center;
}

.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-index__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

/* Color Contrast Adjustments */
.page-index__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-index__dark-bg .page-index__section-title,
.page-index__dark-bg .page-index__section-description,
.page-index__dark-bg .page-index__feature-title,
.page-index__dark-bg .page-index__feature-item p,
.page-index__dark-bg .page-index__faq-qtext,
.page-index__dark-bg .page-index__faq-toggle {
  color: #ffffff;
}

.page-index__light-bg {
  background-color: var(--page-bg);
  color: var(--text-main);
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 10px;
  text-align: center;
}

.page-index__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-index__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.page-index__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
}

.page-index__btn-tertiary {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.page-index__btn-tertiary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width for flex item */
}

.page-index__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-index__main-title {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: -1px;
  font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Module 1: Intro Section */
.page-index__intro-section {
  background-color: var(--page-bg);
  padding: 80px 0;
}

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

.page-index__feature-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-index__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index__feature-item p {
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.7;
}

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
  background-color: var(--primary-color);
  padding: 70px 0;
}

.page-index__quick-access-section .page-index__section-title,
.page-index__quick-access-section .page-index__section-description {
  color: #ffffff;
}

.page-index__access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Module 3: Games Section */
.page-index__games-section {
  background-color: var(--page-bg);
  padding: 80px 0;
}

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

.page-index__game-category-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__game-category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index__game-category-card .page-index__game-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: var(--primary-color);
}

.page-index__game-category-card .page-index__game-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-index__game-category-card .page-index__game-title a:hover {
  text-decoration: underline;
}

.page-index__game-category-card p {
  font-size: 16px;
  color: var(--text-main);
  margin: 0 20px 20px;
  line-height: 1.7;
}

.page-index__category-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-index__category-link:hover {
  color: var(--secondary-color);
}

.page-index__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-index__category-link:hover .page-index__arrow {
  transform: translateX(5px);
}

.page-index__all-games-cta {
  margin-top: 50px;
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
  background-color: var(--primary-color);
  padding: 80px 0;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-description {
  color: #ffffff;
}

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

.page-index__promotion-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

.page-index__promotion-card .page-index__promotion-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: var(--primary-color);
}

.page-index__promotion-card p {
  font-size: 16px;
  color: var(--text-main);
  margin: 0 20px 20px;
  line-height: 1.7;
}

.page-index__card-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-index__card-link:hover {
  color: var(--secondary-color);
}

.page-index__all-promotions-cta {
  margin-top: 50px;
}

/* Module 5: Security & Support Section */
.page-index__security-support-section {
  background-color: var(--page-bg);
  padding: 80px 0;
}

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

.page-index__security-features .page-index__feature-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index__security-features .page-index__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.page-index__security-features .page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: 0;
  margin-right: auto;
}

.page-index__security-features .page-index__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index__security-features .page-index__feature-item p {
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.7;
}

.page-index__contact-cta {
  margin-top: 50px;
}

/* Module 6: FAQ Section */
.page-index__faq-section {
  background-color: var(--primary-color);
  padding: 80px 0;
}

.page-index__faq-section .page-index__section-title,
.page-index__faq-section .page-index__section-description {
  color: #ffffff;
}

.page-index__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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: rgba(255, 255, 255, 0.2);
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

details.page-index__faq-item .page-index__faq-answer p {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.7;
}

/* Module 7: Blog Section */
.page-index__blog-section {
  background-color: var(--page-bg);
  padding: 80px 0;
}

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

.page-index__blog-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

.page-index__blog-card-content {
  padding: 20px;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__blog-title a {
  color: var(--text-main);
  text-decoration: none;
}

.page-index__blog-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index__blog-summary {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-index__blog-date {
  font-size: 14px;
  color: #999;
}

.page-index__all-blog-cta {
  margin-top: 50px;
}

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

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

  .page-index__hero-image-wrapper img {
    border-radius: 8px;
  }

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

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-index__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-index__hero-image-wrapper img {
    border-radius: 6px;
  }

  .page-index__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-index__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 300px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 5px auto; /* Center individual buttons */
  }

  .page-index__hero-cta-buttons,
  .page-index__access-links,
  .page-index__all-games-cta,
  .page-index__all-promotions-cta,
  .page-index__contact-cta,
  .page-index__all-blog-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-index__section {
    padding: 40px 0;
  }

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

  .page-index__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-index__container {
    padding: 0 15px;
  }

  .page-index__intro-features,
  .page-index__game-categories,
  .page-index__promotion-cards,
  .page-index__security-features,
  .page-index__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

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

  .page-index__feature-title,
  .page-index__game-title,
  .page-index__promotion-title,
  .page-index__blog-title {
    font-size: 20px;
  }

  .page-index__feature-item p,
  .page-index__game-category-card p,
  .page-index__promotion-card p,
  .page-index__blog-summary,
  .page-index__faq-answer p {
    font-size: 15px;
  }

  .page-index__game-category-card img,
  .page-index__promotion-card img,
  .page-index__blog-card img {
    
  }

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

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

  .page-index__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }

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

  /* Ensure all images are responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}