/* ================================================================
   HUAYLAO Data Hub — Frontend CSS V3.1
   Theme: Modern Thai Lottery Results Portal
   Typography: Google Font Kanit
   Enhanced with Motion, Premium Icons & Image Assets
   Strictly scoped to .huaylao-*, body.huaylao-*, and #huaylao-*
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

body.huaylao-portal-v3,
.huaylao-app,
.huaylao-site-header,
.huaylao-bottom-nav,
.huaylao-site-footer {
  --h-font: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Tahoma, sans-serif;
  --h-red: #9f111b;
  --h-red-dark: #7e0d14;
  --h-gold: #b88922;
  --h-gold-light: #dfb743;
  --h-gold-gradient: linear-gradient(135deg, #dfb743 0%, #b88922 50%, #946c10 100%);
  --h-red-gradient: linear-gradient(135deg, #a8131d 0%, #870d14 100%);
  --h-text: #17171c;
  --h-muted: #5e5e69;
  --h-line: #e2ded9;
  --h-bg-main: #ffffff;
  --h-bg-warm: #f6f3ee;
  --h-bg-neutral: #ede8e2;
  --h-green: #20723e;
  --h-amber: #a36b12;
  --h-max: 1260px;
  font-family: var(--h-font);
  color: var(--h-text);
  -webkit-font-smoothing: antialiased;
}

body.huaylao-portal-v3 {
  background-color: var(--h-bg-warm);
  margin: 0;
  padding: 0;
}

body.huaylao-portal-v3 .site-main {
  background: transparent;
  min-height: 50vh;
}

.huaylao-app *,
.huaylao-site-header *,
.huaylao-bottom-nav *,
.huaylao-site-footer * {
  box-sizing: border-box;
  font-family: var(--h-font);
}

/* Base App Container */
.huaylao-app {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  line-height: 1.6;
}

.huaylao-container {
  max-width: var(--h-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ================================================================
   SUPPRESS THEME HEADER & DUPLICATE H1 PAGE TITLE
   ================================================================ */
/* Hide Hello Elementor theme header */
body.huaylao-custom-header-active #site-header,
body.huaylao-custom-header-active .site-header,
body.huaylao-custom-header-active header#site-header,
body.huaylao-custom-header-active header.site-header,
body.huaylao-custom-header-active .site-navigation-toggle,
body.huaylao-custom-header-active .site-navigation-toggle-holder,
body.home #site-header,
body.home .site-header,
body.home .site-navigation-toggle,
header#site-header:not(.huaylao-site-header),
header.site-header:not(.huaylao-site-header) {
  display: none !important;
}

/* Hide duplicate top H1 / page title generated by WordPress / Hello Elementor */
.page-header,
.entry-header,
h1.entry-title,
h1.page-title,
.entry-title,
.page-title,
body.huaylao-portal-v3 .page-header,
body.huaylao-portal-v3 .entry-header,
body.huaylao-portal-v3 h1.entry-title,
body.huaylao-portal-v3 .entry-title,
body.huaylao-custom-header-active .page-header,
body.huaylao-custom-header-active .entry-header,
body.huaylao-custom-header-active h1.entry-title,
body.huaylao-custom-header-active .entry-title,
body.home .page-header,
body.home .entry-header,
body.home h1.entry-title,
body.home .entry-title,
header.page-header:not(.huaylao-site-header),
header.entry-header:not(.huaylao-site-header) {
  display: none !important;
}

/* ================================================================
   KEYFRAMES & MICRO-ANIMATIONS
   ================================================================ */
@keyframes huaylao-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(32, 114, 62, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(32, 114, 62, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(32, 114, 62, 0); }
}

@keyframes huaylao-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes huaylao-badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.huaylao-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  margin-right: 6px;
  animation: huaylao-pulse 2s infinite ease-in-out;
}

/* Premium Icons */
.huaylao-icon-clock,
.huaylao-icon-trophy,
.huaylao-icon-cal,
.huaylao-icon-star,
.huaylao-icon-check,
.huaylao-icon-search,
.huaylao-icon-history,
.huaylao-icon-radar,
.huaylao-icon-heading {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -3px;
}

.huaylao-icon-trophy,
.huaylao-icon-star {
  stroke: var(--h-gold);
  fill: rgba(184, 137, 34, 0.15);
}

.huaylao-icon-heading {
  color: var(--h-red);
  margin-right: 4px;
}

.huaylao-icon-radar {
  color: var(--h-red);
}

/* ================================================================
   HEADER V3 — Portal Header with Brand Bar & Nav Bar
   ================================================================ */
.huaylao-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--h-line);
}

.huaylao-brand-bar {
  background: #ffffff;
  border-bottom: 1px solid #ede8e3;
}

.huaylao-brand-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.huaylao-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--h-red);
}

.huaylao-brand-logo-only {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 0;
}

.huaylao-logo-img {
  display: block;
}

.huaylao-logo-img.huaylao-logo-default {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--h-gold-light);
  box-shadow: 0 4px 10px rgba(184, 137, 34, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.huaylao-brand:hover .huaylao-logo-img.huaylao-logo-default {
  transform: rotate(5deg) scale(1.05);
}

/* Custom logo display: full image, no circular crop, no badge distortion */
.huaylao-logo-img.huaylao-logo-custom {
  width: auto;
  max-width: var(--h-logo-w, 200px);
  height: auto;
  max-height: var(--h-logo-h, 65px);
  object-fit: contain;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.huaylao-brand-logo-only:hover .huaylao-logo-img.huaylao-logo-custom {
  transform: scale(1.02);
  opacity: 0.95;
}

.huaylao-brand-text {
  display: flex;
  flex-direction: column;
}

.huaylao-brand-name {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--h-red);
}

.huaylao-brand-name span {
  color: var(--h-gold);
  font-weight: 800;
  font-size: 20px;
}

.huaylao-brand-tagline {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--h-muted);
}

.huaylao-brand-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.huaylao-header-update {
  margin: 0;
  font-size: 13px;
  color: var(--h-muted);
  background: #fbf9f7;
  padding: 6px 14px;
  border: 1px solid #ede7e2;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.huaylao-header-update strong {
  color: var(--h-text);
  font-weight: 700;
}

/* Navigation Bar */
.huaylao-nav-bar {
  background: var(--h-red-gradient);
  box-shadow: 0 4px 14px rgba(159, 17, 27, 0.16);
}

.huaylao-nav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 48px;
  flex-wrap: nowrap;
}

.huaylao-nav-bar a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.huaylao-nav-bar a:hover,
.huaylao-nav-bar a:focus-visible,
.huaylao-nav-bar a.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-bottom-color: var(--h-gold-light);
  outline: none;
}

/* Mobile Menu Button — STRICTLY HIDDEN ON DESKTOP */
.huaylao-menu-button {
  display: none !important;
  width: 44px;
  height: 44px;
  border: 1px solid var(--h-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--h-red);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.huaylao-menu-button:hover {
  background: #fcf8f6;
  border-color: var(--h-red);
}

.huaylao-menu-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================================================================
   SECTIONS & ALTERNATING BACKGROUNDS
   ================================================================ */
.huaylao-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.huaylao-bg-white {
  background: #ffffff;
}

.huaylao-bg-warm {
  background: var(--h-bg-warm);
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
}

.huaylao-bg-neutral {
  background: var(--h-bg-neutral);
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
}

.huaylao-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.huaylao-section h2 {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--h-text);
  letter-spacing: -0.01em;
}

.huaylao-section-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--h-muted);
  font-weight: 400;
}

.huaylao-head-link {
  color: var(--h-red);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.huaylao-head-link:hover {
  text-decoration: underline;
  transform: translateX(3px);
}

/* ================================================================
   HERO & MODERN ANNOUNCEMENT BOARD WITH MOTION & SEAL IMAGE
   ================================================================ */
.huaylao-section-hero {
  padding-top: 36px;
  padding-bottom: 44px;
}

.huaylao-hero-heading {
  margin-bottom: 22px;
}

.huaylao-hero-heading h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  color: var(--h-red);
  letter-spacing: -0.02em;
}

