:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f1f3f5;
  --border-light: #e4e4e4;
  --dark-bg-1: #1a1a2e; /* Assuming shared.css defines --dark-bg-1 */
}

.page-index-popular-games {
  color: var(--text-light); /* Default text color for areas directly on body background */
  background-color: var(--dark-bg-1); /* Ensure consistency with shared.css body background */
}

/* Fixed navigation bar spacing */
.page-index-popular-games__hero-section {
  padding-top: 180px; /* Adjust for fixed header */
}

@media (max-width: 768px) {
  .page-index-popular-games__hero-section {
    padding-top: 140px; /* Adjust for fixed header on mobile */
  }
}

.page-index-popular-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), #001a4d); /* Darker gradient for hero background */
}

.page-index-popular-games__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-popular-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index-popular-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-index-popular-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-index-popular-games__hero-content h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-popular-games__hero-content p {
  font-size: 20px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-index-popular-games__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: var(--primary-color);
  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.3);
  border: none;
}

.page-index-popular-games__cta-button:hover {
  background: linear-gradient(135deg, #FFA500, #FFC107);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Game Leaderboard Section */
.page-index-popular-games__game-leaderboard-section {
  padding: 60px 20px;
  background: var(--bg-light);
  color: var(--text-dark);
}

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

.page-index-popular-games__game-leaderboard {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index-popular-games__game-card {
  background: #ffffff;
  border-radius: 12px;
  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-popular-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games__game-card-segment {
  padding: 0 20px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-index-popular-games__game-card-segment:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--border-light);
}

.page-index-popular-games__segment-1 {
  min-width: 150px;
  max-width: 150px;
  padding-left: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index-popular-games__rank-badge {
  width: 35px;
  height: 35px;
  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: 18px;
  position: absolute;
  top: -10px;
  left: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-index-popular-games__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 15px; /* Space from badge */
}

.page-index-popular-games__segment-2 {
  flex: 1;
  text-align: center;
}

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

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

.page-index-popular-games__game-name-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-index-popular-games__game-description {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: bold;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

.page-index-popular-games__segment-3 {
  min-width: 180px;
  max-width: 180px;
  flex-shrink: 0;
  text-align: center;
}

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

.page-index-popular-games__stars {
  color: var(--secondary-color);
  font-size: 20px;
  margin-right: 5px;
  font-weight: bold;
}

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

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

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

.page-index-popular-games__promotion-link:hover {
  text-decoration: underline;
}

.page-index-popular-games__hot-badge {
  background: #e74c3c;
  color: #ffffff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.page-index-popular-games__segment-4 {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-index-popular-games__btn-download,
.page-index-popular-games__btn-review {
  display: block;
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  white-space: normal;
  word-wrap: break-word;
  min-width: auto;
}

.page-index-popular-games__btn-download {
  background: linear-gradient(135deg, var(--primary-color), #001a4d);
  color: var(--text-light);
  border: none;
}

.page-index-popular-games__btn-download:hover {
  background: linear-gradient(135deg, #001a4d, #0A2463);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games__btn-review {
  background: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.page-index-popular-games__btn-review:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Brand Review Content Section */
.page-index-popular-games__review-content-section {
  padding: 60px 20px;
  background: var(--bg-light);
  color: var(--text-dark);
}

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

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

.page-index-popular-games__review-content-card h2 {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 24px;
  text-align: center;
}

.page-index-popular-games__review-content-card h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-index-popular-games__review-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

/* Homepage Introduction Section */
.page-index-popular-games__introduction-section {
  padding: 60px 20px;
  color: var(--text-dark);
  background: var(--bg-light);
}

.page-index-popular-games__introduction-section.page-index-popular-games__dark-bg {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index-popular-games__introduction-section.page-index-popular-games__light-bg {
  background: #ffffff;
  color: var(--text-dark);
}

.page-index-popular-games__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-popular-games__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-index-popular-games__introduction-section.page-index-popular-games__dark-bg .page-index-popular-games__section-title {
  color: var(--secondary-color);
}

.page-index-popular-games__text-block p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

/* Core Games Section */
.page-index-popular-games__core-games-section {
  padding: 60px 20px;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index-popular-games__core-games-section .page-index-popular-games__section-title {
  color: var(--secondary-color);
}

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

.page-index-popular-games__game-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index-popular-games__game-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-index-popular-games__game-item h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-index-popular-games__game-item h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-index-popular-games__game-item h3 a:hover {
  text-decoration: underline;
}

.page-index-popular-games__game-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
}

/* Promotions Section */
.page-index-popular-games__promotions-section {
  padding: 60px 20px;
  background: #ffffff;
  color: var(--text-dark);
}

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

.page-index-popular-games__promotion-card {
  background: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index-popular-games__promotion-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index-popular-games__promotion-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-index-popular-games__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, var(--primary-color), #001a4d);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-index-popular-games__btn-primary:hover {
  background: linear-gradient(135deg, #001a4d, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Latest Blog Section */
.page-index-popular-games__latest-blog-section {
  padding: 60px 20px;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index-popular-games__latest-blog-section .page-index-popular-games__section-title {
  color: var(--secondary-color);
}

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

.page-index-popular-games__blog-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-games__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-index-popular-games__blog-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  padding: 15px 20px 10px;
}

.page-index-popular-games__blog-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-index-popular-games__blog-card h3 a:hover {
  text-decoration: underline;
}

.page-index-popular-games__blog-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  padding: 0 20px 15px;
}

.page-index-popular-games__blog-link {
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  padding: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-index-popular-games__blog-link:hover {
  color: #ffc107;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-index-popular-games__game-card {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .page-index-popular-games__game-card-segment:not(:first-child)::before {
    display: none;
  }

  .page-index-popular-games__game-card-segment {
    width: 100%;
    padding: 10px 0;
  }

  .page-index-popular-games__segment-1, .page-index-popular-games__segment-3, .page-index-popular-games__segment-4 {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }

  .page-index-popular-games__rank-badge {
    position: static;
    margin: 0 auto 10px auto;
  }

  .page-index-popular-games__game-icon {
    margin-top: 0;
  }

  .page-index-popular-games__game-rating, .page-index-popular-games__promotion-text {
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .page-index-popular-games__hero-content h1 {
    font-size: 36px;
  }

  .page-index-popular-games__hero-content p {
    font-size: 18px;
  }

  .page-index-popular-games__cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }

  .page-index-popular-games__page-title {
    font-size: 28px;
  }

  .page-index-popular-games__game-name {
    font-size: 22px;
  }

  .page-index-popular-games__game-description {
    font-size: 13px;
  }

  .page-index-popular-games__btn-download,
  .page-index-popular-games__btn-review {
    font-size: 14px;
    padding: 10px 10px;
  }

  .page-index-popular-games__review-content-card h2,
  .page-index-popular-games__section-title {
    font-size: 26px;
  }

  .page-index-popular-games__review-content-card h3 {
    font-size: 20px;
  }

  .page-index-popular-games__review-body p,
  .page-index-popular-games__text-block p,
  .page-index-popular-games__game-item p,
  .page-index-popular-games__promotion-card p,
  .page-index-popular-games__blog-card p {
    font-size: 14px;
  }

  .page-index-popular-games__game-image,
  .page-index-popular-games__promotion-image {
    height: 150px;
  }

  .page-index-popular-games__blog-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-index-popular-games__hero-content h1 {
    font-size: 30px;
  }

  .page-index-popular-games__hero-content p {
    font-size: 16px;
  }

  .page-index-popular-games__cta-button {
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-index-popular-games__page-title {
    font-size: 24px;
  }

  .page-index-popular-games__game-name {
    font-size: 20px;
  }

  .page-index-popular-games__review-content-card h2,
  .page-index-popular-games__section-title {
    font-size: 22px;
  }
}