/* style/game-guides.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E0B14A;
  --text-dark: #333333;
  --text-light: #f8f8f8;
  --bg-light: #ffffff;
  --bg-dark: #0A2463;
  --border-color: #e0e0e0;
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

.page-game-guides h1, .page-game-guides h2, .page-game-guides h3, .page-game-guides h4, .page-game-guides h5, .page-game-guides h6 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--text-light);
}

.page-game-guides h2 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-game-guides h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-game-guides h3 {
  font-size: 1.8em;
  color: var(--primary-color);
}

.page-game-guides p {
  margin-bottom: 15px;
}

.page-game-guides a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-guides a:hover {
  color: var(--secondary-color);
}

.page-game-guides .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-game-guides section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-game-guides section:nth-of-type(even) {
  background-color: #f5f5f5;
}

/* Hero Section */
.page-game-guides .hero-section {
  background: linear-gradient(135deg, var(--primary-color), #2a4a90);
  color: var(--text-light);
  padding: 100px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-game-guides .hero-container {
  max-width: 900px;
}

.page-game-guides .hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-game-guides .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides .cta-button:hover {
  background: #ffc107; /* Lighter secondary color for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Section Intro */
.page-game-guides .section-intro .content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-game-guides .section-intro .text-content {
  flex: 1;
}

.page-game-guides .section-intro .image-content {
  flex: 1;
  text-align: center;
}

.page-game-guides .section-intro .image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Game Cards Grid */
.page-game-guides .section-games .game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-guides .game-card {
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-guides .game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-game-guides .game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  min-width: 200px;
  min-height: 200px;
}

.page-game-guides .game-card h3 {
  font-size: 1.5em;
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-game-guides .game-card h3 .game-link {
  color: var(--primary-color);
  text-decoration: none;
}

.page-game-guides .game-card h3 .game-link:hover {
  color: var(--secondary-color);
}

.page-game-guides .game-card p {
  padding: 0 20px;
  flex-grow: 1;
}

.page-game-guides .game-card ul {
  padding: 0 20px 15px 40px;
  margin-bottom: 15px;
  list-style-type: disc;
}

.page-game-guides .game-card li {
  margin-bottom: 5px;
}

.page-game-guides .game-card .btn-small {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  margin: 0 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-game-guides .game-card .btn-small:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Tips Section */
.page-game-guides .section-tips .tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-game-guides .tip-item {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides .tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-game-guides .tip-item h3 {
  color: var(--secondary-color);
  font-size: 1.4em;
  margin-bottom: 15px;
}

/* Register Section */
.page-game-guides .section-register {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-game-guides .section-register h2 {
  color: var(--secondary-color);
}

.page-game-guides .section-register h3 {
  color: var(--text-light);
}

.page-game-guides .section-register p, .page-game-guides .section-register li {
  color: var(--text-light);
}

.page-game-guides .section-register .content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-game-guides .section-register .text-content {
  flex: 1;
}

.page-game-guides .section-register .image-content {
  flex: 1;
  text-align: center;
}

.page-game-guides .section-register .image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-game-guides .section-register ol {
  margin-left: 20px;
  padding-left: 0;
  list-style-type: decimal;
}

.page-game-guides .section-register ol li {
  margin-bottom: 10px;
}

.page-game-guides .primary-cta {
  background: var(--secondary-color);
  color: var(--primary-color);
  margin-top: 30px;
}

.page-game-guides .primary-cta:hover {
  background: #ffc107;
}

/* FAQ Section */
.page-game-guides .section-faq {
  background-color: var(--bg-light);
}

.page-game-guides .faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-game-guides .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-light);
}

.page-game-guides .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-game-guides .faq-question:hover {
  background-color: #f0f0f0;
}

.page-game-guides .faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: var(--primary-color);
}

.page-game-guides .faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-game-guides .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-game-guides .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-guides h1 {
    font-size: 2.4em;
  }
  .page-game-guides h2 {
    font-size: 1.8em;
  }
  .page-game-guides h3 {
    font-size: 1.5em;
  }
  .page-game-guides .section-intro .content-wrapper,
  .page-game-guides .section-register .content-wrapper {
    flex-direction: column;
  }
  .page-game-guides .section-register .content-wrapper.reverse {
    flex-direction: column-reverse;
  }
  .page-game-guides .section-intro .image-content,
  .page-game-guides .section-register .image-content {
    margin-top: 30px;
  }
  .page-game-guides .game-cards-grid,
  .page-game-guides .tips-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-game-guides .hero-section {
    padding: 80px 15px;
  }
  .page-game-guides h1 {
    font-size: 2em;
  }
  .page-game-guides h2 {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-game-guides h3 {
    font-size: 1.3em;
  }
  .page-game-guides section {
    padding: 40px 0;
  }
  .page-game-guides .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-game-guides .game-card img {
    height: 180px;
  }
  .page-game-guides .faq-question {
    padding: 12px 15px;
  }
  .page-game-guides .faq-question h3 {
    font-size: 1em;
  }
  .page-game-guides .faq-toggle {
    font-size: 1.3em;
  }
  .page-game-guides .faq-item.active .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-game-guides h1 {
    font-size: 1.8em;
  }
  .page-game-guides h2 {
    font-size: 1.4em;
  }
  .page-game-guides h3 {
    font-size: 1.2em;
  }
  .page-game-guides .hero-content p {
    font-size: 1em;
  }
  .page-game-guides .cta-button {
    width: 100%;
    max-width: 280px;
  }
  .page-game-guides .game-card .btn-small {
    width: calc(100% - 40px);
    text-align: center;
  }
}