/* style/game-bai-phom.css */
.page-game-bai-phom {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-game-bai-phom__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-bottom: 40px;
}

.page-game-bai-phom__hero-slider {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-game-bai-phom__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.page-game-bai-phom__hero-slide.is-active {
  opacity: 1;
}

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

.page-game-bai-phom__hero-slider-prev,
.page-game-bai-phom__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  line-height: 1;
  border-radius: 4px;
}

.page-game-bai-phom__hero-slider-prev {
  left: 20px;
}

.page-game-bai-phom__hero-slider-next {
  right: 20px;
}

.page-game-bai-phom__hero-slider-prev::before {
  content: '‹';
}

.page-game-bai-phom__hero-slider-next::before {
  content: '›';
}

.page-game-bai-phom__hero-content {
  max-width: 900px;
  margin: -100px auto 0;
  text-align: center;
  padding: 20px;
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  position: relative;
  z-index: 5;
  box-shadow: 0 0 20px rgba(87, 227, 141, 0.5); /* Glow */
  border: 1px solid #2E7A4E; /* Border */
}

.page-game-bai-phom__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-game-bai-phom__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-game-bai-phom__cta-buttons--center {
  justify-content: center;
}

.page-game-bai-phom__btn-primary,
.page-game-bai-phom__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai-phom__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-bai-phom__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-game-bai-phom__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F;
  border: 2px solid #2AD16F;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.2);
}

.page-game-bai-phom__btn-secondary:hover {
  transform: translateY(-3px);
  background: #2AD16F;
  color: #F2FFF6;
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.4);
}

.page-game-bai-phom__content-section {
  padding: 50px 20px;
  margin-bottom: 40px;
}

.page-game-bai-phom__dark-bg {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

.page-game-bai-phom__home-content-box {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px;
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(87, 227, 141, 0.5);
  height: 700px; /* Fixed height for desktop */
  display: flex; /* To make inner scrollable */
  flex-direction: column;
}

.page-game-bai-phom__home-content-inner {
  flex-grow: 1;
  overflow-y: auto; /* Scrollable for desktop */
  padding-right: 15px; /* Space for scrollbar */
}

.page-game-bai-phom__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-game-bai-phom__home-content-inner::-webkit-scrollbar-track {
  background: #1E3A2A; /* Divider */
  border-radius: 10px;
}

.page-game-bai-phom__home-content-inner::-webkit-scrollbar-thumb {
  background: #2AD16F; /* Button top color */
  border-radius: 10px;
}

.page-game-bai-phom__heading {
  font-size: 2.2em;
  color: #F2C14E; /* Gold */
  margin-bottom: 25px;
  text-align: left;
  font-weight: 600;
  line-height: 1.3;
}

.page-game-bai-phom__heading--center {
  text-align: center;
}

.page-game-bai-phom p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-game-bai-phom strong {
  color: #F2C14E;
}

.page-game-bai-phom a {
  color: #2AD16F;
  text-decoration: none;
}

.page-game-bai-phom a:hover {
  text-decoration: underline;
}

.page-game-bai-phom__content-image-wrapper {
  margin: 30px auto;
  max-width: 100%;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-bai-phom__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

.page-game-bai-phom__image-caption {
  font-style: italic;
  color: #A7D9B8;
  margin-top: 10px;
  font-size: 0.95em;
}

.page-game-bai-phom__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-game-bai-phom__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05em;
  line-height: 1.6;
  color: #F2FFF6;
}

.page-game-bai-phom__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #2AD16F;
  font-weight: bold;
}

.page-game-bai-phom__guide-section {
  padding: 50px 20px;
  margin-bottom: 40px;
}

.page-game-bai-phom__guide-box {
  max-width: 1200px;
  margin: 40px auto 0;
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 0 25px rgba(87, 227, 141, 0.4);
}

.page-game-bai-phom__guide-grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.page-game-bai-phom__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 16px);
  text-align: center;
  text-decoration: none;
  color: #F2FFF6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.page-game-bai-phom__guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-bai-phom__guide-card--pos-1 { padding-top: 50px; }
