/* Pi Dentist — Front Page Bundle
   Auto-generated: combines all homepage pattern CSS into one file
   to reduce render-blocking requests.
   Individual pattern files are kept for other pages (archive, single, etc.) */

/* ====== hero.css ====== */
/* Pi Dentist â€” Hero Pattern
   Homepage hero section (Section #1): full-viewport navy gradient
   with LEFT-ALIGNED content, CTA buttons, and scroll indicator.
   All values use CSS custom properties from tokens.css */

/* ---------- Hero Container ---------- */
.pi-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* iOS Safari: excludes URL bar */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

/* Remove WP group padding/constraints that conflict */
.pi-hero.wp-block-group {
  padding: 0 !important;
}

/* WP renders .wp-block-group__inner-container.is-layout-constrained
   between .pi-hero and .hero-content â€” force it full-width */
.pi-hero > .wp-block-group__inner-container,
.pi-hero > .is-layout-constrained {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}

/* ---------- Hero Background ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #00274f 0%,
    #002147 30%,
    #00305e 60%,
    #001a38 100%
  );
  z-index: 0;
}

/* Subtle radial glow â€” warm tone at right */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 85% 60%,
      rgba(201, 169, 110, 0.05) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 80% at 15% 80%,
      rgba(0, 51, 102, 0.4) 0%,
      transparent 70%
    );
  z-index: 1;
}

/* ---------- Hero Content ---------- */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--pi-white);
  max-width: var(--pi-container);
  width: 100%;
  padding: 0 24px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Override WP constrained layout on hero-content wrapper */
.hero-content.wp-block-group {
  max-width: var(--pi-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* WP inner container inside hero-content â€” also force full-width left */
.hero-content > .wp-block-group__inner-container,
.hero-content > .is-layout-constrained,
.hero-content.is-layout-constrained {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Force ALL children inside hero-content to left-align (max 680px) */
.hero-content.is-layout-constrained > *,
.hero-content > .is-layout-constrained > *,
.hero-content > .wp-block-group__inner-container > * {
  max-width: 680px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* ---------- Hero Label ---------- */
.hero-label {
  font-family: var(--pi-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pi-gold);
  margin-bottom: 24px;
  display: block;
}

/* ---------- Hero Heading ---------- */
.hero-heading {
  font-family: var(--pi-font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--pi-white);
  margin: 0 0 28px;
}

/* ---------- Hero Subtitle ---------- */
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 0 44px;
}

/* ---------- Hero CTAs ---------- */
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Override WP buttons block center alignment */
.hero-ctas.wp-block-buttons {
  justify-content: flex-start;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-family: var(--pi-font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(8px);
  }
}

/* ===========================================
   RESPONSIVE â€” Tablet (max-width: 1199px)
   =========================================== */
@media (max-width: 1199px) {
  .pi-hero {
    min-height: 90vh;
  }

  .hero-content.is-layout-constrained > *,
  .hero-content > .is-layout-constrained > *,
  .hero-content > .wp-block-group__inner-container > * {
    max-width: 600px !important;
  }

  .hero-heading {
    font-size: clamp(32px, 5vw, 52px);
  }

  .hero-sub {
    font-size: 17px;
  }
}

/* ===========================================
   RESPONSIVE â€” Mobile (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  .pi-hero {
    min-height: 85vh;
    padding: 100px 0 80px;
  }

  .hero-content.is-layout-constrained > *,
  .hero-content > .is-layout-constrained > *,
  .hero-content > .wp-block-group__inner-container > * {
    max-width: 100% !important;
  }

  .hero-heading {
    font-size: 36px;
    line-height: 1.18;
    margin-bottom: 20px;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-ctas .btn,
  .hero-ctas .wp-block-button {
    width: 100%;
    max-width: 300px;
  }

  .hero-ctas .wp-block-button__link {
    display: block;
    text-align: center;
  }

  .scroll-indicator {
    bottom: 24px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-arrow {
    animation: none;
  }
}


/* ====== commitments.css ====== */
/* Pi Dentist â€” Pattern: Commitments Grid
   Homepage section #2: 4-column grid of brand commitments.
   Ported from index.html â†’ spec section 8.4.
   All values use CSS custom properties from tokens.css */

/* ---------- Section Container ---------- */
.commitments {
  padding: 100px 24px;
  background: var(--pi-white);
}

/* ---------- Grid Layout ---------- */
.commitments .commitments-grid {
  max-width: var(--pi-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* ---------- Single Commitment Card ---------- */
.commitments .commitment-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--pi-off-white);
  border-radius: var(--pi-radius-card);
  border: 1px solid var(--pi-light-gray);
  transition: var(--pi-transition);
}

.commitments .commitment-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--pi-shadow-md);
  border-color: var(--pi-gold);
}

/* ---------- Icon ---------- */
.commitments .commitment-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--pi-gold);
}

.commitments .commitment-icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Title ---------- */
.commitments .commitment-title {
  font-family: var(--pi-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--pi-navy);
  margin: 0 0 12px;
}

