/* =========================================================
   THEME: Core Variables & Base (Clinic Blue Palette)
   ========================================================= */

/* Theme Colors (based on TURQUOISE / SLATE BLUE / PLATINUM / GLACIER / ICE BLUE) */
:root {
  /* Brand palette from the image */
  --turquoise:   #447F98;  /* TURQUOISE (primary brand) */
  --slate-blue:  #629BB6;  /* SLATE BLUE (buttons, accents) */
  --platinum:    #DADEE1;  /* PLATINUM (soft borders / surfaces) */
  --glacier:     #89BDE1;  /* GLACIER (section backgrounds) */
  --ice-blue:    #D6EBF3;  /* ICE BLUE (page background) */

  /* Derived theme tokens */
  --brand:        var(--turquoise);             /* Header / main brand */
  --brand-light:  var(--slate-blue);            /* Primary buttons */
  --brand-hover:  #3a6f8a;                      /* Slightly darker turquoise for hover */
  --text-dark:    #1E293B;                      /* Body text */
  --bg-light:     var(--ice-blue);              /* App background */
  --footer-bg:    #123043;                      /* Deep desaturated blue for footer */
  --radius:       1rem;

  /* Auth/Forms palette (soft blue gradients) */
  --grad-1:       var(--turquoise);             /* Title gradient L */
  --grad-2:       var(--slate-blue);            /* Title gradient R */
  --soft-1:       #EDF4F8;                      /* Chip bg 1 (light ice blue) */
  --soft-2:       #E0ECF4;                      /* Chip bg 2 (light glacier) */
  --ring:         var(--platinum);              /* Subtle borders */
  --glass:        rgba(255,255,255,.85);        /* Glass cards */

  /* Equip card image height (used in home sliders) */
  --equip-card-image-height: 200px;

  /* اگر لینک/انکر داری که زیر هدر نره */
  scroll-padding-top: 50px;
}

/* Typography */
@font-face {
  font-family: 'B Nazanin';
  src:
    url('../fonts/bnazanin/BNazanin.woff2') format('woff2'),
    url('../fonts/bnazanin/BNazanin.woff') format('woff');
  font-display: swap;
}

html {
  font-size: 17px;
  scroll-behavior: smooth; /* Smooth anchor scroll */
}

body {
  font-family: 'B Nazanin', 'Vazirmatn', system-ui, sans-serif;
  line-height: 1.8;
  background: var(--bg-light);
  color: var(--text-dark);
}

/* جلوگیری از اسکرول افقی/پرش */
html, body {
  overflow-x: hidden;
}
body {
  touch-action: pan-y;
}

/* Utilities */
.rounded-4 { border-radius: var(--radius) !important; }
.object-fit-cover { object-fit: cover; }
.object-fit-contain { object-fit: contain; }

.text-brand { color: var(--brand) !important; }
.text-decoration_none { text-decoration: none; }

/* =========================================================
   Header / Navbar (اگر جایی از .navbar استفاده می‌کنی)
   ========================================================= */
.navbar {
  background: var(--brand) !important;
  color: #fff;
  position: relative;
}

.navbar .nav-link {
  color: rgba(255,255,255,.9) !important;
  transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
  font-weight: 600;
}

.navbar-brand span,
.navbar-brand small {
  color: #fff;
}

.navbar-nav > li {
  margin-inline: 0.75rem;
}

.navbar .btn {
  margin-right: 0.5rem;
}