.huaylao-hero-subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--h-muted);
  font-weight: 400;
}

/* Announcement Board */
.huaylao-announcement-board {
  background: #ffffff;
  border: 2px solid var(--h-red);
  box-shadow: 0 16px 40px rgba(159, 17, 27, 0.09);
  padding: 30px 34px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.huaylao-announcement-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #9f111b 0%, #dfb743 35%, #ffffff 50%, #dfb743 65%, #9f111b 100%);
  background-size: 200% 100%;
  animation: huaylao-shimmer 4s infinite linear;
}

.huaylao-announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--h-line);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.huaylao-announcement-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.huaylao-seal-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(184, 137, 34, 0.3));
  border-radius: 50%;
  background: #fff;
  animation: huaylao-badge-float 4s infinite ease-in-out;
}

.huaylao-announcement-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--h-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.huaylao-announcement-title {
  margin: 0 0 4px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  color: var(--h-text);
  line-height: 1.15;
}

.huaylao-announcement-draw {
  margin: 0;
  font-size: 15px;
  color: var(--h-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.huaylao-announcement-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.huaylao-announcement-badge.is-done {
  background: #eaf6ed;
  color: var(--h-green);
  border: 1px solid #c2e5cd;
}

.huaylao-announcement-badge.is-wait {
  background: #fef8eb;
  color: var(--h-amber);
  border: 1px solid #fae1b3;
}

/* Main Prize Digit Boxes with Motion */
.huaylao-hero-main-prize {
  margin-bottom: 26px;
}

.huaylao-prize-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--h-gold);
  margin-bottom: 12px;
}

.huaylao-main-digits {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.huaylao-digit-cell {
  width: 64px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #221716;
  color: var(--h-red);
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  border-radius: 6px;
  box-shadow: inset 0 -4px 0 #ede8e3, 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.huaylao-digit-cell:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--h-red);
  box-shadow: 0 10px 20px rgba(159, 17, 27, 0.18);
}

/* Secondary Prizes */
.huaylao-hero-sub-prizes {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.huaylao-sub-prize-box {
  min-width: 170px;
  padding: 14px 22px;
  background: var(--h-bg-warm);
  border: 1px solid var(--h-line);
  border-left: 5px solid var(--h-red);
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.huaylao-sub-prize-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.huaylao-sub-prize-3 {
  border-left-color: var(--h-red);
}

.huaylao-sub-prize-2 {
  border-left-color: var(--h-gold);
}

.huaylao-sub-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--h-muted);
  margin-bottom: 4px;
}

.huaylao-sub-num {
  display: block;
  font-size: 34px;
  font-weight: 900;
  color: var(--h-text);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Announcement Footer & Actions */
.huaylao-announcement-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--h-line);
  padding-top: 20px;
  flex-wrap: wrap;
}

.huaylao-announcement-timestamp {
  margin: 0;
  font-size: 14px;
  color: var(--h-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.huaylao-announcement-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.huaylao-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.huaylao-btn-primary {
  background: var(--h-red-gradient);
  color: #ffffff;
  border: 2px solid var(--h-red);
}

.huaylao-btn-primary:hover,
.huaylao-btn-primary:focus-visible {
  background: var(--h-red-dark);
  border-color: var(--h-red-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(159, 17, 27, 0.25);
}

.huaylao-btn-ghost {
  background: #ffffff;
  color: var(--h-red);
  border: 2px solid var(--h-red);
}

.huaylao-btn-ghost:hover,
.huaylao-btn-ghost:focus-visible {
  background: #fff6f6;
  color: var(--h-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(159, 17, 27, 0.12);
}

.huaylao-btn:active {
  transform: translateY(0);
}

.huaylao-announcement-empty {
  padding: 24px 0;
  text-align: center;
}

.huaylao-empty-text {
  font-size: 16px;
  color: var(--h-muted);
  margin-bottom: 18px;
}

/* ================================================================
   NEXT LOTTERY STRIP — Compact Horizontal Strip
   ================================================================ */
.huaylao-section-strip {
  padding-top: 36px;
  padding-bottom: 36px;
}

.huaylao-next-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.huaylao-strip-card {
  min-width: 200px;
  background: #ffffff;
  border: 1px solid var(--h-line);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.huaylao-strip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.huaylao-strip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.huaylao-strip-time {
  font-size: 24px;
  line-height: 1;
  color: var(--h-red);
  font-weight: 900;
}

.huaylao-strip-name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--h-text);
}

.huaylao-strip-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--h-amber);
  background: #fdf6ec;
  padding: 2px 8px;
  border-radius: 4px;
}

.huaylao-recent-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.huaylao-recent-label {
  font-weight: 800;
  color: var(--h-text);
}

.huaylao-recent-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.huaylao-recent-item {
  background: #ffffff;
  border: 1px solid var(--h-line);
  padding: 4px 12px;
  border-radius: 6px;
  color: var(--h-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.huaylao-recent-item strong {
  color: var(--h-text);
}

/* ================================================================
   LATEST RESULTS — Lottery Result Sheet Blocks with Motion
   ================================================================ */
.huaylao-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.huaylao-result-sheet {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-top: 5px solid var(--h-red);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  min-height: 255px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.huaylao-result-sheet:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.huaylao-sheet-head {
  margin-bottom: 12px;
}

.huaylao-sheet-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.huaylao-sheet-title a {
  color: var(--h-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.huaylao-sheet-title a:hover {
  color: var(--h-red);
}

.huaylao-sheet-date {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--h-muted);
}

.huaylao-sheet-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--h-line);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.huaylao-sheet-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--h-muted);
}

.huaylao-sheet-main-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--h-red);
  letter-spacing: 0.02em;
}

.huaylao-sheet-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.huaylao-sheet-sub-item {
  background: var(--h-bg-warm);
  border: 1px solid #eee9e3;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px;
}

.huaylao-sheet-sub-item span {
  font-size: 12px;
  color: var(--h-muted);
  font-weight: 600;
}

.huaylao-sheet-sub-item strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--h-text);
}

.huaylao-sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f2ede8;
  font-size: 13px;
}

.huaylao-sheet-status {
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}

.huaylao-sheet-status.is-done {
  color: var(--h-green);
}

.huaylao-sheet-status.is-wait {
  color: var(--h-amber);
}

.huaylao-sheet-link {
  color: var(--h-red);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.huaylao-sheet-link:hover {
  text-decoration: underline;
}

/* ================================================================
   NUMBER CHECKER — High-contrast Utility Section
   ================================================================ */
.huaylao-checker-box {
  max-width: 960px;
  margin: 0 auto;
}

.huaylao-checker-head {
  text-align: center;
  margin-bottom: 24px;
}

.huaylao-checker-head h2 {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 6px;
}

.huaylao-checker-head p {
  margin: 0;
  color: var(--h-muted);
  font-size: 15px;
}

.huaylao-checker-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: flex-end;
}

.huaylao-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--h-text);
}

