/* ==========================================================
   Pezeshkane Irani CMS — Medical Portal Stylesheet (RTL)
   Primary: #396cf0 | Dark Navy: #0f1c32 | Teal Accent: #00b4d8
   ========================================================== */

:root {
  --primary: #396cf0;
  --primary-dark: #2054d8;
  --primary-light: #eef4ff;
  --navy: #0f1c32;
  --navy-light: #182846;
  --teal: #00b4d8;
  --green: #10b981;
  --accent: #f59e0b;
  --text: #2d3748;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --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: "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;
}
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: 14px;
  gap: 20px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(57,108,240,0.3);
}
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 20px; font-weight: 800; color: var(--navy); }
.logo-sub { font-size: 11px; color: var(--text-muted); }

.header-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}
.header-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 4px;
  position: relative;
}
.header-nav a:hover, .header-nav a.active {
  color: var(--primary);
}
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.btn-appointment {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(57,108,240,0.35);
  display: inline-block;
}
.btn-appointment:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(57,108,240,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 ---------- */
.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(57,108,240,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(57,108,240,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(57,108,240,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(57,108,240,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(57,108,240,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(57,108,240,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 ---------- */
.latest-posts-section {
  padding: 80px 0;
  background: #ffffff;
}
.posts-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card-home {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.post-card-home:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(57,108,240,0.3);
}
.card-thumb-link {
  height: 200px;
  overflow: hidden;
  display: block;
}
.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(57,108,240,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; }

/* ---------- Single Post View & Content Pages ---------- */
.site-main { padding-block: 30px; min-height: 65vh; }
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}
.post-single {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 35px;
}
.post-title { font-size: 26px; line-height: 1.8; margin-bottom: 12px; color: var(--navy); }
.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.featured { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.direct-answer {
  background: #eff6ff;
  border-inline-start: 4px solid var(--primary);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.9;
}
.post-content { font-size: 16px; line-height: 2; color: #1e293b; }
.post-content h2 { font-size: 22px; margin: 30px 0 14px; color: var(--navy); font-weight: 800; }
.post-content h3 { font-size: 19px; margin: 24px 0 10px; color: var(--navy); }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { padding-inline-start: 24px; margin-bottom: 16px; }
.post-content figure { margin: 20px 0; text-align: center; }
.post-content figcaption { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.sidebar-widget h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 16px; color: var(--navy); border-bottom: 2px solid var(--primary-light); padding-bottom: 8px; }

/* ---------- 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;
}

/* ---------- 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; }
}
@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; }
  .layout-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}