/* ---------- Description ---------- */
.commitments .commitment-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--pi-text-soft);
  margin: 0;
}

/* ===========================================
   RESPONSIVE â€” Tablet (max-width: 1199px)
   =========================================== */
@media (max-width: 1199px) {
  .commitments .commitments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .commitments {
    padding: 80px 24px;
  }
}

/* ===========================================
   RESPONSIVE â€” Mobile (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  .commitments .commitments-grid {
    grid-template-columns: 1fr;
  }

  .commitments {
    padding: 64px 20px;
  }

  .commitments .commitment-item {
    padding: 24px 16px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .commitments .commitment-item {
    transition: none;
  }

  .commitments .commitment-item:hover {
    transform: none;
  }
}


/* ====== philosophy.css ====== */
/* Pi Dentist â€” Pattern: Philosophy 2-column
   Homepage section #3: navy rectangle with giant Ï€ left, brand story right.
   Ported from index.html section 3 CSS â†’ WordPress child theme.
   All values use CSS custom properties from tokens.css */

/* ---------- Section Container ---------- */
.philosophy {
  padding: 100px 24px;
  background: var(--pi-off-white);
}

/* ---------- 2-Column Grid ---------- */
.philosophy .philosophy-grid {
  display: flex;
  align-items: center !important;
  gap: 80px;
  max-width: var(--pi-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Override WP .wp-block-columns flex defaults */
.philosophy .philosophy-grid.wp-block-columns {
  align-items: center !important;
}

/* ---------- Visual Column â€” Navy rectangle with Ï€ ---------- */
.philosophy .philosophy-visual {
  flex: 0 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--pi-navy) 0%, var(--pi-navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

/* Override WP .wp-block-column defaults that may conflict */
.philosophy .philosophy-visual.wp-block-column {
  border-radius: 16px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, var(--pi-navy) 0%, var(--pi-navy-light) 100%) !important;
  align-self: center !important;
}

/* Ï€ character inside navy box */
.philosophy .pi-symbol {
  font-family: var(--pi-font-heading);
  font-size: 200px;
  color: rgba(201, 169, 110, 0.15);
  font-weight: 700;
  line-height: 1;
  user-select: none;
  position: relative;
  z-index: 1;
}

/* Bottom gradient overlay on navy box */
.philosophy .philosophy-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 33, 71, 0.6), transparent);
  z-index: 0;
}

/* ---------- Content Column ---------- */
.philosophy .philosophy-content {
  flex: 1;
  align-self: center;
}

/* Force WP column to center align */
.philosophy .philosophy-content.wp-block-column {
  align-self: center !important;
}

.philosophy .section-label {
  font-family: var(--pi-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pi-gold);
  margin-bottom: 16px;
  display: block;
  text-align: left;
}

.philosophy .section-heading {
  font-family: var(--pi-font-heading);
  font-size: 42px;
  font-weight: 600;
  color: var(--pi-navy);
  margin: 0 0 24px;
  line-height: 1.2;
  text-align: left;
}

.philosophy .philosophy-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--pi-text-soft);
  margin: 0 0 28px;
}

.philosophy .text-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--pi-gold);
  text-decoration: none;
  transition: color var(--pi-transition);
}

.philosophy .text-link:hover {
  color: var(--pi-gold-hover);
}

/* ===========================================
   RESPONSIVE â€” Tablet (max-width: 1199px)
   =========================================== */
@media (max-width: 1199px) {
  .philosophy {
    padding: 80px 24px;
  }

  .philosophy .philosophy-grid {
    gap: 48px;
  }

  .philosophy .section-heading {
    font-size: 36px;
  }
}

/* ===========================================
   RESPONSIVE â€” Mobile (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  .philosophy {
    padding: 64px 20px;
  }

  .philosophy .philosophy-grid {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .philosophy .philosophy-visual {
    aspect-ratio: 16 / 10;
    width: 100%;
  }

  .philosophy .pi-symbol {
    font-size: 120px;
  }

  .philosophy .section-label,
  .philosophy .section-heading {
    text-align: center;
  }

  .philosophy .section-heading {
    font-size: 28px;
  }

  .philosophy .philosophy-text {
    font-size: 15px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .philosophy .text-link {
    transition: none;
  }
}


/* ====== doctors-grid.css ====== */
/* Pi Dentist â€” Doctors Grid & Doctor Card
   Styles for /bac-si/ archive page and doctor cards.
   Uses base card styles from cards.css + tokens from tokens.css */

/* ---------- Archive Section ---------- */
.doctors-archive {
  padding: 80px 0;
}

/* ---------- Grid Layout ---------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* ---------- Doctor Card â€” Enhanced ---------- */
.doctor-card {
  border: 1px solid var(--pi-light-gray);
  transition: transform var(--pi-transition),
              box-shadow var(--pi-transition),
              border-color var(--pi-transition);
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--pi-shadow-md);
  border-color: var(--pi-gold-light);
}

/* ---------- Doctor Thumbnail ---------- */
.doctor-thumb-link {
  display: block;
  text-decoration: none;
}

