/*
Theme Name: YVIDA Clinic
Theme URI: https://drphongnp.com
Author: Phòng khám YVIDA
Description: Giao diện WordPress dành riêng cho Phòng khám chuyên khoa YVIDA — Nội, Nội tiết, Ngoại tổng quát và Nhi. Thiết kế sạch, chuyên nghiệp, tối ưu di động, có sẵn form đặt lịch khám.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: yvida
*/

/* ============ BIẾN MÀU & NỀN TẢNG ============ */
:root {
  --teal: #0f766e;
  --teal-dark: #0b5d57;
  --teal-deep: #073d39;
  --teal-soft: #e6f4f2;
  --teal-line: #b9e0db;
  --gold: #d97706;
  --gold-soft: #fef3e2;
  --red: #c0272d;
  --ink: #17313b;
  --ink-soft: #4b6570;
  --bg: #ffffff;
  --bg-alt: #f4faf9;
  --card-shadow: 0 10px 30px rgba(7, 61, 57, 0.08);
  --radius: 16px;
  --font: 'Be Vietnam Pro', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); font-weight: 700; }

/* ============ NÚT ============ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font);
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal-soft); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b45309; color: #fff; }

/* ============ THANH TRÊN CÙNG ============ */
.topbar { background: var(--teal-deep); color: #d7ece9; font-size: 13.5px; }
.topbar-inner { display: flex; gap: 26px; padding: 8px 22px; flex-wrap: wrap; }
.topbar-inner span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-addr { margin-left: auto; }

/* ============ HEADER ============ */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(7,61,57,.08);
}
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 22px; }
.branding { flex-shrink: 0; }
.logo-text { font-size: 21px; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.logo-text strong { color: var(--red); font-weight: 800; letter-spacing: .5px; }
.brand-red { color: var(--red); }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; font-weight: 800; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.custom-logo { max-height: 56px; width: auto; }
.logo-img { display: block; }
.logo-img img { max-height: 62px; width: auto; display: block; border-radius: 10px; }

.site-nav { margin-left: auto; }
.site-nav ul.menu { list-style: none; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: 15px;
}
.site-nav a:hover, .site-nav .current-menu-item > a { background: var(--teal-soft); color: var(--teal-dark); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none; background: none; border: none; font-size: 26px;
  color: var(--teal); cursor: pointer; margin-left: auto;
}

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(217,119,6,.12), transparent 60%),
    linear-gradient(160deg, var(--teal-soft) 0%, #fdfefe 55%, var(--teal-soft) 100%);
  padding: 80px 0 70px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-kicker {
  display: inline-block; background: #fff; border: 1px solid var(--teal-line);
  color: var(--teal-dark); font-size: 13.5px; font-weight: 600;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 18px; color: var(--ink-soft); margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 26px; color: var(--teal-dark); }
.hero-stats .stat span { font-size: 13.5px; color: var(--ink-soft); }
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border-radius: 22px; box-shadow: var(--card-shadow);
  padding: 30px; border: 1px solid rgba(185,224,219,.6);
}
.hero-card h3 { color: var(--teal-dark); margin-bottom: 14px; font-size: 18px; }
.hero-card .hero-logo { width: 120px; height: auto; margin: 0 auto 16px; display: block; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 10px 0; border-bottom: 1px dashed var(--teal-line); display: flex; gap: 10px; font-size: 15px; }
.hero-card li:last-child { border-bottom: none; }
.hero-card .tick { color: var(--teal); font-weight: 700; }

/* ============ SECTION CHUNG ============ */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head .kicker {
  color: var(--gold); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: 13px; display: block; margin-bottom: 10px;
}
.section-head h2 { font-size: 32px; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }

