/* ==========================================================
   Badr Clinic - About Page Stylesheet (فلسفة الرعاية وهويتنا)
   Modern, Non-Traditional, Flowing Spine, Pure Medical Luxury
   Strictly Zero Emojis, Responsive, 60fps GPU Accelerated
========================================================== */

:root {
  --about-navy-deep: #122A6B;
  --about-navy-dark: #091A38;
  --about-navy-slate: #101112;
  --about-text-body: #334155;
  --about-text-muted: #64748B;
  --about-cyan: #122A6B;
  --about-cyan-glow: #122A6B;
  --about-gold: #D97706;
  --about-gold-light: #FBBF24;
  --about-bg-page: #FFFFFF;
  --about-bg-subtle: #F8FAFC;
  --about-bg-card: #FFFFFF;
  --about-border-soft: #E8ECEF;
  --about-border-navy: rgba(18, 42, 107, 0.12);
  --about-shadow-sm: 0 4px 16px rgba(9, 26, 56, 0.05);
  --about-shadow-md: 0 12px 32px rgba(9, 26, 56, 0.08);
  --about-shadow-lg: 0 20px 48px rgba(9, 26, 56, 0.12);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & Canvas */
body.about-page-body {
  margin: 0;
  padding: 0;
  background-color: var(--about-bg-page);
  color: var(--about-text-body);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   1. Hero Section: Grand Royal Navy Editorial Entrance
========================================================== */
.about-hero-section {
  position: relative;
  padding: 160px 24px 80px;
  background: #122A6B;
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 16px 40px rgba(18, 42, 107, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.about-hero-section::before {
  display: none !important;
}

.about-hero-shell {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 24px;
}

.about-badge-pill svg {
  color: #FFFFFF;
  stroke: #FFFFFF !important;
}

.about-hero-motto {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  color: #E8ECEF;
  margin: 0 auto 16px;
  letter-spacing: -0.2px;
}

.about-hero-title {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  line-height: 1.35;
  color: #FFFFFF;
  margin: 0 auto 20px;
  letter-spacing: -0.5px;
}

.about-hero-title span.title-accent {
  color: #E8ECEF;
}

.about-hero-lead {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.95;
  color: #CBD5E1;
  max-width: 820px;
  margin: 0 auto 36px;
}

/* ==========================================================
   2. The Continuous Medical Spine: Interactive 5-Step Journey
========================================================== */
.about-journey-section {
  position: relative;
  padding: 90px 24px 100px;
  background: #FFFFFF;
}

.journey-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 70px;
}

.journey-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--about-cyan);
  display: block;
  margin-bottom: 10px;
}

.journey-main-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--about-navy-deep);
  margin: 0 0 14px;
}

.journey-lead {
  font-size: 16px;
  color: var(--about-text-muted);
  line-height: 1.8;
  margin: 0;
}

/* Central Continuous Medical Spine */
.journey-spine-container {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

/* The vertical guideline track */
.journey-spine-track {
  position: absolute;
  top: 40px;
  bottom: 80px;
  right: 50%;
  width: 3px;
  transform: translateX(50%);
  background: #E8ECEF;
  border-radius: 9999px;
  z-index: 1;
}

/* The active dynamic glowing filler */
.journey-spine-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #122A6B 0%, #091A38 100%);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(18, 42, 107, 0.4);
  transition: height 0.25s ease-out;
}

/* Journey Step Rows (Asymmetric Alternating) */
.journey-step-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  margin-bottom: 72px;
  width: 100%;
}

.journey-step-row:last-child {
  margin-bottom: 0;
}

/* Alternate Left and Right */
.journey-step-row.step-odd {
  flex-direction: row-reverse;
}

.journey-step-row.step-even {
  flex-direction: row;
}

.step-card-col {
  width: calc(50% - 44px);
}

/* Central Node Marker */
.step-node-col {
  width: 88px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.step-node-disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--about-navy-deep);
  box-shadow: 0 8px 24px rgba(9, 26, 56, 0.1);
  transition: all 0.4s var(--ease-out-expo);
  cursor: default;
}

.journey-step-row.is-active .step-node-disc {
  background: var(--about-navy-deep);
  border-color: var(--about-cyan-glow);
  color: #FFFFFF;
  transform: scale(1.15);
  box-shadow: 0 0 0 7px rgba(18, 42, 107, 0.2), 0 12px 28px rgba(9, 26, 56, 0.25);
}

/* Step Content Presentation (Freeform, Non-traditional) */
.step-flow-panel {
  position: relative;
  padding: 32px 36px;
  background: #FFFFFF;
  border-radius: 26px;
  border: 1px solid var(--about-border-soft);
  box-shadow: var(--about-shadow-sm);
  transition: all 0.4s var(--ease-out-expo);
}