.page-game-bai-phom__guide-card--pos-2 { padding-top: 25px; }
.page-game-bai-phom__guide-card--pos-3 { padding-top: 0px; }
.page-game-bai-phom__guide-card--pos-4 { padding-top: 25px; }
.page-game-bai-phom__guide-card--pos-5 { padding-top: 50px; }

.page-game-bai-phom__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical cards */
  object-fit: contain;
  display: block;
}

.page-game-bai-phom__blog-section {
  padding: 50px 20px;
}

.page-game-bai-phom__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.page-game-bai-phom__blog-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-game-bai-phom__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-bai-phom__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-game-bai-phom__blog-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 800 / 400;
}

.page-game-bai-phom__blog-title {
  font-size: 1.3em;
  color: #F2C14E; /* Gold */
  padding: 15px 20px 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-game-bai-phom__blog-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 20px 15px;
  line-height: 1.6;
}

.page-game-bai-phom__blog-date {
  font-size: 0.85em;
  color: #A7D9B8;
  padding: 0 20px 15px;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-game-bai-phom__hero-content {
    margin-top: -80px;
  }

  .page-game-bai-phom__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.5em);
  }

  .page-game-bai-phom__home-content-box {
    height: 600px;
    padding: 25px;
  }

  .page-game-bai-phom__heading {
    font-size: 2em;
  }

  .page-game-bai-phom__guide-card {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
  }

  .page-game-bai-phom__guide-grid {
    gap: 15px;
  }

  .page-game-bai-phom__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-game-bai-phom__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
  }

  .page-game-bai-phom__hero-slider {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile */
  }

  .page-game-bai-phom__hero-content {
    margin-top: -60px;
    padding: 15px;
    border-radius: 5px;
  }

  .page-game-bai-phom__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 10px;
  }

  .page-game-bai-phom__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-game-bai-phom__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-game-bai-phom__btn-primary,
  .page-game-bai-phom__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-game-bai-phom__content-section,
  .page-game-bai-phom__guide-section,
  .page-game-bai-phom__blog-section {
    padding: 30px 15px;
    margin-bottom: 30px;
  }

  .page-game-bai-phom__home-content-box {
    max-width: 100%;
    padding: 20px;
    height: auto; /* Full height for mobile */
    overflow-y: visible; /* No scrollbar for mobile */
    box-sizing: border-box;
  }

  .page-game-bai-phom__home-content-inner {
    height: auto;
    overflow-y: visible;
    padding-right: 0;
  }

  .page-game-bai-phom__heading {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-game-bai-phom p,
  .page-game-bai-phom__list-item {
    font-size: 1em;
    line-height: 1.6;
  }

  .page-game-bai-phom__guide-box {
    padding: 20px;
    margin-top: 30px;
  }

  .page-game-bai-phom__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: flex-start;
  }

  .page-game-bai-phom__guide-card {
    padding-top: 0 !important; /* Reset padding for mobile grid */
    flex: none;
    text-align: center;
  }

  .page-game-bai-phom__guide-card--pos-1,
  .page-game-bai-phom__guide-card--pos-2 {
    grid-column: span 3;
    max-width: 100%; /* Ensure they take full half */
  }

  .page-game-bai-phom__guide-card--pos-3,
  .page-game-bai-phom__guide-card--pos-4,
  .page-game-bai-phom__guide-card--pos-5 {
    grid-column: span 2;
    max-width: 100%; /* Ensure they take full third */
  }

  .page-game-bai-phom__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  /* General image responsiveness for all images within .page-game-bai-phom */
  .page-game-bai-phom img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-game-bai-phom__section,
  .page-game-bai-phom__card,
  .page-game-bai-phom__container,
  .page-game-bai-phom__cta-buttons,
  .page-game-bai-phom__button-group,
  .page-game-bai-phom__btn-container,
  .page-game-bai-phom__home-content-box,
  .page-game-bai-phom__guide-box,
  .page-game-bai-phom__blog-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}