/* ===== Tài Xỉu Page Styles - Black Gold Theme ===== */

.page-tai-xiu {
  --tx-main: #FFF6D6;
  --tx-bg: #0A0A0A;
  --tx-card: #111111;
  --tx-border: #3A2A12;
  --tx-glow: #FFD36B;
  --tx-primary: #F2C14E;
  --tx-secondary: #FFD36B;
  --tx-btn: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* === Hero Section === */
.page-tai-xiu__hero-section {
  background: var(--tx-bg);
  padding: 10px 16px 24px;
  color: var(--tx-main);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

.page-tai-xiu__hero-image {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.page-tai-xiu__hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--tx-border);
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.15);
}

.page-tai-xiu__hero-content {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.page-tai-xiu__main-title {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--tx-main);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
  max-width: 100%;
}

.page-tai-xiu__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--tx-main);
  opacity: 0.9;
  max-width: 720px;
  margin: 0;
}

.page-tai-xiu__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-tai-xiu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__btn--primary {
  background: var(--tx-btn);
  color: #1a1a0a;
  border: 1px solid #f5cd6d;
}

.page-tai-xiu__btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.page-tai-xiu__btn--secondary {
  background: transparent;
  color: var(--tx-secondary);
  border: 2px solid var(--tx-secondary);
}

.page-tai-xiu__btn--secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-2px);
}

/* === Logo Grid === */
.page-tai-xiu__logo-section {
  background: #0d0d0d;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--tx-border);
  border-bottom: 1px solid var(--tx-border);
}

.page-tai-xiu__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  justify-items: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.page-tai-xiu__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 280px;
  width: 100%;
  background: var(--tx-card);
  border: 1px solid var(--tx-border);
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.3s ease;
}

.page-tai-xiu__logo-item:hover {
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.2);
}

.page-tai-xiu__logo-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

.page-tai-xiu__logo-cta {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--tx-btn);
  color: #1a1a0a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid #f5cd6d;
  transition: all 0.25s ease;
}

.page-tai-xiu__logo-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* Desktop 4+2 layout */
.page-tai-xiu__logo-item:nth-child(5) {
  grid-column: 2;
}

.page-tai-xiu__logo-item:nth-child(6) {
  grid-column: 3;
}

/* === Guide section === */
.page-tai-xiu__guide-section {
  background: var(--tx-bg);
  padding: 32px 0 48px;
}

.page-tai-xiu__guide-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-tai-xiu__guide-title {
  text-align: center;
  color: var(--tx-main);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
}

.page-tai-xiu__guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.page-tai-xiu__guide-figure {
  margin: 0;
  width: 100%;
}

.page-tai-xiu__guide-figure img {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--tx-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* === Media Queries === */

@media (max-width: 1024px) {
  .page-tai-xiu__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .page-tai-xiu__logo-item:nth-child(5),
  .page-tai-xiu__logo-item:nth-child(6) {
    grid-column: auto;
  }
  
  .page-tai-xiu__guide-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-tai-xiu__hero-section {
    padding: 8px 12px 16px;
  }
  
  .page-tai-xiu__hero-image img {
    aspect-ratio: 2 / 1;
    border-radius: 8px;
  }
  
  .page-tai-xiu__hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .page-tai-xiu__btn {
    width: 100%;
    max-width: 320px;
    font-size: 0.95rem;
    padding: 14px 24px;
  }
  
  .page-tai-xiu__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .page-tai-xiu__logo-item:nth-child(5),
  .page-tai-xiu__logo-item:nth-child(6) {
    grid-column: auto;
  }
  
  .page-tai-xiu__logo-cta {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  
  .page-tai-xiu__guide-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .page-tai-xiu__guide-grid {
    max-width: 100%;
  }
  
  .page-tai-xiu__guide-figure {
    max-width: 100%;
  }
  
  .page-tai-xiu__guide-figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Global mobile image constraint */
  .page-tai-xiu img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .page-tai-xiu {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-tai-xiu__hero-description {
    font-size: 1rem;
  }
  
  .page-tai-xiu__logo-grid {
    gap: 10px;
  }
  
  .page-tai-xiu__logo-item {
    padding: 10px;
    gap: 10px;
  }
  
  .page-tai-xiu__logo-cta {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}