.huaylao-form-group select,
.huaylao-form-group input {
  width: 100%;
  min-height: 52px;
  border: 2px solid #d5cec8;
  background: #ffffff;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 17px;
  color: var(--h-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.huaylao-form-group select:focus,
.huaylao-form-group input:focus {
  outline: none;
  border-color: var(--h-red);
  box-shadow: 0 0 0 3px rgba(159, 17, 27, 0.15);
}

.huaylao-btn-checker,
button.huaylao-btn-checker,
.huaylao-checker-form button.huaylao-btn-checker {
  min-height: 52px;
  background: var(--h-red-gradient) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 0 28px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(159, 17, 27, 0.28) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.huaylao-btn-checker *,
button.huaylao-btn-checker * {
  color: #ffffff !important;
}

.huaylao-btn-checker svg,
button.huaylao-btn-checker svg,
.huaylao-btn-checker .huaylao-icon-search {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2.5 !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}

.huaylao-btn-checker:hover,
.huaylao-btn-checker:focus-visible,
button.huaylao-btn-checker:hover,
button.huaylao-btn-checker:focus-visible {
  background: var(--h-red-dark) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(126, 13, 20, 0.35) !important;
}

.huaylao-btn-checker:hover *,
button.huaylao-btn-checker:hover * {
  color: #ffffff !important;
}

.huaylao-btn-checker:hover svg,
button.huaylao-btn-checker:hover svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.huaylao-check-result-panel {
  margin-top: 20px;
  background: #ffffff;
  border: 1px solid var(--h-line);
  padding: 22px 26px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.huaylao-check-winner {
  color: var(--h-green);
}

.huaylao-check-loser {
  color: var(--h-muted);
}

/* ================================================================
   HISTORY TABLE
   ================================================================ */
.huaylao-table-responsive {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 8px;
}

.huaylao-history-table {
  width: 100%;
  border-collapse: collapse;
}

.huaylao-history-table th {
  background: var(--h-red-gradient);
  color: #ffffff;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.huaylao-history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--h-line);
  font-size: 15px;
}

.huaylao-history-table tbody tr:nth-child(even) {
  background: #faf8f5;
}

.huaylao-history-table tbody tr {
  transition: background-color 0.15s ease;
}

.huaylao-history-table tbody tr:hover {
  background: #f5f0ec;
}

.huaylao-td-name {
  font-weight: 700;
  color: var(--h-text);
}

.huaylao-td-main strong {
  font-size: 20px;
  color: var(--h-red);
  font-weight: 900;
}

.huaylao-td-sub {
  font-weight: 700;
  color: var(--h-text);
}

.huaylao-table-link {
  color: var(--h-red);
  font-weight: 700;
  text-decoration: none;
}

.huaylao-table-link:hover {
  text-decoration: underline;
}

/* ================================================================
   STATISTICS — Clear Metrics or Tasteful Empty
   ================================================================ */
.huaylao-stats-tasteful-empty {
  padding: 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 8px;
  color: var(--h-muted);
  font-size: 15px;
}

.huaylao-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.huaylao-stat-block {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-top: 4px solid var(--h-red);
  padding: 24px 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.huaylao-stat-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.huaylao-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--h-gold);
  margin-bottom: 8px;
}

.huaylao-stat-digit {
  display: block;
  font-size: 46px;
  line-height: 1;
  color: var(--h-red);
  font-weight: 900;
  margin-bottom: 8px;
}

.huaylao-stat-detail {
  margin: 0;
  font-size: 14px;
  color: var(--h-muted);
}

.huaylao-stat-disclaimer {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--h-muted);
  text-align: center;
}

/* ================================================================
   7. ARTICLES PORTAL V3 — Modern Magazine Cards
   ================================================================ */
.huaylao-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.huaylao-article-card {
  border: 1px solid rgba(226, 220, 210, 0.85);
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  padding: 12px 12px 16px 12px;
  box-shadow: 0 4px 18px rgba(23, 23, 28, 0.04), 0 1px 3px rgba(23, 23, 28, 0.02);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.huaylao-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -4px rgba(23, 23, 28, 0.1), 0 6px 16px -2px rgba(184, 134, 11, 0.08);
  border-color: rgba(212, 160, 23, 0.45);
}

.huaylao-article-card a.huaylao-article-card-link,
.huaylao-article-card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: var(--h-text);
  text-decoration: none;
}

.huaylao-article-media {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: #f4efe6;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.huaylao-article-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.huaylao-article-card:hover .huaylao-article-media img {
  transform: scale(1.045);
}

.huaylao-article-info {
  padding: 14px 6px 2px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.huaylao-article-card-title,
.huaylao-article-info h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: #1a1917;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.huaylao-article-card:hover .huaylao-article-card-title,
.huaylao-article-card:hover .huaylao-article-info h3 {
  color: var(--h-red);
}

.huaylao-article-card-desc,
.huaylao-article-info p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.62;
  color: #55514b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.huaylao-article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid #f0eae1;
  font-size: 12.5px;
  color: #7d786f;
  font-weight: 500;
}

.huaylao-article-card-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #38342c;
  font-weight: 600;
}

.huaylao-article-card-author svg {
  width: 14px;
  height: 14px;
  color: var(--h-red);
  flex-shrink: 0;
}

.huaylao-article-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8c867b;
  font-size: 12px;
}

.huaylao-article-card-date svg {
  width: 14px;
  height: 14px;
  color: var(--h-gold);
  flex-shrink: 0;
}

.huaylao-copy {
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.85;
}

.huaylao-copy p {
  margin: 0 0 1em;
}

.huaylao-credit {
  font-size: 14px;
  color: var(--h-muted);
  margin-top: 14px;
}

.huaylao-credit a {
  color: var(--h-red);
  font-weight: 700;
  text-decoration: none;
}

.huaylao-credit a:hover {
  text-decoration: underline;
}

/* ================================================================
   FOOTER V3 — Dark Integrated Footer
   ================================================================ */
.huaylao-site-footer {
  background: #1c1718;
  color: #cfc7c3;
  padding: 48px 0 38px;
  border-top: 4px solid var(--h-red);
}

.huaylao-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 24px;
  margin-bottom: 22px;
}

.huaylao-footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.huaylao-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.huaylao-footer-brand-link:hover {
  opacity: 0.9;
}

.huaylao-footer-logo-img {
  max-height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  border-radius: 6px;
}

.huaylao-footer-logo-default {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.huaylao-footer-brand-text {
  display: inline-block;
}

.huaylao-footer-brand {
  font-size: 30px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

.huaylao-footer-brand span {
  color: var(--h-gold-light);
}

.huaylao-footer-tagline {
  margin: 8px 0 0;
  color: #a39893;
  font-size: 14px;
}

.huaylao-footer-nav {
  display: flex;
  gap: 16px 22px;
  flex-wrap: wrap;
}

.huaylao-footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.15s ease;
}

.huaylao-footer-nav a:hover {
  color: var(--h-gold-light);
}

.huaylao-footer-bottom {
  font-size: 13px;
  color: #a39893;
  line-height: 1.6;
}

.huaylao-footer-bottom .huaylao-credit {
  color: #bfb5b0;
  margin-top: 0;
  margin-bottom: 6px;
}

.huaylao-footer-bottom .huaylao-credit a {
  color: var(--h-gold-light);
}

.huaylao-footer-disclaimer {
  margin: 4px 0;
}

.huaylao-footer-copy {
  margin: 6px 0 0;
  color: #857b76;
}

/* ================================================================
   MOBILE BOTTOM NAVIGATION — Hidden on Desktop
   ================================================================ */
.huaylao-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--h-line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}

.huaylao-bottom-nav a {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #56515a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.huaylao-bottom-nav a:hover,
.huaylao-bottom-nav a:focus-visible {
  color: var(--h-red);
}

.huaylao-bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Other lists & misc */
.huaylao-link-list {
  border: 1px solid var(--h-line);
  background: #ffffff;
  border-radius: 8px;
}

.huaylao-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--h-line);
  color: var(--h-text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.huaylao-link-list a:hover {
  background: #fbf9f6;
}

.huaylao-link-list a:last-child {
  border-bottom: 0;
}

.huaylao-breadcrumb {
  margin: 18px 0;
  color: var(--h-muted);
  font-size: 14px;
}

.huaylao-breadcrumb a {
  color: var(--h-red);
  text-decoration: none;
}

/* ================================================================
   ADVERTISEMENT BANNERS & SPONSOR SYSTEM
   ================================================================ */
.huaylao-ad {
  margin: 24px auto;
  text-align: center;
  position: relative;
  max-width: 100%;
  clear: both;
}

.huaylao-ad:empty {
  display: none !important;
}

.huaylao-ad-link {
  display: inline-block;
  position: relative;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  vertical-align: middle;
  line-height: 0;
  text-decoration: none;
}

.huaylao-ad-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.huaylao-ad-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.huaylao-ad-sponsor-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.85);
  color: #fbbf24;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  border: 1px solid rgba(251, 191, 36, 0.35);
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.huaylao-ad-inner {
  display: inline-block;
  max-width: 100%;
}

