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

.page-game-guides {
  background-color: var(--background-color);
  color: var(--text-main-color);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom for overall page */
}

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

.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px;
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-game-guides__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--text-main-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-description {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-game-guides__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: var(--text-main-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-game-guides__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  padding-top: 50px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-game-guides__text-block {
  font-size: 1em;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.7;
  opacity: 0.9;
}

.page-game-guides__text-block .highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-game-guides__introduction-section,
.page-game-guides__general-principles,
.page-game-guides__game-type-guides,
.page-game-guides__tips-section,
.page-game-guides__register-section {
  padding: 40px 0;
}

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

.page-game-guides__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-main-color);
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
}

.page-game-guides__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

.page-game-guides__game-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-main-color);
  display: flex;
  flex-direction: column;
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
}

.page-game-guides__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-game-guides__game-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__button-link {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-main-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push button to bottom */
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__button-link:hover {
  background-color: var(--secondary-color);
}

.page-game-guides__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-game-guides__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-game-guides__list-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-game-guides__cta-button--bottom {
  margin-top: 50px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__register-section {
  padding-bottom: 80px;
}

.page-game-guides__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-game-guides__step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--text-main-color);
}

.page-game-guides__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-game-guides__step-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__cta-button--large {
  margin-top: 60px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-image {
    max-height: 500px;
  }
  .page-game-guides__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-game-guides__section-title {
    font-size: clamp(1.6em, 4vw, 2.4em);
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }
  .page-game-guides__hero-image {
    max-height: 400px;
  }
  .page-game-guides__hero-content {
    margin-top: 20px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-game-guides__hero-description {
    font-size: 1em;
  }
  .page-game-guides__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 90%; /* Make buttons wider on mobile */
    margin-left: auto;
    margin-right: auto;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-game-guides__text-block {
    font-size: 0.95em;
  }
  .page-game-guides__introduction-section,
  .page-game-guides__general-principles,
  .page-game-guides__game-type-guides,
  .page-game-guides__tips-section,
  .page-game-guides__register-section {
    padding: 30px 0;
  }
  .page-game-guides__grid,
  .page-game-guides__game-grid,
  .page-game-guides__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-guides__card,
  .page-game-guides__game-card,
  .page-game-guides__step-card {
    padding: 20px;
  }
  .page-game-guides__card-title,
  .page-game-guides__game-title,
  .page-game-guides__list-title,
  .page-game-guides__step-title {
    font-size: 1.3em;
  }

  /* Responsive images */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .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__general-principles,
  .page-game-guides__game-type-guides,
  .page-game-guides__tips-section,
  .page-game-guides__register-section,
  .page-game-guides__grid,
  .page-game-guides__game-grid,
  .page-game-guides__step-by-step {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Specific overrides for padding if sections have 0 padding */
  .page-game-guides__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-game-guides__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Buttons responsive */
  .page-game-guides__cta-button,
  .page-game-guides__button-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-game-guides__cta-button--bottom,
  .page-game-guides__cta-button--large {
    width: 100% !important;
  }
  .page-game-guides__cta-button--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
}