/*
Theme Name: Dr. Mohammad Ali - Hematology Specialist
Theme URI: https://drmohammadali.com.bd
Author: Clinical Web Strategy
Author URI: https://drmohammadali.com.bd
Description: Strict Ant Design 5 (AntD) enterprise theme for Dr. Mohammad Ali, Specialist Hematologist in Dhaka. Features responsive desktop left/right gutters, mobile-first grid hierarchy, and clinical green (#0F766E) palette.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dr-ali-theme
*/

/* ==========================================================================
   Ant Design 5 (AntD) Responsive Design Tokens
   Clinical Green: #0F766E | Soft Green: #ECFDF5 | Burgundy: #7F1D3A
   ========================================================================== */

:root {
  /* Ant Design Primary Tokens */
  --ant-color-primary: #0f766e;
  --ant-color-primary-hover: #14b8a6;
  --ant-color-primary-active: #0d9488;
  --ant-color-primary-bg: #ecfdf5;
  --ant-color-primary-border: #99f6e4;

  /* Functional Status Colors */
  --ant-color-success: #52c41a;
  --ant-color-warning: #faad14;
  --ant-color-error: #ff4d4f;
  --ant-color-info: #1677ff;

  /* Burgundy & Neutral Tokens */
  --ant-color-burgundy: #7f1d3a;
  --ant-color-burgundy-hover: #9f1239;
  --ant-color-burgundy-bg: #fff1f2;
  --ant-color-burgundy-border: #ffe4e6;

  --ant-color-text: rgba(0, 0, 0, 0.88);
  --ant-color-text-secondary: rgba(0, 0, 0, 0.65);
  --ant-color-text-tertiary: rgba(0, 0, 0, 0.45);
  --ant-color-text-heading: rgba(0, 0, 0, 0.88);
  --ant-color-text-white: #ffffff;

  --ant-color-bg-layout: #f5f5f5;
  --ant-color-bg-container: #ffffff;
  --ant-color-border: #d9d9d9;
  --ant-color-border-secondary: #f0f0f0;

  --ant-border-radius-sm: 4px;
  --ant-border-radius: 6px;
  --ant-border-radius-lg: 8px;
  --ant-border-radius-full: 9999px;

  /* Shadows & Transitions */
  --ant-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02);
  --ant-box-shadow-card: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
  --ant-box-shadow-modal: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  --ant-motion-duration: 0.2s;
  --ant-motion-ease: cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ==========================================================================
   Reset & Standard Container Left/Right Margins
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 14px;
  color: var(--ant-color-text);
  background-color: var(--ant-color-bg-layout);
  line-height: 1.5714;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Standard Left/Right Gutter Wrapper for Every Page (Aligned with 1200px Grid) */
.ant-layout-content-wrap {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3.5vw, 36px);
  padding-right: clamp(16px, 3.5vw, 36px);
}

.ant-section {
  padding: clamp(36px, 5vw, 64px) 0;
  width: 100%;
}

.ant-section-header {
  margin-bottom: clamp(24px, 3.5vw, 36px);
  text-align: center;
}

.ant-section-header .ant-typography-secondary {
  color: var(--ant-color-text-secondary);
  font-size: clamp(13.5px, 1.1vw, 15px);
  margin-top: 8px;
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ant-color-text-heading);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: clamp(24px, 3.4vw, 36px); }
h2 { font-size: clamp(20px, 2.5vw, 28px); }
h3 { font-size: clamp(17px, 1.8vw, 22px); }
h4 { font-size: 16px; }

