/* style/index.css */
:root {
  --primary-color: #1A2A44;
  --secondary-color: #FFCC00;
  --dark-bg-1: #0d0d0d; /* Assuming shared.css defines this as a dark background */
}

.page-index {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

/* 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: var(--dark-bg-1); /* Match body background */
  color: #ffffff;
}

.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;
}

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

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--secondary-color), #FFA500);
  color: var(--primary-color);
  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);
}

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

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

.page-index__page-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-index__game-card {
  background: #1A2A44; /* Darker background for cards */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-index__game-card-segment:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-index__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: absolute;
  top: 0px;
  left: 0px;
  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__game-icon {
  max-width: 80px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 10px;
}

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

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

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

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

.page-index__game-description {
  font-size: 14px;
  color: #f0f0f0;
  font-weight: bold;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-index__game-description a {
  color: #87CEEB; /* Light blue for links in description */
  font-weight: bold;
  text-decoration: none;
}

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

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

.page-index__game-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

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

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

.page-index__promotion-text {
  font-size: 13px;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__promotion-link {
  color: #87CEEB;
  text-decoration: none;
  margin-right: 5px;
}

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

.page-index__hot-badge {
  background: #DC3545;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

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

.page-index__cta-button {
  display: block;
  width: 100%;
  padding: 12px 15px;
  background: linear-gradient(135deg, var(--secondary-color), #FFA500);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

.page-index__cta-button:hover {
  background: linear-gradient(135deg, #FFA500, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index__btn-review {
  background: #334D6F; /* A darker shade from primary */
  color: #ffffff;
}

.page-index__btn-review:hover {
  background: #2A405A;
}

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

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

.page-index__review-content-card {
  background: #1A2A44; /* Darker background */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-index__review-content-card h3 {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index__review-body {
  color: #f0f0f0;
  line-height: 1.7;
}

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

/* Introduction Section */
.page-index__introduction-section {
  padding: 60px 20px;
  background: var(--dark-bg-1);
  color: #f0f0f0;
}

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

.page-index__introduction-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-index__introduction-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-index__introduction-item {
  background: #1A2A44;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__introduction-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__introduction-icon {
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--secondary-color)); /* Subtle glow */
}

.page-index__introduction-item h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-index__introduction-item p {
  font-size: 15px;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Games Showcase Section */
.page-index__games-showcase-section {
  padding: 60px 20px;
  background: var(--dark-bg-1);
  color: #f0f0f0;
}

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

.page-index__games-showcase-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-index__games-showcase-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-index__games-tab-btn {
  background: #334D6F;
  color: #f0f0f0;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__games-tab-btn:hover {
  background: #2A405A;
}

.page-index__games-tab-btn.active {
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__games-content-item {
  display: none;
  background: #1A2A44;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.page-index__games-content-item.active {
  display: block;
}

.page-index__games-content-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-index__games-content-item h3 {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-index__games-content-item p {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.7;
  margin-bottom: 25px;
}

.page-index__games-learn-more {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__games-learn-more:hover {
  background: #FFA500;
  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(--dark-bg-1);
  color: #f0f0f0;
}

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

.page-index__promotions-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-index__promotions-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-index__promotion-card {
  background: #1A2A44;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promotion-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

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

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

/* Blog Section */
.page-index__blog-section {
  padding: 60px 20px;
  background: var(--dark-bg-1);
  color: #f0f0f0;
}

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

.page-index__blog-title {
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-index__blog-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-index__blog-card {
  background: #1A2A44;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__blog-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index__blog-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__blog-summary {
  font-size: 15px;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 13px;
  color: #999999;
}

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

.page-index__blog-view-all {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__blog-view-all:hover {
  background: #FFA500;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

  .page-index__page-title,
  .page-index__review-content-card h2,
  .page-index__introduction-title,
  .page-index__games-showcase-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 32px;
  }

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

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

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

  .page-index__segment-4 {
    width: 180px;
  }

  .page-index__cta-button {
    font-size: 14px;
    padding: 10px 12px;
  }
}

@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-title {
    font-size: 32px;
  }

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

  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-index__page-title,
  .page-index__review-content-card h2,
  .page-index__introduction-title,
  .page-index__games-showcase-title,
  .page-index__promotions-title,
  .page-index__blog-title {
    font-size: 28px;
  }

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

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

  .page-index__game-leaderboard-section,
  .page-index__review-content-section,
  .page-index__introduction-section,
  .page-index__games-showcase-section,
  .page-index__promotions-section,
  .page-index__blog-section {
    padding: 40px 15px;
  }

  .page-index__game-card {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }

  .page-index__game-card-segment {
    width: 100%;
    padding: 10px 0;
    border-left: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .page-index__game-card-segment:last-child {
    border-bottom: none;
  }

  .page-index__segment-1 {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    width: 100%;
    position: relative;
  }

  .page-index__rank-badge {
    position: static;
    margin-right: 15px;
  }

  .page-index__game-icon {
    max-width: 60px;
    margin-top: 0;
  }

  .page-index__segment-2,
  .page-index__segment-3,
  .page-index__segment-4 {
    width: 100%;
    text-align: center;
  }

  .page-index__game-name {
    font-size: 22px;
    margin-top: 10px;
  }

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

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

  .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__introduction-grid,
  .page-index__promotions-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }

  .page-index__games-tabs {
    flex-direction: column;
  }

  .page-index__games-content-item {
    padding: 25px;
  }

  .page-index__games-content-item h3 {
    font-size: 22px;
  }

  .page-index__games-content-item p {
    font-size: 15px;
  }

  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__review-content-card,
  .page-index__introduction-item,
  .page-index__promotion-card,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}