/* style/game-guides.css */

/* Variables from custom palette */
:root {
  --suncity88-green-main: #11A84E;
  --suncity88-green-light: #22C768;
  --suncity88-card-bg: #11271B;
  --suncity88-bg-dark: #08160F;
  --suncity88-text-main: #F2FFF6;
  --suncity88-text-secondary: #A7D9B8;
  --suncity88-border: #2E7A4E;
  --suncity88-glow: #57E38D;
  --suncity88-gold: #F2C14E;
  --suncity88-divider: #1E3A2A;
  --suncity88-deep-green: #0A4B2C;
  --suncity88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-game-guides {
  background-color: var(--suncity88-bg-dark);
  color: var(--suncity88-text-main); /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.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(2em, 4vw, 2.8em);
  color: var(--suncity88-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

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

.page-game-guides__text-secondary {
  color: var(--suncity88-text-secondary);
}

.page-game-guides__text-bold {
  font-weight: bold;
}

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

.page-game-guides__btn-primary {
  background: var(--suncity88-button-gradient);
  color: #ffffff; /* White text on dark button */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

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

.page-game-guides__btn-secondary:hover {
  background: rgba(34, 199, 104, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-game-guides__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-game-guides__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  color: var(--suncity88-gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-game-guides__hero-description {
  font-size: 1.25em;
  color: var(--suncity88-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Video Section */
.page-game-guides__video-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for video section */
  text-align: center;
}

.page-game-guides__video-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: var(--suncity88-card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.page-game-guides__video-wrapper {
  display: block; /* Make the anchor tag block-level */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-game-guides__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.page-game-guides__video-caption {
  margin-top: 20px;
  font-style: italic;
  font-size: 1em;
}

/* Intro Section */
.page-game-guides__intro-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--suncity88-divider);
}

.page-game-guides__intro-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-game-guides__intro-list li {
  background-color: var(--suncity88-card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: relative;
  padding-left: 45px;
  font-size: 1.05em;
}

.page-game-guides__intro-list li::before {
  content: '✔';
  color: var(--suncity88-green-light);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 1.2em;
}

/* Game Guides Section */
.page-game-guides__game-guides-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--suncity88-divider);
}

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

.page-game-guides__game-card {
  background-color: var(--suncity88-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(17, 168, 78, 0.4);
}

.page-game-guides__game-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-game-guides__game-card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: var(--suncity88-gold);
}

.page-game-guides__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-game-guides__game-card-title a:hover {
  text-decoration: underline;
}

.page-game-guides__game-card-description {
  font-size: 0.95em;
  padding: 0 20px;
  flex-grow: 1;
  color: var(--suncity88-text-secondary);
}

.page-game-guides__game-card .page-game-guides__btn-secondary {
  margin: 20px;
  width: calc(100% - 40px);
}

/* Promotions Section */
.page-game-guides__promotions-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--suncity88-divider);
}

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

.page-game-guides__promo-card {
  background-color: var(--suncity88-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(17, 168, 78, 0.4);
}

.page-game-guides__promo-card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: var(--suncity88-green-light);
}

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

.page-game-guides__promo-card-description {
  font-size: 0.95em;
  padding: 0 20px;
  flex-grow: 1;
  color: var(--suncity88-text-secondary);
}

.page-game-guides__promo-card .page-game-guides__btn-secondary {
  margin: 20px;
  width: calc(100% - 40px);
}

.page-game-guides__promo-tips-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-game-guides__promo-tips-list li {
  background-color: var(--suncity88-deep-green);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  position: relative;
  padding-left: 40px;
  font-size: 1em;
}

.page-game-guides__promo-tips-list li::before {
  content: '💡';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
}

/* Safety Section */
.page-game-guides__safety-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--suncity88-divider);
}

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

.page-game-guides__safety-list li {
  background-color: var(--suncity88-card-bg);
  padding: 18px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  position: relative;
  padding-left: 45px;
  font-size: 1.05em;
}

.page-game-guides__safety-list li::before {
  content: '🛡️';
  color: var(--suncity88-gold);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 80px 0;
}

.page-game-guides__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-game-guides__faq-item {
  background-color: var(--suncity88-card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  overflow: hidden;
}

.page-game-guides__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--suncity88-text-main);
  background-color: var(--suncity88-deep-green);
  border-radius: 10px;
}

.page-game-guides__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-game-guides__faq-qtext {
  flex-grow: 1;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--suncity88-gold);
  transition: transform 0.3s ease;
}

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

.page-game-guides__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1.05em;
  color: var(--suncity88-text-secondary);
  border-top: 1px solid var(--suncity88-border);
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__main-title {
    font-size: clamp(2em, 4.5vw, 3.5em);
  }
  .page-game-guides__hero-description {
    font-size: 1.15em;
  }
  .page-game-guides__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section,
  .page-game-guides__video-section,
  .page-game-guides__intro-section,
  .page-game-guides__game-guides-section,
  .page-game-guides__promotions-section,
  .page-game-guides__safety-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-game-guides__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-game-guides__video-section {
    padding-top: 10px !important;
  }

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

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

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides a[class*="button"],
  .page-game-guides a[class*="btn"] {
    max-width: 100% !important;
    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__video-container {
    padding-bottom: 56.25% !important;
  }

  .page-game-guides__video,
  .page-game-guides__video-wrapper {
    width: 100% !important;
    height: 100% !important;
  }

  .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__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-game-guides__intro-list,
  .page-game-guides__game-cards-grid,
  .page-game-guides__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-game-guides__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-game-guides__faq-answer {
    font-size: 1em;
    padding: 10px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-game-guides__hero-section,
  .page-game-guides__intro-section,
  .page-game-guides__game-guides-section,
  .page-game-guides__promotions-section,
  .page-game-guides__safety-section,
  .page-game-guides__faq-section,
  .page-game-guides__conclusion-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .page-game-guides__section-title {
    margin-bottom: 25px;
  }

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