a {
  color: var(--ant-color-primary);
  text-decoration: none;
  transition: color var(--ant-motion-duration);
}
a:hover {
  color: var(--ant-color-primary-hover);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   Ant Design Header & Navbar (.ant-layout-header)
   ========================================================================== */
.ant-layout-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ant-color-border-secondary, #e2e8f0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.ant-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ant-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.ant-avatar-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--ant-border-radius);
  background-color: var(--ant-color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.ant-brand-meta strong {
  display: block;
  font-size: 14.5px;
  color: var(--ant-color-text-heading);
  font-weight: 600;
  line-height: 1.2;
}

.ant-brand-meta span {
  font-size: 11.5px;
  color: var(--ant-color-text-tertiary);
  display: block;
}

.ant-nav-desktop {
  display: flex;
  align-items: center;
  height: 100%;
}

.ant-menu-horizontal {
  display: flex;
  align-items: center;
  list-style: none;
  height: 64px;
  margin: 0;
  padding: 0;
}

.ant-menu-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 64px;
  padding: 0 14px;
  color: var(--ant-color-text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.ant-menu-item::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--ant-motion-duration);
}

.ant-menu-item:hover, .ant-menu-item-selected {
  color: var(--ant-color-primary);
}

.ant-menu-item:hover::after, .ant-menu-item-selected::after {
  border-bottom-color: var(--ant-color-primary);
}

.ant-mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--ant-border-radius-sm);
  border: 1px solid var(--ant-color-border);
  background: #fff;
  align-items: center;
  justify-content: center;
  color: var(--ant-color-text);
  cursor: pointer;
}

/* ==========================================================================
   Ant Design Buttons (.ant-btn)
   ========================================================================== */
.ant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  height: 36px;
  padding: 4px 16px;
  border-radius: var(--ant-border-radius);
  border: 1px solid var(--ant-color-border);
  background-color: var(--ant-color-bg-container);
  color: var(--ant-color-text);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: all var(--ant-motion-duration) var(--ant-motion-ease);
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.ant-btn:hover {
  color: var(--ant-color-primary-hover);
  border-color: var(--ant-color-primary-hover);
}

.ant-btn-primary {
  color: var(--ant-color-text-white);
  background-color: var(--ant-color-primary);
  border-color: var(--ant-color-primary);
  box-shadow: 0 2px 0 rgba(15, 118, 110, 0.15);
}

.ant-btn-primary:hover {
  color: var(--ant-color-text-white);
  background-color: var(--ant-color-primary-hover);
  border-color: var(--ant-color-primary-hover);
}

.ant-btn-burgundy {
  color: var(--ant-color-text-white);
  background-color: var(--ant-color-burgundy);
  border-color: var(--ant-color-burgundy);
}

.ant-btn-burgundy:hover {
  color: var(--ant-color-text-white);
  background-color: var(--ant-color-burgundy-hover);
  border-color: var(--ant-color-burgundy-hover);
}

.ant-btn-lg {
  height: 44px;
  padding: 8px 22px;
  font-size: 15px;
  border-radius: var(--ant-border-radius-lg);
}

.ant-btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: var(--ant-border-radius-sm);
}

.ant-btn-link {
  color: var(--ant-color-primary);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
  height: auto;
}

.ant-btn-block {
  width: 100%;
}

/* ==========================================================================
   Ant Design Tag (.ant-tag) & Pill Badge (Centered Alignment)
   ========================================================================== */
.ant-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: var(--ant-border-radius-sm);
  border: 1px solid var(--ant-color-border);
  background: #fafafa;
  color: var(--ant-color-text);
  white-space: nowrap;
  font-weight: 500;
  text-align: center;
}

.ant-tag-green {
  color: var(--ant-color-primary);
  background: var(--ant-color-primary-bg);
  border-color: var(--ant-color-primary-border);
}

.ant-tag-burgundy {
  color: var(--ant-color-burgundy);
  background: var(--ant-color-burgundy-bg);
  border-color: var(--ant-color-burgundy-border);
}

.ant-tag-blue {
  color: #0958d9;
  background: #e6f4ff;
  border-color: #91caff;
}

.ant-tag-warning {
  color: #d48806;
  background: #fffbe6;
  border-color: #ffe58f;
}