.doctor-thumb {
  aspect-ratio: 3 / 4;
  border-radius: var(--pi-radius-card) var(--pi-radius-card) 0 0;
  overflow: hidden;
}

.doctor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pi-transition);
}

.doctor-card:hover .doctor-thumb img {
  transform: scale(1.05);
}

/* ---------- Placeholder Avatar (SVG) ---------- */
.doctor-thumb-placeholder {
  background: linear-gradient(135deg, var(--pi-navy) 0%, var(--pi-navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.doctor-avatar-svg {
  width: 72px;
  height: 72px;
  color: rgba(255, 255, 255, 0.15);
  transition: color var(--pi-transition),
              transform var(--pi-transition);
}

.doctor-card:hover .doctor-avatar-svg {
  color: rgba(201, 169, 110, 0.25);
  transform: scale(1.08);
}

/* ---------- Doctor Body â€” Left-aligned ---------- */
.doctor-body {
  padding: 28px;
  text-align: left;
}

/* ---------- Doctor Name ---------- */
.doctor-name {
  font-family: var(--pi-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--pi-navy);
  line-height: 1.3;
  margin: 0 0 4px;
}

.doctor-name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--pi-transition);
}

.doctor-name a:hover {
  color: var(--pi-gold);
}

/* ---------- Doctor Title (Chá»©c danh) ---------- */
.doctor-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--pi-gold);
  margin: 0 0 14px;
  line-height: 1.4;
}

/* ---------- Doctor Credentials ---------- */
.doctor-credentials {
  font-size: 13px;
  color: var(--pi-text-soft);
  line-height: 1.7;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================================
   SINGLE DOCTOR â€” Profile Layout
   =========================================== */

/* ---------- Detail Article ---------- */
.doctor-detail {
  padding: 60px 0 0;
}

/* ---------- Profile Grid ---------- */
.doctor-profile {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

/* ---------- Photo Column ---------- */
.doctor-photo {
  border-radius: var(--pi-radius-card);
  overflow: hidden;
  box-shadow: var(--pi-shadow-md);
}

.doctor-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.doctor-photo-placeholder {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--pi-navy-light), var(--pi-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pi-radius-card);
}

.doctor-avatar-icon-lg {
  font-size: 96px;
  opacity: 0.5;
}

/* ---------- Info Column ---------- */
.doctor-info-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pi-gold);
  margin: 0 0 8px;
}

.doctor-info-name {
  font-family: var(--pi-font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--pi-navy);
  line-height: 1.2;
  margin: 0 0 4px;
}

.doctor-info-col .gold-line-left {
  margin-bottom: 32px;
}

/* ---------- Info Blocks (Credentials, Specialties) ---------- */
.doctor-info-block {
  margin-bottom: 28px;
}

.doctor-info-block h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--pi-navy);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doctor-info-block h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 20px;
  background: var(--pi-gold);
  border-radius: 2px;
}

.doctor-info-content {
  font-size: 15px;
  color: var(--pi-text);
  line-height: 1.7;
}

/* ---------- CV Section ---------- */
.doctor-cv {
  padding-top: 64px;
  border-top: 1px solid var(--pi-light-gray);
  margin-bottom: 0;
}

.doctor-cv .section-heading {
  margin-bottom: 8px;
}

.doctor-cv .gold-line {
  margin-bottom: 40px;
}

/* ---------- Related Sections ---------- */
.doctor-related-services,
.doctor-related-cases {
  padding: 100px 0;
}

/* ===========================================
   RESPONSIVE â€” Tablet (max-width: 1199px)
   =========================================== */
@media (max-width: 1199px) {
  .doctors-archive {
    padding: 64px 0;
  }

  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .doctor-detail {
    padding: 48px 0 0;
  }

  .doctor-profile {
    grid-template-columns: 300px 1fr;
    gap: 36px;
    margin-bottom: 48px;
  }

  .doctor-info-name {
    font-size: 30px;
  }

  .doctor-related-services,
  .doctor-related-cases {
    padding: 80px 0;
  }
}

/* ===========================================
   RESPONSIVE â€” Mobile (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  .doctors-archive {
    padding: 48px 0;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .doctor-body {
    padding: 20px;
  }

  .doctor-name {
    font-size: 18px;
  }

  .doctor-avatar-svg {
    width: 56px;
    height: 56px;
  }

  .doctor-detail {
    padding: 36px 0 0;
  }

  /* Stack profile to single column on mobile */
  .doctor-profile {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
  }

  .doctor-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .doctor-info-name {
    font-size: 26px;
  }

  .doctor-cv {
    padding-top: 40px;
  }

  .doctor-related-services,
  .doctor-related-cases {
    padding: 64px 0;
  }
}


/* ====== technology.css ====== */
/* Pi Dentist â€” Technology Section (Section 5)
   Ná»n navy, 3-column tech grid, gold accents
   Reference: index.html .technology section */

