/* =========================================================================
   Doctor Site — Standalone Design System & CSS
   Full design parity with Next.js doctor-site template.
   ========================================================================= */

:root {
  --font-outfit: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-figtree: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-cairo: 'Cairo', "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

/* Root Design Tokens */
[data-ds-root] {
  --ds-bg: #ffffff;
  --ds-surface: #fafbfc;
  --ds-surface-2: #f4f6f9;
  --ds-surface-3: #eef1f5;
  --ds-border: #e6eaf0;
  --ds-border-strong: #d5dbe4;

  --ds-fg: #0b1220;
  --ds-fg-muted: #4a5568;
  --ds-fg-subtle: #7683941a;
  --ds-fg-soft: #94a3b8;

  --ds-primary: #3b82f6;
  --ds-primary-hover: #2f6fe0;
  --ds-primary-soft: #eaf1ff;
  --ds-primary-fg: #ffffff;

  --ds-accent: #0ea5e9;
  --ds-success: #16a37f;
  --ds-warning: #d97706;
  --ds-danger: #dc2626;

  --ds-r-xs: 6px;
  --ds-r-sm: 10px;
  --ds-r-md: 14px;
  --ds-r-lg: 20px;
  --ds-r-xl: 28px;
  --ds-r-2xl: 36px;
  --ds-r-full: 999px;

  --ds-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ds-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --ds-shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
  --ds-shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
  --ds-shadow-ring: 0 0 0 4px rgba(59, 130, 246, 0.14);

  --ds-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ds-dur-1: 140ms;
  --ds-dur-2: 240ms;
  --ds-dur-3: 420ms;

  --ds-container: 1200px;
  --ds-gutter: clamp(16px, 4vw, 40px);

  background: var(--ds-bg);
  color: var(--ds-fg);
  font-family: var(--font-figtree);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  min-height: 100vh;
}

[data-ds-root][lang="ar"] {
  font-family: var(--font-cairo);
  line-height: 1.7;
}

[data-ds-root] ::selection {
  background: var(--ds-primary);
  color: var(--ds-primary-fg);
}

[data-ds-root] h1,
[data-ds-root] h2,
[data-ds-root] h3,
[data-ds-root] h4,
[data-ds-root] h5 {
  font-family: var(--font-outfit);
  color: var(--ds-fg);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 600;
}

[data-ds-root][lang="ar"] h1,
[data-ds-root][lang="ar"] h2,
[data-ds-root][lang="ar"] h3,
[data-ds-root][lang="ar"] h4,
[data-ds-root][lang="ar"] h5 {
  font-family: var(--font-cairo);
  letter-spacing: 0;
  line-height: 1.25;
}

/* Container */
.ds-container {
  width: 100%;
  max-width: var(--ds-container);
  margin-inline: auto;
  padding-inline: var(--ds-gutter);
}

/* Sections */
.ds-section {
  padding-block: clamp(64px, 9vw, 12px);
  position: relative;
}
.ds-section--tight {
  padding-block: clamp(48px, 6vw, 88px);
}

/* Eyebrow */
.ds-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--ds-r-full);
  background: var(--ds-primary-soft);
  color: var(--ds-primary-hover);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Grid background */
.ds-grid-bg {
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, black 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 40%, transparent 78%);
}

/* Motion / Animations */
@keyframes ds-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.ds-rise { animation: ds-rise var(--ds-dur-3) var(--ds-ease) both; }
.ds-rise-2 { animation: ds-rise var(--ds-dur-3) var(--ds-ease) 80ms both; }
.ds-rise-3 { animation: ds-rise var(--ds-dur-3) var(--ds-ease) 160ms both; }
.ds-rise-4 { animation: ds-rise var(--ds-dur-3) var(--ds-ease) 240ms both; }

@media (prefers-reduced-motion: reduce) {
  [data-ds-root] * { animation: none !important; transition: none !important; }
}

/* Buttons */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--ds-r-full);
  transition: all 200ms ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
}
.ds-btn:disabled {
  opacity: 0.5;
  pointer-events-none: none;
}

.ds-btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.ds-btn--md { height: 44px; padding: 0 20px; font-size: 15px; }
.ds-btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }

.ds-btn--primary {
  background: var(--ds-primary);
  color: var(--ds-primary-fg);
  box-shadow: var(--ds-shadow-sm);
}
.ds-btn--primary:hover {
  background: var(--ds-primary-hover);
  box-shadow: var(--ds-shadow-md);
}
.ds-btn--primary:active {
  transform: translateY(1px);
}

.ds-btn--secondary {
  background: var(--ds-fg);
  color: #ffffff;
}
.ds-btn--secondary:hover {
  background: var(--ds-fg-muted);
}