/* Floating Bottom Sticky Bar (WOW VIP Position) */
.huaylao-ad-floating {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.98) 100%);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-top: 3px solid var(--h-red);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  animation: huaylaoSlideUp 0.35s ease-out;
  margin: 0 !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.huaylao-has-bottom-nav .huaylao-ad-floating {
  bottom: 62px;
}

.huaylao-ad-floating .huaylao-ad-link {
  max-height: 70px;
  box-shadow: none;
}

.huaylao-ad-floating .huaylao-ad-img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.huaylao-ad-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 9995;
}

.huaylao-ad-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: translateY(-50%) scale(1.1);
}

@keyframes huaylaoSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================================================================
   RESPONSIVE BREAKPOINTS & STRICT DESKTOP RULES
   ================================================================ */

/* DESKTOP (>= 1024px): MANDATORY RULE — NO HAMBURGER ICON */
@media (min-width: 1024px) {
  .huaylao-menu-button {
    display: none !important;
  }
  .huaylao-nav-bar {
    display: block !important;
  }
  .huaylao-bottom-nav {
    display: none !important;
  }
}

/* TABLET & SMALL DESKTOP (1024px - 1180px) */
@media (max-width: 1180px) {
  .huaylao-sheet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* TABLET & MOBILE (< 1024px) */
@media (max-width: 1023px) {
  .huaylao-header-update {
    display: none;
  }
  .huaylao-menu-button {
    display: inline-flex !important;
  }
  .huaylao-nav-bar {
    display: none;
  }
  .huaylao-nav-bar.is-open {
    display: block !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  }
  .huaylao-nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
  }
  .huaylao-nav-bar a {
    width: 100%;
    min-height: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .huaylao-sheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .huaylao-checker-form {
    grid-template-columns: 1fr;
  }
}

/* MOBILE (< 768px) */
@media (max-width: 767px) {
  .huaylao-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .huaylao-brand-inner {
    min-height: 62px;
  }
  .huaylao-brand-name {
    font-size: 24px;
  }
  .huaylao-brand-tagline {
    font-size: 11px;
  }
  .huaylao-logo-img.huaylao-logo-custom {
    max-width: min(var(--h-logo-w, 200px), 160px);
    max-height: min(var(--h-logo-h, 65px), 48px);
  }
  .huaylao-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .huaylao-section-hero {
    padding-top: 20px;
    padding-bottom: 28px;
  }
  .huaylao-hero-heading h1 {
    font-size: 26px;
  }
  .huaylao-announcement-board {
    padding: 20px 16px;
  }
  .huaylao-announcement-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .huaylao-announcement-left {
    gap: 12px;
  }
  .huaylao-seal-img {
    width: 52px;
    height: 52px;
  }
  .huaylao-digit-cell {
    width: 44px;
    height: 58px;
    font-size: 32px;
  }
  .huaylao-sub-prize-box {
    width: 100%;
    min-width: 0;
  }
  .huaylao-sub-num {
    font-size: 28px;
  }
  .huaylao-announcement-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .huaylao-announcement-actions {
    flex-direction: column;
  }
  .huaylao-announcement-actions .huaylao-btn {
    width: 100%;
  }
  .huaylao-sheet-grid {
    grid-template-columns: 1fr;
  }
  .huaylao-stats-row {
    grid-template-columns: 1fr;
  }
  .huaylao-article-grid {
    grid-template-columns: 1fr;
  }
  .huaylao-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Transform history table into cards on mobile */
  .huaylao-history-table table,
  .huaylao-history-table tbody,
  .huaylao-history-table tr,
  .huaylao-history-table td {
    display: block;
    width: 100%;
  }
  .huaylao-history-table thead {
    display: none;
  }
  .huaylao-history-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--h-line);
  }
  .huaylao-history-table td {
    border: 0;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .huaylao-history-table td:before {
    content: attr(data-label);
    font-size: 13px;
    color: var(--h-muted);
    font-weight: 700;
  }

  /* Mobile Bottom Navigation */
  .huaylao-bottom-nav {
    display: grid !important;
  }
  body.huaylao-has-bottom-nav {
    padding-bottom: 72px !important;
  }
}

/* Extra small mobile (360px - 390px) */
@media (max-width: 390px) {
  .huaylao-digit-cell {
    width: 40px;
    height: 52px;
    font-size: 28px;
  }
  .huaylao-announcement-title {
    font-size: 24px;
  }
  .huaylao-hero-heading h1 {
    font-size: 24px;
  }
}

/* ================================================================
   THEME FOOTER & STRANDED ARTIFACT SUPPRESSION
   ================================================================ */
footer.site-footer:not(.huaylao-site-footer),
.site-footer:not(.huaylao-site-footer),
.site-info:not(.huaylao-footer-copy),
.hello-elementor-footer,
.elementor-location-footer:empty {
  display: none !important;
}

/* ================================================================
   WOW STATISTICS DASHBOARD & LUCKY NUMBER GENERATOR
   ================================================================ */
.huaylao-stats-portal-page {
  padding-bottom: 50px;
}

.huaylao-stats-hero-banner {
  text-align: center;
  padding: 36px 20px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.huaylao-stats-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 137, 34, 0.12);
  color: var(--h-gold);
  border: 1px solid var(--h-gold-light);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.huaylao-stats-hero-banner h1 {
  font-size: 34px;
  font-weight: 900;
  color: var(--h-dark);
  line-height: 1.2;
  margin: 0 0 12px;
}

.huaylao-stats-subtext {
  font-size: 15px;
  color: var(--h-muted);
  line-height: 1.6;
  margin: 0;
}

/* Lucky Generator Card */
.huaylao-lucky-generator-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf2 50%, #fdf6e6 100%);
  border: 2px solid var(--h-gold-light);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(184, 137, 34, 0.15);
  margin: 10px auto 40px;
  max-width: 760px;
  position: relative;
  overflow: hidden;
}

.huaylao-lucky-generator-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(235, 189, 74, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.huaylao-generator-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--h-red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.huaylao-generator-header h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--h-dark);
  margin: 0 0 6px;
}

.huaylao-generator-header p {
  color: var(--h-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.huaylao-generator-balls-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.huaylao-ball-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.huaylao-ball-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--h-muted);
}

.huaylao-ball-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  height: 80px;
  padding: 0 20px;
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, var(--h-red) 0%, #760e15 100%);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(159, 17, 27, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.huaylao-ball-display.huaylao-ball-gold {
  background: linear-gradient(135deg, #d39e28 0%, #996e10 100%);
  box-shadow: 0 10px 24px rgba(184, 137, 34, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.huaylao-btn-spin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #b88922 0%, #d8a735 50%, #996e10 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(184, 137, 34, 0.35);
  transition: all 0.25s ease;
}

.huaylao-btn-spin:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(184, 137, 34, 0.45);
}

.huaylao-btn-spin:active {
  transform: translateY(1px);
}

.huaylao-btn-spin.is-spinning {
  opacity: 0.75;
  cursor: wait;
}

.huaylao-icon-dice {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.huaylao-generator-blessing {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--h-gold);
  min-height: 24px;
  transition: opacity 0.3s ease;
}

.huaylao-generator-blessing.huaylao-flash {
  animation: huaylaoFlash 0.8s ease;
}

