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

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

/* Custom brand colors */
.text-\[\#8c5204\] {
  color: #8c5204;
}

.text-\[\#1f1a14\] {
  color: #1f1a14;
}

.text-\[\#d97706\] {
  color: #d97706;
}

.bg-\[\#8c5204\] {
  background-color: #8c5204;
}

.bg-\[\#d97706\] {
  background-color: #d97706;
}

.bg-\[\#c67700\] {
  background-color: #c67700;
}

.bg-\[\#1f1a14\] {
  background-color: #1f1a14;
}

.bg-\[\#12100e\] {
  background-color: #12100e;
}

.bg-\[\#f59e0b\] {
  background-color: #f59e0b;
}

.text-\[\#f59e0b\] {
  color: #f59e0b;
}

.border-\[\#f59e0b\] {
  border-color: #f59e0b;
}

.border-\[\#8c5204\] {
  border-color: #8c5204;
}

/* Gradient backgrounds */
.from-\[\#1f1a14\] {
  --tw-gradient-from: #1f1a14;
}

.from-\[\#8c5204\] {
  --tw-gradient-from: #8c5204;
}

.from-\[\#9a5500\] {
  --tw-gradient-from: #9a5500;
}

.via-\[\#8c5204\] {
  --tw-gradient-via: #8c5204;
}

.via-\[\#d97706\] {
  --tw-gradient-via: #d97706;
}

.to-\[\#d97706\] {
  --tw-gradient-to: #d97706;
}

.to-\[\#12100e\] {
  --tw-gradient-to: #12100e;
}

.to-\[\#fbbf24\] {
  --tw-gradient-to: #fbbf24;
}

/* Hero section background */
.bg-gradient-to-br.from-\[\#1f1a14\].via-\[\#8c5204\].to-\[\#d97706\] {
  background: linear-gradient(to bottom right, #1f1a14, #8c5204, #d97706);
}

/* Header gradient */
.bg-gradient-to-r.from-\[\#8c5204\].to-\[\#d97706\] {
  background: linear-gradient(to right, #8c5204, #d97706);
}

/* Footer gradient */
.bg-gradient-to-b.from-\[\#1f1a14\].to-\[\#12100e\] {
  background: linear-gradient(to bottom, #1f1a14, #12100e);
}

.bg-gradient-to-br.from-\[\#8c5204\].to-\[\#d97706\] {
  background: linear-gradient(to bottom right, #8c5204, #d97706);
}

/* Logo gradient */
.bg-gradient-to-tr.from-\[\#8c5204\].via-\[\#d97706\].to-\[\#fbbf24\] {
  background: linear-gradient(to top right, #8c5204, #d97706, #fbbf24);
}

.bg-gradient-to-r.from-\[\#8c5204\].to-\[\#d97706\] {
  background: linear-gradient(to right, #8c5204, #d97706);
}

/* Text gradient */
.from-amber-300.to-amber-500 {
  --tw-gradient-from: #fcd34d;
  --tw-gradient-to: #f59e0b;
}

.from-\[\#8c5204\].to-\[\#fbbf24\] {
  --tw-gradient-from: #8c5204;
  --tw-gradient-to: #fbbf24;
}

.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-\[\#8c5204\].to-\[\#fbbf24\] {
  background: linear-gradient(to right, #8c5204, #fbbf24);
}

/* 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: #8c5204;
  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: #8c5204;
  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, #8c5204, #d97706);
}

/* =============================================
   HEADER
   ============================================= */
#main-header {
  padding-top: 0 !important;
  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, #1f1a14, #8c5204, #d97706);
  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;
}

/* Cầu nối vô hình để chuột không bị mất hover khi di chuyển xuống menu */
#primary-nav-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

#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, #1f1a14, #12100e);
}

#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: #c67700;
}

.floating-widget-phone {
  background-color: #8c5204;
}

/* =============================================
   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-top: 0 !important;
    padding-bottom: 0.5rem;
  }

  .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: #8c5204;
  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: #8c5204;
  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;
}

/* Tùy chỉnh Font chữ và Kích thước theo yêu cầu */
html {
  font-size: 17px !important;
}

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35 !important;
}

.font-serif {
  font-family: 'Merriweather', ui-serif, Georgia, Cambria, "Times New Roman", Times, serif !important;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}