.ds-btn--outline {
  border: 1px solid var(--ds-border-strong);
  background: #ffffff;
  color: var(--ds-fg);
}
.ds-btn--outline:hover {
  border-color: var(--ds-fg);
  background: var(--ds-surface);
}

.ds-btn--ghost {
  background: transparent;
  color: var(--ds-fg);
}
.ds-btn--ghost:hover {
  background: var(--ds-surface-2);
}

/* Header & Navbar */
.ds-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 300ms ease;
  background: transparent;
}
.ds-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ds-border);
}

.ds-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.ds-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.ds-nav-logo-badge {
  display: grid;
  place-items: center;
  height: 36px;
  width: 36px;
  border-radius: var(--ds-r-md);
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--ds-primary), #6ea9ff);
  box-shadow: var(--ds-shadow-sm);
}

.ds-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.ds-nav-link {
  padding: 8px 14px;
  border-radius: var(--ds-r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-fg-muted);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.ds-nav-link:hover {
  background: var(--ds-surface-2);
  color: var(--ds-fg);
}

.ds-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--ds-r-full);
  border: 1px solid var(--ds-border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-fg);
  cursor: pointer;
  transition: border-color 150ms ease;
}
.ds-lang-btn:hover {
  border-color: var(--ds-fg);
}

/* Mobile Menu */
.ds-mobile-toggle {
  display: none;
  place-items: center;
  height: 44px;
  width: 44px;
  border-radius: var(--ds-r-full);
  border: 1px solid var(--ds-border);
  background: #ffffff;
  cursor: pointer;
}

.ds-mobile-menu {
  display: none;
  padding-bottom: 24px;
}
.ds-mobile-menu.open {
  display: block;
}
.ds-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}
.ds-mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--ds-r-md);
  font-size: 15px;
  color: var(--ds-fg);
  text-decoration: none;
}
.ds-mobile-link:hover {
  background: var(--ds-surface-2);
}

/* Section Header */
.ds-section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 672px;
}
.ds-section-header.center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}
.ds-section-header h2 {
  font-size: clamp(28px, 3.6vw, 30px);
  font-weight: 400;
}
.ds-section-header p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ds-fg-muted);
}

/* Cards & Layout Grids */
.ds-grid {
  display: grid;
  gap: 24px;
}

/* Hero Section */
.ds-hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .ds-hero-grid {
    grid-template-columns: 7fr 5fr;
  }
  .ds-mobile-toggle { display: none !important; }
}

@media (max-width: 1023px) {
  .ds-nav-links, .ds-nav-actions-desktop { display: none !important; }
  .ds-mobile-toggle { display: grid; }
}

/* Hero Portrait */
.ds-portrait-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--ds-r-2xl);
  overflow: hidden;
  background: linear-gradient(160deg, #dfeaff 0%, #f3f7ff 55%, #ffffff 100%);
  box-shadow: var(--ds-shadow-lg);
}
.ds-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ds-portrait-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(15,23,42,0.18) 100%);
}
.ds-portrait-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--ds-r-full);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--ds-shadow-sm);
}

[lang="ar"] .ds-portrait-badge {
  left: auto;
  right: 20px;
}

/* Stats Row */
.ds-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 512px;
}
.ds-stat-num {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ds-stat-lbl {
  font-size: 13px;
  color: var(--ds-fg-muted);
  margin-top: 4px;
}

/* Highlights / About Grid */
.ds-highlights-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .ds-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ds-highlight-card {
  padding: 24px;
  border-radius: var(--ds-r-lg);
  background: #ffffff;
  border: 1px solid var(--ds-border);
  transition: all 300ms ease;
}
.ds-highlight-card:hover {
  box-shadow: var(--ds-shadow-md);
  transform: translateY(-2px);
}

/* Services Grid */
.ds-services-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .ds-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ds-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ds-service-card--featured {
    grid-column: span 2;
    padding: 40px;
  }
}

.ds-service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ds-r-lg);
  background: #ffffff;
  border: 1px solid var(--ds-border);
  padding: 28px;
  transition: all 300ms ease;
  display: flex;
  flex-direction: column;
}
.ds-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-md);
}

/* Timeline & Credentials */
.ds-exp-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .ds-exp-grid {
    grid-template-columns: 7fr 5fr;
    gap: 80px;
  }
}

.ds-timeline {
  position: relative;
  list-style: none;
  margin-top: 48px;
}
.ds-timeline-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--ds-border);
}
[lang="en"] .ds-timeline-line { left: 19px; }
[lang="ar"] .ds-timeline-line { right: 19px; }

.ds-timeline-item {
  position: relative;
  padding-bottom: 40px;
}
[lang="en"] .ds-timeline-item { padding-left: 56px; }
[lang="ar"] .ds-timeline-item { padding-right: 56px; }

.ds-timeline-item:last-child { padding-bottom: 0; }

