/* ============================================
   آزمایشگاه تشخیص طبی وانیار
   Neumorphism Medical Lab Website
   Fully Custom Design - No Templates
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Soft medical palette */
  --bg: #e8eef5;
  --bg-dark: #d4dde8;
  --surface: #e8eef5;
  --primary: #3a7ca5;
  --primary-dark: #2c5f7c;
  --primary-light: #5a9bc4;
  --accent: #2a9d8f;
  --accent-dark: #1f7a6f;
  --text: #2c3e50;
  --text-light: #5a6a7a;
  --text-muted: #8a9aaa;
  --white: #ffffff;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;

  /* Neumorphism shadows */
  --shadow-out: 8px 8px 16px #c5ced9, -8px -8px 16px #ffffff;
  --shadow-out-sm: 4px 4px 8px #c5ced9, -4px -4px 8px #ffffff;
  --shadow-out-lg: 12px 12px 24px #c5ced9, -12px -12px 24px #ffffff;
  --shadow-in: inset 6px 6px 12px #c5ced9, inset -6px -6px 12px #ffffff;
  --shadow-in-sm: inset 3px 3px 6px #c5ced9, inset -3px -3px 6px #ffffff;
  --shadow-hover: 10px 10px 20px #c5ced9, -10px -10px 20px #ffffff;
  --shadow-pressed: inset 4px 4px 8px #c5ced9, inset -4px -4px 8px #ffffff;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Vazirmatn', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: var(--font);
  border: none;
  outline: none;
  background: transparent;
}

/* ========== Scroll Progress ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  z-index: 9999;
  border-radius: 0 0 2px 2px;
  transition: width 0.1s linear;
}

/* ========== Header - Glass + Neumorphism ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(232, 238, 245, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(232, 238, 245, 0.92);
  box-shadow: var(--shadow-out-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--bg);
  box-shadow: var(--shadow-in-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--bg);
  color: var(--primary-dark);
  box-shadow: var(--shadow-out-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--primary);
}

.btn-primary:active {
  box-shadow: var(--shadow-pressed);
  transform: translateY(0);
}

.btn-accent {
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  color: white;
  box-shadow: 6px 6px 12px #c5ced9, -4px -4px 10px #ffffff;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 16px #c5ced9, -6px -6px 12px #ffffff;
}

.btn-accent:active {
  transform: translateY(0);
  box-shadow: inset 3px 3px 6px rgba(0,0,0,0.2);
}

.btn-outline {
  background: var(--bg);
  color: var(--primary);
  box-shadow: var(--shadow-out-sm);
}

.btn-outline:hover {
  box-shadow: var(--shadow-in-sm);
  color: var(--primary-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.hamburger span {
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active {
  box-shadow: var(--shadow-in-sm);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  background: rgba(232, 238, 245, 0.97);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  box-shadow: var(--shadow-out);
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(-120%);
  opacity: 0;
  transition: var(--transition);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 500;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  text-align: center;
}

.mobile-menu a:hover {
  box-shadow: var(--shadow-in-sm);
  color: var(--primary);
}

/* ========== Hero Common ========== */
.hero {
  position: relative;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-out-lg);
  position: relative;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Neumorphism elements */
.float-el {
  position: absolute;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-out);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.float-el i {
  font-size: 1.5rem;
  color: var(--primary);
}

.float-1 {
  width: 70px;
  height: 70px;
  top: 8%;
  right: -5%;
  animation-delay: 0s;
}

.float-2 {
  width: 60px;
  height: 60px;
  bottom: 15%;
  left: -8%;
  animation-delay: 1.5s;
}

.float-3 {
  width: 55px;
  height: 55px;
  top: 40%;
  left: -12%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========== Section Common ========== */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-header p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ========== Quick Access Cards ========== */
.quick-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.q-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-out);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.q-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.q-card .icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  transition: var(--transition);
}

.q-card:hover .icon-box {
  box-shadow: var(--shadow-in-sm);
  color: var(--accent);
  transform: scale(1.08);
}

.q-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.q-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========== Why Choose Us - Asymmetric ========== */
.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.why-main {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-out);
}

.why-main h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.why-main p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  transition: var(--transition);
}

.why-item:hover {
  box-shadow: var(--shadow-in-sm);
}

.why-item .wi-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.why-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.why-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.why-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-side-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-out);
  flex: 1;
}

.why-side-card.accent {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 8px 8px 20px rgba(58,124,165,0.35);
}

.why-side-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.why-side-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ========== Featured Services ========== */
.services-horizontal {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.svc-h-card {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 1.75rem;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-out);
  transition: var(--transition);
}

.svc-h-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateX(-4px);
}

.svc-h-img {
  width: 220px;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-in-sm);
}

.svc-h-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.svc-h-card:hover .svc-h-img img {
  transform: scale(1.06);
}

.svc-h-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.svc-h-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ========== How It Works - Timeline ========== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 4px;
  background: var(--bg);
  box-shadow: var(--shadow-in-sm);
  border-radius: 4px;
  transform: translateX(50%);
}

.tl-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 2.5rem;
}

.tl-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.tl-item:nth-child(even) .tl-content {
  text-align: right;
}

.tl-dot {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-out);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  z-index: 2;
  font-size: 1.1rem;
}

.tl-item:nth-child(even) .tl-dot {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.tl-content {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-out);
  max-width: 320px;
  transition: var(--transition);
}

.tl-content:hover {
  box-shadow: var(--shadow-hover);
}

.tl-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.tl-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========== Statistics ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-out);
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.stat-card .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.stat-card .stat-label {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ========== Testimonials ========== */
.testimonials-wrap {
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.t-card {
  min-width: calc(33.333% - 1rem);
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-out);
  transition: var(--transition);
}

.t-card:hover {
  box-shadow: var(--shadow-hover);
}

.t-stars {
  color: #f1c40f;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.t-text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-out-sm);
}

.t-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.t-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  transition: var(--transition);
}