/* ============ THẺ CHUYÊN KHOA ============ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid #e3efed; box-shadow: 0 4px 16px rgba(7,61,57,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.card .icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-soft); }
.card .card-doctor, .doctor-body .card-doctor { display: block; margin-top: 14px; font-size: 13.5px; color: var(--red); font-weight: 600; }

/* ============ TẠI SAO CHỌN ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item {
  background: #fff; border-radius: var(--radius); padding: 26px;
  border: 1px solid #e3efed; display: flex; gap: 18px; align-items: flex-start;
}
.why-item .num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.why-item h3 { font-size: 17px; margin-bottom: 6px; }
.why-item p { font-size: 14.5px; color: var(--ink-soft); }

/* ============ BÁC SĨ ============ */
.doctor-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid #e3efed; box-shadow: 0 4px 16px rgba(7,61,57,.05);
  display: flex; flex-direction: column;
}
.doctor-top {
  background: linear-gradient(135deg, #ffffff 0%, var(--teal-soft) 100%);
  padding: 34px 30px; color: var(--ink); display: flex; gap: 20px; align-items: center;
  border-bottom: 1px solid var(--teal-line);
}
.doctor-avatar {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-soft); border: 3px solid var(--teal-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: var(--teal-dark); overflow: hidden;
}
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-top .degree { font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; text-transform: uppercase; }
.doctor-top h3 { color: var(--red); font-size: 21px; margin: 3px 0; }
.doctor-top .spec { color: var(--teal-dark); font-weight: 600; font-size: 14.5px; }
.doctor-body { padding: 26px 30px 30px; }
.doctor-body ul { list-style: none; }
.doctor-body li { padding: 8px 0 8px 26px; position: relative; font-size: 15px; color: var(--ink-soft); border-bottom: 1px dashed #e3efed; }
.doctor-body li:last-child { border-bottom: none; }
.doctor-body li::before { content: "✚"; position: absolute; left: 0; color: var(--teal); font-size: 13px; }

/* ============ BÀI VIẾT / KIẾN THỨC ============ */
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #e3efed; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.post-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--teal-soft), var(--teal-line)); position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb .thumb-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 42px; opacity: .55;
}
.post-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.post-body h3 { font-size: 17.5px; margin-bottom: 10px; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--teal); }
.post-body p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.post-body .readmore { margin-top: 14px; font-weight: 600; font-size: 14.5px; }
.section-cta { text-align: center; margin-top: 40px; }

/* ============ ĐẶT LỊCH ============ */
.booking {
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(217,119,6,.15), transparent 55%),
    linear-gradient(150deg, var(--teal-dark), var(--teal-deep));
  color: #d9ece9; padding: 80px 0;
}
.booking-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.booking h2 { color: #fff; font-size: 32px; margin-bottom: 16px; }
.booking .kicker { color: #ffd9a3; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; display: block; margin-bottom: 10px; }
.booking-info { list-style: none; margin-top: 26px; }
.booking-info li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; gap: 12px; align-items: baseline; }
.booking-info b { color: #fff; }
.booking-form {
  background: #fff; border-radius: 22px; padding: 34px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--ink);
}
.booking-form h3 { font-size: 20px; margin-bottom: 20px; color: var(--teal-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #dce8e6;
  border-radius: 10px; font-family: var(--font); font-size: 15px;
  background: #fbfdfd; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
}
.form-submit { width: 100%; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.booking-success {
  background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46;
  padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; font-weight: 500;
}

/* ============ TRANG CON ============ */
.page-hero {
  background: linear-gradient(150deg, var(--teal-dark), var(--teal-deep));
  color: #fff; padding: 60px 0 54px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: 36px; }
.page-hero p { color: #bfe0db; max-width: 640px; margin: 12px auto 0; }
.entry-content { max-width: 780px; margin: 0 auto; }
.entry-content h2 { font-size: 26px; margin: 38px 0 14px; color: var(--teal-dark); }
.entry-content h3 { font-size: 20px; margin: 28px 0 10px; }
.entry-content p { margin-bottom: 16px; color: #2c4650; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 24px; color: #2c4650; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: var(--radius); margin: 20px 0; }
.entry-content blockquote {
  border-left: 4px solid var(--teal); background: var(--teal-soft);
  padding: 16px 22px; border-radius: 0 12px 12px 0; margin: 20px 0; font-style: italic;
}

/* ============ DANH SÁCH BÀI VIẾT ============ */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination .page-numbers {
  padding: 8px 16px; border-radius: 8px; border: 1px solid #dce8e6; color: var(--ink); font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ============ FOOTER ============ */
.site-footer { background: var(--teal-deep); color: #a8cdc8; padding: 60px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer .footer-logo { font-size: 20px; color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer .footer-logo strong { color: #ff9d96; font-weight: 800; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: #a8cdc8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
  text-align: center; font-size: 13px; color: #7fa8a3;
}
.footer-disclaimer { font-size: 12.5px; color: #7fa8a3; margin-top: 12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
  .header-cta { display: none; }
}
@media (max-width: 860px) {
  .hero-inner, .booking-inner, .grid-2 { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .archive-grid, .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; box-shadow: 0 16px 30px rgba(7,61,57,.12); padding: 12px 0;
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul.menu { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 26px; border-radius: 0; }
}
@media (max-width: 560px) {
  .grid-4, .why-grid, .archive-grid, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 48px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 54px 0; }
  .section-head h2, .booking h2 { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-addr { display: none !important; }
  .doctor-top { flex-direction: column; text-align: center; }
}