/* ---------- Section Base ---------- */
.technology {
  padding: 100px 0;
  background: var(--pi-navy);
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow */
.technology::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Section Header Overrides ---------- */
.technology .section-label,
.technology .section-label-gold {
  color: var(--pi-gold);
}

.technology .section-heading,
.technology .section-heading-white {
  color: var(--pi-white);
}

.technology .section-sub,
.technology .section-sub-white {
  color: rgba(255, 255, 255, 0.6);
}

.technology .gold-line {
  background: var(--pi-gold);
}

/* ---------- Tech Grid ---------- */
/* WP Block Editor wraps group children in .wp-block-group__inner-container
   with is-layout-flow (flex column). Strategy:
   - .tech-grid itself uses grid (fallback when no WP wrapper)
   - When WP inner wrapper exists, parent becomes block, inner wrapper becomes grid */
.tech-grid,
.wp-block-group.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* When WP adds inner wrapper: parent â†’ block, inner â†’ grid */
.tech-grid:has(> .wp-block-group__inner-container),
.wp-block-group.tech-grid:has(> .wp-block-group__inner-container) {
  display: block !important;
}

.tech-grid > .wp-block-group__inner-container,
.wp-block-group.tech-grid > .wp-block-group__inner-container,
.tech-grid > .wp-block-group__inner-container.is-layout-flow,
.wp-block-group.tech-grid > .wp-block-group__inner-container.is-layout-flow {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  flex-direction: unset !important;
}

/* ---------- Tech Card ---------- */
.tech-card {
  padding: 40px 32px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: var(--pi-radius-card);
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--pi-transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tech-card:hover {
  border-color: var(--pi-gold);
  background: rgba(201, 169, 110, 0.06);
  transform: translateY(-4px);
}

/* ---------- Tech Icon ---------- */
.tech-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--pi-gold);
}

.tech-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--pi-gold);
  stroke-width: 1.5;
}

/* ---------- Tech Title ---------- */
.tech-title {
  font-family: var(--pi-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--pi-white);
  margin-bottom: 12px;
}

/* ---------- Tech Description ---------- */
.tech-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ---------- Tech CTA ---------- */
.tech-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===========================================
   RESPONSIVE â€” Tablet (max-width: 1199px)
   =========================================== */
@media (max-width: 1199px) {
  .technology {
    padding: 80px 24px;
  }

  .tech-grid,
  .wp-block-group.tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .tech-grid > .wp-block-group__inner-container,
  .wp-block-group.tech-grid > .wp-block-group__inner-container,
  .tech-grid > .wp-block-group__inner-container.is-layout-flow,
  .wp-block-group.tech-grid > .wp-block-group__inner-container.is-layout-flow {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }

  .tech-card {
    padding: 32px 24px;
  }

  .tech-title {
    font-size: 20px;
  }
}

/* ===========================================
   RESPONSIVE â€” Mobile (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  .technology {
    padding: 64px 24px;
  }

  .tech-grid,
  .wp-block-group.tech-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tech-grid > .wp-block-group__inner-container,
  .wp-block-group.tech-grid > .wp-block-group__inner-container,
  .tech-grid > .wp-block-group__inner-container.is-layout-flow,
  .wp-block-group.tech-grid > .wp-block-group__inner-container.is-layout-flow {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .tech-card {
    padding: 28px 24px;
  }

  .tech-title {
    font-size: 18px;
  }

  .tech-cta {
    margin-top: 36px;
  }
}

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  .tech-card {
    transition: none;
  }

  .tech-card:hover {
    transform: none;
  }
}


/* ====== simulation.css ====== */
/* Pi Dentist â€” Simulation CTA (Section 7)
   2-column layout: 3D scan visual + text content with check-list
   Reference: index.html .simulation section */

/* ---------- Section Base ---------- */
.simulation {
  padding: 100px 24px;
  background: var(--pi-white);
}

/* ---------- Grid Layout ---------- */
.simulation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ---------- Visual (3D scan mock) ---------- */
.simulation-visual {
  border-radius: var(--pi-radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    135deg,
    var(--pi-navy) 0%,
    var(--pi-navy-light) 50%,
    var(--pi-navy) 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated orbital rings */
.simulation-visual::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 50%;
  border: 2px solid rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite;
}

.simulation-visual::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 35%;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out 0.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.simulation-visual .scan-label {
  position: relative;
  z-index: 1;
  font-family: var(--pi-font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- Content Side ---------- */
.simulation-content .section-label,
.simulation-content .section-heading {
  text-align: left;
}

.simulation-text {
  font-size: 16px;
  color: var(--pi-text-soft);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ---------- Check List (reused from sections.css, scoped here) ---------- */
.simulation .check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}

.simulation .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--pi-text);
  line-height: 1.6;
}

.simulation .check-list li .check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.12);
  color: var(--pi-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===========================================
   RESPONSIVE â€” Tablet (max-width: 1199px)
   =========================================== */
@media (max-width: 1199px) {
  .simulation {
    padding: 80px 24px;
  }

  .simulation-grid {
    gap: 48px;
  }
}

/* ===========================================
   RESPONSIVE â€” Mobile (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  .simulation {
    padding: 64px 20px;
  }

  .simulation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Visual goes on top on mobile */
  .simulation-visual {
    order: -1;
  }

  .simulation-text {
    font-size: 15px;
  }
}

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  .simulation-visual::before,
  .simulation-visual::after {
    animation: none;
  }
}


