/* style/game-guides.css */
:root {
  --ph365-primary: #F2C14E;
  --ph365-secondary: #FFD36B;
  --ph365-card-bg: #111111;
  --ph365-background: #0A0A0A;
  --ph365-text-main: #FFF6D6;
  --ph365-border: #3A2A12;
  --ph365-glow: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--ph365-text-main); /* Ensure light text on dark body */
  background-color: var(--ph365-background);
}

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

/* Ensure body padding-top is handled by shared.css, not here */

.page-game-guides__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.page-game-guides__dark-bg {
  background-color: var(--ph365-background);
  color: var(--ph365-text-main);
}

.page-game-guides__card {
  background-color: var(--ph365-card-bg);
  color: var(--ph365-text-main);
  border: 1px solid var(--ph365-border);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-game-guides__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--ph365-primary);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-game-guides__section-text {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ph365-text-main);
}

.page-game-guides__text-link {
  color: var(--ph365-secondary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-game-guides__text-link:hover {
  color: var(--ph365-primary);
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  box-shadow: 0 0 15px var(--ph365-secondary);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--ph365-primary);
  border: 2px solid var(--ph365-primary);
}

.page-game-guides__btn-secondary:hover {
  background: var(--ph365-primary);
  color: #0A0A0A;
  box-shadow: 0 0 15px var(--ph365-primary);
}

/* HERO Section */
.page-game-guides__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-game-guides__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 40px;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for aesthetic */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-text-content {
  text-align: center;
}

.page-game-guides__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 900;
  color: var(--ph365-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-game-guides__hero-description {
  font-size: 1.3em;
  color: var(--ph365-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Why Guides Section */
.page-game-guides__why-guides {
  padding-top: 80px;
}

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

.page-game-guides__feature-item {
  text-align: center;
  padding: 30px;
}

.page-game-guides__feature-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__feature-title {
  font-size: 1.8em;
  color: var(--ph365-secondary);
  margin-bottom: 15px;
}

.page-game-guides__feature-description {
  color: var(--ph365-text-main);
  font-size: 1em;
}

/* Categories Section */
.page-game-guides__categories {
  padding-top: 80px;
}

.page-game-guides__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-game-guides__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 20px;
  height: 100%;
}

.page-game-guides__category-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--ph365-primary);
}

.page-game-guides__category-icon {
  width: 30px; /* Allowed small icon size */
  height: 30px; /* Allowed small icon size */
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.7));
}

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

.page-game-guides__category-description {
  color: var(--ph365-text-main);
  font-size: 0.9em;
}

/* Tutorials Section */
.page-game-guides__tutorials {
  padding-top: 80px;
}

.page-game-guides__tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

.page-game-guides__tutorial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-game-guides__tutorial-item:nth-child(even) {
  flex-direction: column-reverse; /* Alternate image/text order */
}

.page-game-guides__tutorial-item img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-game-guides__tutorial-title {
  font-size: 2em;
  color: var(--ph365-secondary);
  margin-bottom: 15px;
}

.page-game-guides__tutorial-description {
  font-size: 1.1em;
  color: var(--ph365-text-main);
  max-width: 800px;
}

/* Advanced Strategies Section */
.page-game-guides__advanced-strategies {
  padding-top: 80px;
}

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

.page-game-guides__strategy-item {
  text-align: center;
  padding: 30px;
}

.page-game-guides__strategy-title {
  font-size: 1.8em;
  color: var(--ph365-primary);
  margin-bottom: 15px;
}

.page-game-guides__strategy-description {
  color: var(--ph365-text-main);
  font-size: 1em;
}

/* Mobile Gaming Section */
.page-game-guides__mobile-gaming {
  padding-top: 80px;
}

.page-game-guides__mobile-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-game-guides__mobile-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Responsible Gaming Section */
.page-game-guides__responsible-gaming {
  padding-top: 80px;
}

.page-game-guides__responsible-gaming-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding-top: 80px;
  text-align: left;
}

.page-game-guides__faq-section .page-game-guides__section-title {
  text-align: center;
}

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-game-guides__faq-item {
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--ph365-border);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-title {
  font-size: 1.2em;
  color: var(--ph365-text-main);
  margin: 0;
  flex-grow: 1;
}

.page-game-guides__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--ph365-primary);
  margin-left: 20px;
  transition: transform 0.3s ease;
}

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

.page-game-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  text-align: left;
  background-color: var(--ph365-card-bg);
  color: var(--ph365-text-main);
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-game-guides__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-game-guides__faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.page-game-guides__cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-game-guides__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Image specific styles - No filter allowed */
.page-game-guides img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block; /* Important for preventing extra space below images */
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__section-title {
    font-size: 2.2em;
  }

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

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

  .page-game-guides__features-grid,
  .page-game-guides__category-grid,
  .page-game-guides__strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-guides__section {
    padding: 40px 0;
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-game-guides__section-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

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

  .page-game-guides__hero-cta-buttons,
  .page-game-guides__mobile-cta-buttons,
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button containers */
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-game-guides__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
    padding-bottom: 40px;
  }

  .page-game-guides__hero-image {
    margin-bottom: 30px;
  }

  .page-game-guides__feature-item,
  .page-game-guides__category-card,
  .page-game-guides__strategy-item {
    padding: 20px;
  }

  .page-game-guides__tutorial-title {
    font-size: 1.6em;
  }

  .page-game-guides__tutorial-description {
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .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__faq-question {
    padding: 15px 20px;
  }

  .page-game-guides__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__section-title {
    font-size: 1.5em;
  }

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-game-guides__category-grid {
    grid-template-columns: 1fr;
  }

  .page-game-guides__tutorial-title {
    font-size: 1.4em;
  }
}