/* style/game-guides.css */

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

.page-game-guides {
  background-color: var(--p3bet-vip-background); /* Dark background */
  color: var(--p3bet-vip-text-main); /* Light text for dark background */
  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__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for internal spacing */
  text-align: center;
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5); /* Slightly darken image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 60px 20px;
  color: var(--p3bet-vip-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-game-guides__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--p3bet-vip-gold);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
  text-transform: uppercase;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.page-game-guides__intro-text {
  font-size: 1.15rem;
  max-width: 700px;
  color: var(--p3bet-vip-text-secondary);
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-game-guides__btn-primary {
  background: var(--p3bet-vip-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-game-guides__btn-secondary:hover {
  background-color: var(--p3bet-vip-primary);
  color: #ffffff;
}

.page-game-guides__btn-text {
  color: var(--p3bet-vip-primary);
  border: none;
  padding: 8px 15px;
  background: none;
  text-decoration: underline;
}

.page-game-guides__btn-text:hover {
  color: var(--p3bet-vip-secondary);
}

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  color: var(--p3bet-vip-gold);
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-game-guides__section-description,
.page-game-guides__text-block {
  font-size: 1.05rem;
  color: var(--p3bet-vip-text-secondary);
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__sub-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--p3bet-vip-primary);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-game-guides__mini-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--p3bet-vip-text-main);
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: left;
}

.page-game-guides__intro-section,
.page-game-guides__categories-overview,
.page-game-guides__sport-betting-guide,
.page-game-guides__casino-guide,
.page-game-guides__fishing-slot-guide,
.page-game-guides__cockfighting-guide,
.page-game-guides__vip-promo-section,
.page-game-guides__security-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
  padding: 80px 0;
}

/* Background color variations */
.page-game-guides__dark-section {
  background-color: var(--p3bet-vip-card-bg);
  color: var(--p3bet-vip-text-main);
}

.page-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-game-guides__light-bg .page-game-guides__section-title {
  color: var(--p3bet-vip-primary);
  text-shadow: none;
}

.page-game-guides__light-bg .page-game-guides__section-description,
.page-game-guides__light-bg .page-game-guides__text-block,
.page-game-guides__light-bg .page-game-guides__card-description,
.page-game-guides__light-bg .page-game-guides__faq-question,
.page-game-guides__light-bg .page-game-guides__faq-answer p {
  color: #555555;
}

.page-game-guides__light-bg .page-game-guides__sub-title,
.page-game-guides__light-bg .page-game-guides__mini-title {
  color: var(--p3bet-vip-deep-green);
}

/* Feature List */
.page-game-guides__feature-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0 auto;
  max-width: 800px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-game-guides__feature-item {
  background-color: var(--p3bet-vip-deep-green);
  padding: 20px;
  border-radius: 8px;
  color: var(--p3bet-vip-text-main);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-game-guides__feature-item::before {
  content: '✅';
  font-size: 1.2em;
  color: var(--p3bet-vip-glow);
}

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

.page-game-guides__card {
  background-color: var(--p3bet-vip-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid var(--p3bet-vip-divider);
}

.page-game-guides__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--p3bet-vip-gold);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-game-guides__card-description {
  font-size: 0.95rem;
  color: var(--p3bet-vip-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Image and Text Blocks */
.page-game-guides__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.page-game-guides__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-game-guides__content-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-game-guides__text-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-game-guides__text-content .page-game-guides__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__faq-item {
  background-color: var(--p3bet-vip-deep-green);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--p3bet-vip-border);
  overflow: hidden;
}

.page-game-guides__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--p3bet-vip-text-main);
  background-color: var(--p3bet-vip-deep-green);
}

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

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

.page-game-guides__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: var(--p3bet-vip-glow);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  content: '−';
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--p3bet-vip-text-secondary);
  line-height: 1.8;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    padding: 40px 20px;
  }

  .page-game-guides__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .page-game-guides__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  }

  .page-game-guides__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-game-guides__image-text-block--reverse {
    flex-direction: column;
  }

  .page-game-guides__text-content {
    min-width: unset;
    width: 100%;
  }

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

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

  .page-game-guides__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-guides__hero-section {
    padding: 10px 0 40px 0;
  }

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

  .page-game-guides__intro-text {
    font-size: 1rem;
  }

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

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary,
  .page-game-guides__btn-text,
  .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__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-game-guides__section-description,
  .page-game-guides__text-block {
    font-size: 0.95rem;
  }

  .page-game-guides__sub-title {
    font-size: 1.4rem;
  }

  .page-game-guides__mini-title {
    font-size: 1.1rem;
  }

  .page-game-guides__intro-section,
  .page-game-guides__categories-overview,
  .page-game-guides__sport-betting-guide,
  .page-game-guides__casino-guide,
  .page-game-guides__fishing-slot-guide,
  .page-game-guides__cockfighting-guide,
  .page-game-guides__vip-promo-section,
  .page-game-guides__security-section,
  .page-game-guides__faq-section,
  .page-game-guides__cta-section {
    padding: 50px 0;
  }

  .page-game-guides__card {
    margin-bottom: 20px;
  }

  /* Mobile image responsiveness */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-guides__image-text-block .page-game-guides__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__card-image {
    height: 180px;
  }

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

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

  .page-game-guides__faq-toggle {
    font-size: 1.5rem;
  }

  .page-game-guides__feature-list {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-game-guides__feature-item {
    font-size: 1rem;
  }
}