/* ====== journey.css ====== */
/* Pi Dentist â€” Journey Timeline (Section 8)
   5-step horizontal timeline with connecting line
   Reference: index.html .journey + .timeline sections */

/* ---------- Section Base ---------- */
.journey {
  padding: 100px 24px;
  background: var(--pi-off-white);
}

/* ---------- Timeline Container ---------- */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 20px;
}

/* Horizontal connector line */
.timeline::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--pi-gold-light);
}

/* ---------- Timeline Step ---------- */
.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 12px;
}

/* ---------- Step Number Circle ---------- */
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--pi-gold);
  background: var(--pi-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pi-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--pi-gold);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  transition: all var(--pi-transition);
}

.timeline-step:hover .step-number {
  background: var(--pi-gold);
  color: var(--pi-white);
}

/* ---------- Step Title ---------- */
.step-title {
  font-family: var(--pi-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--pi-navy);
  margin-bottom: 10px;
}

/* ---------- Step Description ---------- */
.step-desc {
  font-size: 13px;
  color: var(--pi-text-soft);
  line-height: 1.7;
}

/* ===========================================
   RESPONSIVE â€” Tablet (max-width: 1199px)
   =========================================== */
@media (max-width: 1199px) {
  .journey {
    padding: 80px 24px;
  }

  .timeline {
    flex-wrap: wrap;
    gap: 40px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-step {
    flex: 0 0 calc(33.333% - 30px);
  }

  .step-title {
    font-size: 16px;
  }
}

/* ===========================================
   RESPONSIVE â€” Mobile (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  .journey {
    padding: 64px 20px;
  }

  /* Vertical timeline on mobile */
  .timeline {
    flex-direction: column;
    gap: 0;
    padding-left: 40px;
    padding-top: 0;
  }

  /* Vertical connector line */
  .timeline::before {
    display: block;
    top: 0;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 2px;
    height: 100%;
  }

  .timeline-step {
    flex: none;
    text-align: left;
    padding: 0 0 40px 0;
  }

  .step-number {
    position: absolute;
    left: -40px;
    top: 0;
    margin: 0;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .step-title {
    font-size: 16px;
  }

  .step-desc {
    font-size: 13px;
  }
}

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  .step-number {
    transition: none;
  }
}


/* ====== services-grid.css ====== */
/* Pi Dentist â€” Services Grid
   Styles for /dich-vu/ archive page and homepage section 6.
   Uses base card styles from cards.css + tokens from tokens.css */

/* ---------- Archive Section ---------- */
.services-archive {
  padding: 80px 0;
}

/* ---------- Grid Layout ---------- */
/* Mobile-first: 1 column base */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ---------- Service Thumbnail ---------- */
.service-thumb-link {
  display: block;
  text-decoration: none;
}

.service-thumb {
  aspect-ratio: 3 / 2;
  border-radius: var(--pi-radius-card) var(--pi-radius-card) 0 0;
  overflow: hidden;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pi-transition);
}

.service-card:hover .service-thumb img {
  transform: scale(1.05);
}

/* ---------- Gradient Placeholders (khi khÃ´ng cÃ³ áº£nh) ---------- */
.service-thumb.metal {
  background: linear-gradient(135deg, #8D8D8D, #B5B5B5);
}

.service-thumb.ceramic {
  background: linear-gradient(135deg, #F5E6C8, #DBC5A0);
}

.service-thumb.clear {
  background: linear-gradient(135deg, #B8D4E3, #87CEEB);
}

.service-thumb.lingual {
  background: linear-gradient(135deg, #2C2C2C, #4A4A2E);
}

/* ---------- Service Body ---------- */
.service-body {
  padding: 24px;
}

/* ---------- Service Name ---------- */
.service-name {
  font-family: var(--pi-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--pi-navy);
  line-height: 1.3;
  margin: 0 0 8px;
}

.service-name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--pi-transition);
}

.service-name a:hover {
  color: var(--pi-gold);
}

/* ---------- Service Tagline ---------- */
.service-tagline {
  font-size: 14px;
  color: var(--pi-text-soft);
  line-height: 1.5;
  margin: 0 0 8px;
}

/* ---------- Service Price ---------- */
.service-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--pi-navy);
  margin: 0 0 4px;
}

/* ---------- Service Suitable ---------- */
.service-suitable {
  font-size: 13px;
  color: var(--pi-text-soft);
  margin: 0 0 12px;
}

/* ---------- No Results ---------- */
.pi-no-results {
  text-align: center;
  padding: 60px 0;
  color: var(--pi-text-soft);
  font-size: 16px;
}