.ant-tag-pill {
  border-radius: var(--ant-border-radius-full);
  padding: 5px 14px;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.ant-ribbon-wrapper {
  position: relative;
}

.ant-ribbon {
  position: absolute;
  top: 12px;
  right: -8px;
  z-index: 2;
  height: 24px;
  line-height: 24px;
  padding: 0 10px;
  font-size: 12px;
  color: #fff;
  border-radius: var(--ant-border-radius-sm);
  background-color: var(--ant-color-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.ant-ribbon-burgundy {
  background-color: var(--ant-color-burgundy);
}

.ant-ribbon-corner {
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 0;
  border-top: 6px solid #4c0519;
  border-right: 8px solid transparent;
}

/* ==========================================================================
   Ant Design Cards (.ant-card)
   ========================================================================== */
.ant-card {
  position: relative;
  background: var(--ant-color-bg-container);
  border-radius: var(--ant-border-radius-lg);
  border: 1px solid var(--ant-color-border-secondary);
  font-size: 14px;
  transition: all var(--ant-motion-duration) var(--ant-motion-ease);
}

.ant-card-bordered {
  border: 1px solid var(--ant-color-border-secondary);
}

.ant-card-hoverable:hover {
  border-color: var(--ant-color-primary-border);
  box-shadow: var(--ant-box-shadow-card);
  transform: translateY(-2px);
}

.ant-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--ant-color-border-secondary);
  font-size: 15px;
  font-weight: 600;
  color: var(--ant-color-text-heading);
}

.ant-card-head-title {
  display: inline-block;
  flex: 1;
  padding: 12px 0;
}

.ant-card-extra {
  margin-left: auto;
  padding: 12px 0;
  font-size: 13px;
}

.ant-card-body {
  padding: clamp(16px, 2.5vw, 24px);
}

.ant-card-actions {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fafafa;
  border-top: 1px solid var(--ant-color-border-secondary);
  border-radius: 0 0 var(--ant-border-radius-lg) var(--ant-border-radius-lg);
}

.ant-card-actions > li {
  flex: 1;
  text-align: center;
  margin: 10px 0;
  color: var(--ant-color-text-secondary);
  cursor: pointer;
}

.ant-card-actions > li:not(:last-child) {
  border-right: 1px solid var(--ant-color-border-secondary);
}

/* ==========================================================================
   Ant Design Descriptions (.ant-descriptions)
   ========================================================================== */
.ant-descriptions-view {
  width: 100%;
  overflow: hidden;
  border-radius: var(--ant-border-radius);
  border: 1px solid var(--ant-color-border-secondary);
}

.ant-descriptions-row {
  display: flex;
  border-bottom: 1px solid var(--ant-color-border-secondary);
}

.ant-descriptions-row:last-child {
  border-bottom: none;
}

.ant-descriptions-item-label {
  width: 130px;
  padding: 10px 14px;
  background-color: #fafafa;
  color: var(--ant-color-text-heading);
  font-weight: 500;
  font-size: 13px;
  border-right: 1px solid var(--ant-color-border-secondary);
  flex-shrink: 0;
}

.ant-descriptions-item-content {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ant-color-text);
  background-color: #ffffff;
}

/* ==========================================================================
   Ant Design Statistics (.ant-statistic)
   ========================================================================== */
.ant-statistic {
  font-family: inherit;
}

.ant-statistic-title {
  margin-bottom: 4px;
  color: var(--ant-color-text-tertiary);
  font-size: 12.5px;
}

.ant-statistic-content {
  color: var(--ant-color-text-heading);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ant-statistic-content-suffix {
  font-size: 13px;
  color: var(--ant-color-text-secondary);
  font-weight: 400;
}

/* ==========================================================================
   Ant Design Timeline (.ant-timeline)
   ========================================================================== */
.ant-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ant-timeline-item {
  position: relative;
  padding-bottom: 20px;
  margin: 0;
}

.ant-timeline-item:last-child {
  padding-bottom: 0;
}

.ant-timeline-item-tail {
  position: absolute;
  top: 10px;
  left: 5px;
  height: calc(100% - 10px);
  border-left: 2px solid var(--ant-color-border-secondary);
}

.ant-timeline-item:last-child .ant-timeline-item-tail {
  display: none;
}

.ant-timeline-item-head {
  position: absolute;
  top: 2px;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: #ffffff;
  border: 2px solid var(--ant-color-primary);
  border-radius: 50%;
}

.ant-timeline-item-head-burgundy {
  border-color: var(--ant-color-burgundy);
}

.ant-timeline-item-content {
  position: relative;
  margin-left: 26px;
  font-size: 13.5px;
}

.ant-timeline-item-content strong {
  display: block;
  font-size: 14px;
  color: var(--ant-color-text-heading);
  margin-bottom: 2px;
}

.ant-timeline-item-content p {
  color: var(--ant-color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Ant Design Collapse (.ant-collapse)
   ========================================================================== */
.ant-collapse {
  background-color: #fafafa;
  border: 1px solid var(--ant-color-border);
  border-radius: var(--ant-border-radius-lg);
  overflow: hidden;
}

.ant-collapse-item {
  border-bottom: 1px solid var(--ant-color-border);
}

.ant-collapse-item:last-child {
  border-bottom: none;
}

.ant-collapse-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: var(--ant-color-text-heading);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  background-color: var(--ant-color-bg-container);
  transition: all var(--ant-motion-duration);
  gap: 12px;
}

.ant-collapse-header:hover {
  background-color: #fafafa;
  color: var(--ant-color-primary);
}

.ant-collapse-arrow {
  width: 14px;
  height: 14px;
  color: var(--ant-color-text-tertiary);
  transition: transform var(--ant-motion-duration);
  flex-shrink: 0;
}

.ant-collapse-item.active .ant-collapse-arrow {
  transform: rotate(90deg);
  color: var(--ant-color-primary);
}

.ant-collapse-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background-color: #fafafa;
}

.ant-collapse-content-box {
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ant-color-text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--ant-color-border-secondary);
}

