/*
Theme Name: Bác Sỹ Nguyễn Quốc Định
Theme URI: https://bsnguyenquocdinh.com
Author: 123Website
Author URI: https://123website.com.vn
Description: Theme WordPress cao cấp chuẩn y khoa cho Bác sỹ Phẫu thuật Tạo hình - Thẩm mỹ Nguyễn Quốc Định. Thiết kế theo phong cách Tinh Khiết - Chuẩn Y Khoa với tone màu Deep Navy & Teal, hỗ trợ đa ngôn ngữ TranslatePress, Fluent Forms và Secure Custom Fields (SCF).
Version: 1.0.39
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: bsnguyenquocdinh
*/

/* ==========================================================================
   Language Switcher (Dạng chữ VI | EN)
   ========================================================================== */
.header-lang-text {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.lang-text-switcher,
.custom-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  user-select: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-text-switcher a,
.custom-language-switcher a,
.lang-text-switcher .lang-item,
.custom-language-switcher .lang-item {
  color: #2c4e4c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
  line-height: 1;
}

.lang-text-switcher a:hover,
.custom-language-switcher a:hover,
.lang-text-switcher .lang-item:hover,
.custom-language-switcher .lang-item:hover {
  color: var(--color-teal, #0aa196);
}

.lang-text-switcher a.is-active,
.lang-text-switcher a.active,
.custom-language-switcher a.is-active,
.custom-language-switcher a.active,
.lang-text-switcher .lang-item.is-active,
.custom-language-switcher .lang-item.is-active {
  color: var(--color-teal, #0aa196) !important;
  font-weight: 800;
  pointer-events: none;
}

.lang-text-switcher .lang-sep,
.custom-language-switcher .lang-sep {
  color: #a8c2c0;
  font-weight: 400;
  font-size: 13px;
  margin: 0 1px;
}

/* ==========================================================================
   Mobile Drawer & Desktop Header Navigation v2 (Theo Mẫu Ảnh Khách Hàng)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 40, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #FFFFFF;
  z-index: 201;
  box-shadow: -8px 0 30px rgba(8, 122, 114, 0.18);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.drawer-backdrop.is-open .drawer-panel {
  right: 0;
}

.drawer-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(10, 161, 150, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFFFF;
  flex-shrink: 0;
}

.drawer-header .header-logo img {
  max-height: 42px !important;
  width: auto;
  display: block;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.drawer-book-btn {
  background: var(--color-teal, #0aa196);
  color: #FFFFFF !important;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.drawer-book-btn:hover {
  background: var(--color-teal-hover, #087a72);
}

.drawer-lang-pill {
  background: #edf8f6;
  padding: 7px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.drawer-close {
  width: 36px;
  height: 36px;
  background: transparent;
  color: var(--color-teal, #0aa196);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.drawer-close:hover {
  background: #edf8f6;
  transform: rotate(90deg);
}

.drawer-close svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.drawer-title {
  background: #eaf7f5;
  color: var(--color-teal, #0aa196);
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 14.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 11px 16px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.drawer-body {
  padding: 0 0 12px;
  overflow-y: auto;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
}

.drawer-body::-webkit-scrollbar {
  width: 4px;
}

.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(10, 161, 150, 0.2);
  border-radius: 4px;
}

.drawer-search-form {
  margin: 0 16px 14px;
  position: relative;
}

.drawer-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.drawer-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-teal, #0aa196);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.drawer-search-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.drawer-search-input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  background: #f7fbfb;
  border: 1px solid rgba(10, 161, 150, 0.2);
  border-radius: 8px;
  font-size: 14px;
  color: #0c4a47;
  outline: none;
  transition: all 0.2s ease;
}

.drawer-search-input:focus {
  background: #FFFFFF;
  border-color: var(--color-teal, #0aa196);
  box-shadow: 0 0 0 3px rgba(10, 161, 150, 0.14);
}

.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.drawer-item {
  border-bottom: 1px solid rgba(10, 161, 150, 0.1);
  transition: background 0.2s ease, border-left 0.2s ease;
}

.drawer-link {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  gap: 14px;
  text-decoration: none;
  color: #0c4a47;
  cursor: pointer;
  user-select: none;
}

.drawer-item-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-teal, #0aa196);
}

.drawer-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.drawer-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.drawer-item-title {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #0c4a47;
  line-height: 1.3;
}

.drawer-item-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #64748B;
  margin-top: 3px;
  line-height: 1.25;
}

.drawer-item-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-teal, #0aa196);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-item-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.drawer-toggle-icon svg {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-item.has-children.is-expanded {
  background: #edf8f6;
  border-left: 4px solid var(--color-teal, #0aa196);
}

.drawer-item.has-children.is-expanded > .drawer-link {
  padding-left: 12px;
}

.drawer-item.has-children.is-expanded > .drawer-link .drawer-item-title {
  color: var(--color-teal-hover, #087a72);
}

.drawer-item.has-children.is-expanded .drawer-toggle-icon svg {
  transform: rotate(180deg);
}

.drawer-sublist {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #edf8f6;
}

.drawer-item.has-children.is-expanded > .drawer-sublist {
  display: block;
}

.drawer-subitem {
  border-top: 1px solid rgba(10, 161, 150, 0.1);
}

.drawer-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 12px 52px;
  color: #0c4a47;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.drawer-sublink:hover {
  background: rgba(10, 161, 150, 0.08);
  color: var(--color-teal-hover, #087a72);
}

.drawer-subitem.current-menu-item > .drawer-sublink,
.drawer-subitem.is-active > .drawer-sublink {
  background: rgba(10, 161, 150, 0.12);
  color: var(--color-teal-hover, #087a72);
  font-weight: 700;
}

.drawer-subitem.current-menu-item > .drawer-sublink .drawer-sublink-arrow,
.drawer-subitem.is-active > .drawer-sublink .drawer-sublink-arrow {
  color: var(--color-teal-hover, #087a72);
}

.drawer-subitem.has-children.is-expanded > .drawer-sublist {
  display: block;
  padding-left: 14px;
}

.drawer-sublink-title {
  flex: 1;
  padding-right: 12px;
}

.drawer-sublink-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-teal, #0aa196);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-sublink-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.drawer-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #edf8f6;
  border-top: 1px solid rgba(10, 161, 150, 0.15);
  margin-top: auto;
  flex-shrink: 0;
}

.drawer-lang-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #0c4a47;
}

.drawer-lang-label svg {
  width: 20px;
  height: 20px;
  color: var(--color-teal, #0aa196);
}

.drawer-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: #FFFFFF;
  border-top: 1px solid rgba(10, 161, 150, 0.12);
  flex-shrink: 0;
}

.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 6px;
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.drawer-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.drawer-cta-call {
  background: #FFFFFF;
  color: var(--color-teal, #0aa196) !important;
  border: 1.5px solid var(--color-teal, #0aa196);
}

.drawer-cta-call:hover {
  background: #edf8f6;
}

.drawer-cta-book {
  background: var(--color-teal, #0aa196);
  color: #FFFFFF !important;
  border: 1.5px solid var(--color-teal, #0aa196);
}

.drawer-cta-book:hover {
  background: var(--color-teal-hover, #087a72);
  border-color: var(--color-teal-hover, #087a72);
}

@media (min-width: 768px) {
  .drawer-panel {
    right: -440px;
    width: 440px;
  }
}

/* Desktop header refinements for 8 menu items */
.sub-menu-rhino {
  min-width: 290px;
}

/* ==========================================================================
   Home Press Section: Tiêu đề phân cách danh sách bài báo
   ========================================================================== */
.press-divider-subhead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 48px auto 36px;
  text-align: center;
}

.press-divider-subhead .subhead-line {
  width: 44px;
  height: 2px;
  background: #5dbdb4;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.press-divider-subhead .subhead-text {
  font-family: var(--font-heading, "Manrope", sans-serif);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 800;
  color: var(--color-deep-navy, #0c4a47);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  text-align: center;
  display: inline-block;
}

@media (max-width: 640px) {
  .press-divider-subhead {
    gap: 12px;
    margin: 36px auto 24px;
  }
  .press-divider-subhead .subhead-line {
    width: 24px;
  }
  .press-divider-subhead .subhead-text {
    font-size: 1.35rem;
  }
}

