/* style/game-bai.css */
.page-game-bai {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #ffffff;
}

.page-game-bai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-game-bai__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-game-bai__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-game-bai__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #26A9E0;
}

.page-game-bai__section-title--white {
  color: #ffffff;
}

.page-game-bai__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-game-bai__section-description--white {
  color: #f0f0f0;
}

.page-game-bai__btn-primary,
.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary {
  background-color: #EA7C07; /* Màu cam cho Đăng ký/Chơi ngay */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-game-bai__btn-primary:hover {
  background-color: #d16a06;
  border-color: #d16a06;
}

.page-game-bai__btn-primary--center {
  display: block;
  margin: 40px auto 0;
}

.page-game-bai__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-game-bai__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-game-bai__btn-secondary--center {
  display: block;
  margin: 40px auto 0;
}

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Adjusted to prevent double padding if body has it */
  padding-bottom: 60px;
}

.page-game-bai__hero-section .page-game-bai__container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-game-bai__hero-content {
  flex: 1;
  max-width: 50%;
  color: #ffffff;
}

.page-game-bai__hero-title {
  font-size: 3.2em;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff;
}

.page-game-bai__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-game-bai__hero-cta-buttons {
  display: flex;
  gap: 20px;
}

.page-game-bai__hero-image {
  flex: 1;
  max-width: 50%;
  text-align: center;
}

.page-game-bai__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: block;
}

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

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

.page-game-bai__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-game-bai__feature-item:hover {
  transform: translateY(-5px);
}

.page-game-bai__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
  box-shadow: 0 0 0 8px rgba(38, 169, 224, 0.2);
}

.page-game-bai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-game-bai__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-game-bai__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Game Tabs Section */
.page-game-bai__game-tabs-section {
  padding: 80px 0;
}

.page-game-bai__tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-game-bai__tab-button {
  background-color: #f0f0f0;
  color: #333333;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-game-bai__tab-button:hover {
  background-color: #e0e0e0;
}

.page-game-bai__tab-button.is-active {
  background-color: #EA7C07;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(234, 124, 7, 0.4);
}

.page-game-bai__game-panel {
  display: none;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.page-game-bai__game-panel.is-active {
  display: block;
}

.page-game-bai__game-panel-title {
  font-size: 2em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-align: center;
}

.page-game-bai__game-panel-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
  text-align: center;
}

.page-game-bai__game-iframes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.page-game-bai__game-iframe {
  border: 4px solid #EA7C07;
  border-radius: 12px;
  width: 100%;
  height: 400px;
  display: block;
}

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

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

.page-game-bai__step-item {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-game-bai__step-icon img {
  
  height: auto;
  display: block;
  margin: 0 auto;
}

.page-game-bai__step-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-game-bai__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

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

.page-game-bai__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  color: #ffffff;
}

.page-game-bai__strategy-item-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-game-bai__strategy-item-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

.page-game-bai__promo-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-game-bai__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-game-bai__promo-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: #26A9E0;
}

.page-game-bai__promo-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-game-bai__promo-card .page-game-bai__btn-primary {
  margin: 0 20px 20px;
}

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

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

.page-game-bai__trust-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  color: #ffffff;
}

.page-game-bai__trust-icon {
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__trust-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-game-bai__trust-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-game-bai__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-bai__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.page-game-bai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf7ff;
  border-bottom: 1px solid #d0e7f7;
  list-style: none;
  user-select: none; /* Prevent text selection on click */
}

.page-game-bai__faq-item[open] .page-game-bai__faq-question {
  background-color: #26A9E0;
  color: #ffffff;
  border-bottom-color: #1e87c0;
}

.page-game-bai__faq-item[open] .page-game-bai__faq-toggle {
  color: #ffffff;
}

.page-game-bai__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-bai__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

.page-game-bai__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  background-color: #fcfcfc;
}

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

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

.page-game-bai__blog-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

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

.page-game-bai__blog-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-game-bai__blog-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-game-bai__blog-meta {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 15px;
}

.page-game-bai__blog-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-game-bai__read-more {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

.page-game-bai__read-more:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-bai__hero-title {
    font-size: 2.8em;
  }
  .page-game-bai__hero-description {
    font-size: 1.1em;
  }
  .page-game-bai__section-title {
    font-size: 2.2em;
  }
  .page-game-bai__game-iframes-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

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

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

  .page-game-bai__hero-section {
    padding-top: 10px !important; /* Fixed to 10px */
    padding-bottom: 40px;
  }

  .page-game-bai__hero-section .page-game-bai__container {
    flex-direction: column-reverse; /* Image on top, content below */
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 20px;
  }

  .page-game-bai__hero-content {
    max-width: 100%;
  }

  .page-game-bai__hero-title {
    font-size: 2.2em;
    text-align: center;
  }

  .page-game-bai__hero-description {
    font-size: 1em;
    text-align: center;
  }

  .page-game-bai__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-game-bai__btn-primary,
  .page-game-bai__btn-secondary,
  .page-game-bai a[class*="button"],
  .page-game-bai 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 !important;
    padding-right: 15px !important;
  }

  .page-game-bai__hero-image {
    max-width: 100%;
  }

  .page-game-bai__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-game-bai__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-game-bai__intro-section,
  .page-game-bai__game-tabs-section,
  .page-game-bai__guide-section,
  .page-game-bai__strategy-section,
  .page-game-bai__promo-section,
  .page-game-bai__trust-section,
  .page-game-bai__faq-section,
  .page-game-bai__blog-section {
    padding: 50px 0;
  }

  .page-game-bai__features-grid,
  .page-game-bai__guide-steps,
  .page-game-bai__promo-grid,
  .page-game-bai__trust-grid,
  .page-game-bai__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(38, 169, 224, 0.2);
  }

  .page-game-bai__icon-box-media img {
    height: 100%; /* Ensure full height for object-fit */
  }

  .page-game-bai__feature-title {
    font-size: 1.3em;
  }

  .page-game-bai__tab-nav {
    flex-direction: column;
    gap: 10px;
  }

  .page-game-bai__tab-button {
    width: 100%;
    padding: 10px 15px;
  }

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

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

  .page-game-bai__game-iframes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__game-iframe {
    height: 300px;
  }

  .page-game-bai__step-icon img {
    
  }

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

  .page-game-bai__strategy-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-bai__strategy-item-title {
    font-size: 1.3em;
  }

  .page-game-bai__promo-image,
  .page-game-bai__blog-image {
    height: 180px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-game-bai__promo-title,
  .page-game-bai__blog-title {
    font-size: 1.2em;
  }

  .page-game-bai__trust-icon {
    max-width: 80px;
  }

  .page-game-bai__trust-title {
    font-size: 1.3em;
  }

  .page-game-bai__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  /* General image and container responsive rules */
  .page-game-bai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-bai__section,
  .page-game-bai__card,
  .page-game-bai__container,
  .page-game-bai__hero-cta-buttons,
  .page-game-bai__button-group,
  .page-game-bai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-game-bai__hero-cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
}