/* ===========================================
   RESPONSIVE â€” Tablet (min-width: 768px)
   =========================================== */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .services-archive {
    padding: 64px 0;
  }
}

/* ===========================================
   RESPONSIVE â€” Laptop / Desktop (min-width: 1024px)
   Force 4 columns â€” all services on 1 row
   =========================================== */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .services-archive {
    padding: 80px 0;
  }
}


/* ====== pricing-table.css ====== */
/* Pi Dentist â€” Pricing Table (Section 9)
   Desktop table + mobile cards + installment box + trust badges
   Reference: index.html .pricing section */

/* ---------- Section Base ---------- */
.pricing {
  padding: 100px 24px;
  background: var(--pi-white);
}

/* ---------- Table Wrapper (scroll on small screens) ---------- */
.pricing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 40px;
}

/* ---------- Desktop Table ---------- */
.pricing-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--pi-light-gray);
  border-radius: var(--pi-radius-card);
  overflow: hidden;
}

.pricing-table thead {
  background: var(--pi-navy);
}

.pricing-table th {
  padding: 18px 24px;
  font-family: var(--pi-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--pi-white);
  text-align: left;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-table tbody tr {
  transition: background var(--pi-transition);
}

.pricing-table tbody tr:last-child {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: var(--pi-off-white);
}

/* Highlight row â€” "Niá»ng trong suá»‘t" */
.pricing-table tbody tr.highlight {
  background: linear-gradient(
    135deg,
    rgba(201, 169, 110, 0.08),
    rgba(201, 169, 110, 0.03)
  );
  border-left: 3px solid var(--pi-gold);
}

.pricing-table tbody tr.highlight:hover {
  background: linear-gradient(
    135deg,
    rgba(201, 169, 110, 0.14),
    rgba(201, 169, 110, 0.06)
  );
}

.pricing-table td {
  padding: 20px 24px;
  font-size: 15px;
  color: var(--pi-text);
  vertical-align: middle;
  border-bottom: 1px solid var(--pi-light-gray);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table .price-cell {
  font-weight: 600;
  color: var(--pi-gold-a11y);
  font-size: 16px;
  white-space: nowrap;
}

.pricing-table .btn {
  padding: 8px 20px;
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- Mobile Pricing Cards (hidden desktop) ---------- */
.pricing-cards-mobile {
  display: none;
}

.pricing-card-m {
  background: var(--pi-white);
  border: 1px solid var(--pi-light-gray);
  border-radius: var(--pi-radius-card);
  padding: 28px;
  margin-bottom: 16px;
  transition: all var(--pi-transition);
}

.pricing-card-m:hover {
  border-color: var(--pi-gold-light);
  box-shadow: var(--pi-shadow-sm);
}

/* Highlight card variant */
.pricing-card-m.highlight-card {
  border-color: var(--pi-gold);
  background: linear-gradient(
    135deg,
    rgba(201, 169, 110, 0.08),
    rgba(201, 169, 110, 0.03)
  );
}

.pricing-card-m .method-name {
  font-family: var(--pi-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--pi-navy);
  margin-bottom: 12px;
}

.pricing-card-m .method-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--pi-gold-a11y);
  margin-bottom: 8px;
}

.pricing-card-m .method-detail {
  font-size: 14px;
  color: var(--pi-text-soft);
  margin-bottom: 6px;
  line-height: 1.6;
}

.pricing-card-m .btn {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

/* ---------- Installment Box ---------- */
.installment-box {
  background: var(--pi-off-white);
  border-radius: var(--pi-radius-card);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
  border: 1px dashed var(--pi-gold);
}

.installment-box h3 {
  font-family: var(--pi-font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--pi-navy);
  margin-bottom: 10px;
}

.installment-box p {
  color: var(--pi-text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.installment-box .gold-highlight {
  color: var(--pi-gold-a11y);
  font-weight: 600;
}

/* ---------- Trust Badges ---------- */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pi-navy);
}

.trust-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(46, 125, 91, 0.1);
  color: var(--pi-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ===========================================
   RESPONSIVE â€” Tablet (max-width: 1199px)
   =========================================== */
@media (max-width: 1199px) {
  .pricing {
    padding: 80px 24px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 16px 18px;
  }

  .installment-box {
    padding: 28px;
  }

  .installment-box h3 {
    font-size: 22px;
  }
}

/* ===========================================
   RESPONSIVE â€” Mobile (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  .pricing {
    padding: 64px 20px;
  }

  /* Hide desktop table, show mobile cards */
  .pricing-table-wrap {
    display: none;
  }

  .pricing-cards-mobile {
    display: block;
  }

  .installment-box {
    padding: 24px;
    margin-top: 32px;
  }

  .installment-box h3 {
    font-size: 20px;
  }

  .installment-box p {
    font-size: 15px;
  }

  .trust-badges {
    gap: 20px;
    margin-top: 28px;
  }

  .trust-badge {
    font-size: 13px;
  }

  .trust-badge .badge-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  .pricing-table tbody tr,
  .pricing-card-m {
    transition: none;
  }
}


/* ====== booking-form.css ====== */
/* Pi Dentist â€” Booking Form
   CTA section navy background form styles.
   Reference: index.html CTA + BOOKING section.
   All values use CSS custom properties from tokens.css.
   
   DOM structure (Gutenberg synced pattern):
   .cta-booking.wp-block-group
     â””â”€ .wp-block-group.is-layout-flex.is-nowrap  â† flex container (2 cols)
          â”œâ”€ .wp-block-group (form side: h2 + promo + [pi_booking_form])
          â””â”€ .wp-block-group (info side: [pi_contact_block])
*/

/* ---------- Honeypot (hidden from humans) ---------- */
.pi-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ---------- CTA Grid: 2-column layout ---------- */
/* Gutenberg wp:columns outputs .wp-block-columns; wp:group flex outputs .is-layout-flex */
.cta-booking > .wp-block-group__inner-container > .wp-block-group.is-layout-flex,
.cta-booking .wp-block-group.is-layout-flex.is-nowrap,
.cta-booking .wp-block-columns.cta-grid,
.cta-booking > .wp-block-columns,
.cta-booking .wp-block-columns {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: var(--pi-container);
  margin: 0 auto;
  flex-wrap: unset;
}

/* Both child columns */
.cta-booking .wp-block-group.is-layout-flex > .wp-block-group,
.cta-booking .wp-block-columns > .wp-block-column {
  width: 100%;
  min-width: 0; /* Prevent grid blowout */
}

/* CTA section heading */
.cta-booking h2 {
  font-family: var(--pi-font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--pi-white);
  line-height: 1.25;
  margin-bottom: 16px;
}

/* Promo badge */
.cta-booking .promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--pi-gold-light);
  margin-bottom: 32px;
}