@keyframes huaylaoFlash {
  0% { transform: scale(1.15); color: var(--h-red); }
  50% { transform: scale(1.05); color: #d8a735; }
  100% { transform: scale(1); color: var(--h-gold); }
}

/* Frequent Numbers Grid */
.huaylao-frequent-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.huaylao-freq-card {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(22, 22, 26, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.huaylao-freq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(22, 22, 26, 0.08);
}

.huaylao-freq-card.is-rank-1 {
  border-color: var(--h-gold);
  background: linear-gradient(180deg, #fffcf5 0%, #ffffff 100%);
  box-shadow: 0 8px 20px rgba(184, 137, 34, 0.15);
}

.huaylao-freq-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 8px;
}

.huaylao-freq-rank {
  font-weight: 800;
  color: var(--h-gold);
  background: rgba(184, 137, 34, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.huaylao-freq-count {
  color: var(--h-muted);
}

.huaylao-freq-count strong {
  color: var(--h-red);
}

.huaylao-freq-digit {
  font-size: 38px;
  font-weight: 900;
  color: var(--h-red);
  line-height: 1;
  margin: 6px 0;
}

.huaylao-freq-bar-wrap {
  width: 100%;
  height: 6px;
  background: #f0edf8;
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.huaylao-freq-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--h-gold) 0%, var(--h-red) 100%);
  border-radius: 99px;
}

.huaylao-freq-pct {
  font-size: 11px;
  color: var(--h-muted);
  font-weight: 700;
}

/* Insights Cards */
.huaylao-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.huaylao-insight-card {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 6px 16px rgba(22, 22, 26, 0.04);
}

.huaylao-insight-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--h-dark);
  margin: 0 0 14px;
}

.huaylao-ratio-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.huaylao-ratio-item strong {
  color: var(--h-red);
}

.huaylao-ratio-bar-track {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: #eee;
  margin-bottom: 10px;
}

.huaylao-ratio-bar-fill-a {
  background: linear-gradient(90deg, #9f111b 0%, #b81b26 100%);
}

.huaylao-ratio-bar-fill-b {
  background: linear-gradient(90deg, #b88922 0%, #d8a735 100%);
}

.huaylao-insight-note {
  font-size: 12px;
  color: var(--h-muted);
  margin: 0;
}

.huaylao-hot-digit-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--h-red) 0%, #760e15 100%);
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(159, 17, 27, 0.3);
  margin-bottom: 8px;
}

@media (max-width: 992px) {
  .huaylao-frequent-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .huaylao-insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .huaylao-frequent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .huaylao-ball-display {
    min-width: 85px;
    height: 68px;
    font-size: 36px;
  }
  .huaylao-generator-balls-row {
    gap: 18px;
  }
}

/* ================================================================
   COMMERCIAL SEO LANDING PAGES (Page A & Page B)
   ================================================================ */
.huaylao-commercial-landing {
  padding-bottom: 95px;
  background: #ffffff;
}

.huaylao-landing-hero {
  background: linear-gradient(180deg, #fdfbf7 0%, #ffffff 100%);
  padding: 30px 0 38px;
  border-bottom: 1px solid var(--h-line);
}

.huaylao-landing-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--h-muted);
  margin-bottom: 16px;
}

.huaylao-landing-breadcrumb a {
  color: var(--h-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.huaylao-landing-breadcrumb a:hover {
  color: var(--h-red);
}

.huaylao-landing-breadcrumb span.huaylao-crumb-curr {
  color: var(--h-red);
  font-weight: 600;
}

.huaylao-landing-h1 {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 900;
  color: var(--h-red);
  margin: 12px 0 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.huaylao-landing-intro {
  max-width: 960px;
  font-size: 16px;
  color: #3e3e48;
  line-height: 1.8;
  margin: 0 0 12px;
}

/* Quick Navigation Cards under Hero */
.huaylao-quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.huaylao-quick-nav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--h-text);
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.huaylao-quick-nav-card:hover {
  border-color: var(--h-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 137, 34, 0.14);
}

.huaylao-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fbf7f0;
  color: var(--h-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.huaylao-quick-text {
  display: flex;
  flex-direction: column;
}

.huaylao-quick-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--h-text);
  line-height: 1.3;
}

.huaylao-quick-sub {
  font-size: 12.5px;
  color: var(--h-muted);
  margin-top: 2px;
}

/* Section Headings */
.huaylao-landing-sec {
  padding: 42px 0;
  border-bottom: 1px solid #f2ede7;
}

.huaylao-landing-sec.huaylao-bg-warm {
  background: #fbf9f6;
}

.huaylao-landing-sec-head {
  margin-bottom: 26px;
}

.huaylao-landing-sec-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--h-red);
  margin: 0 0 8px;
  line-height: 1.3;
}

.huaylao-landing-sec-head p {
  font-size: 15px;
  color: var(--h-muted);
  margin: 0;
  line-height: 1.6;
}

/* Format Cards */
.huaylao-formats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.huaylao-format-card {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.huaylao-format-card:hover {
  border-color: var(--h-gold);
  transform: translateY(-2px);
}

.huaylao-format-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(159, 17, 27, 0.08);
  color: var(--h-red);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  margin-bottom: 12px;
}

.huaylao-format-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--h-text);
  margin: 0 0 8px;
}

.huaylao-format-desc {
  font-size: 14px;
  color: #4a4a54;
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

/* Step Flow */
.huaylao-steps-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.huaylao-step-card {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.huaylao-step-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--h-gold);
  line-height: 1;
  margin-bottom: 10px;
}

.huaylao-step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--h-text);
  margin: 0 0 6px;
  line-height: 1.35;
}

.huaylao-step-desc {
  font-size: 13.5px;
  color: var(--h-muted);
  line-height: 1.6;
  margin: 0;
}

/* Comparison Table */
.huaylao-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--h-line);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.huaylao-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.huaylao-compare-table th {
  background: #fbf9f6;
  padding: 16px 20px;
  font-weight: 800;
  font-size: 15px;
  color: var(--h-red);
  border-bottom: 2px solid var(--h-line);
  text-align: left;
}

.huaylao-compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #eeebe5;
  font-size: 14.5px;
  line-height: 1.6;
  color: #383842;
}

.huaylao-compare-table tr:last-child td {
  border-bottom: none;
}

.huaylao-compare-topic {
  font-weight: 700;
  color: var(--h-text);
  background: #fdfcf9;
}

/* Checklist Cards (Page B) */
.huaylao-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.huaylao-checklist-card {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 3px 10px rgba(0,0,0,0.02);
}

.huaylao-check-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(32, 114, 62, 0.1);
  color: var(--h-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.huaylao-check-content h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--h-text);
  margin: 0 0 4px;
  line-height: 1.35;
}

.huaylao-check-content p {
  font-size: 13.5px;
  color: var(--h-muted);
  line-height: 1.55;
  margin: 0;
}

/* Notice / Safety Box */
.huaylao-notice-card {
  background: #fdfbf7;
  border-left: 4px solid var(--h-gold);
  border-radius: 12px;
  padding: 22px 24px;
  border-top: 1px solid var(--h-line);
  border-right: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
}

.huaylao-notice-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--h-red);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.huaylao-notice-card ul {
  margin: 0;
  padding-left: 20px;
}

.huaylao-notice-card li {
  font-size: 14.5px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 6px;
}

/* FAQ Accordion */
.huaylao-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.huaylao-faq-card {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.huaylao-faq-header {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 800;
  color: var(--h-text);
  background: #faf8f5;
  border-bottom: 1px solid #f0ebe4;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.huaylao-faq-body {
  padding: 18px 20px;
  font-size: 14.5px;
  color: #3e3e48;
  line-height: 1.75;
  margin: 0;
}

/* Internal Links 6-Grid */
.huaylao-internal-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.huaylao-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--h-text);
  transition: all 0.2s ease;
}

.huaylao-link-card:hover {
  border-color: var(--h-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(159, 17, 27, 0.08);
}

.huaylao-link-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--h-text);
  margin: 0;
}

.huaylao-link-info p {
  font-size: 13px;
  color: var(--h-muted);
  margin: 3px 0 0;
}

.huaylao-link-arrow {
  color: var(--h-red);
  font-size: 18px;
  font-weight: 700;
  margin-left: 10px;
}

.huaylao-text-link {
  color: var(--h-red);
  font-weight: 700;
  text-decoration: underline;
}

