/* ===================================
   اطمئن - Etma2en Medical Platform
   Main Stylesheet
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Noto+Kufi+Arabic:wght@400;500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --primary: #006B5E;
  --primary-light: #00897B;
  --primary-dark: #004D40;
  --secondary: #00C49A;
  --accent: #FF6B35;
  --accent-light: #FF8C5A;
  --accent-dark: #E55A2B;
  --background: #F7FAF9;
  --foreground: #1A2B2A;
  --card: #FFFFFF;
  --muted: #F7FAF9;
  --muted-fg: #4A6360;
  --border: #E2EDEB;
  --text-light: #8FA8A5;
  --success: #38A169;
  --warning: #F6AD55;
  --destructive: #E53E3E;
  --font-display: 'Noto Kufi Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;
  --font-ui: 'Cairo', sans-serif;
  --shadow-sm: 0 1px 4px rgba(0,107,94,0.06);
  --shadow-md: 0 4px 16px rgba(0,107,94,0.10);
  --shadow-lg: 0 8px 32px rgba(0,107,94,0.14);
  --shadow-hover: 0 12px 40px rgba(0,107,94,0.18);
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-ui { font-family: var(--font-ui); }

/* === Buttons === */
.btn-primary-etma {
  background: var(--primary); color: #fff; border: none;
  font-family: var(--font-ui); font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  transition: all 0.3s ease;
}
.btn-primary-etma:hover {
  background: var(--primary-light); color: #fff;
  box-shadow: var(--shadow-md); transform: translateY(-1px);
}

.btn-accent-etma {
  background: var(--accent); color: #fff; border: none;
  font-family: var(--font-ui); font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  transition: all 0.3s ease;
}
.btn-accent-etma:hover {
  background: var(--accent-dark); color: #fff;
  box-shadow: var(--shadow-md); transform: translateY(-1px);
}

.btn-outline-etma {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
  font-family: var(--font-ui); font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  transition: all 0.3s ease;
}
.btn-outline-etma:hover {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-md);
}

/* === Gradients === */
.gradient-hero { background: linear-gradient(135deg, #006B5E 0%, #00897B 50%, #00C49A 100%); }
.gradient-accent { background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%); }
.gradient-dark { background: linear-gradient(135deg, #0A1F1C 0%, #006B5E 50%, #003D34 100%); }

/* === Shadows === */
.shadow-etma-sm { box-shadow: var(--shadow-sm); }
.shadow-etma-md { box-shadow: var(--shadow-md); }
.shadow-etma-lg { box-shadow: var(--shadow-lg); }

/* === Announcement Bar === */
.announcement-bar {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  color: #fff; padding: 0.625rem 0; overflow: hidden;
}
.marquee-wrap { overflow: hidden; white-space: nowrap; }
.marquee-content {
  display: inline-flex; gap: 2rem;
  animation: marquee 30s linear infinite;
}
.marquee-content span {
  font-family: var(--font-ui); font-size: 0.875rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Navbar === */
.navbar-etma { background: var(--card); box-shadow: var(--shadow-sm); }
.navbar-etma .navbar-brand { display: flex; align-items: center; gap: 0.5rem; }
.navbar-etma .brand-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--primary); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 1.25rem;
}
.navbar-etma .brand-text {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 700; color: var(--primary);
}
.navbar-etma .nav-link {
  font-family: var(--font-ui) !important; font-weight: 600 !important;
  color: var(--foreground) !important; padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}
.navbar-etma .nav-link:hover, .navbar-etma .nav-link.active {
  color: var(--primary) !important;
}
.badge-new {
  position: absolute; top: 0; left: 0;
  background: var(--accent); color: #fff;
  font-size: 0.625rem; padding: 0.125rem 0.375rem;
  border-radius: 50px; font-family: var(--font-ui);
}
.cart-badge {
  position: absolute; top: -5px; left: -5px;
  width: 20px; height: 20px; background: var(--accent);
  color: #fff; font-size: 0.7rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 700;
}

/* === Hero === */
.hero-section { position: relative; overflow: hidden; padding: 4rem 0 5rem; }
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 17.32v25.36L30 60 0 42.68V17.32L30 0z' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  color: #fff; padding: 0.5rem 1rem; border-radius: 50px;
  font-family: var(--font-ui); font-size: 0.875rem; margin-bottom: 1.5rem;
}
.hero-section h1 {
  font-family: var(--font-display); font-size: 3.5rem;
  font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 1rem;
}
.hero-section h2 {
  font-family: var(--font-display); font-size: 1.5rem;
  color: rgba(255,255,255,0.8); margin-bottom: 1rem;
}
.hero-desc {
  color: rgba(255,255,255,0.65); font-size: 1.125rem;
  max-width: 540px; margin-bottom: 2rem;
}

/* Search Widget */
.search-widget {
  background: var(--card); border-radius: var(--radius-2xl);
  padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.search-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.search-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 600; border: none;
  cursor: pointer; transition: all 0.3s ease; font-size: 0.875rem;
}
.search-tab.active { background: var(--primary); color: #fff; }
.search-tab:not(.active) { background: var(--muted); color: var(--muted-fg); }
.search-tab:not(.active):hover { background: rgba(0,107,94,0.1); }
.search-widget .form-control, .search-widget .form-select {
  height: 48px; font-family: var(--font-ui); border-color: var(--border); border-radius: var(--radius);
}
.search-widget .form-control:focus, .search-widget .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(0,107,94,0.15);
}
.btn-search { height: 56px; font-size: 1.125rem; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.trust-pill {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.9); font-family: var(--font-ui); font-size: 0.875rem;
}
.trust-pill i { color: var(--secondary); }

/* Floating Stats */
.floating-stats { position: relative; height: 500px; }
.floating-stat {
  position: absolute; background: var(--card);
  border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: var(--shadow-lg); animation: float 3s ease-in-out infinite;
}
.floating-stat .stat-value { font-family: var(--font-ui); font-size: 2.5rem; font-weight: 700; }
.floating-stat .stat-label { color: var(--muted-fg); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* === Stats Bar === */
.stats-bar { background: var(--card); padding: 2rem 0; box-shadow: var(--shadow-sm); }
.stat-item { text-align: center; padding: 1rem; position: relative; }
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); height: 48px; width: 1px; background: var(--border);
}
.stat-item i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.stat-item .stat-value { font-family: var(--font-ui); font-size: 1.75rem; font-weight: 700; display: block; }
.stat-item .stat-label { color: var(--muted-fg); }

/* === Section === */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,107,94,0.1); color: var(--primary);
  padding: 0.5rem 1rem; border-radius: 50px;
  font-family: var(--font-ui); font-size: 0.875rem; margin-bottom: 1rem;
}
.section-header h2 {
  font-family: var(--font-display); font-size: 2.25rem;
  font-weight: 700; margin-bottom: 1rem;
}
.section-header p {
  font-family: var(--font-body); color: var(--muted-fg);
  font-size: 1.125rem; max-width: 640px; margin: 0 auto;
}
.section-bg-white { background: var(--card); }
.section-bg-light { background: var(--background); }
.section-padding { padding: 4rem 0; }

/* === Specialties === */
.specialties-scroll {
  display: flex; gap: 1rem; overflow-x: auto;
  padding-bottom: 1rem; scrollbar-width: none;
}
.specialties-scroll::-webkit-scrollbar { display: none; }
.specialty-card {
  flex-shrink: 0; width: 128px; height: 144px;
  background: var(--card); border-radius: var(--radius-xl);
  padding: 1rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
  border: 2px solid transparent; cursor: pointer; text-align: center;
}
.specialty-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px); }
.specialty-icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: transform 0.3s ease;
}
.specialty-card:hover .specialty-icon { transform: scale(1.1); }
.specialty-name { font-family: var(--font-ui); font-weight: 600; font-size: 0.875rem; }
.specialty-count {
  background: rgba(255,107,53,0.1); color: var(--accent);
  font-size: 0.75rem; font-family: var(--font-ui);
  padding: 0.125rem 0.5rem; border-radius: 50px;
}