.promo-emoji {
  font-size: 18px;
}

/* ---------- Contact Info: Right Column ---------- */
/* Reference: index.html .info-block / .info-icon / .map-placeholder */
.pi-contact-block {
  padding-top: 20px;
}

.info-block {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(201, 169, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pi-gold);
  font-size: 18px;
}

.info-block h3 {
  font-family: var(--pi-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--pi-white);
  margin: 0 0 4px;
}

.info-block p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

.info-block p a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--pi-transition);
}

.info-block p a:hover {
  color: var(--pi-gold);
}

/* Google Map embed */
.pi-contact-map {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pi-contact-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  display: block;
}

/* Map placeholder (when no embed is set) */
.map-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  gap: 8px;
  margin-top: 12px;
}

/* ---------- Form Container ---------- */
.pi-booking-form {
  max-width: 100%;
  position: relative;
}

/* ---------- Form Group ---------- */
.pi-form-group {
  margin-bottom: 20px;
}

/* ---------- Labels ---------- */
.pi-booking-form label {
  display: block;
  font-family: var(--pi-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--pi-white);
  margin-bottom: 8px;
}

.pi-required {
  color: var(--pi-gold);
  margin-left: 2px;
}

/* ---------- Inputs, Textarea, Select ---------- */
.pi-booking-form input[type="text"],
.pi-booking-form input[type="tel"],
.pi-booking-form textarea,
.pi-booking-form select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--pi-font-body);
  font-size: 15px;
  color: var(--pi-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--pi-transition), background var(--pi-transition);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.pi-booking-form input::placeholder,
.pi-booking-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Focus state */
.pi-booking-form input:focus,
.pi-booking-form textarea:focus,
.pi-booking-form select:focus {
  border-color: var(--pi-gold);
  background: rgba(255, 255, 255, 0.08);
}

/* Error state */
.pi-booking-form .pi-input-error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.06);
}

/* ---------- Select dropdown arrow (custom) ---------- */
.pi-booking-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Select option styling (browser-rendered) */
.pi-booking-form select option {
  background: var(--pi-navy);
  color: var(--pi-white);
  padding: 8px;
}

/* ---------- Textarea ---------- */
.pi-booking-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* ---------- Field Error Message ---------- */
.pi-field-error {
  display: none;
  font-size: 13px;
  color: #ef4444;
  margin-top: 6px;
  line-height: 1.4;
}

/* ---------- Submit Button ---------- */
.pi-booking-btn {
  display: block;
  width: 100%;
  padding: 16px 32px;
  font-family: var(--pi-font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--pi-navy);
  background: var(--pi-gold);
  border: none;
  border-radius: var(--pi-radius-btn);
  cursor: pointer;
  transition: background var(--pi-transition), transform var(--pi-transition);
  margin-top: 8px;
}

.pi-booking-btn:hover {
  background: var(--pi-gold-hover);
  transform: translateY(-1px);
}

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

/* Loading state */
.pi-booking-btn--loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Form Note (phone fallback) ---------- */
.pi-form-note {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 20px;
}

.pi-form-note a {
  color: var(--pi-gold);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--pi-transition);
}

.pi-form-note a:hover {
  color: var(--pi-gold-light);
}

/* ---------- Success Message ---------- */
.pi-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  animation: piFadeIn 0.5s ease;
}

