/* ============================================
   Shebin Medical Guide — RTL Teal Theme
   Extracted & consolidated from Blogger XML
   ============================================ */

/* ========== Design Tokens ========== */
:root {
  --brand-teal: #008080;
  --primary: #13ecc8;
  --primary-dark: #0fbfa2;
  --bg-light: #f6f8f8;
  --bg-dark: #10221f;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15,23,42,.1);
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.12);
  --alert-yellow: #ffcc00;
  --container: 1280px;
}

/* ========== Reset ========== */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  direction: rtl;
  font-family: 'Cairo', 'Public Sans', system-ui, sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}
a:hover { color: var(--brand-teal); }
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.smg-container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .smg-container { padding: 0 32px; } }

/* ========== Header ========== */
.smg-header {
  position: relative;
  top: auto;
  z-index: 50;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  backdrop-filter: blur(8px);
}
.smg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 12px;
  flex-wrap: wrap;
}
.smg-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--brand-teal);
}
.smg-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.smg-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.smg-nav a:hover { color: var(--brand-teal); background: rgba(0,128,128,.08); }
.smg-nav a.active { color: var(--brand-teal); font-weight: 700; }
.smg-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--brand-teal) 0%, #0a9396 100%);
  color: #fff !important;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,128,128,.25);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.smg-btn-add::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.smg-btn-add:hover::before { width: 300px; height: 300px; }
.smg-btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,128,128,.35);
}
.smg-btn-add .mat-icon { font-size: 20px; }
.smg-mobile-menu-btn { display: none; }
.smg-mobile-overlay { display: none; }
@media (max-width: 768px) {
  .smg-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 72px 24px 24px;
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    z-index: 999;
    gap: 4px;
    overflow-y: auto;
  }
  .smg-nav.open { display: flex; }
  .smg-nav a { padding: 12px 16px; font-size: 1rem; }
  .smg-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    color: var(--muted);
    font-size: 28px;
  }
  .smg-mobile-menu-btn:hover { background: rgba(0,128,128,.08); }
  .smg-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 998;
  }
  .smg-mobile-overlay.open { display: block; }
  .smg-header-inner { min-height: 72px; }
  .smg-brand { font-size: 1.1rem; }
  .smg-btn-add { padding: 10px 16px; font-size: 0.9rem; }
  .smg-btn-add .mat-icon { font-size: 18px; }
}
@media (max-width: 480px) {
  .smg-header-inner { min-height: 64px; padding: 8px 0; }
  .smg-brand { font-size: 1rem; }
  .smg-btn-add { padding: 8px 14px; font-size: 0.85rem; }
}

/* ========== Home: Hero ========== */
.smg-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -1px;
}
.smg-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(0,128,128,.85) 0%, rgba(0,128,128,.75) 100%);
}
.smg-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.smg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-light) 0%, transparent 50%);
  opacity: .9;
}
.smg-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 16px 60px;
  max-width: 900px;
  margin: 0 auto;
}
.smg-hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--primary);
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.smg-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.smg-hero h1 .highlight {
  color: var(--primary);
  position: relative;
  background: linear-gradient(120deg, var(--primary), #00ffcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.smg-hero-desc {
  margin: 0 0 24px;
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
@media (min-width: 640px) { .smg-hero-desc { font-size: 1.2rem; } }
.smg-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  padding: 10px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}
.smg-search-bar input,
.smg-search-bar select {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,.04);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
}
.smg-search-bar input::placeholder { color: var(--muted); }
.smg-search-bar input { order: 1; }
.smg-search-bar select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  order: 2;
  padding-left: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(15,23,42,0.65)' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 14px;
}
.smg-search-bar .smg-search-btn { order: 3; }
.smg-search-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  font-size: 1rem;
}
.smg-search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.smg-search-btn:hover::before { left: 100%; }
.smg-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}
@media (max-width: 640px) {
  .smg-search-bar { flex-direction: column; align-items: stretch; }
  .smg-hero { min-height: 420px; }
}