.slider-btn:hover {
  box-shadow: var(--shadow-in-sm);
}

/* ========== About Preview ========== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-preview-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-out-lg);
  aspect-ratio: 4/3;
}

.about-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-preview-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-preview-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ========== Final CTA ========== */
.final-cta {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-out-lg);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.final-cta p {
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg);
  padding: 4rem 1.5rem 1.5rem;
  margin-top: 3rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
}

.footer-col p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-right: 6px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 3px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.socials a:hover {
  box-shadow: var(--shadow-in-sm);
  color: var(--accent);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  margin-top: 1rem;
}

.copyright a {
  color: var(--primary);
  font-weight: 600;
}

.copyright a:hover {
  text-decoration: underline;
}

/* ========== Back to Top ========== */
.back-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-out);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  box-shadow: var(--shadow-in);
  transform: translateY(-3px);
}

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
}

/* ========== About Page Specific ========== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-intro-text h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.about-intro-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.about-intro-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-out-lg);
  aspect-ratio: 4/3;
}

.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 1rem 0;
}

.story-timeline::before {
  content: '';
  position: absolute;
  right: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--bg);
  box-shadow: var(--shadow-in-sm);
  border-radius: 3px;
}

.story-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.story-year {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-out);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  z-index: 1;
}

.story-content {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-out-sm);
  flex: 1;
}

.story-content h4 {
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

.story-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-out);
  transition: var(--transition);
}

.mv-card:hover {
  box-shadow: var(--shadow-hover);
}

.mv-card .mv-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.mv-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.mv-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-out);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.value-card i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.value-card h4 {
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.equip-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-out);
  transition: var(--transition);
}

.equip-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.equip-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.equip-card .equip-body {
  padding: 1.25rem;
}

.equip-card h4 {
  margin-bottom: 0.4rem;
}

.equip-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-out);
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-out-sm);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.team-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.diff-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-out);
}

.diff-card h3 {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.diff-card ul li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.diff-card ul li i {
  color: var(--success);
}

.diff-card.other ul li i {
  color: var(--danger);
}

/* ========== Services Page ========== */
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.cat-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.cat-btn:hover,
.cat-btn.active {
  box-shadow: var(--shadow-in-sm);
  color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.svc-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-out);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.svc-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.svc-card-img {
  height: 180px;
  overflow: hidden;
}

.svc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.svc-card:hover .svc-card-img img {
  transform: scale(1.07);
}

.svc-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.svc-card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.svc-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-out);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-hover);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 1.25rem;
  font-size: 1.2rem;
}

.step-card h4 {
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-out-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  box-shadow: var(--shadow-out);
}

.faq-q {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  gap: 1rem;
}

.faq-q i {
  transition: var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-q i {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.faq-item.active .faq-a {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

/* ========== Blog Page ========== */
.search-bar {
  max-width: 560px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  border-radius: var(--radius-full);
  background: var(--bg);
  box-shadow: var(--shadow-in);
  font-size: 1rem;
  color: var(--text);
}

.search-bar i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  box-shadow: var(--shadow-in-sm);
  color: var(--primary);
}

.featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  background: var(--bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-out-lg);
  margin-bottom: 3.5rem;
}

.featured-img {
  height: 100%;
  min-height: 320px;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 2.5rem 2rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body .meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.featured-body .meta span {
  color: var(--primary);
  font-weight: 600;
}

.featured-body h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.featured-body p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.blog-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-out);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.blog-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-card-img .cat {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(232,238,245,0.9);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-out-sm);
}

.blog-card-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  flex: 1;
}

.newsletter {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-out-lg);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: var(--text-light);
  margin-bottom: 1.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg);
  box-shadow: var(--shadow-in);
  font-size: 0.95rem;
}

/* ========== Contact Page ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-out);
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-hover);
}

.info-card .ic-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow-out-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.info-card h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-form-wrap {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-out);
}

.contact-form-wrap h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-in);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: var(--shadow-in), 0 0 0 3px rgba(58,124,165,0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-out-lg);
  height: 400px;
  margin-top: 3rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== Skeleton Loading ========== */
.skeleton {
  background: linear-gradient(90deg, #dce4ee 25%, #e8eef5 50%, #dce4ee 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .quick-cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .blog-grid, .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .t-card { min-width: calc(50% - 0.75rem); }
  .svc-h-card { grid-template-columns: 180px 1fr; }
  .svc-h-card .btn { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner,
  .about-preview,
  .about-intro,
  .why-grid,
  .mission-vision,
  .diff-grid,
  .featured-article,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }
  .hero-img-wrap { max-width: 380px; margin: 0 auto; }
  .float-1, .float-2, .float-3 { display: none; }
  .featured-body { padding: 1.75rem; }
  .timeline::before { right: 24px; transform: none; }
  .tl-item, .tl-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 70px;
  }
  .tl-dot, .tl-item:nth-child(even) .tl-dot {
    right: 24px;
    left: auto;
    transform: translateX(50%);
  }
  .tl-item:nth-child(even) .tl-content { text-align: right; }
  .nav-links, .header .btn-accent { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .quick-cards,
  .stats-grid,
  .services-grid,
  .blog-grid,
  .equip-grid,
  .team-grid,
  .steps-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .why-features { grid-template-columns: 1fr; }
  .t-card { min-width: 100%; }
  .newsletter-form { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1.15rem; }
  .hero { padding: 3rem 1.15rem 2.5rem; }
  .svc-h-card { grid-template-columns: 1fr; }
  .svc-h-img { width: 100%; height: 160px; }
}

/* Utility */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }
