/* ==========================================================
   Pezeshkane Irani CMS — Medical Portal Stylesheet (RTL)
   Typography: IRANSans
   Primary: #2563eb | Dark Navy: #0f1c32 | Accent: #eab308
   ========================================================== */

/* ---------- 1. Typography (IRANSans Font Face) ---------- */
@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IRANSansWeb.ttf") format("truetype"),
       url("../../font/IRANSansWeb.ttf") format("truetype");
}
@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/IRANSansWeb_Bold.ttf") format("truetype"),
       url("../../font/IRANSansWeb_Bold.ttf") format("truetype");
}
@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/IRANSansWeb_Bold.ttf") format("truetype"),
       url("../../font/IRANSansWeb_Bold.ttf") format("truetype");
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --navy: #0f1c32;
  --navy-light: #182846;
  --teal: #00b4d8;
  --green: #10b981;
  --accent: #eab308;
  --text: #2d3748;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 8px 24px rgba(15,28,50,0.08);
  --shadow-lg: 0 16px 40px rgba(15,28,50,0.12);
  --font: "IRANSans", "IRANYekan", "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 15px;
  direction: rtl;
  overflow-x: hidden;
}
input, textarea, select, button { font-family: var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s, background 0.2s, transform 0.2s; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.center { text-align: center; }

.skip-link {
  position: absolute;
  right: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  z-index: 999;
}
.skip-link:focus { right: 10px; }

/* ---------- Top Bar ---------- */
.site-topbar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 8px 0;
}
.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-contact a { color: var(--text-muted); font-weight: 600; }
.topbar-contact a:hover { color: var(--primary); }
.topbar-sep { margin: 0 8px; color: #cbd5e1; }

/* ---------- Main Header ---------- */
.site-header {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 14px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: max-content;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; white-space: nowrap; }
.logo-title { font-size: 19px; font-weight: 800; color: var(--navy); white-space: nowrap; line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; line-height: 1.3; }

.header-nav { display: flex; align-items: center; }
.header-nav ul {
  display: flex;
  list-style: none;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.header-nav li {
  white-space: nowrap;
  display: inline-block;
}
.header-nav a {
  color: var(--navy);
  font-weight: 700;
  font-size: 13.5px;
  padding: 6px 4px;
  white-space: nowrap;
  display: inline-block;
  transition: color 0.2s;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--primary);
}

.header-actions {
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-appointment {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  display: inline-block;
  white-space: nowrap;
}
.btn-appointment:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.45);
}