.huaylao-text-link:hover {
  color: var(--h-gold);
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
  .huaylao-formats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .huaylao-steps-flow {
    grid-template-columns: repeat(3, 1fr);
  }
  .huaylao-checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .huaylao-quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .huaylao-internal-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .huaylao-steps-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .huaylao-quick-nav-grid {
    grid-template-columns: 1fr;
  }
  .huaylao-formats-grid {
    grid-template-columns: 1fr;
  }
  .huaylao-steps-flow {
    grid-template-columns: 1fr;
  }
  .huaylao-checklist-grid {
    grid-template-columns: 1fr;
  }
  .huaylao-internal-grid-6 {
    grid-template-columns: 1fr;
  }
  .huaylao-landing-hero {
    padding: 20px 0 28px;
  }
  .huaylao-landing-h1 {
    font-size: 26px;
  }
}

/* ================================================================
   HUAYLAO CONTENT PAGES & ARTICLES (FULL WIDTH / SIDEBAR)
   ================================================================ */

/* RESET THEME CONTAINERS TO ALLOW HUAYLAO 1260PX FULL WIDTH */
body.huaylao-portal-v3 .site-main,
body.huaylao-portal-v3 #content.site-main,
body.huaylao-portal-v3 .page-content,
body.huaylao-portal-v3 article.post,
body.huaylao-portal-v3 .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.huaylao-portal-v3 .huaylao-single-layout,
body.huaylao-portal-v3 .huaylao-archive-layout,
body.huaylao-portal-v3 .huaylao-standard-page,
.huaylao-single-layout,
.huaylao-archive-layout,
.huaylao-standard-page {
  width: 100% !important;
  max-width: 100% !important;
  padding: 28px 0 64px;
  background: transparent;
  box-sizing: border-box !important;
}

body.huaylao-portal-v3 .huaylao-single-container,
body.huaylao-portal-v3 .huaylao-archive-container,
body.huaylao-portal-v3 .huaylao-standard-container,
.huaylao-single-container,
.huaylao-archive-container,
.huaylao-standard-container {
  max-width: var(--h-max, 1260px) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

.huaylao-breadcrumb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--h-muted);
  margin-bottom: 20px;
  padding: 0 4px;
}

.huaylao-breadcrumb-bar a {
  color: var(--h-red) !important;
  text-decoration: none !important;
  font-weight: 500;
  display: inline !important;
  transition: color 0.15s ease;
}

.huaylao-breadcrumb-bar a:hover {
  color: var(--h-gold) !important;
  text-decoration: underline !important;
}

.huaylao-breadcrumb-bar .huaylao-sep {
  color: #c4bebb;
  font-weight: 300;
}

.huaylao-breadcrumb-bar .huaylao-current {
  color: var(--h-text);
  font-weight: 500;
}

/* Single Card Structure */
.huaylao-single-card {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: 38px 46px;
}

.huaylao-article-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--h-text);
  line-height: 1.35;
  margin: 0 0 28px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #ede8e2;
  position: relative;
}

.huaylao-article-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--h-red);
}

/* Sidebar 2-Column Grid (Spacious 1260px wide layout) */
.huaylao-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .huaylao-single-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   ARCHIVE & CATEGORY PAGE STYLES
   ================================================================ */
.huaylao-archive-header {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 32px 36px;
  margin-bottom: 28px;
}

.huaylao-archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff5e6;
  color: var(--h-amber);
  border: 1px solid #fae1b8;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.huaylao-archive-badge svg {
  width: 14px;
  height: 14px;
}

.huaylao-archive-title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  color: var(--h-text);
  line-height: 1.3;
}

.huaylao-archive-desc {
  margin: 0 0 16px;
  font-size: 15.5px;
  color: var(--h-muted);
  line-height: 1.65;
}

.huaylao-archive-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0ece5;
  font-size: 13.5px;
  color: #777;
}

.huaylao-archive-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.huaylao-archive-count svg {
  width: 16px;
  height: 16px;
  color: var(--h-gold);
}

.huaylao-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.huaylao-pagination-wrap {
  margin-top: 36px;
  margin-bottom: 24px;
  text-align: center;
}

.huaylao-pagination-wrap ul.page-numbers {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.huaylao-pagination-wrap li {
  margin: 0;
  padding: 0;
}

.huaylao-pagination-wrap a.page-numbers,
.huaylao-pagination-wrap span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--h-line);
  color: var(--h-text);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.huaylao-pagination-wrap a.page-numbers:hover {
  background: #fff6f6;
  border-color: var(--h-red);
  color: var(--h-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(159, 17, 27, 0.12);
}

.huaylao-pagination-wrap span.page-numbers.current {
  background: var(--h-red-gradient);
  border-color: var(--h-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(159, 17, 27, 0.25);
}

.huaylao-archive-empty {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.huaylao-empty-text {
  font-size: 17px;
  color: var(--h-muted);
  margin-bottom: 20px;
}

/* Sidebar Stack */
.huaylao-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.huaylao-sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.huaylao-sidebar-widget .huaylao-widget-head,
.huaylao-sidebar-widget .widget-title,
.huaylao-sidebar-widget h2.widgettitle,
.huaylao-sidebar-widget h3.widgettitle {
  background: var(--h-red-gradient);
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 12px 18px !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4 !important;
}

/* WordPress Native Widgets Content Styling */
.huaylao-sidebar-widget.widget > p,
.huaylao-sidebar-widget.widget > div:not(.huaylao-widget-head):not(.huaylao-widget-body),
.huaylao-sidebar-widget.widget > .wp-block-group {
  padding: 16px 18px;
}

.huaylao-sidebar-widget.widget ul:not(.huaylao-sb-links) {
  list-style: none;
  margin: 0;
  padding: 8px 18px 14px;
}

.huaylao-sidebar-widget.widget ul:not(.huaylao-sb-links) li {
  padding: 9px 0;
  border-bottom: 1px solid #f2ede7;
  font-size: 14.5px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.huaylao-sidebar-widget.widget ul:not(.huaylao-sb-links) li:last-child {
  border-bottom: none;
}

.huaylao-sidebar-widget.widget ul:not(.huaylao-sb-links) a {
  color: var(--h-text) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-block;
}

.huaylao-sidebar-widget.widget ul:not(.huaylao-sb-links) a:hover {
  color: var(--h-red) !important;
  padding-left: 4px;
}

/* WP Search Widget & Block Search */
.huaylao-sidebar-widget.widget .search-form,
.huaylao-sidebar-widget.widget .wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  margin: 0;
}

.huaylao-sidebar-widget.widget input[type="search"],
.huaylao-sidebar-widget.widget .wp-block-search__input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--h-line);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: var(--h-font);
  outline: none;
}

.huaylao-sidebar-widget.widget input[type="search"]:focus,
.huaylao-sidebar-widget.widget .wp-block-search__input:focus {
  border-color: var(--h-red);
}

.huaylao-sidebar-widget.widget .search-submit,
.huaylao-sidebar-widget.widget .wp-block-search__button {
  background: var(--h-red) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 9px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-family: var(--h-font) !important;
  cursor: pointer;
  transition: background 0.2s ease !important;
}

.huaylao-sidebar-widget.widget .search-submit:hover,
.huaylao-sidebar-widget.widget .wp-block-search__button:hover {
  background: var(--h-red-dark) !important;
}

.huaylao-widget-head {
  background: var(--h-red-gradient);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.huaylao-widget-head svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
}

.huaylao-widget-body {
  padding: 16px 18px;
}

.huaylao-sb-item {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--h-line);
}

.huaylao-sb-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.huaylao-sb-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.huaylao-sb-name strong {
  color: var(--h-text);
  font-size: 15px;
}

.huaylao-sb-name small {
  color: var(--h-muted);
  font-size: 12px;
}

.huaylao-sb-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--h-bg-warm);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.huaylao-sb-lbl {
  display: block;
  font-size: 11px;
  color: var(--h-muted);
  margin-bottom: 2px;
}

.huaylao-sb-val {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--h-red);
}

.huaylao-widget-btn {
  display: block !important;
  text-align: center;
  background: var(--h-bg-warm);
  color: var(--h-red) !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px;
  border-radius: 8px;
  margin-top: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.huaylao-widget-btn:hover {
  background: var(--h-red);
  color: #ffffff !important;
}

/* Quick Checker Form */
.huaylao-sb-checker-form {
  display: flex;
  gap: 8px;
}

.huaylao-sb-checker-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--h-line);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--h-font);
  background: #ffffff;
}

