/*
Theme Name: مطب دکتر سهیلا درزی خلردی
Theme URI: http://localhost/blogdr
Author: Dr Soheila Theme
Description: قالب بلاگ پزشکی راست‌چین برای دکتر سهیلا درزی خلردی؛ صفحه معرفی کلینیک و سپس ورود به بلاگ.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: dr-soheila
*/

:root {
  --c1: #159aaf;
  --c2: #19a8a3;
  --c3: #136282;
  --navy: #0e1d4c;
  --ink: #1a2744;
  --muted: #5b6b82;
  --line: #e4eef2;
  --bg: #f4fafb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(14, 29, 76, 0.08);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  direction: rtl;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

a {
  color: var(--c1);
  text-decoration: none;
}

a:hover {
  color: var(--c3);
}

h1, h2, h3, h4 {
  font-family: "El Messiri", Vazirmatn, sans-serif;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 0.6em;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(21, 154, 175, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(21, 154, 175, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 1px solid var(--line);
  box-shadow: none;
}

.site-topbar {
  background: var(--navy);
  color: #d7e8ee;
  font-size: 13px;
  padding: 8px 0;
}

.site-topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-topbar a {
  color: #fff;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 8px 30px rgba(14, 29, 76, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy) !important;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c3));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.logo strong {
  display: block;
  font-size: 17px;
}

.logo span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.nav-menu {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--navy);
  font-weight: 600;
}

.nav-menu .current-menu-item a,
.nav-menu a:hover {
  color: var(--c1);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.page-hero {
  background: linear-gradient(135deg, #e8f7f8 0%, #ffffff 48%, #eef6fb 100%);
  padding: 54px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--muted);
  margin: 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 28px;
  padding: 42px 0 70px;
}

.posts-grid {
  display: grid;
  gap: 22px;
}

.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 210px;
}

.post-card-media {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: #d7eef1 center/cover no-repeat;
  border-radius: 10px;
}

.post-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.post-card-body {
  padding: 22px;
}

.post-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.cat-pill {
  background: #e7f6f7;
  color: var(--c3);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
}

.post-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.post-card h2 a {
  color: var(--navy);
}

.excerpt {
  color: var(--muted);
  margin: 0 0 14px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 10px;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.pagination .current {
  background: var(--c1);
  color: #fff;
}

.widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.widget h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
}

.search-form button {
  border: 0;
  background: var(--c1);
  color: #fff;
  border-radius: 12px;
  padding: 0 16px;
  cursor: pointer;
}

.single-wrap {
  padding: 42px 0 70px;
}

.single-article {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.single-cover {
  height: auto;
  background: #d7eef1;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  margin: 16px 16px 0;
}

.single-cover img,
body.single .single-cover img {
  position: static;
  inset: auto;
  width: 100%;
  height: 700px;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  background-clip: inherit;
  display: block;
}

.single-body {
  padding: 32px 36px 40px;
}

.single-body .entry-content {
  font-size: 17px;
  text-align: justify;
}

.single-body .entry-content p,
.single-body .entry-content li {
  margin: 0 0 1em;
  text-align: justify;
}

.comments-area {
  margin-top: 28px;
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: justify;
}

.comments-area h3,
.comments-area .comment-reply-title {
  text-align: start;
  margin-bottom: 16px;
}

.comment-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.comment-list .comment {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #f8fbfc;
}

.comment-list .comment p {
  margin: 0.4em 0 0;
  text-align: justify;
}

.comment-list .avatar {
  border-radius: 10px;
  margin-left: 10px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  margin-bottom: 12px;
}

.comment-form .form-submit {
  margin: 0;
}

.comment-form .submit,
.comment-form input[type="submit"] {
  background: var(--c1);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.site-footer {
  background: #0c1738;
  color: #c9d6e4;
  padding: 54px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  color: #fff;
  font-size: 22px;
}

.site-footer a {
  color: #d7e8ee;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 13px;
  text-align: center;
}

.empty-state {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

/* Intro / Kliniko-style clinic landing */
.intro-body {
  background: #fff;
  overflow-x: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 100;
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.pulse-cross {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(21, 154, 175, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(21, 154, 175, 0); }
}

.progress-track {
  width: 180px;
  height: 5px;
  background: #e6f3f5;
  border-radius: 99px;
  overflow: hidden;
  margin: 12px auto 0;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  animation: loadbar 1.6s ease forwards;
}

@keyframes loadbar {
  to { width: 100%; }
}

.intro-skip {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
}

.intro-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background:
    radial-gradient(circle at 80% 20%, rgba(21, 154, 175, 0.12), transparent 28%),
    linear-gradient(180deg, #f3fbfb 0%, #ffffff 50%, #eef7f8 100%);
}

.intro-hero-copy {
  padding: 40px 6vw 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--c1);
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.intro-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  margin-bottom: 16px;
}

.intro-hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 30px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stats b {
  display: block;
  font-size: 28px;
  color: var(--c1);
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.intro-hero-media {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 40px 32px 40px 0;
}

.intro-hero-media img.hero-main {
  width: min(420px, 100%);
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: #d7eef1;
}

.intro-hero-media img.hero-side {
  position: absolute;
  width: 150px;
  height: 190px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  left: 24px;
  bottom: 70px;
}

.badge-float {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.badge-float.one {
  bottom: 40px;
  right: 24px;
}

.badge-float.two {
  top: 90px;
  left: 24px;
}

.intro-section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-head span {
  color: var(--c1);
  font-weight: 800;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 20px;
  transition: 0.2s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-num {
  color: var(--c1);
  font-weight: 800;
  font-size: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo {
  border-radius: 10px;
  overflow: hidden;
  min-height: 420px;
  background: #d7eef1 center/cover no-repeat;
}

.about-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.photo-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  background: #d7eef1;
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 8px 0 8px 0;
}

.checklist li::before {
  content: "✔";
  color: var(--c2);
  margin-left: 8px;
}

.intro-cta {
  background: linear-gradient(135deg, var(--navy), var(--c3));
  color: #fff;
  border-radius: 32px;
  padding: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.intro-cta h2 {
  color: #fff;
  margin: 0 0 6px;
}

.intro-cta p {
  margin: 0;
  color: #d7e8ee;
}

@media (max-width: 980px) {
  .blog-layout,
  .intro-hero,
  .about-grid,
  .footer-grid,
  .post-card,
  .services {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    inset: 82px 16px auto;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }

  .intro-hero-media {
    min-height: 380px;
    padding: 0 16px 30px;
  }

  .intro-hero-media img.hero-side {
    display: none;
  }

  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-gallery img {
    height: 140px;
  }

  .single-cover {
    height: auto;
    margin: 12px 12px 0;
  }

  .single-cover img,
  body.single .single-cover img {
    height: 700px;
  }

  .single-body {
    padding: 22px 18px 28px;
  }

  .intro-cta {
    flex-direction: column;
    text-align: center;
  }
}
