:root {
  --okkinh-primary: #26A9E0;
  --okkinh-secondary: #FFFFFF;
  --okkinh-dark-bg: #1a1a2e; /* Body background from shared.css */
  --okkinh-light-text: #ffffff;
  --okkinh-dark-text: #333333;
  --okkinh-login-btn: #EA7C07;
}

.page-game-guides {
  background-color: var(--okkinh-dark-bg); /* Match body background */
  color: var(--okkinh-light-text); /* Light text on dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom for footer */
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom padding */
  text-align: center;
  background-color: var(--okkinh-dark-bg);
  color: var(--okkinh-light-text);
  overflow: hidden; /* Ensure no overflow */
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for large screens */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-game-guides__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-guides__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--okkinh-primary); /* Use brand color for H1 */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Enhance readability on varying backgrounds */
}

.page-game-guides__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--okkinh-light-text);
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

.page-game-guides__btn-primary:hover {
  background-color: #208bc2; /* Darker shade of primary */
  border-color: #208bc2;
}

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--okkinh-primary);
  color: var(--okkinh-secondary);
}

/* General Sections */
.page-game-guides__intro-section,
.page-game-guides__tips-section,
.page-game-guides__faq-section {
  background-color: var(--okkinh-secondary); /* Light background */
  color: var(--okkinh-dark-text); /* Dark text */
  padding: 60px 0;
}

.page-game-guides__game-categories,
.page-game-guides__responsible-gambling {
  background-color: var(--okkinh-primary); /* Primary color background */
  color: var(--okkinh-light-text); /* Light text */
  padding: 60px 0;
}

.page-game-guides__cta-bottom {
  background-color: var(--okkinh-primary); /* Primary color background */
  color: var(--okkinh-light-text); /* Light text */
  padding: 60px 0;
}

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

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-game-guides__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Game Categories Grid */
.page-game-guides__grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__card {
  background-color: var(--okkinh-secondary); /* White card background */
  color: var(--okkinh-dark-text); /* Dark text */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-game-guides__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
}

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

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

.page-game-guides__card-content p {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-guides__btn-text {
  color: var(--okkinh-primary);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  color: #208bc2;
}

.page-game-guides__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

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

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

.page-game-guides__text-block {
  background-color: var(--okkinh-secondary);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--okkinh-dark-text);
}

.page-game-guides__sub-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--okkinh-primary);
}

.page-game-guides__list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.page-game-guides__list li {
  margin-bottom: 8px;
}

.page-game-guides__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

/* Responsible Gambling Section */
.page-game-guides__list-responsible {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-game-guides__list-responsible li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--okkinh-light-text);
}

.page-game-guides__list-responsible li strong {
  color: var(--okkinh-secondary); /* White for strong text on dark background */
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: var(--okkinh-secondary); /* White background for FAQ items */
  color: var(--okkinh-dark-text); /* Dark text */
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  color: var(--okkinh-primary); /* Primary color for questions */
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
  border-bottom: 1px solid transparent; /* Remove border when open */
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--okkinh-primary);
}

.page-game-guides__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--okkinh-dark-text);
  background-color: var(--okkinh-secondary);
}

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

/* Hide default details marker */
.page-game-guides__faq-item > summary {
  list-style: none;
}
.page-game-guides__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* CTA Bottom Section */
.page-game-guides__cta-bottom {
  text-align: center;
  background-color: var(--okkinh-primary); /* Primary color background */
  color: var(--okkinh-light-text); /* Light text */
}

.page-game-guides__cta-bottom .page-game-guides__btn-primary {
  background-color: var(--okkinh-secondary); /* White button */
  color: var(--okkinh-primary); /* Primary text */
  border-color: var(--okkinh-secondary);
}

.page-game-guides__cta-bottom .page-game-guides__btn-primary:hover {
  background-color: #f0f0f0;
  color: var(--okkinh-primary);
  border-color: #f0f0f0;
}

.page-game-guides__cta-bottom .page-game-guides__btn-secondary {
  background-color: transparent;
  color: var(--okkinh-secondary);
  border-color: var(--okkinh-secondary);
}

.page-game-guides__cta-bottom .page-game-guides__btn-secondary:hover {
  background-color: var(--okkinh-secondary);
  color: var(--okkinh-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-game-guides__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-game-guides__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }
  .page-game-guides__card-image {
    height: 180px;
  }
}

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

  .page-game-guides__hero-section {
    padding: 10px 0 40px;
  }
  .page-game-guides__hero-content {
    padding: 0 15px;
  }
  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-game-guides__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px; /* Add padding to button container */
    box-sizing: border-box;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
  }

  .page-game-guides__intro-section,
  .page-game-guides__tips-section,
  .page-game-guides__faq-section,
  .page-game-guides__game-categories,
  .page-game-guides__responsible-gambling,
  .page-game-guides__cta-bottom {
    padding: 40px 0;
  }
  .page-game-guides__container {
    padding: 0 15px;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }
  .page-game-guides__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-game-guides__grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-guides__card-image {
    height: 150px;
  }
  .page-game-guides__card-title {
    font-size: 1.3rem;
  }
  .page-game-guides__card-content p {
    font-size: 0.95rem;
  }

  .page-game-guides__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-guides__sub-title {
    font-size: 1.2rem;
  }
  .page-game-guides__image-content {
    margin-top: 15px;
  }

  .page-game-guides__list-responsible li {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .page-game-guides__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-game-guides__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Responsive image/video specific overrides */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-image-wrapper,
  .page-game-guides__video-section, /* If video existed */
  .page-game-guides__video-container, /* If video existed */
  .page-game-guides__video-wrapper, /* If video existed */
  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Only add padding for main containers, not nested elements that already have it */
  }
  /* Ensure padding for main content sections */
  .page-game-guides__hero-section,
  .page-game-guides__intro-section,
  .page-game-guides__game-categories,
  .page-game-guides__tips-section,
  .page-game-guides__responsible-gambling,
  .page-game-guides__faq-section,
  .page-game-guides__cta-bottom {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-game-guides__hero-content,
  .page-game-guides__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}