/* === Offers Strip === */
.offers-strip { background: rgba(255,107,53,0.05); padding: 1.25rem 0; }
.offers-title {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--accent); font-family: var(--font-display);
  font-weight: 700; font-size: 1.125rem; white-space: nowrap;
}
.offer-pill {
  flex-shrink: 0; padding: 0.5rem 1rem; border-radius: 50px;
  font-family: var(--font-ui); font-size: 0.875rem;
  border: 1px solid rgba(255,107,53,0.3); background: var(--card);
  color: var(--foreground); cursor: pointer; transition: all 0.3s ease;
}
.offer-pill:hover, .offer-pill.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* === Ad Banner === */
.ad-banner {
  border-radius: var(--radius-2xl); overflow: hidden;
  position: relative; padding: 3rem;
}
.ad-pattern {
  position: absolute; inset: 0; opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='8' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}
.ad-discount-box {
  width: 128px; height: 128px; background: rgba(255,255,255,0.2);
  border-radius: var(--radius-xl); display: flex;
  align-items: center; justify-content: center;
}
.ad-discount-box span { font-family: var(--font-ui); font-size: 3.5rem; font-weight: 700; color: #fff; }

/* === Product Cards === */
.filter-pills {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding-bottom: 1rem; justify-content: center;
  flex-wrap: wrap; scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
  flex-shrink: 0; padding: 0.625rem 1.25rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-weight: 600; border: none;
  cursor: pointer; transition: all 0.3s ease;
}
.filter-pill.active { background: var(--primary); color: #fff; }
.filter-pill:not(.active) { background: var(--muted); color: var(--muted-fg); }
.filter-pill:not(.active):hover { background: rgba(0,107,94,0.1); }

.product-card {
  background: var(--card); border-radius: var(--radius-xl);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-img {
  height: 208px; background: var(--muted); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder {
  width: 96px; height: 96px; background: rgba(0,107,94,0.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.img-placeholder i { font-size: 2.5rem; color: rgba(0,107,94,0.4); }
.discount-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #fff; font-size: 0.75rem;
  font-family: var(--font-ui); font-weight: 600;
  padding: 0.25rem 0.5rem; border-radius: 50px;
}
.wishlist-btn {
  position: absolute; top: 12px; left: 12px;
  width: 32px; height: 32px; background: var(--card);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; border: none; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: all 0.3s ease;
}
.wishlist-btn:hover { background: var(--accent); color: #fff; }
.vendor-badge-sm {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  padding: 0.25rem 0.5rem; border-radius: 6px;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-family: var(--font-ui);
}
.vendor-dot { width: 16px; height: 16px; background: rgba(0,107,94,0.2); border-radius: 50%; }
.product-body { padding: 1rem; }
.product-category { font-size: 0.75rem; font-family: var(--font-ui); color: var(--primary); }
.product-name {
  font-family: var(--font-ui); font-weight: 600;
  margin: 0.25rem 0 0.5rem; height: 48px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.product-rating { display: flex; align-items: center; gap: 0.25rem; margin-bottom: 0.75rem; }
.product-rating i { color: #FBBF24; font-size: 0.875rem; }
.product-rating .rating-val { font-family: var(--font-ui); font-weight: 600; font-size: 0.875rem; }
.product-rating .rating-count { font-size: 0.75rem; color: var(--muted-fg); }
.product-price { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.current-price { font-family: var(--font-ui); font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.old-price { font-size: 0.875rem; color: var(--muted-fg); text-decoration: line-through; }
.stock-status { display: flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-family: var(--font-ui); margin-bottom: 1rem; }
.stock-in { color: var(--success); }
.stock-limited { color: var(--warning); }

/* === Vendor Cards === */
.vendors-scroll { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: none; }
.vendors-scroll::-webkit-scrollbar { display: none; }
.vendor-card {
  flex-shrink: 0; width: 208px; background: var(--card);
  border-radius: var(--radius-xl); padding: 1.25rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  text-align: center; transition: all 0.3s ease;
}
.vendor-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px); }
.vendor-logo {
  width: 64px; height: 64px; background: rgba(0,107,94,0.1);
  border-radius: 12px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
}
.vendor-logo span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.vendor-card h4 { font-family: var(--font-ui); font-weight: 600; margin-bottom: 0.5rem; }
.vendor-location { font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 0.75rem; }
.vendor-stats { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.vendor-stats span { font-size: 0.75rem; color: var(--muted-fg); display: flex; align-items: center; gap: 0.25rem; }
.vendor-cta { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.vendor-cta a {
  font-family: var(--font-ui); font-size: 0.875rem; color: var(--primary);
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
  transition: gap 0.3s ease;
}
.vendor-card:hover .vendor-cta a { gap: 0.5rem; }

/* === Doctor Cards === */
.doctor-card {
  background: var(--card); border-radius: var(--radius-2xl);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-md); transition: all 0.3s ease;
}
.doctor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.doctor-header { height: 112px; position: relative; }
.doctor-avatar {
  position: absolute; bottom: -40px; right: 24px;
  width: 80px; height: 80px; background: var(--card);
  border-radius: 50%; border: 4px solid var(--card);
  display: flex; align-items: center; justify-content: center;
}
.doctor-avatar i { font-size: 2.5rem; color: rgba(0,107,94,0.4); }
.available-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--success); color: #fff; font-size: 0.75rem;
  font-family: var(--font-ui); padding: 0.25rem 0.5rem; border-radius: 50px;
}
.title-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  color: var(--primary); font-size: 0.75rem; font-family: var(--font-ui);
  padding: 0.25rem 0.5rem; border-radius: 50px;
}
.doctor-body { padding: 1.5rem; padding-top: 3.5rem; }
.doctor-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-align: center; margin-bottom: 0.25rem; }
.doctor-specialty { color: var(--muted-fg); font-size: 0.875rem; text-align: center; margin-bottom: 1rem; }
.doctor-info-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.doctor-info-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); }
.doctor-info-item i { color: var(--primary); width: 16px; text-align: center; }
.doctor-slot-box { background: var(--muted); border-radius: 12px; padding: 0.75rem; margin-bottom: 1rem; }
.slot-time { font-family: var(--font-ui); font-size: 0.875rem; }
.slot-price { font-family: var(--font-ui); font-size: 1.125rem; font-weight: 700; color: var(--accent); }

/* === How It Works === */
.step-card {
  background: var(--card); border-radius: var(--radius-2xl);
  padding: 2rem; text-align: center; box-shadow: var(--shadow-lg);
  transition: all 0.3s ease; position: relative; height: 100%;
}
.step-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.step-number {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,107,94,0.1); display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 700; font-size: 0.875rem; color: var(--primary);
}
.step-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 1.5rem;
}
.step-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-card p { color: var(--muted-fg); }

/* === Testimonials === */
.testimonial-card {
  background: var(--muted); border-radius: var(--radius-2xl);
  padding: 1.5rem; position: relative; transition: all 0.3s ease; height: 100%;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.quote-icon { position: absolute; top: 24px; left: 24px; font-size: 2rem; color: rgba(0,107,94,0.2); }
.testimonial-text { line-height: 1.8; margin-bottom: 1.5rem; }
.testimonial-user { display: flex; align-items: center; gap: 0.75rem; }
.user-avatar {
  width: 48px; height: 48px; background: rgba(0,107,94,0.1);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-ui); font-weight: 700; color: var(--primary);
}
.user-name { font-family: var(--font-ui); font-weight: 600; }
.verified-badge { font-size: 0.75rem; color: var(--success); }
.user-service {
  font-size: 0.75rem; font-family: var(--font-ui);
  background: rgba(0,107,94,0.1); color: var(--primary);
  padding: 0.125rem 0.5rem; border-radius: 50px;
}

/* === Articles === */
.article-card {
  background: var(--card); border-radius: var(--radius-2xl);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-img {
  height: 192px; background: linear-gradient(135deg, rgba(0,107,94,0.2) 0%, rgba(0,196,154,0.2) 100%);
  display: flex; align-items: center; justify-content: center;
}
.article-img i { font-size: 3rem; color: rgba(0,107,94,0.3); }
.article-body { padding: 1.25rem; }
.article-category {
  display: inline-block; background: rgba(0,107,94,0.1); color: var(--primary);
  font-size: 0.75rem; font-family: var(--font-ui); padding: 0.25rem 0.5rem;
  border-radius: 50px; margin-bottom: 0.75rem;
}
.article-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  margin-bottom: 0.75rem; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color 0.3s ease;
}
.article-card:hover .article-title { color: var(--primary); }
.article-author { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.author-avatar {
  width: 32px; height: 32px; background: rgba(0,107,94,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.author-avatar i { font-size: 0.875rem; color: var(--primary); }
.article-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.read-time { font-size: 0.875rem; color: var(--muted-fg); }
.read-more {
  font-family: var(--font-ui); font-size: 0.875rem; color: var(--primary);
  display: flex; align-items: center; gap: 0.25rem; transition: gap 0.3s ease;
}
.article-card:hover .read-more { gap: 0.5rem; }

/* === App Download === */
.app-banner { padding: 4rem 0; }
.phone-mockup {
  width: 256px; height: 500px; background: var(--card);
  border-radius: 40px; padding: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25); margin: 0 auto;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(0,107,94,0.2) 0%, rgba(0,196,154,0.2) 100%);
  border-radius: 32px; display: flex; align-items: center; justify-content: center;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: #000; color: #fff; padding: 0.75rem 1.5rem;
  border-radius: var(--radius); transition: all 0.3s ease; border: none;
}
.store-btn:hover { background: #222; color: #fff; transform: translateY(-1px); }
.store-btn small { font-size: 0.75rem; opacity: 0.8; display: block; }
.store-btn .store-name { font-size: 0.875rem; font-weight: 600; }

/* === Footer === */
.footer-etma { background: #0A1F1C; color: #fff; padding: 4rem 0 0; }
.footer-etma .footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-social a {
  width: 40px; height: 40px; background: rgba(255,255,255,0.1);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; color: #fff; transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--primary); }
.footer-hotline { display: flex; align-items: center; gap: 0.5rem; color: var(--secondary); font-family: var(--font-ui); font-weight: 700; }
.footer-etma h5 { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--secondary); }
.footer-pharmacies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.pharmacy-item {
  background: rgba(255,255,255,0.05); border-radius: var(--radius);
  padding: 0.5rem; text-align: center; font-size: 0.75rem;
  font-family: var(--font-ui); color: rgba(255,255,255,0.6);
}
.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
  display: flex; align-items: center; gap: 0.75rem;
  color: rgba(255,255,255,0.6); margin-bottom: 1rem; font-size: 0.875rem;
}
.footer-contact li i { color: var(--secondary); width: 20px; text-align: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; margin-top: 3rem; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.875rem; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.4); font-size: 0.875rem; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* === Page Header === */
.page-header { padding: 2rem 0; }
.page-header .breadcrumb { font-family: var(--font-ui); font-size: 0.875rem; margin: 0; background: none; padding: 0; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb .active { color: #fff; }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.5) !important; }

/* === Sidebar Filters === */
.filter-sidebar {
  background: var(--card); border-radius: var(--radius-xl);
  padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.filter-sidebar h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; }
.filter-group { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h5 { font-family: var(--font-ui); font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.75rem; }
.filter-group .form-check-label { font-family: var(--font-ui); font-size: 0.875rem; color: var(--muted-fg); }
.filter-group .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-range::-webkit-slider-thumb { background: var(--primary); }
.form-range::-moz-range-thumb { background: var(--primary); }

/* === Cart === */
.cart-vendor-group {
  background: var(--card); border-radius: var(--radius-xl);
  overflow: hidden; border: 1px solid var(--border); margin-bottom: 1.5rem;
}
.cart-vendor-header {
  background: var(--muted); padding: 0.75rem 1rem;
  font-family: var(--font-ui); font-weight: 600;
  display: flex; align-items: center; gap: 0.5rem;
}
.cart-item {
  padding: 1rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
}
.cart-item:last-child { border-bottom: none; }
.item-img {
  width: 80px; height: 80px; background: var(--muted);
  border-radius: var(--radius); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.item-img i { font-size: 1.5rem; color: rgba(0,107,94,0.3); }
.quantity-control {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--muted); border-radius: var(--radius); padding: 0.25rem;
}
.quantity-control button {
  width: 32px; height: 32px; border: none; background: var(--card);
  border-radius: 6px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all 0.2s ease;
}
.quantity-control button:hover { background: var(--primary); color: #fff; }
.quantity-control span { font-family: var(--font-ui); font-weight: 600; min-width: 24px; text-align: center; }

/* === Checkout === */
.checkout-steps { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.checkout-step { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-ui); font-weight: 600; color: var(--muted-fg); }
.checkout-step.active { color: var(--primary); }
.checkout-step.completed { color: var(--success); }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; background: var(--muted); color: var(--muted-fg);
}
.checkout-step.active .step-circle { background: var(--primary); color: #fff; }
.checkout-step.completed .step-circle { background: var(--success); color: #fff; }

.payment-method {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem;
  cursor: pointer; transition: all 0.3s ease;
}
.payment-method:hover { border-color: var(--primary); }
.payment-method.selected { border-color: var(--primary); background: rgba(0,107,94,0.05); }

.order-summary {
  background: var(--card); border-radius: var(--radius-xl);
  padding: 1.5rem; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); position: sticky; top: 100px;
}

/* === Doctor Profile === */
.clinic-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.25rem; transition: all 0.3s ease;
}
.clinic-card:hover { box-shadow: var(--shadow-md); }
.qualification-item {
  display: flex; align-items: start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.qualification-item:last-child { border-bottom: none; }
.date-slot {
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 0.875rem; font-weight: 600;
  border: 2px solid var(--border); background: var(--card);
  cursor: pointer; transition: all 0.3s ease; text-align: center;
}
.date-slot:hover, .date-slot.active { border-color: var(--primary); background: rgba(0,107,94,0.05); color: var(--primary); }
.time-slot {
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 0.875rem;
  border: 1px solid var(--border); background: var(--card);
  cursor: pointer; transition: all 0.3s ease;
}
.time-slot:hover, .time-slot.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.insurance-badge {
  display: inline-block; background: var(--muted); color: var(--muted-fg);
  font-size: 0.75rem; font-family: var(--font-ui);
  padding: 0.375rem 0.75rem; border-radius: 50px;
}
.review-card { background: var(--muted); border-radius: var(--radius-xl); padding: 1.25rem; margin-bottom: 1rem; }

/* === About / Values === */
.value-card {
  background: var(--card); border-radius: var(--radius-xl);
  padding: 2rem; text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: all 0.3s ease; height: 100%;
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.value-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin-bottom: 1.25rem;
}
.team-card {
  background: var(--card); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-sm); text-align: center; transition: all 0.3s ease;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-img {
  height: 200px; background: linear-gradient(135deg, rgba(0,107,94,0.2) 0%, rgba(0,196,154,0.2) 100%);
  display: flex; align-items: center; justify-content: center;
}
.team-img i { font-size: 4rem; color: rgba(0,107,94,0.3); }

/* === Offers === */
.offer-card-lg {
  background: var(--card); border-radius: var(--radius-xl);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.offer-card-lg:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.countdown-timer { display: flex; gap: 0.5rem; }
.time-unit {
  background: rgba(0,0,0,0.1); border-radius: var(--radius);
  padding: 0.5rem 0.75rem; text-align: center;
}
.time-unit .number { font-family: var(--font-ui); font-size: 1.5rem; font-weight: 700; display: block; }
.time-unit .label { font-size: 0.625rem; font-family: var(--font-ui); }

/* === Responsive === */
@media (max-width: 991.98px) {
  .hero-section h1 { font-size: 2.5rem; }
  .hero-section h2 { font-size: 1.25rem; }
  .floating-stats { display: none; }
  .stat-item:not(:last-child)::after { display: none; }
  .section-header h2 { font-size: 1.75rem; }
}
@media (max-width: 767.98px) {
  .hero-section { padding: 2.5rem 0 3rem; }
  .hero-section h1 { font-size: 2rem; }
  .section-padding { padding: 2.5rem 0; }
  .ad-banner { padding: 1.5rem; }
  .doctor-header { height: 80px; }
  .doctor-avatar { width: 64px; height: 64px; bottom: -32px; }
  .doctor-body { padding-top: 2.5rem; }
}

/* === Utility === */
.text-primary-etma { color: var(--primary) !important; }
.text-secondary-etma { color: var(--secondary) !important; }
.text-accent-etma { color: var(--accent) !important; }
.text-success-etma { color: var(--success) !important; }
.text-warning-etma { color: var(--warning) !important; }
.bg-primary-etma { background-color: var(--primary) !important; }
.bg-muted-etma { background-color: var(--muted) !important; }
.border-primary-etma { border-color: var(--primary) !important; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
