.page-top-games-ranking {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login: #EA7C07;
}

.page-top-games-ranking__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 below fixed header */
  color: var(--text-light);
  background-color: var(--primary-color);
  min-height: 500px;
  overflow: hidden;
}

.page-top-games-ranking__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-top-games-ranking__hero-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-top-games-ranking__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-top-games-ranking__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-top-games-ranking__btn-primary,
.page-top-games-ranking__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-top-games-ranking__btn-primary {
  background-color: var(--button-login);
  color: var(--text-light);
  border: 2px solid var(--button-login);
}

.page-top-games-ranking__btn-primary:hover {
  background-color: darken(var(--button-login), 10%);
  border-color: darken(var(--button-login), 10%);
}

.page-top-games-ranking__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-top-games-ranking__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-top-games-ranking__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-top-games-ranking__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  display: block;
}

.page-top-games-ranking__section {
  padding: 60px 20px;
  text-align: center;
}

.page-top-games-ranking__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-top-games-ranking__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-top-games-ranking__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-top-games-ranking__section-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-top-games-ranking__dark-bg .page-top-games-ranking__section-title {
  color: var(--text-light);
}

.page-top-games-ranking__light-bg .page-top-games-ranking__section-title {
  color: var(--text-dark);
}

.page-top-games-ranking__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: left;
}

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

.page-top-games-ranking__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-top-games-ranking__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-top-games-ranking__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-top-games-ranking__card-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-top-games-ranking__card-title a {
  color: var(--text-light);
  text-decoration: none;
}

.page-top-games-ranking__card-title a:hover {
  text-decoration: underline;
}

.page-top-games-ranking__card-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-top-games-ranking__feature-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.page-top-games-ranking__feature-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-top-games-ranking__feature-item p {
  font-size: 1em;
  line-height: 1.6;
}

.page-top-games-ranking__cta-section {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-top-games-ranking__cta-content {
  text-align: center;
}

.page-top-games-ranking__cta-content .page-top-games-ranking__section-title {
  color: var(--text-light);
}

.page-top-games-ranking__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 50px auto;
  max-width: 800px;
  text-align: left;
}

.page-top-games-ranking__steps-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 10px;
  font-size: 1.1em;
  line-height: 1.6;
  position: relative;
  padding-left: 60px;
}

.page-top-games-ranking__steps-list li strong {
  color: var(--text-light);
  font-size: 1.2em;
}

.page-top-games-ranking__steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--button-login);
  color: var(--text-light);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1em;
}

.page-top-games-ranking__faq-section {
  padding-bottom: 80px;
}

.page-top-games-ranking__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-top-games-ranking__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-top-games-ranking__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-top-games-ranking__faq-question::-webkit-details-marker {
  display: none;
}

.page-top-games-ranking__faq-qtext {
  flex-grow: 1;
}

.page-top-games-ranking__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-top-games-ranking__faq-item[open] .page-top-games-ranking__faq-question {
  border-bottom: none;
}

.page-top-games-ranking__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

.page-top-games-ranking__faq-answer p {
  margin-bottom: 15px;
}

.page-top-games-ranking__faq-answer .page-top-games-ranking__btn-primary {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1em;
}

.page-top-games-ranking__faq-answer .page-top-games-ranking__btn-secondary {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1em;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-top-games-ranking__faq-answer .page-top-games-ranking__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-top-games-ranking__conclusion-section {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-top-games-ranking__conclusion-content {
  text-align: center;
}

.page-top-games-ranking__conclusion-content .page-top-games-ranking__section-title {
  color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-top-games-ranking__hero-title {
    font-size: 2.8em;
  }

  .page-top-games-ranking__section-title {
    font-size: 2.2em;
  }

  .page-top-games-ranking__game-card {
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-top-games-ranking__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 400px;
  }

  .page-top-games-ranking__hero-title {
    font-size: 2.2em;
  }

  .page-top-games-ranking__hero-description {
    font-size: 1em;
  }

  .page-top-games-ranking__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-top-games-ranking__btn-primary,
  .page-top-games-ranking__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-top-games-ranking__section {
    padding: 40px 15px;
  }

  .page-top-games-ranking__content-area {
    padding: 0 15px;
  }

  .page-top-games-ranking__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-top-games-ranking__text-block {
    font-size: 0.95em;
  }

  .page-top-games-ranking__game-grid,
  .page-top-games-ranking__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-top-games-ranking__game-card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-top-games-ranking__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-top-games-ranking__feature-item {
    padding: 25px;
  }

  .page-top-games-ranking__feature-title {
    font-size: 1.4em;
  }

  .page-top-games-ranking__steps-list {
    margin-top: 30px;
  }

  .page-top-games-ranking__steps-list li {
    font-size: 1em;
    padding-left: 50px;
  }

  .page-top-games-ranking__steps-list li::before {
    width: 30px;
    height: 30px;
    font-size: 1em;
    left: 15px;
  }

  .page-top-games-ranking__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-top-games-ranking__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  /* General image responsiveness */
  .page-top-games-ranking img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-top-games-ranking__section,
  .page-top-games-ranking__card,
  .page-top-games-ranking__container,
  .page-top-games-ranking__hero-image-wrapper,
  .page-top-games-ranking__game-grid,
  .page-top-games-ranking__features-grid,
  .page-top-games-ranking__cta-buttons,
  .page-top-games-ranking__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Reset padding for elements that should stretch full width but have inner padding */
  .page-top-games-ranking__hero-section,
  .page-top-games-ranking__cta-section,
  .page-top-games-ranking__conclusion-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-top-games-ranking__hero-content,
  .page-top-games-ranking__cta-content,
  .page-top-games-ranking__conclusion-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-top-games-ranking video,
  .page-top-games-ranking__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-top-games-ranking__video-section,
  .page-top-games-ranking__video-container,
  .page-top-games-ranking__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-top-games-ranking__hero-title {
    font-size: 1.8em;
  }

  .page-top-games-ranking__section-title {
    font-size: 1.5em;
  }

  .page-top-games-ranking__btn-primary,
  .page-top-games-ranking__btn-secondary {
    font-size: 0.95em;
    padding: 10px 15px;
  }

  .page-top-games-ranking__card-title {
    font-size: 1.5em;
  }

  .page-top-games-ranking__feature-title {
    font-size: 1.2em;
  }

  .page-top-games-ranking__faq-question {
    font-size: 1em;
  }
}