.pi-form-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(46, 125, 91, 0.15);
  color: var(--pi-success);
  font-size: 28px;
  margin-bottom: 20px;
}

.pi-form-success__text {
  font-size: 17px;
  color: var(--pi-white);
  line-height: 1.7;
  max-width: 400px;
}

/* ---------- Error Banner ---------- */
.pi-form-error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: #fca5a5;
  line-height: 1.5;
  margin-bottom: 20px;
  animation: piShake 0.4s ease;
}

/* ---------- Animations ---------- */
@keyframes piFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes piShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* ===========================================
   RESPONSIVE â€” Tablet (max-width: 1199px)
   =========================================== */
@media (max-width: 1199px) {
  .cta-booking > .wp-block-group__inner-container > .wp-block-group.is-layout-flex,
  .cta-booking .wp-block-group.is-layout-flex.is-nowrap,
  .cta-booking .wp-block-columns.cta-grid,
  .cta-booking > .wp-block-columns,
  .cta-booking .wp-block-columns {
    gap: 40px;
  }

  .cta-booking h2 {
    font-size: 30px;
  }
}

/* ===========================================
   RESPONSIVE â€” Mobile (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  /* Stack columns vertically: form on top, info below */
  .cta-booking > .wp-block-group__inner-container > .wp-block-group.is-layout-flex,
  .cta-booking .wp-block-group.is-layout-flex.is-nowrap,
  .cta-booking .wp-block-columns.cta-grid,
  .cta-booking > .wp-block-columns,
  .cta-booking .wp-block-columns {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Form column: bottom spacing */
  .cta-booking .wp-block-group.is-layout-flex > .wp-block-group:first-child,
  .cta-booking .wp-block-columns > .wp-block-column:first-child {
    padding-bottom: 40px;
  }

  .cta-booking h2 {
    font-size: 26px;
    text-align: center;
  }

  .cta-booking .promo-badge {
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 28px;
  }

  /* Info column: top border separator */
  .cta-booking .wp-block-group.is-layout-flex > .wp-block-group:last-child,
  .cta-booking .wp-block-columns > .wp-block-column:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 40px;
  }

  .pi-booking-form {
    max-width: 100%;
  }

  .pi-booking-form input[type="text"],
  .pi-booking-form input[type="tel"],
  .pi-booking-form textarea,
  .pi-booking-form select {
    padding: 12px 14px;
    font-size: 16px; /* Prevent iOS zoom on focus */
  }

  .pi-booking-btn {
    padding: 14px 24px;
    font-size: 15px;
  }

  .pi-form-success {
    padding: 36px 16px;
  }

  .pi-form-success__text {
    font-size: 15px;
  }
}

/* ===========================================
   REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  .pi-form-success,
  .pi-form-error-banner {
    animation: none;
  }

  .pi-booking-btn {
    transition: none;
  }
}


/* ====== posts-grid + post-card (Homepage Section #10 — Kiến thức) ====== */
/* Extracted from blog.css — needed on front-page for [pi_recent_posts] shortcode */

/* ---------- Posts Grid ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ---------- Post Card ---------- */
.post-card {
  display: flex;
  flex-direction: column;
}

.post-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pi-transition);
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}

.post-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--pi-navy) 0%, var(--pi-navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__thumb-placeholder span {
  font-family: var(--pi-font-heading);
  font-size: 64px;
  color: var(--pi-gold-light);
  opacity: 0.3;
}

.post-card__thumb-link {
  display: block;
  text-decoration: none;
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card__category {
  display: inline-block;
  font-family: var(--pi-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pi-gold);
  background: rgba(201, 169, 110, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: background var(--pi-transition), color var(--pi-transition);
  align-self: flex-start;
}

.post-card__category:hover {
  background: var(--pi-gold);
  color: var(--pi-white);
}

.post-card__title {
  font-family: var(--pi-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--pi-navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--pi-transition);
}

.post-card__title a:hover {
  color: var(--pi-gold);
}

.post-card__excerpt {
  font-size: 15px;
  color: var(--pi-text-soft);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  font-size: 13px;
  color: var(--pi-text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.post-card__meta-sep {
  opacity: 0.5;
}

.post-card .card-link {
  margin-top: auto;
  padding-top: 8px;
}

/* ---------- "Xem tất cả bài viết" link ---------- */
.all-posts {
  text-align: center;
  margin-top: 40px;
}

/* ===========================================
   Posts Grid — Responsive Tablet
   =========================================== */
@media (max-width: 1199px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ===========================================
   Posts Grid — Responsive Mobile
   =========================================== */
@media (max-width: 767px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-card__body {
    padding: 20px;
  }

  .post-card__title {
    font-size: 18px;
  }

  .post-card__excerpt {
    font-size: 14px;
  }
}

/* ---------- Post Card — Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .post-card__thumb img,
  .post-card__category,
  .post-card__title a {
    transition: none;
  }

  .post-card:hover .post-card__thumb img {
    transform: none;
  }
}