.ds-timeline-dot {
  position: absolute;
  top: 4px;
  display: grid;
  place-items: center;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--ds-border);
  box-shadow: var(--ds-shadow-xs);
}
[lang="en"] .ds-timeline-dot { left: 0; }
[lang="ar"] .ds-timeline-dot { right: 0; }

.ds-timeline-dot-inner {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--ds-primary);
}

/* Credentials list */
.ds-cred-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 48px;
}
.ds-cred-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--ds-r-md);
  border: 1px solid var(--ds-border);
  background: #ffffff;
  transition: border-color 150ms ease;
}
.ds-cred-item:hover {
  border-color: var(--ds-fg);
}

/* Gallery Section */
.ds-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ds-filter-btn {
  padding: 0 16px;
  height: 36px;
  border-radius: var(--ds-r-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--ds-border);
  background: #ffffff;
  color: var(--ds-fg-muted);
  cursor: pointer;
  transition: all 150ms ease;
}
.ds-filter-btn.active {
  background: var(--ds-fg);
  color: #ffffff;
  border-color: transparent;
}
.ds-filter-btn:hover:not(.active) {
  border-color: var(--ds-fg);
}

.ds-gallery-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .ds-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ds-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.ds-gallery-card {
  background: #ffffff;
  border-radius: var(--ds-r-lg);
  overflow: hidden;
  border: 1px solid var(--ds-border);
  transition: all 300ms ease;
}
.ds-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-md);
}

.ds-smile-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 9;
}
.ds-smile-plate {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ds-smile-label {
  position: absolute;
  top: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: var(--ds-r-full);
  background: rgba(255,255,255,0.85);
}
[lang="en"] .ds-smile-label { left: 12px; }
[lang="ar"] .ds-smile-label { right: 12px; }

/* Testimonials Grid */
.ds-testimonials-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .ds-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
.ds-testimonial-card {
  padding: 28px;
  border-radius: var(--ds-r-lg);
  border: 1px solid var(--ds-border);
  background: #ffffff;
  transition: all 300ms ease;
}
.ds-testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ds-shadow-md);
}

/* FAQ Accordion */
.ds-faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ds-faq-item {
  border-radius: var(--ds-r-lg);
  border: 1px solid var(--ds-border);
  background: #ffffff;
  overflow: hidden;
}
.ds-faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: start;
  padding: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.ds-faq-question {
  font-size: 16px;
  font-weight: 500;
}
@media (min-width: 640px) {
  .ds-faq-question { font-size: 17px; }
}
.ds-faq-icon {
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  shrink: 0;
  flex-shrink: 0;
  transition: background 200ms ease, color 200ms ease;
  background: var(--ds-surface-2);
  color: var(--ds-fg);
}
.ds-faq-item.open .ds-faq-icon {
  background: var(--ds-primary);
  color: #ffffff;
}

.ds-faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}
.ds-faq-item.open .ds-faq-answer-wrapper {
  grid-template-rows: 1fr;
}
.ds-faq-answer-inner {
  overflow: hidden;
}
.ds-faq-answer-text {
  padding: 0 24px 24px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ds-fg-muted);
}

/* Journal / Blog Cards */
.ds-blog-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .ds-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.ds-blog-card {
  border-radius: var(--ds-r-lg);
  overflow: hidden;
  border: 1px solid var(--ds-border);
  background: #ffffff;
  transition: all 300ms ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.ds-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-md);
}
.ds-blog-cover {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

/* Booking Section & Form */
.ds-booking-grid {
  display: grid;
  gap: 48px;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .ds-booking-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
}

.ds-booking-form {
  padding: 24px;
  border-radius: var(--ds-r-2xl);
  background: #ffffff;
  border: 1px solid var(--ds-border);
  box-shadow: var(--ds-shadow-lg);
}
@media (min-width: 640px) {
  .ds-booking-form { padding: 32px; }
}

.ds-form-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .ds-form-grid { grid-template-columns: repeat(2, 1fr); }
  .ds-col-span-2 { grid-column: span 2; }
}

.ds-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-fg-muted);
  margin-bottom: 6px;
}

.ds-input, .ds-select, .ds-textarea {
  width: 100%;
  border-radius: var(--ds-r-md);
  border: 1px solid var(--ds-border-strong);
  background: #ffffff;
  font-size: 15px;
  font-family: inherit;
  color: var(--ds-fg);
  padding: 0 12px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ds-input { height: 44px; }
.ds-select { height: 44px; }
.ds-textarea { padding: 10px 12px; resize: none; }

.ds-input:focus, .ds-select:focus, .ds-textarea:focus {
  border-color: var(--ds-primary);
  box-shadow: var(--ds-shadow-ring);
}

/* Footer */
.ds-footer {
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface);
}
.ds-footer-grid {
  padding-block: 64px;
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .ds-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 64px; }
}

