/* style/index.css */
:root {
  --primary-color: #8B0000; /* Dark Red */
  --secondary-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0d0d0d;
  --bg-light: #f1f3f5;
  --border-color: #e4e4e4;
}

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

/* General Section Padding */
.page-index section {
  padding: 60px 20px;
}

/* Background Colors based on Body Background */
.page-index__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-index__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-index__light-bg h1, .page-index__light-bg h2, .page-index__light-bg h3 {
  color: var(--text-dark);
}

.page-index__light-bg a {
  color: var(--primary-color);
}

.page-index__light-bg a:hover {
  color: var(--secondary-color);
}

/* CTA Button Styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary-color), #A52A2A);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  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;
  text-align: center;
}

.page-index__cta-button:hover {
  background: linear-gradient(135deg, #A52A2A, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 20px;
}

/* 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 */
  overflow: hidden; /* Ensure no overflow */
}

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

.page-index__hero-content {
  text-align: center;
  width: 100%;
}

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

.page-index__hero-content p {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-index__hero-link:hover {
  color: #ffffff;
}

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

.page-index__game-leaderboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__leaderboard-description {
  font-size: 18px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__leaderboard-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-index__leaderboard-link:hover {
  text-decoration: underline;
}

.page-index__game-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.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;
  flex-shrink: 0;
  position: relative;
}

.page-index__game-card-segment:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--border-color);
}

.page-index__segment-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  padding-left: 0;
}

.page-index__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Default for 4+ */
}

.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__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  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: 10px;
  text-transform: uppercase;
  text-align: center;
}

.page-index__game-name-link {
  color: #000000;
  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__segment-3 {
  width: 180px;
  text-align: center;
}

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

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

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

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

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

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

.page-index__hot-badge {
  background-color: #ff4d4f;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.page-index__segment-4 {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 0;
}

.page-index__btn-download,
.page-index__btn-review {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  margin-top: 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__btn-review {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

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

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

.page-index__review-content-container {
  max-width: 1400px; /* Wider than leaderboard for better readability */
  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;
  color: var(--text-dark);
}

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

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

.page-index__review-body {
  line-height: 1.7;
  font-size: 16px;
}

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

.page-index__review-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-index__review-link:hover {
  text-decoration: underline;
}

/* Homepage Introduction Section */
.page-index__intro-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  text-align: center;
}

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

.page-index__intro-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 25px;
}

.page-index__intro-text {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__intro-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-index__intro-link:hover {
  color: #ffffff;
}

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

.page-index__feature-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-index__feature-card p {
  font-size: 15px;
  color: var(--text-dark);
}

/* Core Games/Services Section */
.page-index__games-services-section {
  padding: 60px 20px;
  background-color: var(--bg-light);
}

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

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

.page-index__games-services-description {
  font-size: 18px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__games-services-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-index__games-services-link:hover {
  text-decoration: underline;
}

.page-index__tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 15px;
}

.page-index__tab-button {
  background: #ffffff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.page-index__tab-button--active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__tab-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
}

.page-index__tab-pane {
  display: none;
}

.page-index__tab-pane--active {
  display: block;
}

.page-index__tab-image {
  max-width: 800px;
  height: auto;
  margin: 0 auto 30px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__tab-pane-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-index__tab-pane p {
  font-size: 16px;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

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

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

.page-index__promotions-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 25px;
}

.page-index__promotions-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__promotions-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-index__promotions-link:hover {
  color: #ffffff;
}

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

.page-index__promo-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-image {
  max-width: 180px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 4px;
}

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

.page-index__promo-card p {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-index__cta-button--promo {
  margin-top: 0;
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 6px;
}

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

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

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

.page-index__blog-description {
  font-size: 18px;
  color: var(--text-dark);
  text-align: center;
  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;
}

.page-index__blog-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__blog-content {
  padding: 25px;
}

.page-index__blog-card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-index__blog-card-title a:hover {
  text-decoration: underline;
}

.page-index__blog-card p {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-index__blog-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-index__blog-link:hover {
  text-decoration: underline;
}

.page-index__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.page-index__read-more:hover {
  text-decoration: underline;
}

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

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

  .page-index__page-title,
  .page-index__intro-title,
  .page-index__games-services-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 32px;
  }

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

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

  .page-index__game-card-segment:not(:last-child)::after {
    display: none;
  }

  .page-index__segment-1 {
    width: 100%;
    flex-direction: row;
    gap: 20px;
    padding-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
  }

  .page-index__rank-badge {
    margin-bottom: 0;
  }

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

  .page-index__segment-2 {
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
  }

  .page-index__segment-3 {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
  }

  .page-index__segment-4 {
    width: 100%;
    padding-top: 15px;
    gap: 15px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-index__btn-download, .page-index__btn-review {
    font-size: 15px;
    padding: 12px 15px;
  }

  .page-index__tab-image {
    max-width: 100%;
  }
  
  .page-index__feature-icon {
    max-width: 120px;
  }
  
  .page-index__promo-image {
    max-width: 150px;
  }
}

@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-image img {
    border-radius: 4px;
  }
  
  .page-index__hero-content h1 {
    font-size: 32px;
  }
  
  .page-index__hero-content p {
    font-size: 16px;
  }
  
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
  }

  .page-index section {
    padding: 40px 15px;
  }

  .page-index__page-title,
  .page-index__intro-title,
  .page-index__games-services-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-index__leaderboard-description,
  .page-index__intro-text,
  .page-index__games-services-description,
  .page-index__promotions-description,
  .page-index__blog-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-index__review-content-card {
    padding: 25px 20px;
  }

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

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

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

  .page-index__feature-card {
    padding: 25px;
  }

  .page-index__feature-icon {
    max-width: 100px;
  }

  .page-index__feature-title {
    font-size: 20px;
  }

  .page-index__tab-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__tab-button {
    width: 100%;
    font-size: 15px;
    padding: 10px 15px;
  }

  .page-index__tab-content {
    padding: 25px;
  }

  .page-index__tab-pane-title {
    font-size: 24px;
  }

  .page-index__tab-pane p {
    font-size: 15px;
  }

  .page-index__promo-card {
    padding: 25px;
  }

  .page-index__promo-image {
    max-width: 120px;
  }

  .page-index__promo-card-title {
    font-size: 20px;
  }

  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }

  .page-index__blog-image {
    height: 180px;
  }

  .page-index__blog-card-title {
    font-size: 20px;
  }

  .page-index__btn-download,
  .page-index__btn-review {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: auto !important;
  }
  
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__hero-section,
  .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,
  .page-index__hero-container,
  .page-index__game-leaderboard-container,
  .page-index__review-content-container,
  .page-index__intro-container,
  .page-index__games-services-container,
  .page-index__promotions-container,
  .page-index__blog-container,
  .page-index__game-card,
  .page-index__feature-card,
  .page-index__promo-card,
  .page-index__blog-card,
  .page-index__tab-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-index__hero-content h1 {
    font-size: 28px;
  }
  .page-index__page-title,
  .page-index__intro-title,
  .page-index__games-services-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 24px;
  }

  .page-index__game-name {
    font-size: 20px;
  }
  .page-index__game-description {
    font-size: 13px;
  }
  .page-index__feature-title,
  .page-index__promo-card-title,
  .page-index__blog-card-title {
    font-size: 18px;
  }
}