/* style/game-bai.css */
.page-game-bai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Default text color for dark body background */
}

/* Hero Section */
.page-game-bai__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 60px;
  background: #B71C1C; /* Custom background color */
}

.page-game-bai__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
}

.page-game-bai__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #FFF5E1; /* Text Main color */
}

.page-game-bai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold color for title */
  letter-spacing: 0.5px;
}

.page-game-bai__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main color */
}

.page-game-bai__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-game-bai__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red for button text */
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-bai__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  background: transparent;
  border: 2px solid #F2B544; /* Border color */
  color: #F4D34D; /* Gold color for text */
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-bai__btn-secondary:hover {
  background-color: #F2B544; /* Border color */
  color: #7A0E0E; /* Deep Red for text on hover */
}

.page-game-bai__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

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

/* Intro Section */
.page-game-bai__intro-section {
  padding: 80px 0;
  background: #C91F17; /* Main color */
  color: #FFF5E1; /* Text Main color */
}

.page-game-bai__dark-section {
  background: #C91F17; /* Main color */
  color: #FFF5E1; /* Text Main color */
}

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

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

.page-game-bai__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold color */
}

.page-game-bai__intro-section .page-game-bai__section-title {
  color: #F4D34D; /* Gold color */
}

.page-game-bai__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #FFF5E1; /* Text Main color */
}

.page-game-bai__feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-game-bai__feature-item {
  flex: 1 1 30%;
  min-width: 280px;
  text-align: center;
  padding: 25px;
  background: #D32F2F; /* Card BG color */
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-game-bai__icon-box-media {
  width: 240px;
  height: 240px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #F2B544; /* Border color */
  box-shadow: 0 0 0 5px rgba(255, 204, 102, 0.4); /* Glow effect */
}

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

.page-game-bai__feature-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold color */
}

.page-game-bai__feature-text {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main color */
}

/* Game Tabs Section */
.page-game-bai__game-tabs {
  padding: 80px 0;
  background: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for light background */
}

.page-game-bai__game-tabs .page-game-bai__section-title {
  color: #C91F17; /* Main color for title on light background */
}

.page-game-bai__tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-game-bai__tab-button {
  padding: 12px 25px;
  border: none;
  background-color: transparent;
  color: #555555;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.page-game-bai__tab-button:hover {
  color: #C91F17; /* Main color */
}

.page-game-bai__tab-button.is-active {
  color: #C91F17; /* Main color */
  border-bottom: 3px solid #C91F17; /* Main color */
  background-color: #f9f9f9;
}

.page-game-bai__game-panel {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-game-bai__game-panel-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding: 30px 0;
}

.page-game-bai__game-info {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-game-bai__game-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #C91F17; /* Main color */
}

.page-game-bai__game-description {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #333333;
}

.page-game-bai__game-media {
  flex: 1 1 45%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-game-bai__game-media img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-bai__game-trial-frame {
  border: 2px solid #C91F17; /* Main color */
  border-radius: 12px;
  width: 100%;
  height: 400px; /* Fixed height for iframe */
}

/* Guide Section */
.page-game-bai__guide-section {
  padding: 80px 0;
  background: #C91F17; /* Main color */
  color: #FFF5E1; /* Text Main color */
}

.page-game-bai__guide-section .page-game-bai__section-title {
  color: #F4D34D; /* Gold color */
}

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

.page-game-bai__guide-item {
  background: #D32F2F; /* Card BG color */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-game-bai__guide-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 5px rgba(255, 204, 102, 0.4); /* Glow effect */
}

.page-game-bai__guide-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold color */
}

.page-game-bai__guide-text {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main color */
}

.page-game-bai__guide-item img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
}

.page-game-bai__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Promo Section */
.page-game-bai__promo-section {
  padding: 80px 0;
  background: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-game-bai__promo-section .page-game-bai__section-title {
  color: #C91F17; /* Main color */
}

.page-game-bai__promo-section .page-game-bai__section-description {
  color: #555555;
}

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