/* style/index.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --dark-text: #333333;
  --light-text: #ffffff;
  --light-bg-1: #f1f3f5;
  --light-bg-2: #ffffff;
  --border-color: #e4e4e4;
}

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

/* --- 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), #0056b3); /* Darker blue gradient */
  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.2);
}

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

.page-index__hero-content h1 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--light-text);
}

.page-index__hero-content p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #e0e0e0;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-index__cta-button:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styles --- */
.page-index__page-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

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

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

.page-index__game-card {
  background: var(--light-bg-2);
  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 6px 16px rgba(0, 0, 0, 0.15);
}

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

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

.page-index__segment-2 {
  flex: 1;
  min-width: 200px;
}

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

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

.page-index__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--light-text);
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.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__rank-badge:not(.page-index__rank-1):not(.page-index__rank-2):not(.page-index__rank-3) {
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Orange for 4+ */
}

.page-index__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 10px;
}

.page-index__game-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-text);
  margin-bottom: 5px;
  text-align: center;
}

.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: var(--dark-text);
  font-weight: bold;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-index__game-description a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

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

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

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

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

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

.page-index__promotion-link {
  color: var(--primary-color);
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-index__btn-download,
.page-index__btn-review {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-index__btn-review:hover {
  background: #0056b3;
  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(--light-bg-1);
}

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

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

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

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

.page-index__review-body {
  color: var(--dark-text);
  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;
  background: var(--light-bg-2);
  color: var(--dark-text);
}

.page-index__intro-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__intro-section h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--dark-text);
}

.page-index__intro-section p {
  font-size: 17px;
  margin-bottom: 40px;
  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;
}

.page-index__feature-item {
  background: var(--light-bg-1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-index__feature-icon {
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__feature-item p {
  font-size: 15px;
  color: var(--dark-text);
  margin-bottom: 0;
}

/* --- Core Games/Services Section --- */
.page-index__games-services-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0056b3, var(--primary-color)); /* Darker blue gradient */
  color: var(--light-text);
}

.page-index__games-services-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__games-services-section h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--light-text);
}

.page-index__games-services-section p {
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

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

.page-index__game-type-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__game-type-image {
  max-width: 180px; /* Larger image for game types */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--light-bg-2);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__btn-secondary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.page-index__promotions-section h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--dark-text);
}

.page-index__promotions-section p {
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__promotion-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-index__promotion-list li {
  background: var(--light-bg-2);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promotion-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-index__promotion-icon {
  flex-shrink: 0;
  max-width: 100px;
  height: auto;
  border-radius: 4px;
}

.page-index__promotion-details h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  text-align: left;
}

.page-index__promotion-details p {
  font-size: 15px;
  color: var(--dark-text);
  margin-bottom: 0;
  text-align: left;
}

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

.page-index__promotion-details a:hover {
  text-decoration: underline;
  color: #218838;
}

.page-index__promotions-cta {
  margin-top: 40px;
}

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

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

.page-index__blog-section h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--dark-text);
}

.page-index__blog-section p {
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__blog-card {
  background: var(--light-bg-1);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

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

.page-index__blog-content {
  padding: 20px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-content h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.page-index__blog-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-link:hover {
  color: var(--primary-color);
}

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

.page-index__blog-date {
  font-size: 13px;
  color: #888888;
  margin-top: auto;
}

.page-index__blog-cta {
  margin-top: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-index__hero-content h1 {
    font-size: 36px;
  }
  .page-index__hero-content p {
    font-size: 17px;
  }
  .page-index__page-title {
    font-size: 32px;
  }
  .page-index__game-card {
    flex-wrap: wrap;
    padding: 15px;
  }
  .page-index__game-card-segment {
    border-left: none;
    padding: 10px;
    width: 100%;
    text-align: center;
  }
  .page-index__segment-1 {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding-left: 0;
    margin-bottom: 10px;
  }
  .page-index__rank-badge {
    position: static;
    margin-right: 10px;
  }
  .page-index__game-icon {
    max-width: 80px;
    margin: 0;
  }
  .page-index__segment-2 {
    order: 2;
    margin-bottom: 10px;
  }
  .page-index__segment-3 {
    order: 3;
    width: 100%;
    margin-bottom: 10px;
  }
  .page-index__segment-4 {
    order: 4;
    width: 100%;
  }
  .page-index__game-type-grid, .page-index__blog-grid, .page-index__intro-features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-index__promotion-list {
    grid-template-columns: 1fr;
  }
  .page-index__promotion-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-index__promotion-details h3, .page-index__promotion-details p {
    text-align: center;
  }
}

@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-content h1 {
    font-size: 28px;
  }
  .page-index__hero-content p {
    font-size: 16px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index__page-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-top: 20px;
  }
  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__intro-section,
  .page-index__games-services-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    padding: 30px 15px;
  }
  .page-index__review-content-card {
    padding: 25px 20px;
  }
  .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__intro-section h2,
  .page-index__games-services-section h2,
  .page-index__promotions-section h2,
  .page-index__blog-section h2 {
    font-size: 26px;
    margin-bottom: 25px;
  }
  .page-index__intro-section p,
  .page-index__games-services-section p,
  .page-index__promotions-section p,
  .page-index__blog-section p {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-index__feature-item h3 {
    font-size: 18px;
  }
  .page-index__game-type-card h3 {
    font-size: 20px;
  }
  .page-index__promotion-list li {
    padding: 20px;
  }
  .page-index__promotion-icon {
    max-width: 80px;
  }
  .page-index__btn-download,
  .page-index__btn-review {
    font-size: 14px;
    padding: 10px 15px;
    white-space: normal;
    word-wrap: break-word;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__game-card,
  .page-index__game-card-segment,
  .page-index__game-type-card,
  .page-index__blog-card,
  .page-index__feature-item,
  .page-index__promotion-list li {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__segment-4 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-content h1 {
    font-size: 24px;
  }
  .page-index__hero-content p {
    font-size: 14px;
  }
  .page-index__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-index__page-title {
    font-size: 24px;
  }
  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__game-rating {
    flex-direction: column;
    gap: 5px;
  }
  .page-index__promotion-text {
    flex-direction: column;
    gap: 5px;
  }
  .page-index__btn-download, .page-index__btn-review {
    font-size: 13px;
    padding: 8px 12px;
  }
  .page-index__review-content-card h2 {
    font-size: 22px;
  }
  .page-index__review-content-card h3 {
    font-size: 16px;
  }
  .page-index__intro-section h2,
  .page-index__games-services-section h2,
  .page-index__promotions-section h2,
  .page-index__blog-section h2 {
    font-size: 24px;
  }
}