/* ==========================================================================
   Hero Section Layout (Balanced Two Columns)
   ========================================================================== */
.ant-hero-section {
  background: #ffffff;
  border-bottom: 1px solid var(--ant-color-border-secondary);
  padding: clamp(36px, 5vw, 64px) 0;
}

.ant-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.ant-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ant-color-border-secondary);
}

/* ==========================================================================
   Modal Dialog & Drawer
   ========================================================================== */
.ant-modal-mask {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ant-motion-duration);
}

.ant-modal-mask.active {
  opacity: 1;
  visibility: visible;
}

.ant-modal {
  width: min(560px, 92vw);
  background-color: #ffffff;
  border-radius: var(--ant-border-radius-lg);
  box-shadow: var(--ant-box-shadow-modal);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform var(--ant-motion-duration);
}

.ant-modal-mask.active .ant-modal {
  transform: scale(1);
}

.ant-modal-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ant-color-border-secondary);
}

.ant-modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ant-color-text-heading);
}

.ant-modal-close {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--ant-color-text-tertiary);
  cursor: pointer;
  padding: 4px;
}

.ant-modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.ant-modal-footer {
  padding: 12px 20px;
  background-color: #fafafa;
  border-top: 1px solid var(--ant-color-border-secondary);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ant-drawer-mask {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ant-drawer-mask.active {
  opacity: 1;
  visibility: visible;
}

.ant-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #ffffff;
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.2);
  z-index: 1000000;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
}

.ant-drawer-mask.active .ant-drawer-content {
  transform: translateX(0);
}

.ant-drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ant-color-border-secondary);
}

.ant-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.ant-drawer-link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--ant-border-radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ant-color-text);
}

.ant-drawer-link:hover {
  background: var(--ant-color-primary-bg);
  color: var(--ant-color-primary);
}

/* ==========================================================================
   Ant Design Layout Footer (.ant-layout-footer)
   ========================================================================== */
.ant-layout-footer {
  background: #ffffff;
  border-top: 1px solid var(--ant-color-border-secondary);
  padding: 48px 0 24px;
  font-size: 13px;
  color: var(--ant-color-text-secondary);
}

.ant-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(20px, 3vw, 36px);
  margin-bottom: 36px;
}

.ant-footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ant-color-text-heading);
  margin-bottom: 14px;
}

.ant-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ant-footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--ant-color-border-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 992px) {
  .ant-nav-desktop, .ant-header-btn { display: none; }
  .ant-mobile-toggle { display: flex; }
  .ant-hero-grid { grid-template-columns: 1fr; }
  .ant-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ant-layout-content-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ant-hero-stats { grid-template-columns: 1fr; }
  .ant-descriptions-row { flex-direction: column; }
  .ant-descriptions-item-label { width: 100%; border-right: none; border-bottom: 1px solid var(--ant-color-border-secondary); }
  .ant-footer-grid { grid-template-columns: 1fr; }
  .ant-footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   Ant Design Top Utility Bar (.ant-top-bar)
   Scrolls away naturally on scroll while .ant-layout-header remains sticky
   ========================================================================== */
.ant-top-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--ant-color-border-secondary, #e2e8f0);
  font-family: 'Roboto', 'Noto Sans Bengali', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ant-color-text-secondary, #475569);
  position: relative;
  z-index: 1001;
  transition: all 0.2s ease;
}