/* ========== Home: Service categories ========== */
.smg-services-wrap { padding: 32px 0; position: relative; z-index: 2; margin-top: -40px; }
.smg-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .smg-services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .smg-services-grid { grid-template-columns: repeat(5, 1fr); } }
.smg-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 14px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
@media (min-width: 640px) { .smg-service-card { padding: 24px 16px; } }
.smg-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,128,128,.2);
}
.smg-service-card.smg-emergency .smg-service-icon { background: rgba(239,68,68,.15); color: #dc2626; }
.smg-service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,128,128,.12);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 26px;
}
@media (min-width: 640px) {
  .smg-service-icon { width: 64px; height: 64px; margin-bottom: 12px; font-size: 28px; }
}
.smg-service-card h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; color: var(--text); }
@media (min-width: 640px) { .smg-service-card h3 { font-size: 1.2rem; } }
.smg-service-card p { margin: 0; font-size: .875rem; color: var(--muted); }

/* ========== Home: CTA ========== */
.smg-section { padding: 40px 0; }
.smg-section-white { background: var(--surface); }
.smg-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.smg-section-title { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--text); }
.smg-section-sub { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }
.smg-spec-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}
@media (min-width: 480px) { .smg-spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .smg-spec-grid { grid-template-columns: repeat(4, 1fr); } }
.smg-spec-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f1f5f9;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.smg-spec-card:hover { border-color: rgba(0,128,128,.3); }
.smg-spec-card img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.smg-spec-card h4 { margin: 0; font-size: 1rem; font-weight: 700; }
.smg-link-teal { color: var(--brand-teal); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.smg-cta-block {
  background: linear-gradient(135deg, var(--brand-teal) 0%, #0a9396 100%);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.smg-cta-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.smg-cta-block > * { position: relative; z-index: 1; }
@media (min-width: 640px) { .smg-cta-block { padding: 48px 24px; } }
.smg-cta-block h2 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
@media (min-width: 640px) { .smg-cta-block h2 { font-size: 1.75rem; } }
.smg-cta-block p {
  margin: 0 0 20px;
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
@media (min-width: 640px) { .smg-cta-block p { font-size: 1.2rem; margin-bottom: 24px; } }
.smg-cta-block .smg-btn-add { background: var(--primary); color: var(--bg-dark) !important; }
.smg-cta-block .mat-icon { font-size: 48px; opacity: .9; margin-bottom: 8px; }

/* ========== Alert bar ========== */
.smg-alert-bar {
  width: 100%;
  background: var(--alert-yellow);
  color: #1e293b;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  border-top: 2px solid rgba(30,41,59,.15);
}
.smg-alert-bar .material-icons-round {
  font-size: 22px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ========== Footer ========== */
.smg-footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 40px 0 24px;
  margin-top: auto;
}
@media (min-width: 640px) { .smg-footer { padding: 48px 0 24px; } }
.smg-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .smg-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 32px; } }
@media (min-width: 1024px) { .smg-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.smg-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.smg-footer-brand-ico { font-size: 26px; color: var(--primary); }
.smg-footer-brand-text { font-size: 1.25rem; font-weight: 800; color: #fff; }
.smg-footer-desc { margin: 0 0 16px; font-size: .95rem; line-height: 1.9; color: #94a3b8; max-width: 60ch; }
.smg-footer-social { display: flex; gap: 12px; }
.smg-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: background .2s, color .2s;
}
.smg-footer-social a:hover { background: var(--brand-teal); color: #fff; }
.smg-footer h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  padding-bottom: 8px;
  border-bottom: 1px solid #475569;
  display: inline-block;
}
.smg-footer ul { list-style: none; margin: 0; padding: 0; }
.smg-footer ul li { margin-bottom: 10px; }
.smg-footer ul a { color: #94a3b8; transition: color .2s; }
.smg-footer ul a:hover { color: var(--primary); }
.smg-footer-copy {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #334155;
  font-size: .8rem;
  color: #64748b;
}

/* ========== Specialties page ========== */
.smg-spec-page-header {
  background: linear-gradient(135deg, #008080 0%, #0a9396 50%, #00b4b4 100%);
  color: #fff;
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,128,128,0.2);
}
.smg-spec-page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 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='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 0;
  animation: patternMove 20s linear infinite;
}
@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}
.smg-spec-page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-light), transparent);
  z-index: 1;
}
.smg-spec-page-header > * { position: relative; z-index: 2; }
.smg-spec-page-header h1 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0,0,0,0.2);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.smg-spec-page-header p {
  margin: 0 auto;
  font-size: 1.15rem;
  color: rgba(255,255,255,.96);
  max-width: 750px;
  line-height: 1.7;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
@media (min-width: 640px) {
  .smg-spec-page-header { padding: 72px 24px 64px; }
  .smg-spec-page-header p { font-size: 1.3rem; }
}

/* Stats Bar */
.smg-spec-stats-bar {
  background: #ffffff;
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.smg-spec-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .smg-spec-stats { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.stat-item:hover {
  background: #f0f9ff;
  border-color: var(--brand-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,128,128,0.1);
}
.stat-item .material-icons-round {
  font-size: 32px;
  color: var(--brand-teal);
  background: rgba(0,128,128,0.1);
  padding: 10px;
  border-radius: 10px;
}
.stat-content { display: flex; flex-direction: column; gap: 2px; }
.stat-content strong { font-size: 1.1rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.stat-content span { font-size: 0.85rem; color: var(--muted); line-height: 1.3; }

/* Specialties Grid */
.smg-spec-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 48px 0;
}
@media (min-width: 640px) { .smg-spec-page-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .smg-spec-page-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
@media (min-width: 1280px) { .smg-spec-page-grid { grid-template-columns: repeat(5, 1fr); } }
.smg-spec-page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 18px;
  min-height: 150px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  border: 2px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out backwards;
}
.smg-spec-page-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-teal), var(--primary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.smg-spec-page-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
@media (min-width: 640px) { .smg-spec-page-card { gap: 18px; padding: 32px 22px; min-height: 165px; } }
.smg-spec-page-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand-teal);
  box-shadow: 0 12px 28px rgba(0,128,128,0.15), 0 4px 12px rgba(0,128,128,0.08);
}
.smg-spec-page-card .ico-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.smg-spec-page-card:hover .ico-wrap {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
@media (min-width: 640px) { .smg-spec-page-card .ico-wrap { width: 84px; height: 84px; border-radius: 22px; } }
.smg-spec-page-card .smg-emoji {
  font-size: 34px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.smg-spec-page-card:hover .smg-emoji { transform: scale(1.1); }
@media (min-width: 640px) { .smg-spec-page-card .smg-emoji { font-size: 40px; } }
.smg-spec-page-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.4;
  transition: color 0.3s ease;
}
.smg-spec-page-card:hover h3 { color: var(--brand-teal); }
@media (min-width: 640px) { .smg-spec-page-card h3 { font-size: 1.05rem; } }

/* Specialty card color variations */
.smg-spec-page-card:nth-child(5n+1) .ico-wrap { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); border: 2px solid #93c5fd; }
.smg-spec-page-card:nth-child(5n+1):hover .ico-wrap { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); border-color: #1d4ed8; }
.smg-spec-page-card:nth-child(5n+2) .ico-wrap { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); border: 2px solid #6ee7b7; }
.smg-spec-page-card:nth-child(5n+2):hover .ico-wrap { background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-color: #047857; }
.smg-spec-page-card:nth-child(5n+3) .ico-wrap { background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%); border: 2px solid #fb923c; }
.smg-spec-page-card:nth-child(5n+3):hover .ico-wrap { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); border-color: #b45309; }
.smg-spec-page-card:nth-child(5n+4) .ico-wrap { background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%); border: 2px solid #c084fc; }
.smg-spec-page-card:nth-child(5n+4):hover .ico-wrap { background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%); border-color: #7e22ce; }
.smg-spec-page-card:nth-child(5n+5) .ico-wrap { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); border: 2px solid #f9a8d4; }
.smg-spec-page-card:nth-child(5n+5):hover .ico-wrap { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); border-color: #be185d; }
.smg-spec-page-card:hover .smg-emoji { filter: brightness(1.2) saturate(1.3); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.smg-spec-page-card:nth-child(1) { animation-delay: 0.05s; }
.smg-spec-page-card:nth-child(2) { animation-delay: 0.1s; }
.smg-spec-page-card:nth-child(3) { animation-delay: 0.15s; }
.smg-spec-page-card:nth-child(4) { animation-delay: 0.2s; }
.smg-spec-page-card:nth-child(5) { animation-delay: 0.25s; }

/* ========== Doctors (search) page ========== */
.smg-doctors-wrap {
  padding: 32px 0 48px;
  background: linear-gradient(175deg,
    rgba(0,128,128,.06) 0%,
    rgba(240,249,248,.8) 25%,
    #f6f8f8 60%,
    #ffffff 100%);
  min-height: 60vh;
}
.smg-doctors-title-wrap { margin-bottom: 24px; }
.smg-doctors-title-wrap h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  position: relative;
  display: inline-block;
}
.smg-doctors-title-wrap h1::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 50%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-teal), transparent);
  border-radius: 2px;
  animation: lineGrow 0.8s ease-out;
}
@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to { width: 50%; opacity: 1; }
}
.smg-doctors-title-wrap p { margin: 0; color: var(--muted); font-size: 1rem; }
.smg-doctors-layout { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .smg-doctors-layout { flex-direction: row; } }
.smg-doctors-sidebar { width: 100%; flex-shrink: 0; }
@media (min-width: 1024px) { .smg-doctors-sidebar { width: 280px; } }
.smg-filter-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 20px;
}
.smg-filter-card h3 { margin: 0 0 16px; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.smg-filter-card label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.smg-filter-card input,
.smg-filter-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  font-size: .9rem;
  margin-bottom: 16px;
  font-family: inherit;
}
.smg-filter-card .radio-group { display: flex; gap: 16px; margin-bottom: 16px; }
.smg-filter-card .radio-group label { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.smg-filter-card button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: var(--brand-teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
}
.smg-filter-card button[type="submit"]:hover { filter: brightness(1.1); }

/* Doctors Grid */
.smg-doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  flex: 1;
}
@media (min-width: 640px) { .smg-doctors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .smg-doctors-grid { grid-template-columns: repeat(3, 1fr); } }
.smg-doctor-card {
  background: linear-gradient(160deg, #ffffff 0%, #f7fffe 60%, #f0faf9 100%);
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,128,128,.07);
  border: 1px solid rgba(0,128,128,.13);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  will-change: transform;
  text-decoration: none;
  color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
  .smg-doctor-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 4px 12px rgba(0,0,0,.07), 0 18px 44px rgba(0,128,128,.15);
    border-color: rgba(0,128,128,.28);
  }
}
.smg-doctor-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, #e0f2f1 0%, #f1f5f9 100%);
  overflow: hidden;
}
.smg-doctor-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}
.smg-doctor-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.smg-doctor-card-body h3 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 700; }
.smg-doctor-card-body .spec { color: var(--brand-teal); font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.smg-doctor-card-body .location { font-size: .875rem; color: var(--muted); display: flex; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
.smg-doctor-card-body .smg-btn-detail {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--brand-teal);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
}
.smg-doctor-card-body .smg-btn-detail:hover { filter: brightness(1.05); }

/* Pagination */
.smg-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.smg-pagination a,
.smg-pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  cursor: pointer;
}
.smg-pagination a:hover { background: #f1f5f9; color: var(--brand-teal); }
.smg-pagination .current { background: var(--brand-teal); color: #fff; border-color: var(--brand-teal); }

/* ========== Doctor profile page ========== */
.smg-doctor-post { padding: 24px 0 48px; }
.smg-breadcrumb { margin-bottom: 24px; font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.smg-breadcrumb a { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.smg-breadcrumb a:hover { color: var(--brand-teal); }
.smg-dp-main { display: flex; flex-direction: column; gap: 20px; max-width: 860px; margin: 0 auto; }
.smg-dp-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fdfc 100%);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,128,128,.04);
  border: 1px solid rgba(0,128,128,.1);
}
.smg-dp-profile { display: flex; gap: 20px; align-items: flex-start; }
@media (max-width: 639px) {
  .smg-dp-profile { flex-direction: column; align-items: center; text-align: center; }
  .smg-dp-info { align-items: center; }
  .smg-doctor-tags { justify-content: center; }
}
.smg-dp-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #008080, #0fbfa2);
  padding: 3px;
  box-shadow: 0 6px 20px rgba(0,128,128,.2), 0 0 0 4px rgba(0,128,128,.08);
}
.smg-dp-avatar img, .smg-dp-avatar > div { border-radius: 50%; }
.smg-dp-info { flex: 1; }
.smg-dp-info-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .smg-dp-info-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .smg-dp-info-row { grid-template-columns: repeat(3, 1fr); } }
.smg-dp-info-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border: 1px solid rgba(15,23,42,.08);
  display: flex;
  gap: 14px;
}
.smg-dp-info-item .ico-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.smg-dp-info-item .ico-box.blue { background: #dbeafe; color: #2563eb; }
.smg-dp-info-item .ico-box.red { background: #fee2e2; color: #dc2626; }
.smg-dp-info-item .ico-box.amber { background: #fef3c7; color: #d97706; }
.smg-dp-info-item h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: #1e293b; }
.smg-dp-info-item p { margin: 0; font-size: .9rem; color: #64748b; line-height: 1.7; }

/* Booking */
.smg-dp-booking {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0,128,128,.08), 0 1px 3px rgba(0,128,128,.04);
  border: 1px solid rgba(0,128,128,.12);
}
.smg-booking-body { display: grid; gap: 10px; }
@media (min-width: 640px) { .smg-dp-booking .smg-booking-body { grid-template-columns: 1fr 1fr; align-items: start; } }
.smg-dp-phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(15,23,42,.08);
  text-decoration: none;
  color: #1e293b;
  transition: border-color .2s;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.smg-dp-phone-row:hover { border-color: #008080; box-shadow: 0 2px 8px rgba(0,128,128,.1); }
.smg-dp-phone-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008080;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  flex-shrink: 0;
}
.smg-dp-btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: #008080;
  color: #fff !important;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0,128,128,.25);
  transition: all .2s;
}
.smg-dp-btn-call:hover { background: #006d6d; transform: translateY(-2px); }
.smg-dp-btn-copy, .smg-dp-btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
  color: #475569;
  font-weight: 700;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  font-size: .95rem;
  font-family: inherit;
  transition: all .2s;
}
.smg-dp-btn-copy:hover, .smg-dp-btn-share:hover { border-color: #008080; color: #008080; }
.smg-dp-share-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all .2s;
  text-decoration: none;
}
.smg-dp-share-ico:hover { background: #008080; color: #fff; }
.smg-doctor-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.smg-doctor-tags span {
  padding: 6px 14px;
  border-radius: 8px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #008080;
  font-size: .85rem;
  font-weight: 600;
}
.smg-dp-profile-actions { width: 100%; }
.smg-dp-profile-actions .smg-dp-btn-call { padding: 12px 8px; font-size: .9rem; }
.smg-dp-profile-actions .smg-dp-btn-copy, .smg-dp-profile-actions .smg-dp-btn-share { padding: 10px 8px; font-size: .85rem; }
@media (max-width: 639px) { .smg-dp-profile-actions { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 380px) {
  .smg-dp-profile-actions .smg-dp-btn-call,
  .smg-dp-profile-actions .smg-dp-btn-copy,
  .smg-dp-profile-actions .smg-dp-btn-share { font-size: .75rem; padding: 10px 4px; gap: 4px; }
  .smg-dp-profile-actions .material-icons-round { font-size: 16px !important; }
}

/* Hours Alert */
.smg-hours-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  margin-top: 16px;
}
.smg-hours-alert .ico { color: #d97706; font-size: 22px; flex-shrink: 0; }
.smg-hours-alert p { margin: 0; font-size: .9rem; color: #78350f; font-weight: 600; line-height: 1.6; }

/* No results */
.no-results { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ========== Static pages ========== */
.smg-static-wrap { padding: 48px 0 64px; }
.smg-static-breadcrumb {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.smg-static-breadcrumb a { color: var(--muted); }
.smg-static-breadcrumb a:hover { color: var(--brand-teal); }
.smg-static-hero {
  background: linear-gradient(135deg, var(--brand-teal) 0%, #0a9396 100%);
  color: #fff;
  padding: 48px 24px 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.smg-static-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.smg-static-hero > * { position: relative; z-index: 1; }
.smg-static-hero h1 { margin: 0 0 10px; font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 800; }
.smg-static-hero p { margin: 0; opacity: .9; font-size: 1rem; }
.smg-static-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 32px 28px;
  max-width: 860px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 2;
  color: var(--text);
}
.smg-static-content h1,.smg-static-content h2,.smg-static-content h3 {
  color: var(--brand-teal);
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}
.smg-static-content h1 { font-size: 1.5rem; margin-top: 0; }
.smg-static-content h2 { font-size: 1.25rem; }
.smg-static-content p { margin: 0 0 16px; }
.smg-static-content ul,.smg-static-content ol { padding-right: 24px; margin-bottom: 16px; }
.smg-static-content li { margin-bottom: 8px; }

/* ========== Add Doctor page ========== */
.smg-add-doctor-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background-image: 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='%23007bff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.smg-add-doctor-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 40px rgba(31,38,135,.09);
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  overflow: hidden;
}
.smg-add-doctor-header {
  padding: 32px 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.smg-add-doctor-header h1 { margin: 0; font-size: 1.35rem; font-weight: 800; color: #0056b3; }
.smg-add-doctor-body { padding: 28px 32px 32px; }
.smg-add-doctor-section-title { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin-bottom: 16px; }
.smg-add-doctor-list { list-style: none; margin: 0 0 28px; padding: 0; }
.smg-add-doctor-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .95rem;
  color: #475569;
  line-height: 1.6;
}
.smg-add-doctor-list li::before { content: '★'; color: #007bff; font-size: .85rem; margin-top: 2px; flex-shrink: 0; }
.smg-add-doctor-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.smg-add-doctor-btns .btn-primary {
  flex: 1;
  min-width: 180px;
  padding: 14px 24px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  box-shadow: 0 8px 20px rgba(0,123,255,.3);
  display: inline-block;
}
.smg-add-doctor-btns .btn-primary:hover { background: #0056b3; transform: translateY(-2px); }
.smg-add-doctor-btns .btn-secondary {
  flex: 1;
  min-width: 180px;
  padding: 14px 24px;
  background: #fff;
  color: #6c757d;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  display: inline-block;
}
.smg-add-doctor-btns .btn-secondary:hover { background: #f8fafc; }
.smg-add-doctor-footer { padding: 12px; display: flex; justify-content: center; }
.smg-add-doctor-footer .dec { height: 5px; width: 48px; background: #e2e8f0; border-radius: 999px; }

/* ========== Utilities ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.smg-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1rem;
  gap: 10px;
}
.smg-loading::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--brand-teal);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
