/* style/index.css */
:root {
  --primary-color: #FF4500;
  --secondary-color: #FFD700;
  --dark-text: #333333;
  --light-text: #ffffff;
  --gray-bg: #f1f3f5;
  --border-color: #e4e4e4;
}

.page-index {
  color: var(--light-text); /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Assuming dark-bg from shared.css is dark */
}

.page-index .highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
}

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

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

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__hero-content p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--light-text);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  border: none;
}

.page-index__cta-button:hover {
  background: #E03C00; /* Slightly darker primary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Game Leaderboard Section */
.page-index__game-leaderboard-section {
  padding: 60px 20px;
  background: var(--gray-bg);
  color: var(--dark-text); /* Text color for light background */
}

.page-index__page-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 40px;
}

.page-index__game-leaderboard {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index__game-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card-segment {
  padding: 0 20px;
  border-left: 1px solid var(--border-color);
  height: 100%; /* Ensure vertical line extends */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-index__segment-1 {
  border-left: none; /* No border on the first segment */
  padding-left: 0;
  flex-shrink: 0;
  width: 120px;
  display: flex;
  align-items: center;
  position: relative;
}

.page-index__rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Default for 4+ */
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.page-index__rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold */
}

.page-index__rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0); /* Silver */
}

.page-index__rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333); /* Bronze */
}

.page-index__game-icon {
  max-width: 80px; /* Reduced from 100px for better alignment */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.page-index__segment-2 {
  flex: 1;
  text-align: center;
}

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 8px;
  text-transform: uppercase;
  line-height: 1.2;
}

.page-index__game-name-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-name-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 14px;
  color: #000000;
  font-weight: bold;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.page-index__game-description a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
}

.page-index__game-description a:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index__segment-3 {
  flex-shrink: 0;
  width: 150px;
  text-align: center;
}

.page-index__game-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.page-index__stars {
  color: #FFD700;
  font-size: 18px;
  margin-right: 5px;
  font-weight: bold;
}

.page-index__rating-number {
  font-size: 18px;
  font-weight: bold;
  color: var(--dark-text);
}

.page-index__promotion-text {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.page-index__promotion-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

.page-index__promotion-link:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index__hot-badge {
  background: #dc3545;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-index__segment-4 {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-index__btn-download,
.page-index__btn-review {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  line-height: 1.2;
}

.page-index__btn-download {
  background: linear-gradient(135deg, var(--primary-color), #E03C00);
}

.page-index__btn-download:hover {
  background: linear-gradient(135deg, #E03C00, #C23300);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.page-index__btn-review {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.page-index__btn-review:hover {
  background: linear-gradient(135deg, #495057, #343a40);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Brand Review Content Section */
.page-index__review-content-section {
  padding: 40px 20px;
  background: var(--gray-bg);
  color: var(--dark-text);
}

.page-index__review-content-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index__review-content-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.page-index__review-content-card h2 {
  font-size: 32px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 24px;
  text-align: center;
}

.page-index__review-content-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: #333333;
  margin-top: 28px;
  margin-bottom: 12px;
}

.page-index__review-body {
  color: #333333;
  line-height: 1.7;
}

.page-index__review-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

/* Homepage Introduction Section */
.page-index__intro-section {
  padding: 60px 20px;
  color: var(--light-text);
}

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

.page-index__dark-section {
  background: linear-gradient(135deg, #FF4500, #E03C00); /* Darker gradient for sections */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 40px;
}

.page-index__intro-section h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--light-text);
}

.page-index__intro-content p {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index__feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-index__feature-icon {
  max-width: 120px; /* Min 200x200px rule is for content images, icons can be smaller but not tiny */
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--light-text);
}

.page-index__feature-item p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* Core Games/Services Section */
.page-index__games-section {
  padding: 60px 20px;
  background: #ffffff;
  color: var(--dark-text);
}

.page-index__games-section h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.page-index__games-section > p {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__game-category-card {
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__game-category-img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__game-category-card h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-text);
  margin-bottom: 15px;
}

.page-index__game-category-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 20px;
  color: var(--light-text);
}

.page-index__promotions-section h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--light-text);
}

.page-index__promotions-section > p {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-index__promotion-img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__promotion-card h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--light-text);
  margin-bottom: 15px;
}