.huaylao-sb-checker-form button {
  background: var(--h-red);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--h-font);
  cursor: pointer;
  transition: background 0.2s ease;
}

.huaylao-sb-checker-form button:hover {
  background: var(--h-red-dark);
}

/* Sidebar Links */
.huaylao-sb-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.huaylao-sb-links li {
  border-bottom: 1px solid #f2ede7;
  margin: 0;
  padding: 0;
}

.huaylao-sb-links li:last-child {
  border-bottom: none;
}

.huaylao-sb-links a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--h-text) !important;
  text-decoration: none !important;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.huaylao-sb-links a svg {
  width: 14px;
  height: 14px;
  stroke: var(--h-red);
  fill: none;
  stroke-width: 2.2;
}

.huaylao-sb-links a:hover {
  background: var(--h-bg-warm);
  color: var(--h-red) !important;
  padding-left: 18px;
}

/* Article Prose Typography & Inline Link Fix */
.huaylao-prose {
  font-family: var(--h-font);
  font-size: 16.5px;
  line-height: 1.85;
  color: #2b2b36;
}

.huaylao-prose p {
  margin: 0 0 18px 0;
}

.huaylao-prose h2 {
  font-size: 22px;
  font-weight: 700;
  color: #17171c;
  margin: 36px 0 16px 0;
  padding-left: 14px;
  border-left: 4px solid var(--h-red);
  line-height: 1.4;
}

.huaylao-prose h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--h-red-dark);
  margin: 28px 0 12px 0;
  line-height: 1.4;
}

.huaylao-prose h4 {
  font-size: 17px;
  font-weight: 600;
  color: #17171c;
  margin: 20px 0 8px 0;
}

/* CRITICAL: Ensure prose and content links remain inline and do NOT break vertically */
.huaylao-single-card a:not(.huaylao-tag-pill):not(.huaylao-btn):not(.huaylao-widget-btn):not(.huaylao-meta-author-link):not(.huaylao-author-archive-btn):not(.huaylao-author-name a),
.huaylao-article-body a:not(.huaylao-tag-pill):not(.huaylao-btn):not(.huaylao-widget-btn),
.huaylao-prose a:not(.huaylao-tag-pill):not(.huaylao-btn):not(.huaylao-widget-btn):not(.huaylao-meta-author-link):not(.huaylao-author-archive-btn):not(.huaylao-author-name a) {
  display: inline !important;
  color: var(--h-red) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.huaylao-single-card a:not(.huaylao-tag-pill):not(.huaylao-btn):not(.huaylao-widget-btn):not(.huaylao-meta-author-link):not(.huaylao-author-archive-btn):not(.huaylao-author-name a):hover,
.huaylao-article-body a:not(.huaylao-tag-pill):not(.huaylao-btn):not(.huaylao-widget-btn):hover,
.huaylao-prose a:not(.huaylao-tag-pill):not(.huaylao-btn):not(.huaylao-widget-btn):not(.huaylao-meta-author-link):not(.huaylao-author-archive-btn):not(.huaylao-author-name a):hover {
  color: var(--h-gold) !important;
}

.huaylao-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px auto;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.huaylao-prose ul,
.huaylao-prose ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.huaylao-prose li {
  margin-bottom: 8px;
}

.huaylao-prose blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--h-bg-warm);
  border-left: 4px solid var(--h-gold);
  border-radius: 0 10px 10px 0;
  color: #444;
  font-style: italic;
}

.huaylao-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.huaylao-prose th,
.huaylao-prose td {
  padding: 10px 14px;
  border: 1px solid var(--h-line);
  text-align: left;
}

.huaylao-prose th {
  background: var(--h-bg-warm);
  font-weight: 600;
}

@media (max-width: 768px) {
  .huaylao-single-layout,
  .huaylao-standard-page {
    padding: 18px 0 48px;
  }
  .huaylao-single-container,
  .huaylao-standard-container {
    padding: 0 16px;
  }
  .huaylao-single-card {
    padding: 24px 18px;
    border-radius: 12px;
  }
  .huaylao-article-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  .huaylao-prose h2 {
    font-size: 20px;
    margin: 28px 0 14px 0;
  }
  .huaylao-prose h3 {
    font-size: 18px;
  }
  .huaylao-archive-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .huaylao-archive-header {
    padding: 22px 18px;
    border-radius: 12px;
  }
  .huaylao-archive-title {
    font-size: 22px;
  }
}

/* Article Post Meta */
.huaylao-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--h-muted);
  margin-top: -14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--h-line);
}

.huaylao-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.huaylao-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--h-gold);
}

.huaylao-meta-cat {
  background: var(--h-bg-warm);
  color: var(--h-red-dark);
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
}

/* Article Featured Cover Image */
.huaylao-article-cover {
  margin: 0 0 28px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.huaylao-cover-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Hide Hello Elementor and theme raw tags printed outside the card */
body.huaylao-portal-v3 .tags-links,
body.huaylao-portal-v3 .post-tags,
body.huaylao-portal-v3 .tag-links,
body.huaylao-portal-v3 .entry-footer,
body.huaylao-portal-v3 .site-main > .tags-links,
body.huaylao-portal-v3 .site-main > .post-tags,
body.huaylao-portal-v3 .site-main > .tag-links,
body.huaylao-portal-v3 .site-main > footer,
body.huaylao-portal-v3 .page-content + .tags-links,
body.huaylao-portal-v3 .page-content + .post-tags,
body.huaylao-portal-v3 .page-content + .tag-links,
body.huaylao-portal-v3 .page-content + footer,
.site-main > .tags-links,
.site-main > .post-tags,
.site-main > .tag-links,
.site-main .entry-footer,
.post-tags,
.tags-links {
  display: none !important;
}

/* Post Tags Inside Article Card */
.huaylao-post-tags {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed var(--h-line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.huaylao-tags-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--h-muted);
  font-weight: 500;
  margin-right: 4px;
}

.huaylao-tags-label svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--h-gold);
  stroke-width: 2;
}

.huaylao-tag-pill {
  display: inline-block !important;
  background: var(--h-bg-warm);
  color: var(--h-red-dark) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  border: 1px solid var(--h-line);
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.huaylao-tag-pill:hover {
  background: var(--h-red) !important;
  color: #ffffff !important;
  border-color: var(--h-red) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* Blog Archive & Category Styling */
body.huaylao-portal-v3 .archive .site-main,
body.huaylao-portal-v3 .blog .site-main,
body.huaylao-portal-v3 .category .site-main {
  max-width: var(--h-max, 1260px);
  margin: 32px auto 60px;
  padding: 0 24px;
}

body.huaylao-portal-v3 .archive .page-header,
body.huaylao-portal-v3 .category .page-header {
  display: block !important;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--h-line);
  padding-bottom: 12px;
}

body.huaylao-portal-v3 .archive .page-title,
body.huaylao-portal-v3 .category .page-title {
  display: block !important;
  font-family: var(--h-font);
  font-size: 28px;
  font-weight: 700;
  color: var(--h-text);
}

body.huaylao-portal-v3 .archive article.post,
body.huaylao-portal-v3 .category article.post,
body.huaylao-portal-v3 .blog article.post {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.huaylao-portal-v3 .archive article.post:hover,
body.huaylao-portal-v3 .category article.post:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.huaylao-portal-v3 .archive article.post h2,
body.huaylao-portal-v3 .category article.post h2,
body.huaylao-portal-v3 .blog article.post h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

body.huaylao-portal-v3 .archive article.post h2 a,
body.huaylao-portal-v3 .category article.post h2 a {
  color: var(--h-text) !important;
  text-decoration: none !important;
  display: inline !important;
}

body.huaylao-portal-v3 .archive article.post h2 a:hover,
body.huaylao-portal-v3 .category article.post h2 a:hover {
  color: var(--h-red) !important;
}

/* ================================================================
   ARTICLE TOP META: AUTHOR & READING TIME
   ================================================================ */
.huaylao-meta-author-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: var(--h-text) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.huaylao-meta-author-link:hover {
  opacity: 0.85;
}

.huaylao-meta-author-link strong {
  color: var(--h-red);
  font-weight: 600;
}

.huaylao-meta-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--h-line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  display: inline-block;
  vertical-align: middle;
}

.huaylao-meta-reading {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--h-muted);
}