/* ===== Navbar behavior on mobile (<= 991.98px) ===== */
@media (max-width: 991.98px) {
  body { padding-bottom: 64px; }

  .navbar {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .navbar .container {
    padding-inline: 0.75rem;
  }

  .navbar-nav {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .navbar-nav .nav-item {
    margin-inline: 0;
  }

  .navbar .btn {
    margin-right: 0.35rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* ===== Navbar dropdowns on desktop (>= 992px) ===== */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown {
    position: relative;
  }

  .navbar-nav .dropdown-menu {
    position: absolute !important;
    inset-inline-start: 0;
    top: 100%;
    margin-top: 0.35rem;
    z-index: 1050;
  }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-brand,
.btn-primary {
  background-color: var(--brand-light);
  border-color: var(--brand-light);
  color: #fff;
  transition: background-color .25s ease, border-color .25s ease;
}

.btn-brand:hover,
.btn-primary:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

/* Gradient Button (auth-like) */
.btn-gradient {
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  color:#fff;
  border:0;
}

.btn-gradient:hover {
  opacity:.95;
  color:#fff;
}

/* =========================================================
   Cards & Generic UI
   ========================================================= */
.card {
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.placeholder-card {
  border: 1px dashed #e2e8f0;
  background: #f1f5f9;
  border-radius: var(--radius);
}

.mini-card {
  border: 1px solid #e2e8f0;
  border-radius: .9rem;
  padding: 1rem;
  background: #fff;
  text-align: center;
}

/* Glass card */
.glass {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: var(--glass);
  border: 1px solid rgba(228,228,231,.9);
  box-shadow: 0 10px 25px rgba(17,24,39,.06);
}

/* Divider & Chips */
.divider {
  height:1px;
  background:linear-gradient(90deg,transparent,#e5e7eb,transparent);
  margin:1rem 0 1.25rem;
}

.chip {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .7rem;
  border-radius:.75rem;
  font-size:.85rem;
  background:linear-gradient(90deg,var(--soft-1),var(--soft-2));
  border:1px solid #e5e7eb;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
  background: var(--footer-bg);
  color: #e2e8f0;
}

footer a {
  color: #93c5fd;
  transition: color .2s;
}

footer a:hover {
  color: #fff;
}

/* =========================================================
   Home Hero / Teaser
   ========================================================= */
.home-hero {
  background:
    linear-gradient(
      135deg,
      rgba(68,127,152,.15),
      rgba(137,189,225,.20)
    ),
    var(--bg-light);
  border-radius: 1.25rem;
  padding: clamp(1rem, 2vw + 1rem, 2rem);
}

.teaser {
  position: relative;
  background: var(--glacier);
  border-radius: 1.25rem;
  overflow: hidden;
}

.teaser .play .btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 0;
  box-shadow: 0 10px 20px rgba(0,0,0,.1);
}

.teaser .play .btn i {
  font-size: 32px;
  color: var(--brand);
}

.teaser-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
}

/* --- Teaser admin in home.html --- */
.teaser-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  margin: 0.75rem auto 1rem;
}

.teaser-media {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 576px) {
  .teaser-section { max-height: 360px; }
  .teaser-media { max-height: 360px; }
}

@media (max-width: 575.98px) {
  .teaser-section { max-height: 160px; }
  .teaser-media {
    height: 160px;
    max-height: 160px;
    object-fit: cover;
  }
}

/* =========================================================
   Hero Slider
   ========================================================= */
.hero-slider .hero-slide {
  position: relative;
  min-height: clamp(260px, 42vw, 520px);
  height: 380px;
  background-size: cover;
  background-position: center;
}

@media (min-width: 992px) {
  .hero-slider .hero-slide { height: 430px; }
}

.hero-slider .hero-overlay {
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(12,37,57,.70),
    rgba(12,37,57,.25)
  );
}

#heroSlider .carousel-caption {
  position: absolute;
  inset: 0 auto auto 0;
  left: 0;
  right: auto;
  bottom: 0;
  padding: 2rem 2rem 2.25rem;
  max-width: 640px;
  text-align: right;
}

#heroSlider h2 { color:#fff; }
#heroSlider p  { color:#eef2ff; }

.carousel .card { transition: transform .25s ease; }
.carousel .card:hover { transform: translateY(-3px); }

/* =========================================================
   Play / Replay Glass Buttons
   ========================================================= */
.btn-play-glass,
.btn-replay-glass {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.7);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .2s ease;
}

.btn-play-glass:hover,
.btn-replay-glass:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,.75);
}

/* =========================================================
   Content Body (articles, CMS blocks)
   ========================================================= */
.content-body p {
  margin-bottom: .85rem;
  line-height: 1.9;
}

.content-body h3,
.content-body h4 {
  margin: 1rem 0 .5rem;
  font-weight: 700;
}

.content-body ul,
.content-body ol {
  padding-inline-start: 1.25rem;
  margin: .75rem 0 .9rem;
}

.content-body li { margin: .25rem 0; }

.content-body a {
  color: var(--brand-light);
  text-decoration: underline;
}

/* =========================================================
   Auth / Forms
   ========================================================= */
