/* style/index.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f1f3f5;
  --border-light: #e4e4e4;
  --success-gradient: linear-gradient(135deg, #28a745, #218838);
  --gold-gradient: linear-gradient(135deg, #FFD700, #FFA500);
  --silver-gradient: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  --bronze-gradient: linear-gradient(135deg, #CD7F32, #B87333);
  --default-rank-gradient: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.page-index {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--background-light);
  line-height: 1.6;
}

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

.page-index__page-title,
.page-index__hero-title,
.page-index__review-content-title,
.page-index__intro-title,
.page-index__games-title,
.page-index__promotions-title,
.page-index__latest-news-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index__page-title {
  font-size: 32px;
  margin-top: 60px;
}

/* 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), #1a3a8a);
  color: var(--text-light);
  overflow: hidden;
}

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

.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: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-index__hero-description {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 30px;
  color: var(--text-light);
  opacity: 0.9;
}

.page-index__hero-description a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-index__hero-description a:hover {
  color: #fff;
}

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

.page-index__cta-button:hover {
  background: #ffe066;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

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

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px 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 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-card-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-left: 1px solid var(--border-light);
  height: 100%;
  box-sizing: border-box;
}

.page-index__segment-1 {
  flex-shrink: 0;
  width: 150px;
  border-left: none;
  padding-left: 0;
  flex-direction: row;
  gap: 15px;
}

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

.page-index__segment-3 {
  flex-shrink: 0;
  width: 180px;
}

.page-index__segment-4 {
  flex-shrink: 0;
  width: 220px;
  gap: 10px;
}

.page-index__rank-badge {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__rank-1 {
  background: var(--gold-gradient);
}

.page-index__rank-2 {
  background: var(--silver-gradient);
}

.page-index__rank-3 {
  background: var(--bronze-gradient);
}

.page-index__rank-badge:not(.page-index__rank-1):not(.page-index__rank-2):not(.page-index__rank-3) {
  background: var(--default-rank-gradient);
}

.page-index__game-icon {
  max-width: 80px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-index__game-name-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-index__game-name-link:hover {
  color: #0066cc;
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: bold;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

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

.page-index__stars {
  color: var(--secondary-color);
  font-size: 18px;
  font-weight: bold;
}

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

.page-index__promotion-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-index__promotion-link {
  color: #0066cc;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}

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

.page-index__hot-badge {
  background: #dc3545;
  color: var(--text-light);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-index__btn-download,
.page-index__btn-review {
  display: block;
  width: 100%;
  padding: 12px 15px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  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__btn-download {
  background: var(--secondary-color);
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__btn-download:hover {
  background: #ffe066;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index__btn-review {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index__btn-review:hover {
  background: #1a3a8a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-index__review-content-container {
  max-width: 1400px; /* Wider for better readability */
  margin: 0 auto;
}

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

.page-index__review-content-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 24px;
  text-align: center;
}

.page-index__review-body {
  color: var(--text-dark);
  line-height: 1.7;
}

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

.page-index__review-body h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 28px;
  margin-bottom: 12px;
}

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

.page-index__review-body a:hover {
  text-decoration: underline;
  color: #004499;
}

/* Homepage Introduction Section */
.page-index__intro-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.page-index__intro-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 50px;
}

.page-index__intro-content > p {
  text-align: center;
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-index__intro-content > p a {
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

.page-index__intro-content > p a:hover {
  text-decoration: underline;
  color: #004499;
}

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

.page-index__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-icon {
  width: 100px; /* Increased size */
  height: 100px; /* Increased size */
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-index__feature-item p {
  font-size: 15px;
  color: #555555;
  line-height: 1.5;
}

/* Core Game/Service Introduction */
.page-index__games-section {
  padding: 60px 20px;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index__games-title {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-index__games-description {
  text-align: center;
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index__game-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

.page-index__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-item-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__game-item p {
  font-size: 15px;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__game-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-index__game-button:hover {
  background: #ffe066;
}

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

.page-index__promotions-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-index__promotions-description {
  text-align: center;
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: var(--text-dark);
}

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

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

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

.page-index__promotion-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promotion-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promotion-card-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__promotion-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__promotion-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-index__promotion-button:hover {
  background: #1a3a8a;
}

/* Latest News Section */
.page-index__latest-news-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), #1a3a8a);
  color: var(--text-light);
}

.page-index__latest-news-title {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-index__latest-news-description {
  text-align: center;
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.page-index__latest-news-description a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-index__latest-news-description a:hover {
  color: #fff;
}

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

.page-index__news-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

.page-index__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__news-card-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__news-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__news-card-title a:hover {
  color: #0066cc;
  text-decoration: underline;
}

.page-index__news-excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__news-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-index__news-button:hover {
  background: #ffe066;
}

/* Copyright */
.page-index__copyright {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-size: 14px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 40px;
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__cta-button {
    font-size: 20px;
    padding: 15px 40px;
  }
  .page-index__game-card-segment {
    padding: 0 15px;
  }
  .page-index__segment-1 {
    width: 130px;
  }
  .page-index__game-icon {
    max-width: 70px;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__segment-3 {
    width: 160px;
  }
  .page-index__segment-4 {
    width: 200px;
  }
  .page-index__page-title,
  .page-index__review-content-title,
  .page-index__intro-title,
  .page-index__games-title,
  .page-index__promotions-title,
  .page-index__latest-news-title {
    font-size: 28px;
  }
  .page-index__feature-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-image img {
    border-radius: 8px;
  }
  .page-index__hero-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 16px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-index__page-title,
  .page-index__review-content-title,
  .page-index__intro-title,
  .page-index__games-title,
  .page-index__promotions-title,
  .page-index__latest-news-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__intro-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__latest-news-section {
    padding: 30px 15px;
  }
  .page-index__game-card {
    flex-wrap: wrap;
    padding: 15px;
  }
  .page-index__game-card-segment {
    border-left: none;
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }
  .page-index__segment-1 {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
  }
  .page-index__rank-badge {
    margin-bottom: 10px;
  }
  .page-index__game-icon {
    max-width: 60px;
  }
  .page-index__segment-2 {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__segment-3 {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
  }
  .page-index__promotion-text {
    flex-direction: row;
    gap: 10px;
  }
  .page-index__segment-4 {
    width: 100%;
    padding-top: 15px;
    flex-direction: column;
    gap: 10px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    font-size: 14px;
    padding: 10px 15px;
    white-space: normal;
    word-wrap: break-word;
  }
  .page-index__review-content-card {
    padding: 25px 20px;
  }
  .page-index__review-body h3 {
    font-size: 18px;
  }
  .page-index__review-body p {
    font-size: 15px;
  }
  .page-index__intro-features,
  .page-index__games-grid,
  .page-index__promotions-grid,
  .page-index__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-index__feature-title {
    font-size: 18px;
  }
  .page-index__game-image,
  .page-index__promotion-image,
  .page-index__news-image {
    height: 160px;
  }
  .page-index__game-item-title,
  .page-index__promotion-card-title,
  .page-index__news-card-title {
    font-size: 18px;
  }
  /* Ensure all images are responsive and don't cause overflow */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__container,
  .page-index__hero-container,
  .page-index__review-content-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}