/* style/blog-top-five-games.css */

:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg-color: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

.page-blog-top-five-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
}

/* Hero Section */
.page-blog-top-five-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px;
  background-color: var(--background-color);
  overflow: hidden;
  text-align: center;
}

.page-blog-top-five-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog-top-five-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 140, 26, 0.5);
}

.page-blog-top-five-games__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  z-index: 1;
}

.page-blog-top-five-games__main-title {
  color: var(--secondary-color);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 165, 58, 0.8);
}

.page-blog-top-five-games__intro-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-blog-top-five-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog-top-five-games__btn-primary,
.page-blog-top-five-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-top-five-games__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: var(--text-main-color);
  border: 2px solid var(--secondary-color);
}

.page-blog-top-five-games__btn-primary:hover {
  background: linear-gradient(180deg, var(--glow-color) 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 165, 58, 0.5);
}

.page-blog-top-five-games__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-blog-top-five-games__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--background-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 165, 58, 0.5);
}

/* Content Area */
.page-blog-top-five-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: var(--text-main-color);
  background-color: var(--background-color);
  line-height: 1.7;
}

.page-blog-top-five-games__section-title {
  color: var(--secondary-color);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 165, 58, 0.6);
}

.page-blog-top-five-games__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

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

.page-blog-top-five-games__game-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-blog-top-five-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(255, 140, 26, 0.6);
}

.page-blog-top-five-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--primary-color);
  max-width: 100%;
  display: block;
}

.page-blog-top-five-games__card-title {
  font-size: 1.7rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog-top-five-games__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog-top-five-games__card-title a:hover {
  color: var(--glow-color);
}

.page-blog-top-five-games__card-description {
  font-size: 1rem;
  color: var(--text-main-color);
  margin-bottom: 25px;
}

.page-blog-top-five-games__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: var(--text-main-color);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-top-five-games__card-button:hover {
  background: linear-gradient(180deg, var(--glow-color) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
}

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

.page-blog-top-five-games__benefit-item {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-blog-top-five-games__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-top-five-games__benefit-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-blog-top-five-games__benefit-text {
  font-size: 0.95rem;
  color: var(--text-main-color);
}

.page-blog-top-five-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog-top-five-games__guide-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--primary-color);
}

.page-blog-top-five-games__guide-title {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-blog-top-five-games__guide-text {
  font-size: 1.05rem;
  color: var(--text-main-color);
}

.page-blog-top-five-games__cta-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, var(--card-bg-color) 0%, #0d0e12 100%);
  border-radius: 15px;
  padding: 40px;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.page-blog-top-five-games__cta-content {
  flex: 1;
  min-width: 300px;
  margin-right: 30px;
}

.page-blog-top-five-games__cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 165, 58, 0.6);
}

.page-blog-top-five-games__cta-text {
  font-size: 1.1rem;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-blog-top-five-games__cta-buttons-bottom {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog-top-five-games__cta-image {
  width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-left: 30px;
  max-width: 100%;
  display: block;
}

.page-blog-top-five-games__faq-list {
  margin-top: 40px;
}

.page-blog-top-five-games__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

.page-blog-top-five-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-blog-top-five-games__faq-item summary:hover {
  background-color: rgba(255, 140, 26, 0.1);
}

.page-blog-top-five-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog-top-five-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-blog-top-five-games__faq-item[open] .page-blog-top-five-games__faq-toggle {
  content: '−';
}

.page-blog-top-five-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-main-color);
  line-height: 1.6;
}

.page-blog-top-five-games__faq-answer p {
  margin-bottom: 0;
}

.page-blog-top-five-games__content-area a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-blog-top-five-games__content-area a:hover {
  color: var(--glow-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog-top-five-games__hero-content {
    padding: 0 15px;
  }

  .page-blog-top-five-games__games-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-blog-top-five-games__cta-banner {
    flex-direction: column;
    padding: 30px;
    text-align: center;
  }

  .page-blog-top-five-games__cta-content {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .page-blog-top-five-games__cta-image {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .page-blog-top-five-games__hero-section {
    padding-bottom: 40px;
  }

  .page-blog-top-five-games__main-title {
    font-size: 2.2rem;
  }

  .page-blog-top-five-games__intro-description {
    font-size: 1rem;
  }

  .page-blog-top-five-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-top-five-games__btn-primary,
  .page-blog-top-five-games__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-top-five-games__content-area {
    padding: 30px 15px;
  }

  .page-blog-top-five-games__section-title {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 25px;
  }

  .page-blog-top-five-games__text-block {
    font-size: 0.95rem;
  }

  .page-blog-top-five-games__games-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-top-five-games__card-image {
    height: 180px;
  }

  .page-blog-top-five-games__card-title {
    font-size: 1.5rem;
  }

  .page-blog-top-five-games__card-description {
    font-size: 0.9rem;
  }

  .page-blog-top-five-games__card-button {
    padding: 10px 20px;
    font-size: 0.95rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-top-five-games__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-top-five-games__benefit-title {
    font-size: 1.3rem;
  }

  .page-blog-top-five-games__guide-item {
    padding: 20px;
  }

  .page-blog-top-five-games__guide-title {
    font-size: 1.4rem;
  }

  .page-blog-top-five-games__cta-banner {
    padding: 25px;
  }

  .page-blog-top-five-games__cta-title {
    font-size: 2rem;
  }

  .page-blog-top-five-games__cta-text {
    font-size: 1rem;
  }

  .page-blog-top-five-games__cta-buttons-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog-top-five-games__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-blog-top-five-games__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Mobile image and container responsiveness */
  .page-blog-top-five-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog-top-five-games__hero-image-wrapper,
  .page-blog-top-five-games__cta-banner,
  .page-blog-top-five-games__cta-content,
  .page-blog-top-five-games__cta-image,
  .page-blog-top-five-games__games-list,
  .page-blog-top-five-games__game-card,
  .page-blog-top-five-games__benefits-grid,
  .page-blog-top-five-games__benefit-item,
  .page-blog-top-five-games__guide-list,
  .page-blog-top-five-games__guide-item,
  .page-blog-top-five-games__faq-list,
  .page-blog-top-five-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-blog-top-five-games__hero-section {
    padding-top: 10px !important;
  }

  .page-blog-top-five-games__cta-buttons-bottom {
    flex-wrap: wrap !important;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog-top-five-games__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }
}