/* style/game-guides.css */

/* Base styles for the page-game-guides scope */
.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #E53935; /* Primary color */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-game-guides__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-game-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff; /* White text on dark background */
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 8px;
}

.page-game-guides__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Buttons */
.page-game-guides__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

/* Introduction Section */
.page-game-guides__introduction-section {
  padding: 80px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333; /* Text Main */
}

/* Guides List Section */
.page-game-guides__guides-list-section {
  padding: 80px 0;
  background-color: #ffffff; /* Card BG */
  color: #333333; /* Text Main */
}

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

.page-game-guides__guide-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #333333; /* Text Main */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-game-guides__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-game-guides__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935; /* Primary color for titles */
}

.page-game-guides__card-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-game-guides__read-more {
  display: flex;
  align-items: center;
  color: #E53935; /* Primary color */
  font-weight: bold;
  font-size: 0.95em;
}

.page-game-guides__arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-game-guides__guide-card:hover .page-game-guides__arrow {
  transform: translateX(5px);
}

.page-game-guides__cta-buttons {
  text-align: center;
}

/* Tips Section */
.page-game-guides__tips-section {
  padding: 80px 0;
  background-color: #E53935; /* Primary color */
  color: #ffffff; /* White text on dark background */
}

.page-game-guides__tips-section .page-game-guides__section-title {
  color: #ffffff;
}

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

.page-game-guides__tip-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-game-guides__tip-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-game-guides__tip-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* CTA Banner Section */
.page-game-guides__cta-banner {
  padding: 80px 0;
  text-align: center;
  background-color: #F5F7FA; /* Background */
  color: #333333; /* Text Main */
}

.page-game-guides__cta-banner .page-game-guides__section-title {
  color: #E53935;
}

/* Utility classes for color contrast */
.page-game-guides__dark-section {
  background-color: #E53935;
  color: #ffffff;
}

.page-game-guides__light-bg {
  background-color: #F5F7FA;
  color: #333333;
}

/* Responsive Design */

/* All images responsive */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All containers responsive */
.page-game-guides__section,
.page-game-guides__card,
.page-game-guides__container,
.page-game-guides__hero-section,
.page-game-guides__introduction-section,
.page-game-guides__guides-list-section,
.page-game-guides__tips-section,
.page-game-guides__cta-banner {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-game-guides {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-guides__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-game-guides__section-title {
    font-size: 2em;
  }

  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 400px;
  }

  .page-game-guides__hero-content {
    padding: 20px;
  }

  .page-game-guides__hero-description {
    font-size: 1em;
  }

  .page-game-guides__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-game-guides__guides-grid,
  .page-game-guides__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-guides__card-title {
    font-size: 1.2em;
  }

  .page-game-guides__card-image {
    height: 180px;
  }

  .page-game-guides__introduction-section,
  .page-game-guides__guides-list-section,
  .page-game-guides__tips-section,
  .page-game-guides__cta-banner {
    padding: 40px 0;
  }

  /* Ensure images in content areas are not smaller than 200px (if specifically targeted) */
  .page-game-guides__guide-card img {
    min-width: 200px;
    min-height: 200px;
  }

  /* Override specific image sizes if they conflict with min-size requirement */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}