.ant-top-bar-inner {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ant-top-bar-left,
.ant-top-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ant-top-bar-doctor {
  font-weight: 700;
  color: var(--ant-color-text-heading, #0f172a);
  font-size: 13px;
}

.ant-top-bar-specialty {
  color: var(--ant-color-primary, #0f766e);
  font-weight: 600;
  font-size: 13px;
}

.ant-top-bar-location {
  color: var(--ant-color-text-tertiary, #64748b);
  font-size: 12px;
}

.ant-top-bar-sep {
  color: #cbd5e1;
  font-size: 11px;
}

.ant-top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ant-top-bar-phone {
  color: var(--ant-color-primary, #0f766e);
  font-weight: 600;
}
.ant-top-bar-phone:hover {
  color: var(--ant-color-primary-active, #115e59);
}

.ant-top-bar-cta {
  color: var(--ant-color-text-heading, #0f172a);
  font-weight: 600;
}
.ant-top-bar-cta:hover {
  color: var(--ant-color-primary, #0f766e);
}

/* ==========================================================================
   Sticky Header Configuration
   ========================================================================== */
.ant-layout-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  padding: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ant-color-border-secondary, #e2e8f0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* When mobile drawer is open, lower header z-index to give drawer 100% priority */
body.drawer-open .ant-layout-header,
body.drawer-open .ant-top-bar {
  z-index: 1 !important;
}

/* WordPress Admin Bar Compatibility (when logged in as admin) */
.admin-bar .ant-layout-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .ant-layout-header {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar .ant-layout-header {
    top: 0;
  }
}

/* Mobile Responsiveness for Top Bar (< 768px) */
@media screen and (max-width: 768px) {
  .ant-top-bar-inner {
    height: 32px;
    justify-content: center;
  }
  /* On mobile screens, doctor name & logo already exist in the sticky navbar right below */
  .ant-top-bar-left {
    display: none;
  }
  .ant-top-bar-right {
    width: 100%;
    justify-content: center;
  }
  .ant-top-bar-link {
    font-size: 12px;
  }
}

/* ==========================================================================
   Mobile Drawer Accordion Submenus (Click-To-Open)
   ========================================================================== */
.ant-mobile-menu-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ant-mobile-menu-list > li {
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
}

.ant-mobile-menu-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 8px !important;
  transition: background-color 0.15s ease !important;
}

.ant-mobile-menu-row:hover {
  background: #f0fdfa !important;
}

.ant-mobile-menu-row > a,
.ant-mobile-menu-list > li > a {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: color 0.15s ease !important;
}

.ant-mobile-menu-row > a:hover,
.ant-mobile-menu-list > li > a:hover {
  color: #0f766e !important;
}

.ant-mobile-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  color: #0f766e !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  transition: background-color 0.15s ease !important;
}

.ant-mobile-arrow:hover,
.ant-mobile-arrow:active {
  background-color: #ccfbf1 !important;
}

.ant-mobile-arrow svg {
  display: block !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ant-mobile-menu-list .menu-item-has-children.open > .ant-mobile-menu-row .ant-mobile-arrow svg {
  transform: rotate(180deg) !important;
}

.ant-mobile-menu-list .sub-menu {
  display: none !important;
  list-style: none !important;
  margin: 2px 0 6px 14px !important;
  padding: 2px 0 2px 14px !important;
  border-left: 2px solid #99f6e4 !important;
  background: transparent !important;
}

.ant-mobile-menu-list .menu-item-has-children.open > .sub-menu {
  display: block !important;
}

.ant-mobile-menu-list .sub-menu li {
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
}

.ant-mobile-menu-list .sub-menu li > a {
  display: block !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

.ant-mobile-menu-list .sub-menu li > a:hover {
  background-color: #f0fdfa !important;
  color: #0f766e !important;
  font-weight: 600 !important;
}