.auth-wrap { min-height: 60vh; }
.auth-card { background: #fff; }

.auth-header {
  background: linear-gradient(
    135deg,
    rgba(68,127,152,1) 0%,
    rgba(137,189,225,1) 100%
  );
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.auth-card .form-label {
  color: var(--text-dark);
  font-weight: 600;
}

.auth-card .form-control {
  padding: .65rem .9rem;
  border-radius: .75rem;
}

.auth-card .form-control:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 .25rem rgba(98,155,182,.25);
}

.auth-card .btn.btn-brand {
  padding: .7rem 1rem;
  font-weight: 700;
  letter-spacing: .2px;
}

.appointment-wrap.auth-wrap {
  background:
    radial-gradient(900px 400px at 110% -10%, rgba(68,127,152,.16), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(137,189,225,.18), transparent 60%),
    linear-gradient(180deg, #ffffff, #f5f9fc);
  border:1px solid var(--ring);
}

.title-gradient {
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 .25rem rgba(98,155,182,.25);
  border-color: var(--brand-light);
}

/* =========================================================
   Truncation Helpers
   ========================================================= */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   Image helpers for services / equipment
   ========================================================= */
.service-photo-frame {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 7 / 5;
  margin: 0 auto 1rem;

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

  background-color: #f9fafb;
}

.service-photo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-photo { max-height: 70vh; }

/* صفحه تجهیزات: باکس دقیق 280px ارتفاع، بدون برش */
.equip-photo{
  height: 280px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: #f8f9fa;
  display: block;
}

/* اسلایدر تجهیزات صفحه اصلی: ارتفاع 200px، بدون برش */
.home-equip-img{
  height: var(--equip-card-image-height, 200px);
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: #f8f9fa;
  display: block;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 575.98px) {
  :root { --equip-card-image-height: 160px; }

  .auth-header { padding: 1.25rem !important; }

  .auth-card .btn.btn-brand { padding: .65rem .9rem; }

  .card .h5 { font-size: 1.05rem; }
}

/* =========================================================
   Motion preferences (accessibility)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Mobile bottom navigation
   ========================================================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--platinum);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.12);
  z-index: 1030;
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.35rem 0.75rem 0.45rem;
}

.mobile-bottom-link {
  flex: 1 1 0;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--text-dark);
}

.mobile-bottom-link .icon {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.1rem;
}

.mobile-bottom-link .label {
  display: block;
  line-height: 1.2;
}

.mobile-bottom-link:active,
.mobile-bottom-link:focus,
.mobile-bottom-link:hover {
  color: var(--brand);
}

/* ================== Mobile service quick-access boxes ================== */
@media (max-width: 991.98px) {
  .mobile-services-section {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .mobile-service-card {
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
    padding: 0.9rem 0.6rem;
    text-align: center;
  }

  .mobile-service-card span {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
  }

  .mobile-service-card:active,
  .mobile-service-card:focus,
  .mobile-service-card:hover {
    border-color: var(--brand-light);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
  }
}

/* ================== Mobile offcanvas menu (hamburger) ================== */
@media (max-width: 991.98px) {
  .mobile-offcanvas {
    width: 70vw;
    max-width: 320px;
    background-color: #ffffff;
  }

  .mobile-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--platinum);
  }

  .mobile-offcanvas .offcanvas-title {
    font-size: 1rem;
    font-weight: 700;
  }

  .mobile-offcanvas .list-group-item {
    border: 0;
    padding-inline: 0;
    padding-block: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-dark);
  }

  .mobile-offcanvas .list-group-item:hover {
    background-color: #f3f4f6;
  }
}

/* =========================================================
   DESKTOP HEADER: Always visible (FIXED)
   - Mobile: sticky (همون چیزی که الان اوکیه)
   - Desktop: fixed (قطعی و بدون باگ)
   ========================================================= */

/* موبایل/عمومی: همون استیکی */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #fff;
}

/* ردیف اول */
.site-header .header-top{
  background: var(--brand) !important;
  color: #fff;
  position: relative;
  z-index: 2;
}

/* لینک‌ها/آیکن‌های ردیف اول */
.site-header .header-top .header-action-link,
.site-header .header-top .header-icon-link{
  color: rgba(255,255,255,.95);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.site-header .header-top .header-action-link:hover,
.site-header .header-top .header-icon-link:hover{
  color: #fff;
}

/* ردیف دوم */
.site-header .header-menu{
  position: relative;
  z-index: 1;
  background: #fff;
}
.site-header .header-menu-link{
  color:#000 !important;
  background: transparent !important;
  border:0 !important;
  padding:.375rem .5rem;
  font-weight: 700;
}
.site-header .header-menu-link:hover,
.site-header .header-menu-link:focus{
  color:#000 !important;
  text-decoration: underline;
}
.site-header .header-menu .dropdown-toggle::after{
  margin-right: .35rem;
}

/* ✅ دسکتاپ: قطعی کن همیشه بالا بمونه */
@media (min-width: 992px){
  header.site-header{
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
  }

  /* خیلی مهم: محتوا زیر هدر نره */
  body{
    padding-top: 100px;  /* اگر دیدی زیاد/کم شد فقط همین عدد رو تنظیم کن */
  }

  /* چون main تو قالب my-4 داره، ممکنه فاصله زیاد شه */
  main{
    margin-top: 1.25rem !important;
  }

  /* انکرها زیر هدر نرن */
  html{
    scroll-padding-top: 50px;
  }
}


/* =========================================================
   Service theme typography
   ========================================================= */
.service-theme .svc-title{
  font-size: 1.9rem;
  line-height: 1.4;
}

.service-theme .svc-section-title{
  font-size: 1.35rem;
  line-height: 1.6;
  margin-top: .75rem;
}

.service-theme .svc-block-title{
  font-size: 1.25rem;
  line-height: 1.7;
}

.service-theme .content-body,
.service-theme .service-content{
  font-size: 1rem;
  line-height: 2.1;
  color: #222;
}

/* =========================================================
   HOME HERO SLIDER (1100x600)
   ========================================================= */
.home-hero{
  padding: 18px;
  border-radius: 18px;
}

.home-hero .hero-frame{
  max-width: 1100px;
  margin: 0 auto;
}

.home-hero .hero-media{
  position: relative;
  padding-bottom: 50px; /* فضای باکس زیر عکس */
}

.home-hero .hero-img{
  width: min(1100px, 100%);
  aspect-ratio: 1100 / 600;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.08);
  background: #f8f9fa;
}

