/* style/index.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f1f3f5;
  --login-color: #EA7C07;
}

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

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), #4ac0f7);
  color: var(--text-color-light);
  overflow: hidden;
}

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

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1000px; /* Adjust as needed */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

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

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-color-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--login-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  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;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-index__cta-button--secondary {
  background: var(--primary-color);
}

.page-index__cta-button--secondary:hover {
  background: #1f8ec7;
}

.page-index__cta-button--small {
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
  margin-top: 15px;
}

/* General Section Styling */
.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-color-dark);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

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

/* 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: 1400px;
  margin: 0 auto;
}

.page-index__game-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 20px;
  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 {
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 100%;
}

.page-index__game-card-segment:not(:first-child) {
  border-left: 1px solid #e4e4e4;
}

.page-index__segment-1 {
  flex-shrink: 0;
  width: 150px;
  flex-direction: column;
  justify-content: center;
  padding-left: 0;
}

.page-index__segment-2 {
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.page-index__segment-3 {
  flex-shrink: 0;
  width: 180px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.page-index__segment-4 {
  flex-shrink: 0;
  width: 220px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

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

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

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

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

.page-index__rank-badge:not(.page-index__rank-1):not(.page-index__rank-2):not(.page-index__rank-3) {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.page-index__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  text-align: center;
  margin-bottom: 8px;
}

.page-index__game-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 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;
}

.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__game-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

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

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

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

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

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

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

.page-index__btn-download,
.page-index__btn-review {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  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;
}

.page-index__btn-download {
  background: var(--login-color);
  color: var(--text-color-light);
}

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

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

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

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

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

.page-index__review-content-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

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

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

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

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

.page-index__review-body strong {
  font-weight: bold;
  color: var(--primary-color);
}

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

.page-index__intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__intro-image {
  flex-shrink: 0;
  width: 50%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-index__intro-text {
  flex: 1;
}

.page-index__intro-text p {
  margin-bottom: 20px;
  font-size: 17px;
}

.page-index__intro-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-index__intro-features li {
  margin-bottom: 10px;
  font-size: 16px;
  position: relative;
  padding-left: 25px;
}

.page-index__intro-features li::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index__feature-highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 60px 20px;
  background: var(--background-light);
}

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

.page-index__game-card-item {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-index__game-card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color-dark);
  margin-bottom: 10px;
}

.page-index__game-card-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), #4ac0f7);
  color: var(--text-color-light);
}

.page-index__promotions-section .page-index__section-title {
  color: var(--text-color-light);
}

.page-index__promotions-section .page-index__section-title::after {
  background: var(--secondary-color);
}

.page-index__promotions-intro {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-color-light);
}

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

.page-index__promotion-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-index__promotion-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color-dark);
  margin-bottom: 10px;
}

.page-index__promotion-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__all-promotions-cta {
  text-align: center;
  margin-top: 40px;
}

/* Blog Section */
.page-index__blog-section {
  padding: 60px 20px;
  background: var(--secondary-color);
}

.page-index__blog-intro {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-color-dark);
}

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

.page-index__blog-card {
  background: var(--background-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-index__blog-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-index__blog-meta {
  font-size: 13px;
  color: #777777;
  margin-bottom: 15px;
}

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

.page-index__all-news-cta {
  text-align: center;
  margin-top: 40px;
}

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

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

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

  .page-index__game-card {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .page-index__game-card-segment {
    border-left: none !important;
    padding: 10px 0;
    width: 100%;
    justify-content: center;
  }

  .page-index__segment-1 {
    flex-direction: row;
    gap: 20px;
    width: auto;
  }

  .page-index__game-icon {
    margin: 0;
  }

  .page-index__segment-2 {
    order: -1; /* Move game name/description to top */
    width: 100%;
  }

  .page-index__segment-3 {
    width: 100%;
  }

  .page-index__segment-4 {
    width: 100%;
    flex-direction: row;
    gap: 15px;
  }

  .page-index__btn-download, .page-index__btn-review {
    flex: 1;
    max-width: 48%;
  }

  .page-index__intro-content {
    flex-direction: column;
  }

  .page-index__intro-image {
    width: 80%;
    max-width: 500px;
  }

  .page-index__promotion-image, .page-index__blog-image {
    height: 150px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__intro-section,
  .page-index__core-games-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    padding: 40px 15px;
  }

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

  .page-index__review-content-card h3 {
    font-size: 20px;
  }

  .page-index__review-body p {
    font-size: 15px;
  }

  .page-index__game-card {
    padding: 15px;
  }

  .page-index__rank-badge {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .page-index__game-icon {
    max-width: 80px;
  }

  .page-index__game-name {
    font-size: 20px;
  }

  .page-index__game-description {
    font-size: 13px;
  }

  .page-index__stars {
    font-size: 18px;
  }

  .page-index__rating-number {
    font-size: 16px;
  }

  .page-index__promotion-link,
  .page-index__hot-badge {
    font-size: 11px;
  }

  .page-index__segment-4 {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .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-image {
    width: 100%;
    max-width: 100%;
  }

  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__section, .page-index__card, .page-index__container, .page-index__hero-container,
  .page-index__game-leaderboard, .page-index__review-content-container, .page-index__review-content-card,
  .page-index__intro-content, .page-index__game-carousel, .page-index__promotion-grid, .page-index__blog-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
  }

  .page-index__hero-content {
    padding: 0 15px;
  }

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

  .page-index__game-carousel,
  .page-index__promotion-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__all-promotions-cta, .page-index__all-news-cta {
    padding: 0 15px;
  }

  .page-index__intro-features li {
    font-size: 15px;
  }
}