.page-index__promotion-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-index__btn-primary:hover {
  background: #FFC107; /* Slightly darker gold */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__promotion-cta {
  font-size: 18px;
  text-align: center;
  margin-top: 40px;
  color: var(--light-text);
}

.page-index__promotion-cta a {
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-index__promotion-cta a:hover {
  text-decoration: underline;
}

/* Latest Blog Content Section */
.page-index__blog-section {
  padding: 60px 20px;
  background: var(--gray-bg);
  color: var(--dark-text);
}

.page-index__blog-section h2 {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.page-index__blog-section > p {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-index__blog-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.page-index__blog-img {
  width: 100%;
  height: 220px; /* Fixed height for blog images */
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}

.page-index__blog-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--dark-text);
  padding: 15px 20px 10px;
  line-height: 1.4;
}

.page-index__blog-card h3 a {
  color: var(--dark-text);
  text-decoration: none;
}

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

.page-index__blog-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-index__blog-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__blog-link:hover {
  background: #E03C00;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-content h1 {
    font-size: 40px;
  }
  .page-index__hero-content p {
    font-size: 18px;
  }
  .page-index__cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-index__page-title,
  .page-index__intro-section h2,
  .page-index__games-section h2,
  .page-index__promotions-section h2,
  .page-index__blog-section h2 {
    font-size: 32px;
  }
  .page-index__review-content-card h2 {
    font-size: 28px;
  }
  .page-index__review-content-card h3 {
    font-size: 20px;
  }
  .page-index__game-card-segment {
    padding: 0 15px;
  }
  .page-index__segment-1 {
    width: 100px;
  }
  .page-index__game-icon {
    max-width: 70px;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__segment-3 {
    width: 130px;
  }
  .page-index__segment-4 {
    width: 180px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    font-size: 14px;
    padding: 10px 15px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-content h1 {
    font-size: 36px;
  }
  .page-index__hero-content p {
    font-size: 16px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-index__page-title,
  .page-index__intro-section h2,
  .page-index__games-section h2,
  .page-index__promotions-section h2,
  .page-index__blog-section h2 {
    font-size: 28px;
  }
  .page-index__review-content-card h2 {
    font-size: 24px;
  }
  .page-index__review-content-card h3 {
    font-size: 18px;
  }
  .page-index__review-body p {
    font-size: 15px;
  }
  .page-index__review-content-card {
    padding: 24px 20px;
  }

  .page-index__game-card {
    flex-wrap: wrap;
    padding: 15px;
    justify-content: center;
  }

  .page-index__game-card-segment {
    border-left: none;
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }
  .page-index__segment-1 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 0;
  }
  .page-index__rank-badge {
    position: static; /* Reset position for mobile */
    margin-bottom: 10px;
  }
  .page-index__game-icon {
    max-width: 90px; /* Adjust icon size for mobile */
  }
  .page-index__segment-2 {
    order: 1;
  }
  .page-index__segment-3 {
    order: 2;
  }
  .page-index__segment-4 {
    order: 3;
    margin-top: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 14px !important;
    padding: 10px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: auto !important;
  }

  .page-index__intro-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    padding: 30px 15px;
  }
  .page-index__dark-section {
    padding: 30px 20px;
  }
  .page-index__intro-features,
  .page-index__game-categories,
  .page-index__promotion-cards,
  .page-index__blog-articles {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__feature-icon {
    max-width: 100px;
  }
  .page-index__feature-item h3 {
    font-size: 20px;
  }
  .page-index__game-category-img,
  .page-index__promotion-img,
  .page-index__blog-img {
    height: 180px;
  }
  .page-index__blog-card h3 {
    font-size: 20px;
  }
  .page-index__blog-card p {
    font-size: 14px;
  }
  .page-index__blog-link {
    font-size: 14px;
    padding: 8px 15px;
  }

  /* Ensure all images are responsive */
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__hero-image,
  .page-index__game-category-card,
  .page-index__promotion-card,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}