/* باکس پایین عکس */
.home-hero .hero-bottom-box{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 10%);

  width: min(1000px, 92%);
  background: #e5eff5;
  border-radius: 18px;
  padding: 16px 18px;

  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
}

.home-hero .hero-bottom-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.home-hero .hero-doc-name{
  font-weight: 900;
  font-size: 1.35rem;
  margin-bottom: 6px;
  text-align: center;
  color: #000;
}

.home-hero .hero-doc-spec{
  font-size: 1.15rem;
  text-align: center;
  color: #000;
}

.home-hero .hero-slogan{
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.8;
  text-align: center;
  color: #000;
}


@media (max-width: 576px){
  .home-hero{ padding: 15px; }

  /* باکس به عکس نزدیک‌تر بشه */
  .home-hero .hero-media{ padding-bottom: 70px; } /* کمتر = باکس بالاتر */

  /* بکگراند و جایگاه باکس مثل دسکتاپ */
  .home-hero .hero-bottom-box{
    background: #e5eff5 !important;
    transform: translate(-50%, 0%) !important; /* 0 یعنی بچسبه نزدیک‌تر */
    padding: 14px 14px;
    width: 94%;
  }

  /* تک ستون */
  .home-hero .hero-bottom-grid{ grid-template-columns: 1fr; }

  /* متن‌ها بزرگ‌تر + وسط چین + مشکی */
  .home-hero .hero-doc-name{
    font-size: 1.25rem;
    text-align: center;
    color: #000 !important;
  }

  .home-hero .hero-doc-spec{
    font-size: 1.05rem;
    text-align: center;
    color: #000 !important;
  }

  .home-hero .hero-slogan{
    font-size: 1.1rem;
    text-align: center;
    color: #000 !important;
    line-height: 1.9;
  }
}


/* کنترل‌های carousel */
.home-hero .carousel-control-prev,
.home-hero .carousel-control-next{
  width: 12%;
}

/* اگر خواستی کنترل‌ها مخفی باشند */
#homeHeroCarousel .carousel-control-prev,
#homeHeroCarousel .carousel-control-next{
  display: none !important;
}

/* =========================================================
   Blog page styling
   ========================================================= */
.blog-chip{
  display:inline-flex;
  align-items:center;
  padding:.35rem .75rem;
  border-radius:999px;
  background: rgba(98,155,182,.14);
  border: 1px solid rgba(98,155,182,.25);
  color: var(--text-dark);
  text-decoration:none;
  font-weight:700;
  font-size:.95rem;
}
.blog-chip:hover{ opacity:.92; }

.blog-card-img{
  height: 180px;
  object-fit: cover;
}
@media (max-width: 575.98px){
  .blog-card-img{ height: 160px; }
}

.blog-page{
  --bs-body-color: #111827;
  --bs-body-color-rgb: 17,24,39;
  --bs-secondary-color: #334155;
  --bs-secondary-color-rgb: 51,65,85;
  --bs-tertiary-color: #475569;
  color: var(--bs-body-color);
}

.blog-page h1,
.blog-page h2,
.blog-page h3,
.blog-page h4{
  color: #0f172a !important;
  font-weight: 900;
  letter-spacing: .2px;
}

.blog-page p,
.blog-page li,
.blog-page div{
  color: rgba(17,24,39,.92);
}

.blog-page .text-secondary,
.blog-page .text-muted{
  color: rgba(51,65,85,.95) !important;
  opacity: 1 !important;
}

