/*
Theme Name: Thai Duong Dental
Description: Theme riêng cho nhakhoathaiduong.net, bám cấu trúc trang chủ web chính .vn.
Version: 1.0
*/
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.65; color: #212529; background: #fff; }
a { color: #0b5394; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.3; color: #0b5394; margin: 0 0 14px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.btn, .btn-booking { display: inline-block; background: #0b5394; color: #fff; padding: 10px 22px; border-radius: 4px; font-weight: 700; }
.btn:hover, .btn-booking:hover { background: #084a80; color: #fff; text-decoration: none; }
.btn-light { background: #fff; color: #0b5394; }
.btn-light:hover { background: #eef5fb; color: #0b5394; }
/* Topbar */
.topbar { background: #0b5394; color: #fff; font-size: 14px; }
.topbar-in { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; font-weight: 700; }
.tb-hotline a { font-size: 15px; }
/* Header */
.site-header { background: #fff; border-bottom: 3px solid #0b5394; position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #0b5394; color: #fff; font-size: 30px; font-weight: 300; border-radius: 8px; line-height: 1; }
.logo-text { font-size: 15px; letter-spacing: 1px; color: #0b5394; line-height: 1.25; }
.logo-text strong { font-size: 21px; letter-spacing: 0.5px; }
.menu-toggle { display: none; margin-left: auto; background: #0b5394; color: #fff; border: 0; border-radius: 4px; font-size: 22px; padding: 6px 12px; cursor: pointer; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav-list li { position: relative; }
.nav-list > li > a { display: block; padding: 9px 11px; color: #212529; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-list > li > a:hover, .nav-list > li.current-menu-item > a, .nav-list > li.current-page-ancestor > a { color: #0b5394; text-decoration: none; }
.nav-list .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border: 1px solid #dee2e6; border-top: 3px solid #0b5394; box-shadow: 0 8px 20px rgba(0,0,0,.12); list-style: none; padding: 6px 0; z-index: 60; }
.nav-list li:hover > .sub-menu { display: block; }
.nav-list .sub-menu a { display: block; padding: 8px 16px; color: #212529; font-size: 14px; font-weight: 500; }
.nav-list .sub-menu a:hover { color: #0b5394; background: #f4f8fb; text-decoration: none; }
.header-in .btn-booking { flex-shrink: 0; white-space: nowrap; }
/* Hero slider */
.hero { position: relative; height: 520px; overflow: hidden; background: #0a3d62; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,32,56,.78) 0%, rgba(4,32,56,.35) 55%, rgba(4,32,56,.05) 100%); display: flex; align-items: center; }
.hero-content { color: #fff; max-width: 640px; }
.hero-content h1 { color: #fff; font-size: 46px; margin-bottom: 12px; }
.hero-content p { font-size: 18px; color: #eaf3fa; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.55); border: 0; cursor: pointer; padding: 0; }
.hero-dot.active { background: #fff; }

/* Sections */
.section { padding: 54px 0; }
.section-alt { background: #f4f8fb; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.section-head h2, .section-title { font-size: 30px; text-transform: uppercase; }
.section-head h2::after, .section-title::after { content: ""; display: block; width: 60px; height: 3px; background: #0b5394; margin: 12px auto 0; }
.section-title { text-align: center; margin-bottom: 32px; }
/* About points */
.points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.point-card { border: 1px solid #dee2e6; border-top: 4px solid #0b5394; border-radius: 6px; padding: 24px; background: #fff; }
.point-card h3 { font-size: 19px; margin-bottom: 8px; }
/* Services */
.svc-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 22px; }
.svc-big { background: #0b5394; color: #fff; border-radius: 6px; padding: 28px 24px; }
.svc-big h3 { color: #fff; font-size: 22px; text-transform: uppercase; }
.svc-big a { color: #fff; font-weight: 700; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { display: block; border: 1px solid #dee2e6; border-radius: 6px; padding: 18px 20px; background: #fff; }
.cat-card:hover { border-color: #0b5394; text-decoration: none; }
.cat-card strong { color: #0b5394; font-size: 18px; }
.cat-card span { display: block; color: #6c757d; font-size: 14px; }
/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.post-card { border: 1px solid #dee2e6; border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #e9ecef; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #0b5394; color: #fff; font-size: 44px; }
.post-body { padding: 16px 18px 20px; }
.post-meta { font-size: 13px; color: #6c757d; margin-bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-cat { font-weight: 700; }
.post-body h3 { font-size: 17px; margin-bottom: 8px; }
.post-body h3 a { color: #212529; }
.post-body h3 a:hover { color: #0b5394; }
.post-body p { font-size: 14px; color: #495057; margin: 0; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
/* Doctors */
.doctors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 860px; margin: 0 auto; }
.doctor-card { border: 1px solid #dee2e6; border-radius: 6px; overflow: hidden; background: #fff; text-align: center; padding-bottom: 22px; }
.doctor-photo { aspect-ratio: 1/1; overflow: hidden; background: #e9ecef; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doctor-card h3 { margin-top: 16px; font-size: 21px; }
.doctor-card p { color: #6c757d; }
/* Stats band */
.stats-band { background: #0b5394; color: #fff; padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.stat-item { text-align: center; font-size: 15px; line-height: 1.55; }
.stat-item strong { display: block; font-size: 20px; margin-bottom: 6px; }
/* Videos */
.videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 6px; background: #000; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
/* CTA band */
.cta-band { background: #0a2f4a; color: #fff; padding: 44px 0; }
.cta-in { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-in h2 { color: #fff; margin: 0; font-size: 26px; }
.cta-in p { color: #cfe3f2; margin: 4px 0 0; }
.cta-hotline { margin-left: auto; font-size: 30px; font-weight: 800; color: #fff; }
.cta-hotline:hover { color: #fff; }
/* Footer */
.site-footer { background: #0a2f4a; color: #cfe3f2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 44px 0 30px; }
.foot-col h4 { color: #fff; font-size: 17px; text-transform: uppercase; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col ul li { margin-bottom: 8px; }
.foot-col a { color: #cfe3f2; }
.foot-logo { color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.foot-hotline { font-size: 26px; font-weight: 800; color: #fff; display: inline-block; margin-bottom: 12px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.18); }
.foot-bottom-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; font-size: 14px; }
/* Single / page / archive */
.single-wrap { max-width: 820px; margin: 0 auto; padding: 36px 15px 54px; }
.single-meta { color: #6c757d; font-size: 14px; margin-bottom: 10px; }
.single-wrap h1 { font-size: 32px; color: #212529; }
.single-content { font-size: 17px; }
.single-content h2 { font-size: 24px; margin-top: 28px; }
.single-content h3 { font-size: 20px; margin-top: 24px; }
.single-content table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.single-content th, .single-content td { border: 1px solid #dee2e6; padding: 8px 10px; text-align: left; }
.single-content blockquote { border-left: 4px solid #0b5394; margin: 16px 0; padding: 10px 18px; background: #f4f8fb; }
.archive-head { padding: 36px 0 8px; }
.archive-head h1 { font-size: 30px; text-transform: uppercase; }
.archive-list { padding: 20px 0 54px; }
.news-group { margin-bottom: 34px; }
.news-group h2 { font-size: 22px; border-bottom: 2px solid #0b5394; padding-bottom: 8px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 9px 0; border-bottom: 1px solid #e9ecef; display: flex; gap: 14px; }
.news-list .n-date { color: #6c757d; font-size: 14px; white-space: nowrap; }
.news-list a { color: #212529; font-weight: 500; }
.news-list a:hover { color: #0b5394; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0; font-weight: 600; }
.related { margin-top: 10px; }
.related h2 { font-size: 24px; }
/* Pagination (search fallback) */
.pagination { text-align: center; margin-top: 30px; }
.nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid #dee2e6; border-radius: 4px; color: #212529; }
.page-numbers.current { background: #0b5394; color: #fff; border-color: #0b5394; }
/* Responsive */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid #0b5394; box-shadow: 0 12px 24px rgba(0,0,0,.14); }
  .site-header { position: relative; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding-left: 16px; }
  .header-in .btn-booking { display: none; }
  .tb-hide-m { display: none; }
}
@media (max-width: 768px) {
  .hero { height: 420px; }
  .hero-content h1 { font-size: 34px; }
  .points-grid, .svc-featured, .cat-grid, .videos-grid, .gallery-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .cta-hotline { margin-left: 0; }
}
@media (max-width: 520px) {
  .hero { height: 360px; }
  .hero-content h1 { font-size: 28px; }
  .post-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

.hero-overlay .wrap { width: 100%; }

.single-thumb { margin: 16px 0 22px; }
.single-thumb img { border-radius: 6px; width: 100%; height: auto; }