.ds-footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--ds-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--ds-fg-muted);
}
@media (min-width: 768px) {
  .ds-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Layout Utilities */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:justify-between { justify-content: space-between !important; }
  .sm\:translate-y-6 { transform: translateY(24px); }
}
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row !important; }
  .md\:items-center { align-items: center !important; }
  .md\:items-end { align-items: flex-end !important; }
  .md\:justify-between { justify-content: space-between !important; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr) !important; }
}

/* Standalone Article Page */
.ds-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ds-fg-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ds-breadcrumb a {
  color: var(--ds-fg-muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.ds-breadcrumb a:hover {
  color: var(--ds-primary);
}
.ds-breadcrumb-sep {
  opacity: 0.4;
  font-size: 12px;
  display: inline-block;
}
[lang="ar"] .ds-breadcrumb-sep {
  transform: rotate(180deg);
}

.ds-article-wrapper {
  max-width: 840px;
  margin-inline: auto;
}

.ds-article-header {
  margin-bottom: 32px;
}
.ds-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ds-article-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--ds-r-full);
  background: var(--ds-primary-soft);
  color: var(--ds-primary-hover);
}
.ds-article-title {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ds-fg);
}
[lang="ar"] .ds-article-title {
  line-height: 1.35;
}
.ds-article-excerpt {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ds-fg-muted);
  font-weight: 400;
}

.ds-article-author-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--ds-r-xl);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  margin-block: 32px;
  flex-wrap: wrap;
}
.ds-article-author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ds-article-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: var(--ds-shadow-sm);
  background: var(--ds-primary-soft);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--ds-primary);
  flex-shrink: 0;
}

.ds-article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--ds-r-2xl);
  border: 1px solid var(--ds-border);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ds-shadow-sm);
}

.ds-article-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ds-article-body p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ds-fg);
}
[lang="ar"] .ds-article-body p {
  font-size: 18px;
  line-height: 1.9;
}
.ds-article-body p:first-of-type {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ds-fg);
}
.ds-article-callout {
  padding: 24px 28px;
  border-radius: var(--ds-r-lg);
  background: var(--ds-primary-soft);
  border-inline-start: 4px solid var(--ds-primary);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ds-fg);
  margin-block: 8px;
}

.ds-article-footer-actions {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ds-article-cta-box {
  margin-top: 56px;
  padding: 40px;
  border-radius: var(--ds-r-2xl);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--ds-shadow-lg);
}
.ds-article-cta-box h3 {
  color: #ffffff;
  font-size: clamp(22px, 3vw, 30px);
}
.ds-article-cta-box p {
  color: #94a3b8;
  font-size: 16px;
  max-width: 520px;
}

.ds-related-section {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--ds-border);
}

/* Journal Page Styles */
.ds-journal-controls {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .ds-journal-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ds-search-box {
  position: relative;
  max-width: 360px;
  width: 100%;
}
.ds-search-input {
  width: 100%;
  height: 44px;
  padding-inline-start: 40px;
  padding-inline-end: 16px;
  border-radius: var(--ds-r-full);
  border: 1px solid var(--ds-border-strong);
  background: #ffffff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ds-fg);
  outline: none;
  transition: all 150ms ease;
}
.ds-search-input:focus {
  border-color: var(--ds-primary);
  box-shadow: var(--ds-shadow-ring);
}
.ds-search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ds-fg-muted);
  pointer-events: none;
}
[lang="en"] .ds-search-icon { left: 14px; }
[lang="ar"] .ds-search-icon { right: 14px; }


.ds-location-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 32px;
    margin-top: 60px;
}

@media (max-width:992px) {

    .ds-location-grid {
        grid-template-columns: 1fr;
    }
}
.ds-location-card {
    background: #fff;
    border: 1px solid var(--ds-border);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    box-shadow: 0 10px 40px rgba(0,0,0,.05);
}
.ds-location-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.ds-location-map {
    min-height: 420px;
}
    .ds-location-map iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }
.ds-location-info ul {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    list-style: none;
    padding: 0;
}
.ds-location-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.7;
}
.ds-location-actions {
    display: flex;
    gap: 12px;
}

    .ds-location-actions a {
        flex: 1;
    }
.location-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ds-primary-soft);
    display: grid;
    place-items: center;
    color: var(--ds-primary);
}


.ds-gallery-card:hover img {
    transform: scale(1.08);
}

.ds-gallery-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--ds-border);
    background: #fff;
}

    .ds-gallery-card figcaption {
        padding: 20px;
    }

    .ds-gallery-card h3 {
        font-size: 18px;
        margin: 0;
    }

    .ds-gallery-card p {
        margin-top: 6px;
        color: var(--ds-fg-muted);
    }

.ds-gallery-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* مربع */
    overflow: hidden;
    background: #f5f7fb;
}

    .ds-gallery-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover; /* يملأ المربع مع قص الزائد */
        object-position: center;
    }