.blog-page a{
  color: var(--brand-light);
  text-decoration: underline;
}
.blog-page a:hover{
  color: var(--brand-hover);
}

/* =========================================================
   AUTH: Signup/Login (Glass) - Optional alt palette
   ========================================================= */
.auth-vars{
  --grad-1:#7c3aed;
  --grad-2:#2563eb;
  --soft-1:#f5f3ff;
  --soft-2:#eff6ff;
  --ring:#e4e4e7;
  --glass: rgba(255,255,255,.85);
}

.auth-vars .glass{
  backdrop-filter: blur(8px);
  background: var(--glass);
  border: 1px solid rgba(228,228,231,.9);
  box-shadow: 0 10px 25px rgba(17,24,39,.06);
}

.auth-vars .title-gradient{
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-vars .chip{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .7rem;
  border-radius:.75rem;
  font-size:.85rem;
  background:linear-gradient(90deg,var(--soft-1),var(--soft-2));
  border:1px solid #e5e7eb;
}

.auth-vars .divider{
  height:1px;
  background:linear-gradient(90deg,transparent,#e5e7eb,transparent);
  margin:1rem 0 1.25rem;
}

.auth-vars .hint{
  font-size:.8rem;
  color:#6b7280;
}

.auth-vars .btn-gradient{
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  color:#fff;
  border:0;
}
.auth-vars .btn-gradient:hover{
  opacity:.95;
  color:#fff;
}

.auth-vars .form-control:focus,
.auth-vars .form-select:focus{
  box-shadow: 0 0 0 .25rem rgba(124,58,237,.15);
  border-color:#a78bfa;
}

.auth-vars #id_national_id,
.auth-vars #id_email,
.auth-vars #id_username{
  direction: ltr;
  text-align: left;
}

/* =========================================================
   Home Testimonials (Background + Swiper) - FIXED (no 100vw)
   ========================================================= */
.home-testimonials-full{
  width: 100%;
  margin: 0;
}

.home-testimonials-hero{
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 1rem;
}

.home-testimonials-hero .home-testimonials-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.home-testimonials-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.78) 45%,
    rgba(255,255,255,0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.home-testimonials-content{
  position: relative;
  z-index: 2;
}

.home-testimonials-panel{
  position: relative;
  z-index: 3;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  padding: 1rem;
  max-width: 740px;
  margin-inline-start: auto;
}

.home-testimonials-swiper .swiper-slide{ height: auto; }

.testimonial-card{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: .9rem;
  overflow: hidden;
  background: #f1f5f9;
}

.testimonial-media-el{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.testimonial-card .card-body{ min-height: 120px; }

@media (max-width: 991.98px){
  .home-testimonials-hero{ height: 450px; }
  .home-testimonials-hero::after{ background: rgba(255,255,255,.55); }
  .home-testimonials-panel{
    max-width: 94%;
    margin-inline: auto;
  }
  .testimonial-media{ aspect-ratio: 4 / 3; }
}

/* =========================================================
   Swiper paddings
   ========================================================= */
.home-newest-swiper,
.home-equip-swiper{
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

/* =========================================================
   Mega menu fit
   ========================================================= */
.beauty-mega-menu{
  min-width: unset !important;
  width: fit-content;
}

.beauty-mega-menu .mega-col{
  min-width: 190px;
}


/* بک‌گراند هدر دسکتاپ + موبایل */
.site-header .header-top,
.site-header .mobile-header-bar {
    background-color: #E7D3C4 !important;
    background-image: url("/static/img/header.png") !important;
    background-repeat: repeat !important;
    background-size: auto !important;
    background-position: center !important;
}

/* رنگ نوشته‌ها و آیکون‌ها در دسکتاپ و موبایل */
.site-header .header-top,
.site-header .header-top a,
.site-header .header-top i,
.site-header .header-top svg,
.site-header .mobile-header-bar,
.site-header .mobile-header-bar a,
.site-header .mobile-header-bar i,
.site-header .mobile-header-bar svg {
    color: #000000 !important;
}

/* دکمه همبرگری موبایل */
.site-header .mobile-header-bar .btn,
.site-header .mobile-header-bar .btn-light {
    background: transparent !important;
    border-color: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
}

/* آیکون داخل دکمه همبرگری */
.site-header .mobile-header-bar .btn i {
    color: #000000 !important;
}

.site-header .navbar-brand {
    padding: 0 !important;
}

.site-header .navbar-brand img {
    width: 140px !important;
    height: auto !important;
    max-height: 60px !important;
    object-fit: contain !important;
}