.journey-step-row.is-active .step-flow-panel {
  border-color: rgba(18, 42, 107, 0.35);
  box-shadow: var(--about-shadow-md);
  transform: translateY(-4px);
}

.step-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.step-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(18, 42, 107, 0.08);
  color: #122A6B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-panel-icon svg {
  stroke: #122A6B !important;
}

.journey-step-row.is-active .step-panel-icon {
  background: #122A6B;
  color: #FFFFFF;
}

.journey-step-row.is-active .step-panel-icon svg {
  stroke: #FFFFFF !important;
}

.step-panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--about-navy-deep);
  line-height: 1.4;
}

.step-panel-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--about-text-body);
  margin: 0 0 16px;
}

.step-panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(18, 42, 107, 0.05);
  color: var(--about-navy-deep);
  border: 1px solid rgba(18, 42, 107, 0.12);
}

.journey-step-row.is-active .step-panel-tag {
  background: rgba(18, 42, 107, 0.08);
  color: var(--about-cyan);
  border-color: rgba(18, 42, 107, 0.2);
}

/* ==========================================================
   4. Core Clinical Standards: Enclosed Royal Navy Island
========================================================== */
.about-standards-section {
  position: relative;
  padding: 70px 24px 100px;
  background: #FFFFFF;
}

.standards-island-container {
  max-width: 1160px;
  margin: 0 auto;
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 52% 0%, rgba(18, 42, 107, 0.12), transparent 68%),
    linear-gradient(135deg, #122A6B 0%, #091A38 100%);
  color: #FFFFFF;
  padding: 56px 44px 52px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 24px 60px rgba(9, 26, 56, 0.18),
    0 3px 12px rgba(9, 26, 56, 0.08);
  position: relative;
  overflow: hidden;
}

.standards-island-container::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 42, 107, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.standards-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 54px;
}

.standards-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #CBD5E1;
  display: block;
  margin-bottom: 10px;
}

.standards-main-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 14px;
}

.standards-lead {
  font-size: 16px;
  color: #94A3B8;
  line-height: 1.8;
  margin: 0;
}

.standards-ribbon-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.standard-ribbon-card {
  position: relative;
  padding: 34px 32px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.35s var(--ease-out-expo);
  overflow: hidden;
}

.standard-ribbon-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: #122A6B;
  opacity: 0.35;
  transition: all 0.35s ease;
}

.standard-ribbon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  border-color: rgba(18, 42, 107, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.standard-ribbon-card:hover::before {
  opacity: 1;
  width: 6px;
  background: #122A6B;
}

.ribbon-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #122A6B;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.ribbon-icon-wrap svg {
  stroke: #FFFFFF !important;
}

.standard-ribbon-card:hover .ribbon-icon-wrap {
  background: #1A3E96;
  color: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(18, 42, 107, 0.45);
}

.ribbon-content h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.4;
}

.ribbon-content p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #CBD5E1;
}

/* Integrated Luxury CTA Banner inside the Island */
.standards-cta-banner {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.standards-cta-title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px;
}

.standards-cta-desc {
  font-size: 15.5px;
  color: #CBD5E1;
  line-height: 1.8;
  max-width: 660px;
  margin: 0 auto 30px;
}

.standards-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.about-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #122A6B;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: all 0.25s var(--ease-out-expo);
}

.about-btn-primary:hover {
  transform: translateY(-2px);
  background: #E8ECEF;
  color: #091A38;
  box-shadow: 0 12px 30px rgba(18, 42, 107, 0.35);
}


.about-btn-primary svg {
  color: var(--about-navy-deep);
}

.about-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.about-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================
   6. Responsive Layout for Tablets & Mobile
========================================================== */
@media (max-width: 900px) {
  .journey-spine-track {
    right: 28px;
    transform: none;
  }

  .journey-step-row,
  .journey-step-row.step-odd,
  .journey-step-row.step-even {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 48px;
  }

  .step-node-col {
    width: 58px;
    margin-left: 18px;
  }

  .step-node-disc {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .step-card-col {
    width: calc(100% - 76px);
  }

  .step-flow-panel {
    padding: 24px 22px;
  }

  .standards-ribbon-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .standards-island-container {
    padding: 36px 20px 42px;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .about-hero-section {
    padding-top: 130px;
    padding-bottom: 50px;
    border-radius: 0 0 24px 24px;
  }

  .step-node-col {
    width: 44px;
    margin-left: 12px;
  }

  .journey-spine-track {
    right: 21px;
  }

  .step-card-col {
    width: calc(100% - 56px);
  }

  .step-flow-panel {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .step-panel-title {
    font-size: 17.5px;
  }

  .step-panel-desc {
    font-size: 14px;
  }

  .standard-ribbon-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
}
