/* style/index-popular-games.css */

:root {
  --primary-color: #FFD700;
  --secondary-color: #1A237E;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f4f4f4; /* Matches body background */
  --background-white: #ffffff;
  --border-color: #e0e0e0;
}

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

/* Hero Section */
.page-index-popular-games__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) 0%, var(--secondary-color) 100%);
  color: var(--text-color-light);
  overflow: hidden;
}

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

.page-index-popular-games__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

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

.page-index-popular-games__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-index-popular-games__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-index-popular-games__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-popular-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-popular-games__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
}

.page-index-popular-games__cta-button--primary:hover {
  background: #e6b800;
  border-color: #e6b800;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-color-light);
  border-color: var(--secondary-color);
}

.page-index-popular-games__cta-button--secondary:hover {
  background: #121a5c;
  border-color: #121a5c;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-index-popular-games__section {
  padding: 80px 20px;
  background-color: var(--background-white);
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-popular-games__section--intro {
  background-color: var(--background-light);
}

.page-index-popular-games__section:last-of-type {
  margin-bottom: 0;
}

.page-index-popular-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index-popular-games__container--centered {
  text-align: center;
}

.page-index-popular-games__section-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-index-popular-games__text-block {
  font-size: 1.1em;
  margin-bottom: 25px;
  text-align: justify;
}

/* Game Grid Section */
.page-index-popular-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index-popular-games__game-card {
  background-color: var(--background-white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index-popular-games__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index-popular-games__game-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index-popular-games__game-card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-index-popular-games__game-card-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-popular-games__game-card-title a:hover {
  color: var(--primary-color);
}

.page-index-popular-games__game-card-description {
  font-size: 0.95em;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-popular-games__btn-more {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9em;
  transition: all 0.3s ease;
  align-self: flex-start;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-popular-games__btn-more:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Advantages Section */
.page-index-popular-games__advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index-popular-games__advantage-item {
  background-color: var(--background-white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-games__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games__advantage-icon {
  width: 120px;
  height: 90px; /* Adjusted height for ratio 400x300 */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index-popular-games__advantage-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* Guide Section */
.page-index-popular-games__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: guide-step;
}

.page-index-popular-games__guide-item {
  background-color: var(--background-white);
  margin-bottom: 25px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  position: relative;
  padding-left: 80px;
}

.page-index-popular-games__guide-item::before {
  counter-increment: guide-step;
  content: "0" counter(guide-step);
  position: absolute;
  left: 20px;
  top: 30px;
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  opacity: 0.7;
  line-height: 1;
}

.page-index-popular-games__guide-step-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}