/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0d2744;
  --navy-mid: #1a3a5c;
  --teal: #0e7490;
  --teal-light: #22d3ee;
  --gold: #c9a84c;
  --gold-light: #e8c96d;
  --cream: #faf7f2;
  --text: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: rgba(201,168,76,0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--gold-light); }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-dot { color: var(--gold); }

/* ── HEADER / NAV ── */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 22px;
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.logo-text .spec { font-size: 0.72rem; color: var(--teal); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all .2s;
}
nav a:hover { background: rgba(14,116,144,0.08); color: var(--teal); }
.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--navy) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #0a4a6e 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-deco {
  position: absolute;
  top: -120px; right: -120px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,116,144,0.25) 0%, transparent 70%);
}
.hero-deco2 {
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero-title .degree {
  font-size: 0.45em;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  display: block;
  margin-bottom: 8px;
}
.hero-title .highlight { color: var(--gold-light); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin: 20px 0 32px;
  line-height: 1.7;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}
.hero-stat { text-align: left; }
.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat .label { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 4px; line-height: 1.3; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all .3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.5); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all .3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { border-color: var(--teal-light); color: var(--teal-light); background: rgba(14,116,144,0.1); }

/* Doctor card */
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  animation: floatUp 6s ease-in-out infinite;
}
@keyframes floatUp { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.doctor-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
  overflow: hidden;
}
.doctor-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 4px;
}
.card-degree { text-align: center; font-size: 0.82rem; color: var(--gold-light); margin-bottom: 20px; }
.card-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.84rem;
  color: rgba(255,255,255,0.75);
}
.card-info-row .icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.hero-card .btn-primary { width: 100%; justify-content: center; margin-top: 20px; font-size: 0.88rem; padding: 12px 20px; }

/* ── SECTION SHARED ── */
section { padding: 90px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 30px; height: 2px; background: var(--teal); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc { color: var(--text-muted); line-height: 1.8; max-width: 600px; }

/* ── ABOUT ── */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-content p { color: var(--text-muted); line-height: 1.85; margin-bottom: 16px; font-size: 0.95rem; }
.about-highlight {
  background: linear-gradient(135deg, #f0f9ff, #e0f7fa);
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}
.about-promises { list-style: none; margin: 20px 0; }
.about-promises li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.92rem;
  color: var(--text);
}
.about-promises li:last-child { border-bottom: none; }
.promise-icon { color: var(--teal); font-size: 18px; flex-shrink: 0; }

.credential-box {
  background: var(--cream);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
}
.credential-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.credential-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.credential-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cred-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
}
.cred-text .title { font-weight: 600; color: var(--navy); font-size: 0.92rem; margin-bottom: 3px; }
.cred-text .sub { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ── SERVICES ── */
.services { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all .3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); border-color: rgba(14,116,144,0.2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, rgba(14,116,144,0.1), rgba(201,168,76,0.1));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── PRESS ── */
.press { background: var(--white); }
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.press-item {
  background: var(--cream);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .2s;
}
.press-item:hover { background: rgba(14,116,144,0.05); border-color: rgba(14,116,144,0.3); transform: translateX(4px); }
.press-logo {
  background: var(--navy);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.press-title { font-size: 0.88rem; color: var(--text); font-weight: 500; line-height: 1.4; flex: 1; }
.press-arrow { color: var(--teal); font-size: 18px; flex-shrink: 0; transition: transform .2s; }
.press-item:hover .press-arrow { transform: translateX(4px); }

/* ── CERTIFICATES SLIDER ── */
#certificates {
  background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
}
.slider {
  position: relative;
  max-width: 800px;
  height: 500px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: white;
  border: 3px solid #1e88e5;
}
.slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background: white;
  padding: 20px;
}
.slides img.active {
  opacity: 1;
  z-index: 1;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 136, 229, 0.8);
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 24px;
  z-index: 10;
  transition: all 0.3s ease;
}
.prev:hover, .next:hover {
  background: rgba(30, 136, 229, 1);
  transform: translateY(-50%) scale(1.1);
}
.prev { left: 20px; }
.next { right: 20px; }

/* ── CONTACT/APPOINTMENT ── */
.appointment { background: linear-gradient(160deg, var(--navy), var(--navy-mid)); padding: 90px 0; }
.appointment-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}
.appointment .section-title { color: var(--white); }
.appointment .section-label { color: var(--gold-light); }
.appointment .section-label::before { background: var(--gold); }
.appointment .section-desc { color: rgba(255,255,255,0.65); max-width: none; }

.hours-list { margin: 28px 0; }
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
.hours-day { color: rgba(255,255,255,0.7); font-weight: 500; }
.hours-time { color: var(--gold-light); font-weight: 600; }

.contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .2s;
}
.contact-link-phone { background: var(--gold); color: var(--navy); }
.contact-link-zalo { background: #0068ff; color: var(--white); }
.contact-link-map { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.contact-link:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

/* Form Card */
.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.form-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-card .sub { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group label::after {
  content: ' *';
  color: #f44336;
  display: inline;
}
.form-group label[for="email"]::after,
.form-group label[for="note"]::after {
  content: '';
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 15px;
  font-size: 1.2em;
  color: #1e88e5;
  z-index: 1;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px 12px 45px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,116,144,0.4); }
.form-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 10px; }

/* Error message */
.error-message {
  color: #f44336;
  font-size: 0.85em;
  margin-top: 5px;
}

/* ── FOOTER ── */
.footer {
  background: #071929;
  color: rgba(255,255,255,0.55);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { text-decoration: none; color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: all .2s;
}
.social-link:hover { background: var(--teal); color: var(--white); }

/* Floating CTA */
.float-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all .3s;
  animation: slideInRight .5s ease forwards;
}
@keyframes slideInRight { from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:translateX(0)} }
.float-btn.phone { background: var(--gold); color: var(--navy); animation-delay: .1s; }
.float-btn.zalo { background: #0068ff; color: var(--white); animation-delay: .2s; }
.float-btn:hover { transform: translateY(-3px) scale(1.03); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .about-grid, .appointment-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  nav { display: none; }
  section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 1.5rem; }
  .topbar-right { display: none; }
  .float-btn span { display: none; }
  .float-btn { padding: 14px; }
  .slider { height: 300px; }
  .prev, .next { padding: 10px 14px; font-size: 18px; }
}