/* style/tai-xiu.css */

/* --- Base Styles & Variables --- */
:root {
  --nn88-red-main: #C91F17;
  --nn88-red-accent: #E53935;
  --nn88-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --nn88-card-bg: #D32F2F;
  --nn88-section-bg: #B71C1C;
  --nn88-text-light: #FFF5E1;
  --nn88-text-dark: #333333; /* For contrast on light backgrounds */
  --nn88-border-gold: #F2B544;
  --nn88-glow-gold: #FFCC66;
  --nn88-gold: #F4D34D;
  --nn88-deep-red: #7A0E0E;
}

.page-tai-xiu {
  font-family: 'Arial', sans-serif;
  color: var(--nn88-text-light); /* Default text color for the page, assuming dark body background */
  background-color: transparent; /* Rely on shared.css body background */
}

.page-tai-xiu__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tai-xiu__section {
  padding: 60px 0;
  background-color: var(--nn88-section-bg); /* Default section background, dark red */
}

/* Specific dark background sections */
.page-tai-xiu__dark-bg {
  background-color: var(--nn88-section-bg); /* Ensure dark background */
  color: var(--nn88-text-light); /* Light text */
}

.page-tai-xiu__section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--nn88-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-tai-xiu__sub-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--nn88-gold);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tai-xiu p {
  line-height: 1.8;
  margin-bottom: 15px;
}

.page-tai-xiu ul,
.page-tai-xiu ol {
  list-style-position: inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-tai-xiu li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-tai-xiu a {
  color: var(--nn88-gold);
  text-decoration: none;
}

.page-tai-xiu a:hover {
  text-decoration: underline;
}

/* --- Hero Section --- */
.page-tai-xiu__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: var(--nn88-deep-red); /* Fallback background for hero */
}

.page-tai-xiu__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px; /* Space between image and content */
}

.page-tai-xiu__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-tai-xiu__hero-content {
  position: relative; /* Not absolute, for image-above-text flow */
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-tai-xiu__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: var(--nn88-gold);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tai-xiu__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--nn88-text-light);
}

.page-tai-xiu__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
}

.page-tai-xiu__cta-buttons--center {
  margin-top: 30px;
}

.page-tai-xiu__cta-buttons--inline {
  display: flex;
  gap: 10px;
  justify-content: flex-start; /* Align left in FAQ */
  flex-wrap: wrap;
  margin-top: 15px;
}

.page-tai-xiu__btn {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-tai-xiu__btn-primary {
  background: var(--nn88-button-gradient);
  color: var(--nn88-text-dark); /* Dark text on gold gradient for contrast */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__btn-secondary {
  background-color: transparent;
  color: var(--nn88-gold);
  border: 2px solid var(--nn88-gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__btn-secondary:hover {
  background-color: var(--nn88-gold);
  color: var(--nn88-text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-tai-xiu__btn-large {
  min-width: 250px;
}

/* --- Image Figures --- */
.page-tai-xiu__image-figure {
  margin: 30px auto;
  max-width: 680px;
  background-color: var(--nn88-deep-red);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--nn88-border-gold);
  box-sizing: border-box;
}

.page-tai-xiu__image-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.page-tai-xiu__image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--nn88-text-light);
  margin-top: 10px;
  line-height: 1.4;
}

/* --- Bet Type Grid --- */
.page-tai-xiu__bet-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-tai-xiu__bet-type-card {
  background-color: var(--nn88-card-bg); /* Dark red for cards */
  color: var(--nn88-text-light); /* Light text for cards */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--nn88-border-gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__bet-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__card-title {
  font-size: 1.5rem;
  color: var(--nn88-gold);
  margin-bottom: 10px;
  font-weight: 700;
}