.huaylao-icon-book,
.huaylao-meta-reading svg {
  width: 15px;
  height: 15px;
  stroke: var(--h-gold);
  fill: none;
  stroke-width: 2;
}

/* ================================================================
   E-E-A-T AUTHOR BOX (AUTHOR BIO CARD)
   ================================================================ */
.huaylao-author-box {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid #ede8e2;
  position: relative;
}

.huaylao-author-box-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: linear-gradient(135deg, #fffaf5 0%, #ffffff 100%);
  border: 1px solid #f0e6dc;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.huaylao-author-avatar-wrap {
  flex-shrink: 0;
}

.huaylao-author-avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.15);
  display: block;
}

.huaylao-author-info {
  flex: 1;
}

.huaylao-author-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(185, 28, 28, 0.08);
  color: var(--h-red);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.huaylao-author-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--h-text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.huaylao-author-name a {
  color: var(--h-text) !important;
  text-decoration: none !important;
  display: inline !important;
  transition: color 0.15s ease;
}

.huaylao-author-name a:hover {
  color: var(--h-red) !important;
}

.huaylao-author-bio {
  font-size: 14.5px;
  line-height: 1.7;
  color: #555566;
  margin: 0 0 14px 0;
}

.huaylao-author-archive-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--h-red) !important;
  text-decoration: none !important;
  padding: 6px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e7ded5;
  transition: all 0.2s ease;
}

.huaylao-author-archive-btn:hover {
  background: var(--h-red);
  color: #ffffff !important;
  border-color: var(--h-red);
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .huaylao-author-box-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 18px;
  }
  .huaylao-author-avatar-lg {
    width: 68px;
    height: 68px;
  }
}

/* ================================================================
   RELATED POSTS SECTION (ด้านล่างบทความ)
   ================================================================ */
.huaylao-related-section {
  margin-top: 40px;
  padding-top: 32px;
}

.huaylao-related-header {
  margin-bottom: 22px;
}

.huaylao-related-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--h-text);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.huaylao-related-icon {
  width: 22px;
  height: 22px;
  stroke: var(--h-red);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.huaylao-related-subtitle {
  font-size: 14px;
  color: var(--h-muted);
  margin: 0;
}

.huaylao-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 640px) {
  .huaylao-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.huaylao-related-card {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.huaylao-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: #ebdcd0;
}

.huaylao-r-cover-link {
  display: block !important;
  text-decoration: none !important;
}

.huaylao-r-cover-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.huaylao-r-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.huaylao-related-card:hover .huaylao-r-thumb-img {
  transform: scale(1.04);
}

.huaylao-r-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #881337 0%, #b91c1c 50%, #450a0a 100%);
}

.huaylao-r-logo-mini {
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.huaylao-r-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.huaylao-r-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.huaylao-r-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--h-muted);
  margin-bottom: 8px;
}

.huaylao-r-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.huaylao-r-date svg {
  width: 13px;
  height: 13px;
  stroke: var(--h-gold);
  fill: none;
  stroke-width: 2;
}

.huaylao-r-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 14px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.huaylao-r-title a {
  color: var(--h-text) !important;
  text-decoration: none !important;
  display: inline !important;
  transition: color 0.15s ease;
}

.huaylao-r-title a:hover {
  color: var(--h-red) !important;
}

.huaylao-r-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--h-line);
  font-size: 13px;
}

.huaylao-r-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--h-text);
  font-weight: 500;
}

.huaylao-r-author strong {
  color: var(--h-red);
}

.huaylao-r-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--h-line);
}

.huaylao-r-read-more {
  color: var(--h-red) !important;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 13px;
  transition: transform 0.15s ease;
}

.huaylao-r-read-more:hover {
  transform: translateX(3px);
}

/* ================================================================
   SIDEBAR WIDGET: RECENT 10 POSTS (บทความล่าสุด 10 บท)
   ================================================================ */
.huaylao-widget-recent-posts .huaylao-sb-posts-list {
  padding: 10px 18px 14px;
}

.huaylao-sb-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f2ede7;
}

.huaylao-sb-post-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.huaylao-sb-post-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--h-red);
  background: var(--h-bg-warm);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #f0e6dc;
}

.huaylao-sb-post-info {
  flex: 1;
  min-width: 0;
}

.huaylao-sb-post-title {
  display: block !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--h-text) !important;
  text-decoration: none !important;
  margin-bottom: 4px;
  transition: color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.huaylao-sb-post-title:hover {
  color: var(--h-red) !important;
}

.huaylao-sb-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: var(--h-muted);
}

.huaylao-sb-post-date,
.huaylao-sb-post-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.huaylao-sb-post-date svg,
.huaylao-sb-post-author svg {
  width: 12px;
  height: 12px;
  stroke: var(--h-gold);
  fill: none;
  stroke-width: 2;
}

/* ================================================================
   SIDEBAR WIDGET: TAG CLOUD (คำค้นยอดนิยม)
   ================================================================ */
.huaylao-widget-tag-cloud .huaylao-sb-tags-cloud {
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.huaylao-cloud-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background: var(--h-bg-warm);
  color: var(--h-text) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  border: 1px solid var(--h-line);
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.huaylao-cloud-pill:hover {
  background: var(--h-red) !important;
  color: #ffffff !important;
  border-color: var(--h-red) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(185, 28, 28, 0.2);
}

.huaylao-cloud-pill:hover .huaylao-cloud-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.huaylao-cloud-count {
  font-size: 10.5px;
  font-weight: 700;
  background: #ede6df;
  color: var(--h-muted);
  padding: 1px 6px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

/* ================================================================
   ARCHIVE / CATEGORY / TAG / AUTHOR PAGES
   ================================================================ */
.huaylao-archive-layout {
  padding-bottom: 60px;
}

.huaylao-archive-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 16px;
}

.huaylao-archive-header {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 18px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.huaylao-archive-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--h-red) 0%, var(--h-gold) 100%);
}

.huaylao-archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--h-bg-warm);
  color: var(--h-red);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--h-line);
  margin-bottom: 12px;
}

.huaylao-archive-badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.huaylao-archive-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #1a1917;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.huaylao-archive-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #55514b;
  margin: 0 0 16px 0;
}

.huaylao-archive-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid #f2ede7;
}

.huaylao-archive-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--h-muted);
}

.huaylao-archive-count svg {
  width: 15px;
  height: 15px;
  color: var(--h-gold);
}

.huaylao-archive-count strong {
  color: var(--h-red);
  font-weight: 700;
}

.huaylao-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}

/* Pagination */
.huaylao-pagination-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.huaylao-pagination-wrap ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.huaylao-pagination-wrap ul.page-numbers li {
  margin: 0;
  padding: 0;
}

.huaylao-pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 12px;
  color: var(--h-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.huaylao-pagination-wrap a.page-numbers:hover {
  background: var(--h-bg-warm);
  border-color: var(--h-gold);
  color: var(--h-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 137, 34, 0.12);
}

.huaylao-pagination-wrap .page-numbers.current {
  background: linear-gradient(135deg, var(--h-red) 0%, #8e1212 100%);
  color: #ffffff;
  border-color: var(--h-red);
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.25);
}

.huaylao-pagination-wrap .page-numbers.dots {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--h-muted);
}

.huaylao-archive-empty {
  background: #ffffff;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
}

.huaylao-empty-text {
  font-size: 17px;
  color: var(--h-muted);
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .huaylao-archive-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .huaylao-archive-header {
    padding: 20px 18px;
  }
}




