/*
Theme Name: Duc Hanh Premium Dental
Theme URI: https://duchanhpremiumdental.vn
Author: Duc Hanh Premium Dental
Author URI: https://duchanhpremiumdental.vn
Description: Giao diện cao cấp cho Phòng Khám Nha Khoa Đức Hạnh Premium – Kiến Tạo Nụ Cười, Giá Trị Bền Vững
Version: 1.0.0
Text Domain: duchanhpremium
*/

/* =============================================
   ARBITRARY VALUE UTILITIES
   (Tailwind static build can't generate these)
   ============================================= */

/* Custom brand colors */
.text-\[\#1e3a8a\] { color: #1e3a8a; }
.text-\[\#0f2254\] { color: #0f2254; }
.text-\[\#2563eb\] { color: #2563eb; }
.bg-\[\#1e3a8a\] { background-color: #1e3a8a; }
.bg-\[\#2563eb\] { background-color: #2563eb; }
.bg-\[\#006AF5\] { background-color: #006AF5; }
.bg-\[\#0f2254\] { background-color: #0f2254; }
.bg-\[\#0a1a40\] { background-color: #0a1a40; }
.border-\[\#1e3a8a\] { border-color: #1e3a8a; }

/* Gradient backgrounds */
.from-\[\#0f2254\] { --tw-gradient-from: #0f2254; }
.from-\[\#1e3a8a\] { --tw-gradient-from: #1e3a8a; }
.from-\[\#18398b\] { --tw-gradient-from: #18398b; }
.via-\[\#1e3a8a\] { --tw-gradient-via: #1e3a8a; }
.via-\[\#2563eb\] { --tw-gradient-via: #2563eb; }
.to-\[\#2563eb\] { --tw-gradient-to: #2563eb; }
.to-\[\#0a1a40\] { --tw-gradient-to: #0a1a40; }
.to-\[\#60a5fa\] { --tw-gradient-to: #60a5fa; }

/* Hero section background */
.bg-gradient-to-br.from-\[\#0f2254\].via-\[\#1e3a8a\].to-\[\#2563eb\] {
  background: linear-gradient(to bottom right, #0f2254, #1e3a8a, #2563eb);
}

/* Header gradient */
.bg-gradient-to-r.from-\[\#1e3a8a\].to-\[\#2563eb\] {
  background: linear-gradient(to right, #1e3a8a, #2563eb);
}

/* Footer gradient */
.bg-gradient-to-b.from-\[\#0f2254\].to-\[\#0a1a40\] {
  background: linear-gradient(to bottom, #0f2254, #0a1a40);
}
.bg-gradient-to-br.from-\[\#1e3a8a\].to-\[\#2563eb\] {
  background: linear-gradient(to bottom right, #1e3a8a, #2563eb);
}

/* Logo gradient */
.bg-gradient-to-tr.from-\[\#1e3a8a\].via-\[\#2563eb\].to-\[\#60a5fa\] {
  background: linear-gradient(to top right, #1e3a8a, #2563eb, #60a5fa);
}
.bg-gradient-to-r.from-\[\#1e3a8a\].to-\[\#2563eb\] {
  background: linear-gradient(to right, #1e3a8a, #2563eb);
}

/* Text gradient */
.from-amber-300.to-amber-500 { --tw-gradient-from: #fcd34d; --tw-gradient-to: #f59e0b; }
.from-\[\#1e3a8a\].to-\[\#60a5fa\] { --tw-gradient-from: #1e3a8a; --tw-gradient-to: #60a5fa; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }
.bg-gradient-to-r.from-amber-300.to-amber-500 {
  background: linear-gradient(to right, #fcd34d, #f59e0b);
}
.bg-gradient-to-r.from-\[\#1e3a8a\].to-\[\#60a5fa\] {
  background: linear-gradient(to right, #1e3a8a, #60a5fa);
}

/* Blur decorative elements */
.blur-3xl { filter: blur(64px); }

/* =============================================
   PROSE STYLES (for post content)
   ============================================= */
.prose h2 { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; color: #1e3a8a; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { color: #475569; line-height: 1.8; margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; color: #475569; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; color: #475569; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: #1d4ed8; text-decoration: underline; }
.prose img { border-radius: 1rem; max-width: 100%; margin: 1.5rem auto; display: block; }
.prose blockquote { border-left: 4px solid #1d4ed8; padding-left: 1rem; color: #64748b; font-style: italic; margin: 1.5rem 0; background: #eff6ff; padding: 1rem 1.5rem; border-radius: 0 0.75rem 0.75rem 0; }
.prose strong { color: #0f172a; font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.prose table th { background: #1e3a8a; color: white; padding: 0.75rem 1rem; text-align: left; font-weight: 700; }
.prose table td { padding: 0.75rem 1rem; border-bottom: 1px solid #e2e8f0; color: #475569; }
.prose table tr:nth-child(even) td { background: #f8fafc; }

/* =============================================
   LINE CLAMP UTILITIES
   ============================================= */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =============================================
   TOP BAR
   ============================================= */
#top-bar {
  background: linear-gradient(to right, #1e3a8a, #2563eb);
}

/* =============================================
   HEADER
   ============================================= */
#main-header {
  background: white;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.06);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  background: linear-gradient(to bottom right, #0f2254, #1e3a8a, #2563eb);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* =============================================
   NAVIGATION MENU
   ============================================= */
#primary-nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
#primary-nav-menu li { position: relative; }
#primary-nav-menu > li > a {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  border-radius: 0.5rem;
  transition: color .2s, background .2s;
  white-space: nowrap;
  text-decoration: none;
}
#primary-nav-menu > li > a:hover { color: #1d4ed8; background: #eff6ff; }
#primary-nav-menu > li.current-menu-item > a,
#primary-nav-menu > li.current-menu-parent > a { color: #1d4ed8; background: #eff6ff; font-weight: 700; }

/* Dropdown */
#primary-nav-menu .sub-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 14rem;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.12);
  z-index: 100; padding: 0.35rem 0;
  list-style: none;
}
#primary-nav-menu li:hover > .sub-menu { display: block; }
#primary-nav-menu .sub-menu li a {
  display: block; padding: 0.5rem 1rem;
  font-size: 0.8125rem; font-weight: 500; color: #475569;
  transition: background .15s, color .15s;
  text-decoration: none;
}
#primary-nav-menu .sub-menu li a:hover { background: #f1f5f9; color: #1d4ed8; }

/* Mobile */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }
#mobile-menu ul { list-style: none; margin: 0; padding: 0; }
#mobile-menu a { display: block; padding: 0.65rem 1.25rem; color: #334155; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid #f1f5f9; text-decoration: none; }
#mobile-menu a:hover { color: #1d4ed8; background: #eff6ff; }

/* =============================================
   FOOTER
   ============================================= */
#colophon {
  background: linear-gradient(to bottom, #0f2254, #0a1a40);
}
#colophon ul { list-style: none; margin: 0; padding: 0; }
#colophon ul li a { text-decoration: none; color: #94a3b8; transition: color .2s; }
#colophon ul li a:hover { color: #fbbf24; }

/* =============================================
   FLOATING WIDGETS
   ============================================= */
.floating-widget-zalo { background-color: #006AF5; }
.floating-widget-phone { background-color: #1e3a8a; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn .5s ease-out both; }

/* =============================================
   MOBILE RESPONSIVE PATCHES
   ============================================= */
@media (max-width: 768px) {
  #main-header { padding: 0.75rem 0; }
  .hero-section { min-height: 60vh; padding: 4rem 1rem; }
}


/* Base prose styles for single post content */
.prose h2 { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.2rem; font-weight: 700; color: #1e3a8a; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { color: #475569; line-height: 1.8; margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; color: #475569; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; color: #475569; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: #1d4ed8; text-decoration: underline; }
.prose img { border-radius: 1rem; max-width: 100%; margin: 1.5rem auto; display: block; }
.prose blockquote { border-left: 4px solid #1d4ed8; padding-left: 1rem; color: #64748b; font-style: italic; margin: 1.5rem 0; background: #eff6ff; padding: 1rem 1.5rem; border-radius: 0 0.75rem 0.75rem 0; }
.prose strong { color: #0f172a; font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.prose table th { background: #1e3a8a; color: white; padding: 0.75rem 1rem; text-align: left; font-weight: 700; }
.prose table td { padding: 0.75rem 1rem; border-bottom: 1px solid #e2e8f0; color: #475569; }
.prose table tr:nth-child(even) td { background: #f8fafc; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