/* ---------- Section Headers ---------- */
.section-header { margin-bottom: 40px; }
.section-header.center { text-align: center; }
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.section-tag.light { background: rgba(255,255,255,0.15); color: #fff; }
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-title.light { color: #fff; }
.section-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
}
.section-subtitle.light { color: #cbd5e1; }
.title-underline {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ---------- 1. Hero Section (Home) ---------- */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(241,245,249,0.85), rgba(241,245,249,0.95)), url('../img/tbanner.jpg') center/cover no-repeat;
  padding: 70px 0 100px;
  overflow: hidden;
}
.hero-container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid rgba(37,99,235,0.2);
}
.hero-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 16px;
  color: #475569;
  margin-bottom: 28px;
  line-height: 1.9;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btn {
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-block;
}
.hero-btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
}
.hero-btn.primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.hero-btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.hero-btn.secondary:hover { background: #f8fafc; color: var(--primary); }

/* Hero Action Bar */
.hero-action-bar { margin-top: 50px; position: relative; z-index: 3; }
.action-bar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.action-card {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 4px solid var(--primary);
  transition: transform 0.25s, box-shadow 0.25s;
}
.action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.action-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.action-text h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.action-text p { font-size: 12.5px; color: var(--text-muted); }

/* ---------- 2. About & 4 Features Section ---------- */
.about-features-section { padding: 80px 0; background: #ffffff; }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center; }
.about-heading { font-size: 30px; font-weight: 800; color: var(--navy); margin-bottom: 16px; line-height: 1.4; }
.about-text { font-size: 15.5px; color: #475569; line-height: 2; text-align: justify; }
.features-4-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 22px 18px;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(37,99,235,0.3); }
.feat-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.feat-info h3 { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feat-info p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ---------- 3. Specialties Tabs Section ---------- */
.specialties-section { padding: 80px 0; background: var(--bg); }
.specialties-tabs-nav { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.spec-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.spec-tab-btn .tab-icon { font-size: 20px; }
.spec-tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.spec-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
}
.specialties-tab-content-box { background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.spec-tab-content { display: none; padding: 40px; }
.spec-tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.spec-content-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.spec-text h3 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.spec-text p { font-size: 15px; color: #475569; line-height: 1.9; margin-bottom: 20px; }
.spec-list { list-style: none; margin-bottom: 26px; }
.spec-list li { font-size: 14px; color: #334155; margin-bottom: 10px; font-weight: 600; }
.spec-btn { background: var(--primary); color: #fff !important; padding: 10px 24px; border-radius: 30px; font-weight: 700; font-size: 14px; display: inline-block; }
.spec-btn:hover { background: var(--primary-dark); }
.spec-media img { border-radius: var(--radius); width: 100%; height: 280px; object-fit: cover; box-shadow: var(--shadow-sm); }

/* ---------- 4. Highlights Section (Dark Navy) ---------- */
.clinic-highlights-section { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; padding: 80px 0; position: relative; }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.highlight-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 30px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}
.highlight-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); }
.hl-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}
.highlight-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.highlight-card p { font-size: 13.5px; color: #cbd5e1; line-height: 1.8; }

/* ---------- 5. Doctors Showcase ---------- */
.doctors-section { padding: 80px 0; background: #ffffff; }
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(37,99,235,0.3); }
.doc-avatar-wrap { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); }
.doc-avatar { width: 100%; height: 100%; object-fit: cover; }
.doc-name { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.doc-spec { font-size: 12.5px; color: var(--text-muted); display: block; margin-bottom: 10px; min-height: 38px; }
.doc-stars { color: var(--accent); font-size: 14px; margin-bottom: 14px; }
.doc-btn { background: #fff; color: var(--primary); border: 1px solid var(--primary); padding: 6px 18px; border-radius: 20px; font-size: 12.5px; font-weight: 700; display: inline-block; }
.doc-btn:hover { background: var(--primary); color: #fff !important; }

/* ---------- 6. Testimonial Section ---------- */
.testimonial-section { padding: 60px 0; background: var(--primary); color: #fff; text-align: center; }
.testimonial-box { max-width: 780px; margin: 0 auto; }
.testi-avatar { font-size: 40px; margin-bottom: 12px; }
.testi-quote { font-size: 19px; font-weight: 600; line-height: 1.8; margin-bottom: 18px; font-style: italic; }
.testi-author { font-size: 16px; font-weight: 800; }
.testi-sub { font-size: 13px; opacity: 0.85; }

/* ---------- 7. Clinic Gallery Grid ---------- */
.clinic-gallery-section { padding: 80px 0; background: var(--bg); }
.gallery-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.gallery-filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-filter-btn:hover, .gallery-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; height: 220px; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(15,28,50,0.8));
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-overlay span { color: #fff; font-weight: 700; font-size: 14px; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- 8. Latest Blog Posts Grid (Home) ---------- */
.latest-posts-section { padding: 80px 0; background: #ffffff; }
.posts-grid-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.posts-grid-blog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card-home {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}
.post-card-home:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(37,99,235,0.3); }
.card-thumb-link { height: 200px; overflow: hidden; display: block; background: #f1f5f9; }
.card-thumb-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card-home:hover .card-thumb-link img { transform: scale(1.06); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.card-title { font-size: 16.5px; font-weight: 800; line-height: 1.5; margin-bottom: 10px; }
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--primary); }
.card-desc { font-size: 13.5px; color: #64748b; line-height: 1.7; margin-bottom: 16px; flex-grow: 1; }
.card-more { font-size: 13px; font-weight: 700; color: var(--primary); align-self: flex-start; }
.card-more:hover { color: var(--primary-dark); }
.btn-all-posts { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(37,99,235,0.25); padding: 12px 30px; border-radius: 30px; font-weight: 700; font-size: 14.5px; display: inline-block; }
.btn-all-posts:hover { background: var(--primary); color: #fff !important; }

/* ==========================================================
   INNER PAGES, SINGLE POST & SIDEBAR (EXACT MATCH TO REFERENCE)
   ========================================================== */

/* Blue Hero Header Banner (Screenshot 1) */
.inner-page-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(37,99,235,0.94), rgba(29,78,216,0.97)), url('../img/tbanner.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 55px 0 45px;
  box-shadow: 0 6px 24px rgba(29,78,216,0.25);
  overflow: hidden;
}
.banner-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.banner-inner-content { position: relative; z-index: 2; }

.inner-page-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Breadcrumbs Below Title with > Separator (Screenshot 1) */
.inner-breadcrumbs { margin-top: 4px; }
.inner-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
}
.inner-breadcrumbs a { color: rgba(255,255,255,0.92); font-weight: 500; }
.inner-breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.bc-sep { color: rgba(255,255,255,0.75); margin: 0 4px; font-weight: bold; font-size: 12px; }
.bc-current { color: #ffffff; font-weight: 600; opacity: 0.95; }

/* Inner Content Layout */
.inner-content-container { padding-block: 40px 60px; }
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 35px;
  align-items: start;
}

/* Post Single Card */
.post-single-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 35px 30px;
  border: 1px solid var(--border);
}
.page-card { max-width: 900px; margin: 0 auto; }

.single-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  background: #f1f5f9;
}
.single-featured-image img { width: 100%; max-height: 480px; object-fit: cover; }

/* Direct Answer Box */
.direct-answer-box {
  background: #eff6ff;
  border-inline-start: 4px solid var(--primary);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 30px;
  border: 1px solid #dbeafe;
}
.direct-answer-badge { font-weight: 800; color: #1e40af; font-size: 14px; margin-bottom: 6px; }
.direct-answer-box p { font-size: 14.5px; line-height: 1.9; color: #1e3a8a; margin: 0; }

/* Post Body Content Styling */
.post-body-content { font-size: 16px; line-height: 2.1; color: #334155; }
.post-body-content p { margin-bottom: 20px; }
.post-body-content h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 35px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }
.post-body-content h3 { font-size: 19px; font-weight: 700; color: #1e3a8a; margin: 28px 0 10px; }
.post-body-content h4 { font-size: 17px; font-weight: 700; color: #475569; margin: 20px 0 8px; }
.post-body-content ul, .post-body-content ol { padding-inline-start: 26px; margin-bottom: 20px; }
.post-body-content li { margin-bottom: 8px; }
.post-body-content blockquote { background: #fffbeb; border-inline-start: 4px solid var(--accent); border-radius: 10px; padding: 16px 22px; margin: 24px 0; color: #78350f; font-style: italic; line-height: 1.9; }
.post-body-content figure { margin: 25px 0; text-align: center; }
.post-body-content figure img { border-radius: var(--radius); margin: 0 auto; box-shadow: var(--shadow-sm); }
.post-body-content figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.post-body-content table { width: 100%; border-collapse: collapse; margin: 25px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.post-body-content th { background: #f1f5f9; font-weight: 800; color: var(--navy); padding: 12px 16px; text-align: right; border-bottom: 2px solid var(--border); }
.post-body-content td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.post-body-content tr:nth-child(even) { background: #f8fafc; }

/* Post Tags Footer */
.single-tags-footer { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tags-label { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.tags-cloud { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill { background: #f1f5f9; color: #475569; padding: 4px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--border); transition: all 0.2s; }
.tag-pill:hover { background: var(--primary); color: #fff !important; border-color: var(--primary); }

/* ---------- Sidebar Styling (Screenshot 2) ---------- */
.sidebar-wrapper { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(15,28,50,0.04);
  padding: 20px 20px 14px;
  border: 1px solid var(--border);
}

/* Sidebar Widget Header with Gold Accent Pill (Screenshot 2) */
.sidebar-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}
.widget-accent-pill {
  width: 5px;
  height: 20px;
  background: var(--accent);
  border-radius: 4px;
  flex-shrink: 0;
}
.sidebar-widget-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

/* Search Widget */
.sidebar-search-form { display: flex; gap: 6px; margin-top: 10px; }
.sidebar-search-form input {
  flex-grow: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  background: var(--bg);
}
.sidebar-search-form input:focus { outline: none; border-color: var(--primary); background: #fff; }
.sidebar-search-form button {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-search-form button:hover { background: var(--primary-dark); }

/* Clean List Widget (Screenshot 2: تازه‌ها / Recent Posts) */
.widget-clean-list { list-style: none; margin: 0; padding: 0; }
.widget-clean-list li {
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}
.widget-clean-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.widget-clean-list a {
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.7;
  font-weight: 600;
  display: block;
  transition: color 0.2s, transform 0.2s;
}
.widget-clean-list a:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

/* Categories Widget List */
.widget-cats-list { list-style: none; margin-top: 6px; }
.widget-cats-list li { margin-bottom: 8px; }
.widget-cats-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.widget-cats-list a:hover {
  background: var(--primary-light);
  border-color: rgba(37,99,235,0.3);
  color: var(--primary);
  padding-right: 16px;
}
.cat-count {
  background: #ffffff;
  color: var(--text-muted);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cbd5e1; padding-top: 60px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-icon { width: 38px; height: 38px; font-size: 20px; }
.footer-logo .logo-title { font-size: 20px; font-weight: 800; color: #fff; }
.footer-desc { font-size: 13.5px; line-height: 1.9; margin-bottom: 20px; color: #94a3b8; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}
.footer-social a:hover { background: var(--primary); }
.footer-heading { font-size: 16.5px; font-weight: 800; color: #fff; margin-bottom: 18px; position: relative; padding-bottom: 8px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-links ul, .footer-cats ul { list-style: none; }
.footer-links li, .footer-cats li { margin-bottom: 10px; }
.footer-links a, .footer-cats a { color: #94a3b8; font-size: 13.5px; }
.footer-links a:hover, .footer-cats a:hover { color: #fff; padding-right: 4px; }
.contact-list { list-style: none; font-size: 13.5px; }
.contact-list li { margin-bottom: 12px; color: #94a3b8; line-height: 1.7; }
.contact-list a { color: #fff; font-weight: bold; }
.footer-bottom { padding: 22px 0; background: #080f1c; font-size: 12.5px; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
}

/* ---------- Pagination ---------- */
.pagination-wrapper { margin-top: 40px; margin-bottom: 20px; display: flex; justify-content: center; }
.pagination-list { display: flex; list-style: none; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; }
.pagination-list li { display: inline-block; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.page-link:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}
.page-link.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.page-dots { font-size: 16px; color: var(--text-muted); padding: 0 4px; }
.page-link.prev, .page-link.next { font-size: 13px; font-weight: 800; }

.pagination { display: flex; gap: 6px; }
.page-num { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; font-weight: 700; color: var(--navy); }
.page-num.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-num:hover:not(.current) { border-color: var(--primary); color: var(--primary); }

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 1024px) {
  .hero-title { font-size: 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .layout-grid { grid-template-columns: 1fr; }
  .posts-grid-blog { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-container { flex-direction: column; text-align: center; }
  .header-nav ul { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .action-bar-grid { grid-template-columns: 1fr; }
  .features-4-grid { grid-template-columns: 1fr; }
  .spec-content-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .posts-grid-home { grid-template-columns: 1fr; }
  .posts-grid-blog { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .inner-page-title { font-size: 22px; }
  .post-single-card { padding: 22px 18px; }
}
