/* توجه: فونت Vazirmatn دیگه اینجا @import نمی‌شه چون توی <head> هر صفحه با
   <link rel="stylesheet"> لود می‌شه؛ این کار از یک درخواست شبکه‌ی اضافه و
   کندتر شدن اولین نمایش صفحه (که روی سئو و Core Web Vitals هم اثر داره) جلوگیری می‌کنه. */

/* فونت نمایشی «لعل‌زار» برای تیتر اصلی هیرو — از خود سایت سرو می‌شه
   (self-hosted) تا نه به یه دامنه‌ی خارجی اضافه نیاز باشه، نه به CSP
   دست بزنیم برای یه فونت گوگل جدا. */
@font-face{
  font-family:'Lalezar';
  src:
    url('../fonts/Lalezar-Regular.woff2') format('woff2'),
    url('../fonts/Lalezar-Regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

:root{
  --bg: #F7F9FB;
  --bg-panel: #FFFFFF;
  --bg-elevated: #EEF3F6;
  --primary: #0E6E6B;
  --primary-dark: #0A5654;
  --primary-light: #E3F1F0;
  --accent: #FF6B5B;
  --text: #12232E;
  --text-muted: #6B7785;
  --border: #E2E8ED;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(18,35,46,0.06);
  --shadow-md: 0 8px 24px rgba(18,35,46,0.08);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Vazirmatn', sans-serif;
  direction:rtl;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.container{ max-width:1160px; margin:0 auto; padding:0 24px; }
.mb-16{ margin-bottom:16px; }
.mt-14{ margin-top:14px; font-size:14px; }
.ltr-right{ direction:ltr; text-align:right; }
.loading-msg{ color:var(--text-muted); grid-column:1/-1; text-align:center; padding:40px 0; }
.prose{ max-width:760px; }
.prose p{ margin-bottom:20px; color:var(--text-muted); }
.prose__link{ color:var(--primary); font-weight:600; }
.signup-nudge{ color:var(--text-muted); font-size:13px; }
.narrow{ max-width:720px; }
.doctor-card__cta{ color:var(--primary); font-size:13px; font-weight:600; }
.slots-heading{ font-size:19px; margin-bottom:16px; }
.mt-16{ margin-top:16px; }
.mt-10{ margin-top:10px; }

/* =========================================================
   Header — نوار شناور کپسولی (Floating Capsule Navbar)
   ========================================================= */
header.site-header{
  position:sticky; top:0; z-index:50;
  background:transparent;
  padding:16px 16px 0;
  transition:padding .3s ease;
  pointer-events:none; /* فقط خود کپسول قابل کلیکه، فضای اطرافش شفاف و بدون مانعه */
}
header.site-header .nav{ pointer-events:auto; }

/* هاله‌ی نرم و رنگی پشت کپسول — یه‌ذره عمق و حس «باحال» بهش می‌ده */
header.site-header::before{
  content:'';
  position:absolute;
  top:6px; right:50%; transform:translateX(50%);
  width:min(1160px, 94%);
  height:52px;
  background:linear-gradient(90deg, var(--primary), var(--accent));
  filter:blur(30px);
  opacity:.22;
  z-index:-1;
  border-radius:999px;
  pointer-events:none;
  transition:opacity .3s ease;
}
header.site-header.scrolled::before{ opacity:.32; }
header.site-header.scrolled{ padding-top:10px; }

.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  max-width:1160px;
  margin:0 auto;
  padding:11px 26px;
  position:relative; /* تا منوی موبایل دقیقاً زیر همین کپسول باز بشه */
  border-radius:999px;
  background:rgba(255,255,255,0.72);
  backdrop-filter:blur(18px) saturate(180%);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  border:1px solid rgba(255,255,255,0.65);
  box-shadow:
    0 10px 30px -8px rgba(18,35,46,0.16),
    0 2px 8px rgba(18,35,46,0.06),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transition:background .3s ease, box-shadow .3s ease, padding .3s ease;
}
header.site-header.scrolled .nav{
  background:rgba(255,255,255,0.92);
  box-shadow:
    0 16px 40px -8px rgba(18,35,46,0.22),
    0 2px 10px rgba(18,35,46,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.logo{ display:flex; align-items:center; gap:10px; font-size:20px; font-weight:800; color:var(--text); flex-shrink:0; transition:transform .25s ease; }
.logo:hover{ transform:translateY(-1px); }
.logo img{ height:34px; width:auto; transition:transform .35s cubic-bezier(.34,1.56,.64,1), filter .35s ease; }
.logo:hover img{ transform:scale(1.08) rotate(-4deg); filter:drop-shadow(0 6px 14px rgba(14,110,107,.35)); }
.brand-intro{ display:flex; justify-content:center; margin-bottom:28px; }
.brand-intro img{ width:min(260px, 60vw); height:auto; }
.logo span{
  background:linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* منوی هدر: همیشه پشت دکمه‌ی سه‌خط مخفیه (نه فقط توی موبایل)،
   و از همون گوشه‌ای که دکمه هست (گوشه‌ی چپ کپسول) باز می‌شه */
.nav__links{
  position:absolute; top:calc(100% + 10px); left:0;
  width:min(300px, 88vw);
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border:1px solid rgba(255,255,255,0.7);
  border-radius:22px;
  box-shadow:0 16px 40px -10px rgba(18,35,46,0.22);
  display:flex; flex-direction:column; align-items:flex-start; gap:0;
  padding:8px 22px 14px;
  max-height:0; overflow:hidden;
  opacity:0; transform:translateY(-6px);
  pointer-events:none;
  font-size:15px;
  transition:opacity .2s ease, transform .2s ease, max-height .35s ease;
  z-index:5;
}
.nav__links.open{ max-height:80vh; overflow-y:auto; opacity:1; transform:translateY(0); pointer-events:auto; }
.nav__links a{
  position:relative;
  width:100%; padding:13px 0; color:var(--text-muted); white-space:nowrap;
  border-bottom:1px solid var(--border);
  opacity:0; transform:translateY(-6px);
  transition:opacity .3s ease, transform .3s ease, color .2s ease;
}
.nav__links a:hover{ color:var(--primary); }
.nav__links a.active{ color:var(--primary); font-weight:600; }
.nav__links.open a{ opacity:1; transform:translateY(0); }
.nav__links.open a:nth-child(1){ transition-delay:.04s; }
.nav__links.open a:nth-child(2){ transition-delay:.09s; }
.nav__links.open a:nth-child(3){ transition-delay:.14s; }
.nav__links.open a:nth-child(4){ transition-delay:.19s; }

/* بخش دسته‌بندی تخصص‌ها، ته همون منو */
.nav__categories{
  width:100%; padding-top:14px;
  opacity:0; transform:translateY(-6px);
  transition:opacity .3s ease .22s, transform .3s ease .22s;
}
.nav__links.open .nav__categories{ opacity:1; transform:translateY(0); }
.nav__categories-title{ font-size:12.5px; font-weight:700; color:var(--text-muted); margin-bottom:10px; }
.nav__categories-grid{ display:flex; flex-wrap:wrap; gap:8px; }
.nav__categories-grid a{
  width:auto; padding:7px 14px !important; border-bottom:none !important;
  font-size:13px; border-radius:20px;
  background:rgba(14,110,107,.08); color:var(--primary-dark) !important;
  border:1px solid transparent;
  transition:background .2s ease, transform .15s ease, border-color .2s ease, opacity .3s ease, color .2s ease;
}
.nav__categories-grid a:hover{ background:rgba(14,110,107,.16); border-color:rgba(14,110,107,.25); transform:translateY(-1px); color:var(--primary-dark); }
.nav__categories-grid .loading-msg{ font-size:13px; color:var(--text-muted); }

.nav__actions{ display:flex; align-items:center; gap:12px; flex-shrink:0; min-width:0; }

.auth-area{ display:flex; align-items:center; gap:10px; font-size:14px; min-width:0; }
.auth-area a{
  position:relative; overflow:hidden;
  color:#fff; border:none;
  background:linear-gradient(135deg, var(--primary), #17a39a);
  padding:9px 20px; border-radius:30px; white-space:nowrap;
  box-shadow:0 6px 16px rgba(14,110,107,.28);
  transition:transform .22s ease, box-shadow .22s ease;
}
.auth-area a::before{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform:translateX(-130%);
  transition:transform .55s ease;
}
.auth-area a:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(14,110,107,.38); }
.auth-area a:hover::before{ transform:translateX(130%); }
.auth-area .auth-user{ display:flex; align-items:center; gap:8px; color:var(--text-muted); font-size:13.5px; min-width:0; }
.auth-area .auth-user span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:120px; }
.auth-area .auth-user b{ color:var(--primary-dark); }
.auth-area .auth-user a{ white-space:nowrap; }
.auth-area button.link-btn{ background:none; border:none; color:var(--text-muted); font-size:13px; text-decoration:underline; white-space:nowrap; }

/* دکمه‌ی منوی همبرگری — همیشه نمایش داده می‌شه (توی هر گوشه‌ای از صفحه) */
.menu-toggle{
  display:flex; align-items:center; justify-content:center;
  position:relative;
  width:36px; height:36px;
  background:none; border:none;
  border-radius:50%;
  flex-shrink:0;
  transition:background .2s ease;
}
.menu-toggle:hover{ background:rgba(14,110,107,.08); }
.menu-toggle__bar{
  position:absolute; right:7px; left:7px; height:2px;
  border-radius:2px; background:var(--text);
  transition:transform .25s ease, opacity .2s ease, top .25s ease, background .2s ease;
}
.menu-toggle__bar:nth-child(1){ top:12px; }
.menu-toggle__bar:nth-child(2){ top:18px; }
.menu-toggle__bar:nth-child(3){ top:24px; }
.menu-toggle.open .menu-toggle__bar{ background:var(--primary); }
.menu-toggle.open .menu-toggle__bar:nth-child(1){ top:18px; transform:rotate(45deg); }
.menu-toggle.open .menu-toggle__bar:nth-child(2){ opacity:0; }
.menu-toggle.open .menu-toggle__bar:nth-child(3){ top:18px; transform:rotate(-45deg); }

@media (max-width:860px){
  .nav{ padding:9px 18px; }
  .nav__links{ width:min(320px, 90vw); }
}

@media (max-width:480px){
  header.site-header{ padding:10px 10px 0; }
  .auth-area .auth-user a{ display:none; } /* روی صفحه‌ی خیلی کوچیک فقط سلام+خروج بمونه، شلوغ نشه */
}


/* ---------- Buttons ---------- */
.btn{ display:inline-flex; align-items:center; gap:8px; padding:14px 28px; font-size:15px; font-weight:700; border-radius:30px; border:1px solid transparent; transition:all .2s; }
.btn-primary{ background:var(--primary); color:#fff; }
.btn-primary:hover{ background:var(--primary-dark); }
.btn-outline{ border-color:var(--border); color:var(--text); background:#fff; }
.btn-outline:hover{ border-color:var(--primary); color:var(--primary); }
.btn-sm{ padding:9px 18px; font-size:13.5px; }
.btn:disabled{ opacity:.6; cursor:not-allowed; }

/* ---------- Hero ---------- */
.hero{ padding:64px 0 70px; background:linear-gradient(180deg, var(--primary-light), var(--bg) 70%); }
.hero__eyebrow{ color:var(--primary); font-size:14px; font-weight:600; margin-bottom:14px; }
.hero h1{ font-size:clamp(30px,4.5vw,46px); font-weight:800; line-height:1.35; margin-bottom:16px; max-width:680px; }
.hero h1 em{ font-style:normal; color:var(--primary); }
.hero p{ color:var(--text-muted); font-size:16.5px; max-width:560px; margin-bottom:32px; }

.search-box{
  background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-md);
  padding:10px; display:flex; gap:8px; flex-wrap:wrap; max-width:640px;
}
.search-box select, .search-box input{
  border:none; background:transparent; padding:12px 14px; font-family:inherit; font-size:14.5px; color:var(--text); flex:1; min-width:140px;
}
.search-box select:focus, .search-box input:focus{ outline:none; }
.search-box button{ background:var(--primary); color:#fff; border:none; padding:12px 26px; border-radius:12px; font-weight:700; font-size:14.5px; }

.hero__stats{ display:flex; gap:34px; margin-top:44px; flex-wrap:wrap; }
.hero__stats div b{ display:block; font-size:26px; font-weight:800; color:var(--primary-dark); }
.hero__stats div span{ font-size:13px; color:var(--text-muted); }

/* ---------- Section heading ---------- */
.section{ padding:76px 0; }
.section--tight{ padding:54px 0; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:40px; flex-wrap:wrap; }
.section-head h2{ font-size:clamp(24px,3vw,32px); font-weight:800; }
.section-head p{ color:var(--text-muted); max-width:420px; font-size:15px; }
.section-head a{ color:var(--primary); font-size:14.5px; font-weight:600; white-space:nowrap; }

/* ---------- Specialty grid ---------- */
/* =========================================================
   ZAMAN MAN - POPULAR SPECIALTIES MARQUEE
   ========================================================= */

.popular-specialties{
  position:relative;
  padding:38px 0 32px;
  overflow:hidden;
}


/* عنوان */

.popular-specialties .section-head{
  margin-bottom:22px;
}

.popular-specialties .section-head h2{
  margin:0 0 8px;

  font-size:clamp(23px,3vw,31px);
  font-weight:850;

  color:#12383a;

  letter-spacing:-.4px;
}

.popular-specialties .section-head p{
  margin:0;

  color:#6c8587;

  font-size:14px;
}


/* =========================================================
   نوار متحرک
   ========================================================= */

.specialty-marquee{
  position:relative;

  width:100%;

  overflow:hidden;

  padding:12px 0 18px;

  direction:ltr;

  /* محو شدن دو طرف */

  -webkit-mask-image:linear-gradient(
    90deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );

  mask-image:linear-gradient(
    90deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}


/* خط متحرک */

.specialty-track{
  display:flex;

  width:max-content;

  gap:18px;

  animation:
    specialty-marquee-animation
    28s
    linear
    infinite;

  will-change:transform;
}


/* گروه تخصص‌ها */

.specialty-group{
  display:flex;

  gap:18px;

  flex-shrink:0;
}


/* =========================================================
   کارت تخصص
   ========================================================= */

.specialty-card{

  position:relative;

  width:175px;
  min-height:108px;

  display:flex;

  flex-direction:column;

  align-items:center;
  justify-content:center;

  gap:11px;

  flex-shrink:0;

  text-decoration:none;

  color:#173b3d;

  background:

    linear-gradient(
      145deg,
      #ffffff 0%,
      #f7ffff 100%
    );

  border:

    1px solid
    rgba(20,150,145,.16);

  border-radius:20px;

  box-shadow:

    0 8px 25px
    rgba(18,116,115,.08);

  overflow:hidden;

  transition:

    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}


/* خط رنگی بالای کارت */

.specialty-card::before{

  content:"";

  position:absolute;

  top:0;
  left:18px;
  right:18px;

  height:3px;

  border-radius:0 0 10px 10px;

  background:

    linear-gradient(
      90deg,
      #16a6a0,
      #36c7a5
    );

  opacity:.75;

}


/* هاله ظریف */

.specialty-card::after{

  content:"";

  position:absolute;

  width:90px;
  height:90px;

  top:-45px;
  right:-35px;

  border-radius:50%;

  background:

    rgba(36,190,176,.07);

}


/* =========================================================
   آیکون
   ========================================================= */

.specialty-card svg{

  width:32px;
  height:32px;

  padding:8px;

  box-sizing:content-box;

  border-radius:50%;

  color:#078f8b;

  background:

    linear-gradient(
      145deg,
      #e8fbf8,
      #d9f5f1
    );

  box-shadow:

    0 5px 15px
    rgba(10,150,143,.12);

  transition:

    transform .3s ease,
    background .3s ease,
    color .3s ease;
}


/* متن */

.specialty-card span{

  position:relative;
  z-index:2;

  font-size:14px;

  font-weight:750;

  white-space:nowrap;

  color:#173d3f;
}


/* =========================================================
   Hover
   ========================================================= */

.specialty-card:hover{

  transform:

    translateY(-6px)
    scale(1.025);

  border-color:

    rgba(10,157,151,.42);

  box-shadow:

    0 15px 35px
    rgba(10,140,135,.16);
}


.specialty-card:hover svg{

  transform:

    scale(1.12)
    rotate(-4deg);

  color:#ffffff;

  background:

    linear-gradient(
      145deg,
      #079b96,
      #25b99f
    );
}


/* =========================================================
   حرکت خودکار
   ========================================================= */

@keyframes specialty-marquee-animation{

  0%{

    transform:
      translateX(0);

  }

  100%{

    transform:
      translateX(
        calc(-50% - 9px)
      );

  }

}


/* =========================================================
   توقف هنگام Hover
   ========================================================= */

.specialty-marquee:hover
.specialty-track{

  animation-play-state:paused;

}


/* =========================================================
   موبایل
   ========================================================= */

@media(max-width:860px){

  .popular-specialties{

    padding:
      28px 0
      24px;

  }


  .popular-specialties
  .section-head{

    margin-bottom:15px;

  }


  .popular-specialties
  .section-head h2{

    font-size:23px;

  }


  .popular-specialties
  .section-head p{

    font-size:13px;

  }


  .specialty-track{

    gap:12px;

    animation-duration:22s;

  }


  .specialty-group{

    gap:12px;

  }


  .specialty-card{

    width:145px;

    min-height:88px;

    border-radius:16px;

  }


  .specialty-card svg{

    width:26px;
    height:26px;

    padding:7px;

  }


  .specialty-card span{

    font-size:13px;

  }

}


/* =========================================================
   موبایل خیلی کوچک
   ========================================================= */

@media(max-width:420px){

  .specialty-card{

    width:135px;

    min-height:82px;

  }

  .specialty-track{

    animation-duration:20s;

  }

}


/* =========================================================
   دسترسی‌پذیری
   ========================================================= */

@media(prefers-reduced-motion:reduce){

  .specialty-track{

    animation:none;

  }

}

/* ---------- Doctor cards ---------- */
.doctor-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.doctor-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:22px; transition:all .2s;
}
.doctor-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); border-color:transparent; }
.doctor-card__avatar{
  width:56px; height:56px; border-radius:50%; background:var(--primary-light); color:var(--primary-dark);
  display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:800; margin-bottom:16px;
}
.doctor-card__avatar-img{ width:56px; height:56px; border-radius:50%; object-fit:cover; margin-bottom:16px; }
.doctor-card h3{ font-size:17px; font-weight:700; margin-bottom:4px; }
.doctor-card__specialty{ color:var(--primary); font-size:13.5px; font-weight:600; margin-bottom:10px; }
.doctor-card__address{ color:var(--text-muted); font-size:13px; margin-bottom:16px; min-height:36px; }
.doctor-card__foot{ display:flex; justify-content:space-between; align-items:center; }
.doctor-card__slots{ font-size:12.5px; color:var(--text-muted); }
@media (max-width:980px){ .doctor-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .doctor-grid{ grid-template-columns:1fr; } }

/* =========================================================
   نوار دستی «پزشکان برگزیده» — با دکمه‌های قبلی/بعدی
   ========================================================= */

.featured-carousel{
  position:relative;
  display:flex;
  align-items:center;
  gap:16px;
}

.featured-carousel__track{
  flex:1;
  display:flex;
  gap:22px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:6px 2px 20px;

  -ms-overflow-style:none;
  scrollbar-width:none;

  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image:linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.featured-carousel__track::-webkit-scrollbar{ display:none; }

.featured-carousel__track .doctor-card{
  flex:0 0 auto;
  width:262px;
  scroll-snap-align:start;
}

.featured-carousel__btn{
  flex-shrink:0;
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid var(--border);
  background:#fff;
  color:var(--primary-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(18,116,115,.10);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    color .25s ease,
    background .25s ease;
}
.featured-carousel__btn svg{ width:20px; height:20px; }

.featured-carousel__btn:hover:not(:disabled){
  background:linear-gradient(145deg,#079b96,#25b99f);
  border-color:transparent;
  color:#fff;
  transform:scale(1.08);
  box-shadow:0 12px 28px rgba(10,140,135,.24);
}
.featured-carousel__btn:active:not(:disabled){ transform:scale(.96); }

.featured-carousel__btn:disabled{
  opacity:.32;
  cursor:not-allowed;
  box-shadow:none;
}

@media (max-width:760px){
  .featured-carousel{ gap:10px; }
  .featured-carousel__track .doctor-card{ width:220px; }
  .featured-carousel__btn{ width:38px; height:38px; }
  .featured-carousel__btn svg{ width:17px; height:17px; }
}
@media (max-width:480px){
  .featured-carousel__track .doctor-card{ width:198px; }
}

/* ---------- Filters ---------- */
.filters-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:30px; }
.filters-bar select, .filters-bar input{
  background:#fff; border:1px solid var(--border); border-radius:30px; padding:11px 18px;
  font-family:inherit; font-size:14px; color:var(--text);
}
.filters-bar input{ flex:1; min-width:200px; }

/* ---------- Trust strip ---------- */
.trust{ background:#fff; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.trust__grid{ display:grid; grid-template-columns:repeat(2,1fr); max-width:640px; margin:0 auto; }
.trust__item{ padding:32px 22px; text-align:center; border-right:1px solid var(--border); }
.trust__item:last-child{ border-right:none; }
.trust__item svg{ width:28px; height:28px; color:var(--primary); margin:0 auto 12px; }
.trust__item h4{ font-size:15px; margin-bottom:6px; font-weight:700; }
.trust__item p{ font-size:13px; color:var(--text-muted); }
@media (max-width:520px){ .trust__grid{ grid-template-columns:1fr; max-width:360px; } .trust__item{ border-right:none; border-bottom:1px solid var(--border); } .trust__item:last-child{ border-bottom:none; } }

/* ---------- How it works ---------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.step-card{ text-align:center; padding:10px; }
.step-card__num{
  width:46px; height:46px; border-radius:50%; background:var(--primary); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:18px; margin:0 auto 16px;
}
.step-card h3{ font-size:16px; margin-bottom:8px; }
.step-card p{ color:var(--text-muted); font-size:14px; }
@media (max-width:760px){ .steps{ grid-template-columns:1fr; } }

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--primary); border-radius:20px; padding:52px; color:#fff;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band h3{ font-size:23px; margin-bottom:8px; }
.cta-band p{ opacity:.85; font-size:15px; }
.cta-band .btn-primary{ background:#fff; color:var(--primary-dark); }
.cta-band .btn-primary:hover{ background:var(--bg-elevated); }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--border); background:#fff; padding:56px 0 24px; }
.footer__grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; margin-bottom:44px; }
.footer__col h5{ font-size:14px; margin-bottom:16px; }
.footer__col p{ color:var(--text-muted); font-size:14px; margin-bottom:14px; }
.footer__col ul li{ margin-bottom:10px; }
.footer__col ul a{ color:var(--text-muted); font-size:14px; transition:color .2s; }
.footer__col ul a:hover{ color:var(--primary); }
.footer__bottom{ border-top:1px solid var(--border); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color:var(--text-muted); }

/* نمادهای اعتماد (اینماد / زرین‌پال) — جمع‌وجور، کنار هم */

/* چیدمان نشان‌های اعتماد در فوتر */
.footer__badges {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* کادر هر نشان */
.footer__badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  padding: 5px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}

.footer__badges a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* تصویر اینماد و زرین‌پال */
.footer__badges img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* اندازه اختصاصی نشان اینماد */
.footer__badges #enamadImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* اندازه اختصاصی نشان زرین‌پال */
.footer__badges #zarinpalImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page header ---------- */
.page-head{ padding:48px 0 40px; text-align:center; }
.page-head h1{ font-size:clamp(26px,4vw,36px); font-weight:800; margin-bottom:10px; }
.page-head p{ color:var(--text-muted); }

/* ---------- Auth pages ---------- */
.auth-wrap{ min-height:60vh; display:flex; align-items:center; justify-content:center; padding:60px 0; }
.auth-card{ width:100%; max-width:420px; margin:0 auto; background:#fff; border:1px solid var(--border); border-radius:16px; padding:38px 32px; box-shadow:var(--shadow); }
.auth-card h1{ font-size:24px; text-align:center; margin-bottom:6px; font-weight:800; }
.auth-card > p{ text-align:center; color:var(--text-muted); font-size:14px; margin-bottom:28px; }
.auth-card .btn{ width:100%; justify-content:center; margin-top:6px; }
.auth-card .switch{ text-align:center; margin-top:20px; font-size:13.5px; color:var(--text-muted); }
.auth-card .switch a{ color:var(--primary); font-weight:600; }
.auth-note{ margin-top:22px; padding:14px 16px; border:1px dashed var(--border); border-radius:10px; font-size:12.5px; color:var(--text-muted); line-height:1.8; }
.form-error{ color:#D9534F; font-size:13.5px; margin-top:-8px; margin-bottom:14px; min-height:18px; }

.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:14px; margin-bottom:7px; color:var(--text-muted); }
.form-group input, .form-group textarea, .form-group select{
  width:100%; background:var(--bg-elevated); border:1px solid var(--border); border-radius:10px;
  padding:12px 15px; color:var(--text); font-family:inherit; font-size:14.5px; transition:border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{ outline:none; border-color:var(--primary); background:#fff; }

/* ---------- Doctor profile ---------- */
.doctor-page{ position:relative; }
.doctor-profile{ display:grid; grid-template-columns:.9fr 1.3fr; gap:32px; align-items:start; }

/* کارت هیرو پروفایل: بنر گرادیانی + آواتار حلقه‌دار روی لبه‌ش */
.doctor-card-hero{
  background:var(--bg-panel); border:1px solid var(--border); border-radius:20px;
  overflow:hidden; position:sticky; top:100px;
  box-shadow:var(--shadow-md);
}
.doctor-card-hero__banner{
  height:84px;
  background:linear-gradient(120deg, var(--primary) 0%, #17a39a 55%, var(--accent) 145%);
  position:relative;
}
.doctor-card-hero__body{ padding:0 26px 26px; text-align:center; }
.doctor-card-hero__avatar-wrap{ margin-top:-46px; margin-bottom:14px; display:flex; justify-content:center; position:relative; z-index:2; }
.doctor-profile__avatar{
  width:92px; height:92px; border-radius:50%; background:var(--primary-light); color:var(--primary-dark);
  display:flex; align-items:center; justify-content:center; font-size:30px; font-weight:800;
  border:4px solid var(--bg-panel); box-shadow:var(--shadow-md);
}
.doctor-profile__avatar-img{ width:92px; height:92px; border-radius:50%; object-fit:cover; border:4px solid var(--bg-panel); box-shadow:var(--shadow-md); }
.doctor-card-hero__body h1{ font-size:21px; font-weight:800; margin-bottom:10px; }
.specialty-pill{
  display:inline-block; background:var(--primary-light); color:var(--primary-dark);
  font-size:13px; font-weight:600; padding:5px 16px; border-radius:20px; margin-bottom:14px;
}
.doctor-card-hero .rating-summary{ justify-content:center; margin-bottom:18px; }
.doctor-card-hero .doctor-profile__meta,
.doctor-card-hero .doctor-profile__bio{ text-align:right; }
.doctor-profile__meta{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--text-muted); padding-top:16px; border-top:1px solid var(--border); }
.doctor-profile__meta svg{ width:18px; height:18px; color:var(--primary); flex-shrink:0; margin-top:1px; }
.doctor-profile__bio{ font-size:14px; color:var(--text-muted); margin-top:14px; padding-top:14px; border-top:1px solid var(--border); line-height:1.9; }

/* کارت رزرو نوبت */
.booking-card{
  background:var(--bg-panel); border:1px solid var(--border); border-radius:20px;
  padding:26px 28px; box-shadow:var(--shadow-md);
}

.slots-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.slot-btn{
  background:var(--bg-elevated); border:1px solid transparent; border-radius:10px; padding:14px 10px; text-align:center;
  font-size:13.5px; font-weight:600; transition:transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.slot-btn:hover{ border-color:var(--primary); color:var(--primary); transform:translateY(-1px); }
.slot-btn.selected{ background:var(--primary); border-color:var(--primary); color:#fff; box-shadow:0 6px 16px rgba(14,110,107,.28); }
.slot-btn b{ display:block; font-size:14.5px; margin-bottom:2px; }
@media (max-width:860px){
  .doctor-profile{ grid-template-columns:1fr; }
  .doctor-card-hero{ position:static; }
}
@media (max-width:480px){ .slots-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- امتیاز ستاره‌ای ---------- */
.rating-stars{ display:inline-flex; gap:2px; }
.rating-stars svg{ width:16px; height:16px; fill:none; stroke:var(--border); stroke-width:1.5; }
.rating-stars svg.is-filled{ fill:#f5a623; stroke:#f5a623; }
.rating-stars--sm svg{ width:13px; height:13px; }
.rating-stars--lg svg{ width:22px; height:22px; }

.rating-summary{ display:flex; align-items:center; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.rating-summary__text{ font-size:13px; color:var(--text-muted); }
.rating-summary__text b{ color:var(--text); font-size:14px; }

/* ---------- بخش نظرات پزشک ---------- */
.reviews-section{ margin-top:48px; padding-top:36px; border-top:1px solid var(--border); }
.reviews-section .slots-heading{ margin-bottom:24px; }

.reviews-summary-block{ display:flex; align-items:center; gap:18px; margin-bottom:28px; }
.reviews-summary-block__number{ font-size:44px; font-weight:800; color:var(--text); line-height:1; }
.reviews-summary-block__count{ font-size:13px; color:var(--text-muted); margin-top:6px; }

.review-card{ padding:18px 0; border-bottom:1px solid var(--border); }
.review-card:last-child{ border-bottom:none; }
.review-card__head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.review-card__name{ font-weight:700; font-size:14px; }
.review-card__comment{ font-size:13.5px; color:var(--text-muted); line-height:1.9; }

.review-login-gate{ background:var(--primary-light); border-radius:16px; padding:24px; text-align:center; margin-bottom:28px; }
.review-login-gate p{ font-size:14px; color:var(--text-muted); margin-bottom:14px; }

.review-form{ background:var(--bg-panel); border:1px solid var(--border); border-radius:16px; padding:24px; margin-bottom:28px; max-width:460px; box-shadow:var(--shadow); }
.review-form__heading{ font-weight:700; font-size:15px; margin-bottom:16px; }

.star-input{ display:flex; gap:6px; margin-bottom:18px; }
.star-input__star{ background:none; border:none; padding:2px; cursor:pointer; }
.star-input__star svg{ width:28px; height:28px; fill:none; stroke:var(--border); stroke-width:1.5; transition:fill .15s ease, stroke .15s ease, transform .15s ease; }
.star-input__star.is-filled svg{ fill:#f5a623; stroke:#f5a623; }
.star-input__star:hover svg{ transform:scale(1.12); }

/* ---------- My appointments ---------- */
.appt-card{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:18px 20px; display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:12px; flex-wrap:wrap; }
.appt-card h4{ font-size:15px; margin-bottom:4px; }
.appt-card p{ font-size:13px; color:var(--text-muted); }
.badge{ display:inline-block; padding:5px 14px; border-radius:20px; font-size:12px; font-weight:600; }
.badge-pending_payment{ background:#FFF3E0; color:#B8720A; }
.badge-confirmed{ background:#E3F1F0; color:var(--primary-dark); }
.badge-cancelled{ background:#FBE9E7; color:#C0392B; }
.badge-expired{ background:#EEF0F2; color:var(--text-muted); }

/* ---------- تقویم رزرو ---------- */
.cal-nav{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.cal-nav__title{ font-weight:700; font-size:15px; }
.cal-nav__btn{ background:var(--bg-elevated); border:1px solid transparent; border-radius:8px; width:34px; height:34px; font-size:18px; color:var(--text); transition:border-color .15s ease, color .15s ease; }
.cal-nav__btn:hover{ border-color:var(--primary); color:var(--primary); }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:6px; }
.cal-cell--head{ text-align:center; font-size:12px; color:var(--text-muted); padding:4px 0; }
.cal-cell{ background:transparent; border:none; }
.cal-cell--day{
  aspect-ratio:1; border:1px solid var(--border); border-radius:10px; background:var(--bg-panel);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:13px;
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cal-cell--day:hover:not(:disabled){ border-color:var(--primary); transform:translateY(-1px); }
.cal-cell--selected{ background:var(--primary) !important; border-color:var(--primary) !important; color:#fff; box-shadow:0 6px 16px rgba(14,110,107,.28); }
.cal-cell--past, .cal-cell--full{ opacity:.35; cursor:not-allowed; }
.cal-cell__count{ min-width:15px; height:15px; padding:0 3px; border-radius:8px; font-size:9.5px; line-height:15px; text-align:center; background:transparent; color:transparent; }
.cal-cell__count--available{ background:var(--accent); color:#fff; }
.cal-cell--selected .cal-cell__count--available{ background:#fff; color:var(--primary); }

.guest-form{ margin-top:16px; max-width:360px; }
.guest-form__note{ color:var(--text-muted); font-size:12.5px; }
.reserved-box{ background:var(--bg-panel); border:1px solid var(--border); border-radius:16px; padding:28px; text-align:center; }
.reserved-box h3{ font-size:18px; margin-bottom:10px; }
.reserved-box p{ color:var(--text-muted); font-size:14px; }
.reserved-box__price{ font-size:21px; font-weight:800; color:var(--primary-dark); margin:16px 0; }

.result-card{ text-align:center; }
.result-card h1{ font-size:22px; margin-bottom:12px; }
.result-card p{ color:var(--text-muted); font-size:14.5px; }
.result-btn{ display:inline-flex; }
.result-countdown{ font-size:13px; color:var(--text-muted); }
.result-countdown span{ font-weight:700; color:var(--primary-dark); }

/* =====================================================
   ZAMAN MAN - HERO
   ===================================================== */

.hero{
  position:relative;
  overflow:hidden;

  padding:38px 0 25px;

  background:
    linear-gradient(
      180deg,
      #eefafa 0%,
      #f8ffff 55%,
      #ffffff 100%
    );

  text-align:center;
}


/* ===============================
   قسمت ۱ - متن
   =============================== */

.hero-text{

  max-width:900px;

  margin:
    0 auto 24px;

}


.hero-small-title{

  display:inline-block;

  padding:
    6px 15px;

  margin-bottom:9px;

  border-radius:30px;

  background:
    rgba(8,151,145,.09);

  color:#078f8b;

  font-size:13px;

  font-weight:700;

}


.hero-text h1{

  margin:0;

  color:#102f32;

  font-size:
    clamp(30px,4vw,48px);

  line-height:1.45;

  font-weight:900;

  letter-spacing:-1px;

}


.hero-text h1 span{

  color:#079b95;

}


.hero-text p{

  max-width:650px;

  margin:
    10px auto 0;

  color:#688183;

  font-size:15px;

  line-height:2;

}


/* ===============================
   قسمت ۲ - موتور جستجو
   =============================== */

.hero-search{

  position:relative;

  z-index:5;

  display:flex;

  align-items:center;

  gap:8px;

  max-width:850px;

  margin:
    0 auto 18px;

  padding:8px;

  background:#ffffff;

  border:
    1px solid
    rgba(8,145,140,.16);

  border-radius:18px;

  box-shadow:
    0 12px 35px
    rgba(9,116,115,.11);

}


/* تخصص */

.hero-search select{

  width:180px;

  height:50px;

  padding:
    0 15px;

  border:0;

  outline:none;

  border-radius:12px;

  background:#f1f9f8;

  color:#355658;

  font-family:inherit;

  font-size:14px;

}


/* نام پزشک */

.hero-search input{

  flex:1;

  height:50px;

  min-width:0;

  padding:
    0 17px;

  border:0;

  outline:none;

  background:#ffffff;

  color:#29484a;

  font-family:inherit;

  font-size:14px;

}


.hero-search input::placeholder{

  color:#9aabad;

}


/* دکمه */

.hero-search button{

  height:50px;

  padding:
    0 28px;

  border:0;

  border-radius:12px;

  background:
    linear-gradient(
      135deg,
      #078f8b,
      #20b39d
    );

  color:#ffffff;

  font-family:inherit;

  font-size:14px;

  font-weight:800;

  cursor:pointer;

  box-shadow:
    0 7px 18px
    rgba(7,143,139,.22);

  transition:
    all .25s ease;

}


.hero-search button:hover{

  transform:
    translateY(-2px);

  box-shadow:
    0 11px 25px
    rgba(7,143,139,.30);

}


/* ===============================
   قسمت ۳ - لوگوی بزرگ
   =============================== */

.hero-logo{

  position:relative;

  display:flex;

  justify-content:center;

  align-items:center;

  min-height:220px;

  margin-top:0;

}


/* هاله پشت لوگو */

.hero-logo::before{

  content:"";

  position:absolute;

  width:300px;

  height:170px;

  border-radius:50%;

  background:
    rgba(32,190,177,.10);

  filter:blur(35px);

}


/* خود لوگو */

.hero-logo img{

  position:relative;

  z-index:2;

  width:
    min(340px,70vw);

  height:auto;

  display:block;

  object-fit:contain;

  filter:
    drop-shadow(
      0 12px 20px
      rgba(20,100,105,.12)
    );

  animation:
    zaman-logo-float
    4s
    ease-in-out
    infinite;

}


/* حرکت خیلی ظریف لوگو */

@keyframes zaman-logo-float{

  0%,
  100%{

    transform:
      translateY(0);

  }

  50%{

    transform:
      translateY(-6px);

  }

}


/* ===============================
   موبایل
   =============================== */

@media(max-width:700px){

  .hero{

    padding:
      25px 0
      18px;

  }


  .hero-text h1{

    font-size:28px;

  }


  .hero-text p{

    padding:
      0 15px;

    font-size:13px;

  }


  .hero-search{

    flex-wrap:wrap;

    margin:
      0 10px 18px;

  }


  .hero-search select{

    width:100%;

  }


  .hero-search input{

    width:100%;

    flex:
      1 1 100%;

  }


  .hero-search button{

    width:100%;

  }


  .hero-logo{

    min-height:190px;

  }


  .hero-logo img{

    width:
      min(300px,80vw);

  }

}

/* =====================================================
   ویترین خودکار پزشکان (کنار لوگو در hero)
   ===================================================== */

.hero-stage{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:56px;
  max-width:1000px;
  margin:0 auto;
}
.hero-stage .hero-logo{ flex:1 1 380px; min-width:0; }
.hero-stage.no-showcase .doctor-showcase{ display:none; }
.hero-stage.no-showcase .hero-logo{ flex:0 1 auto; }

.doctor-showcase{
  position:relative;
  flex:0 1 380px;
  width:380px;
  max-width:100%;
  padding:18px 18px 20px;
  border-radius:28px;
  background:linear-gradient(160deg, rgba(255,255,255,.85), rgba(227,241,240,.55));
  border:1px solid rgba(32,190,177,.22);
  box-shadow:0 30px 60px -20px rgba(14,110,107,.28), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  overflow:hidden;
}
.doctor-showcase::before{
  content:"";
  position:absolute; inset:-40% -20% auto auto;
  width:260px; height:260px; border-radius:50%;
  background:radial-gradient(circle, rgba(32,190,177,.30), transparent 70%);
  pointer-events:none;
}

.doctor-showcase__badge{
  position:relative;
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:700; color:var(--primary-dark);
  background:#fff; padding:5px 12px; border-radius:999px;
  box-shadow:0 4px 12px rgba(14,110,107,.12);
}
.doctor-showcase__dot{
  width:8px; height:8px; border-radius:50%; background:#20beb1;
  box-shadow:0 0 0 0 rgba(32,190,177,.6);
  animation:showcase-pulse 1.8s infinite;
}
@keyframes showcase-pulse{
  0%{ box-shadow:0 0 0 0 rgba(32,190,177,.55); }
  70%{ box-shadow:0 0 0 9px rgba(32,190,177,0); }
  100%{ box-shadow:0 0 0 0 rgba(32,190,177,0); }
}

.doctor-showcase__stage{
  position:relative;
  height:290px;
  margin-top:6px;
}

/* کارت‌ها */
.showcase-card{
  position:absolute;
  left:0; right:0; top:50%;
  height:86px; margin-top:-43px;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  gap:4px;
  padding:0 18px;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  color:var(--text);
  text-decoration:none;
  text-align:center;
  overflow:hidden;
  opacity:0;
  transform:translateY(0) scale(.7);
  transition:transform .8s cubic-bezier(.22,.9,.28,1), opacity .8s ease, filter .8s ease, box-shadow .8s ease, background .8s ease;
  will-change:transform, opacity, filter;
  pointer-events:none;
  cursor:pointer;
}
.showcase-card__name{
  font-size:16px; font-weight:800; line-height:1.4;
  max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.showcase-card__spec{
  font-size:12.5px; font-weight:600; color:var(--text-muted);
  max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* حالت‌ها بر اساس فاصله از کارت فعال */
.showcase-card.is-far-up{ transform:translateY(-190px) scale(.7); opacity:0; }
.showcase-card.is-far-down{ transform:translateY(190px) scale(.7); opacity:0; }
.showcase-card.is-prev,
.showcase-card.is-next{
  opacity:.5; filter:blur(2.2px); pointer-events:auto;
  box-shadow:0 8px 20px rgba(18,35,46,.06);
}
.showcase-card.is-prev{ transform:translateY(-104px) scale(.86); }
.showcase-card.is-next{ transform:translateY(104px) scale(.86); }

/* کارت اصلی: پررنگ، درخشان و با سایه‌ی جذاب */
.showcase-card.is-active{
  opacity:1; filter:none; pointer-events:auto;
  transform:translateY(0) scale(1.06);
  background:linear-gradient(135deg, #0E6E6B 0%, #14958f 55%, #20beb1 100%);
  color:#fff;
  box-shadow:
    0 26px 44px -14px rgba(14,110,107,.60),
    0 0 0 4px rgba(255,255,255,.55),
    0 0 40px rgba(32,190,177,.35);
  z-index:3;
}
.showcase-card.is-active .showcase-card__name{ font-size:20px; letter-spacing:.2px; }
.showcase-card.is-active .showcase-card__spec{
  color:#fff; background:rgba(255,255,255,.20);
  padding:1px 14px; border-radius:999px;
}
/* برق ملایمی که روی کارت اصلی رد می‌شه */
.showcase-card.is-active::before{
  content:"";
  position:absolute; top:0; bottom:0; width:70px; left:-90px;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform:skewX(-18deg);
  animation:showcase-shine 2.4s ease .5s 1;
}
@keyframes showcase-shine{ to{ left:110%; } }
/* نوار زمان ۵ ثانیه‌ای پایین کارت اصلی */
.showcase-card__progress{
  position:absolute; left:0; right:0; bottom:0; height:4px;
  background:rgba(255,255,255,.25); display:none;
}
.showcase-card__progress i{
  display:block; height:100%; width:100%;
  background:#fff; transform-origin:right center; transform:scaleX(0);
}
.showcase-card.is-active .showcase-card__progress{ display:block; }
.showcase-card.is-active .showcase-card__progress i{
  animation:showcase-progress var(--showcase-dur, 5s) linear forwards;
}
.doctor-showcase.is-paused .showcase-card.is-active .showcase-card__progress i{ animation-play-state:paused; }
@keyframes showcase-progress{ to{ transform:scaleX(1); } }

/* اسکلت لودینگ */
.showcase-skeleton{
  height:78px; margin:0 0 18px; border-radius:20px;
  background:linear-gradient(90deg, #e9f3f3 25%, #f6fbfb 50%, #e9f3f3 75%);
  background-size:200% 100%;
  animation:showcase-skel 1.4s infinite;
}
.showcase-skeleton:nth-child(2){ height:92px; }
@keyframes showcase-skel{ to{ background-position:-200% 0; } }

/* موبایل و تبلت: زیر هم قرار می‌گیرن */
@media(max-width:860px){
  .hero-stage{ flex-direction:column; gap:22px; }
  .hero-stage .hero-logo{ flex:0 0 auto; width:100%; }
  .doctor-showcase{ width:100%; max-width:380px; flex:0 0 auto; }
  .doctor-showcase__stage{ height:260px; }
}

/* کاربرانی که حرکت کم می‌خوان */
@media (prefers-reduced-motion: reduce){
  .showcase-card{ transition:opacity .3s ease; }
  .showcase-card.is-active::before,
  .doctor-showcase__dot{ animation:none; }
}

/* =====================================================
   اسلایدر مقالات (PDF) — صفحه اصلی
   ===================================================== */

.article-slider__track .article-card{
  flex:0 0 auto;
  width:250px;
  scroll-snap-align:start;
}

.article-card{
  display:block;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  text-decoration:none;
  color:var(--text);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.article-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 34px -12px rgba(18,35,46,.18);
  border-color:transparent;
}

.article-card__cover{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  background:linear-gradient(160deg, var(--primary-light), #fff 75%);
  overflow:hidden;
}
.article-card__cover img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.article-card__cover-fallback{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  padding:16px;
  text-align:center;
  font-size:13.5px;
  font-weight:700;
  color:var(--primary-dark);
  line-height:1.6;
}
.article-card__pdf-badge{
  position:absolute; top:10px; left:10px;
  background:rgba(14,110,107,.92);
  color:#fff;
  font-size:11px;
  font-weight:700;
  padding:3px 9px;
  border-radius:999px;
  letter-spacing:.3px;
}

.article-card__title{
  padding:14px 16px 18px;
  font-size:14.5px;
  font-weight:700;
  line-height:1.7;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.article-slider__dots{
  display:flex;
  justify-content:center;
  gap:7px;
  margin-top:6px;
}
.article-slider__dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--border);
  border:none; padding:0; cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}
.article-slider__dot.is-active{
  background:var(--primary);
  transform:scale(1.3);
}

@media (max-width:760px){
  .article-slider__track .article-card{ width:190px; }
}

/* =====================================================
   ناحیه‌ی شیشه‌ای مات (Glassmorphism) روی هدر + هیرو
   پس‌زمینه: عکس مطب، مات‌شده با backdrop/blur
   ===================================================== */

.hero-glass-zone{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}

.hero-glass-zone__bg{
  position:absolute;
  inset:0;
  z-index:0;
  background-image:url('../img/hero-clinic-bg.jpg');
  background-size:cover;
  background-position:center 30%;
  background-repeat:no-repeat;
  filter:blur(3px) saturate(135%) brightness(1.02);
  transform:scale(1.04); /* برای پوشوندن لبه‌های بلور‌شده */
}

.hero-glass-zone__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    180deg,
    rgba(230,245,244,.08) 0%,
    rgba(230,248,247,.16) 45%,
    rgba(240,252,251,.62) 78%,
    var(--bg) 100%
  );
}

.hero-glass-zone > .hero{
  position:relative;
  z-index:2;
}
/* هدر باید بالاتر از هیرو باشه، وگرنه منوی بازشده پشت متن و دکمه‌ی جستجوی هیرو می‌ره و کلیک‌ها به منو نمی‌رسه */
.hero-glass-zone > header.site-header{
  position:relative;
  z-index:30;
}

/* هیرو داخل این ناحیه پس‌زمینه‌ی خودش رو از دست می‌ده، چون عکس از پشت دیده می‌شه */
.hero-glass-zone .hero{
  background:transparent;
}

/* ---------- هدر: کپسول شیشه‌ای روی عکس ---------- */
.hero-glass-zone .nav{
  background:rgba(255,255,255,.58);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:
    0 10px 32px -8px rgba(18,35,46,.22),
    0 2px 8px rgba(18,35,46,.08),
    inset 0 1px 0 rgba(255,255,255,.6);
}
.hero-glass-zone header.site-header.scrolled .nav{
  background:rgba(255,255,255,.88);
}

/* ---------- برچسب کوچک بالای تیتر ---------- */
.hero-glass-zone .hero-small-title{
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(10px) saturate(160%);
  -webkit-backdrop-filter:blur(10px) saturate(160%);
  border:1px solid rgba(255,255,255,.6);
  box-shadow:0 4px 14px rgba(18,35,46,.08);
  margin-bottom:16px;
}

/* ---------- عنوان: فونت نمایشی لعل‌زار + رنگ‌بندی گرادیانی برند ---------- */
.hero-glass-zone .hero-text h1{
  font-family:'Lalezar','Vazirmatn',sans-serif;
  font-weight:400;
  letter-spacing:.5px;
  line-height:1.7;
  padding-top:10px;
  padding-bottom:6px;
  background:linear-gradient(118deg,
    #eafffb 0%,
    #7fe9d8 24%,
    #22c0b8 50%,
    #0e8f8a 74%,
    #0a5654 100%
  );
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  -webkit-text-stroke:1.4px rgba(255,255,255,.95);
  text-stroke:1.4px rgba(255,255,255,.95);
  filter:
    drop-shadow(0 2px 3px rgba(10,20,25,.5))
    drop-shadow(0 0 22px rgba(255,255,255,.6));
}
.hero-glass-zone .hero-text h1 span{
  font-family:inherit;
  background:linear-gradient(118deg, #7fe9d8 0%, #22c0b8 45%, #0a5654 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  -webkit-text-stroke:1.4px rgba(255,255,255,.95);
  text-stroke:1.4px rgba(255,255,255,.95);
}
.hero-glass-zone .hero-text p{
  display:inline-block;
  padding:4px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.4);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  text-shadow:0 1px 6px rgba(255,255,255,.6);
}

/* ---------- موتور جستجو: پنل شیشه‌ای مات ---------- */
.hero-glass-zone .hero-search{
  background:rgba(255,255,255,.52);
  backdrop-filter:blur(18px) saturate(180%);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  border:1px solid rgba(255,255,255,.65);
  box-shadow:
    0 14px 38px rgba(18,35,46,.14),
    inset 0 1px 0 rgba(255,255,255,.6);
}
.hero-glass-zone .hero-search select{
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.hero-glass-zone .hero-search input{
  background:rgba(255,255,255,.32);
}
.hero-glass-zone .hero-search input::placeholder{
  color:#5d7072;
}

/* ---------- آیکون منوی همبرگری: کپسول شیشه‌ای کوچک ---------- */
.hero-glass-zone .menu-toggle{
  background:rgba(255,255,255,.35);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-radius:50%;
}
.hero-glass-zone .menu-toggle:hover{
  background:rgba(255,255,255,.55);
}

/* ---------- لوگوی هدر: کمی سایه‌ی روشن برای تفکیک از عکس پس‌زمینه ---------- */
.hero-glass-zone .logo img{
  filter:drop-shadow(0 2px 10px rgba(255,255,255,.65));
}

@media (max-width:700px){
  .hero-glass-zone__bg{
    background-position:center 20%;
  }
}

/* چند تخصص کنار هم زیر اسم پزشک */
.specialty-pills{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;}
