/* SehaCare — unified theme: RTL, palette, footer, modern UI */
:root {
  --sc-primary: #6d28d9;
  --sc-primary-rgb: 109, 40, 217;
  --sc-primary-dark: #5b21b6;
  --sc-secondary: #0d9488;
  --sc-secondary-rgb: 13, 148, 136;
  --sc-accent: #db2777;
  --sc-accent-soft: #f472b6;
  --sc-bg-page: #f8f7fc;
  --sc-bg-elevated: #ffffff;
  --sc-bg-dark: #0c0a12;
  --sc-bg-dark-mid: #14101f;
  --sc-text: #1a1625;
  --sc-text-muted: #64748b;
  --sc-border: rgba(255, 255, 255, 0.08);
  --sc-gradient-brand: linear-gradient(135deg, #7c3aed 0%, #c026d3 48%, #0d9488 100%);
  --sc-gradient-nav-hover: linear-gradient(90deg, #a78bfa, #f472b6);
  --sc-shadow-sm: 0 2px 8px rgba(26, 22, 37, 0.06);
  --sc-shadow-md: 0 8px 30px rgba(91, 33, 182, 0.12);
  --sc-radius: 1rem;
  --bs-primary: #6d28d9;
  --bs-primary-rgb: 109, 40, 217;
  --bs-link-color: #6d28d9;
  --bs-link-hover-color: #5b21b6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", "Segoe UI", system-ui, sans-serif;
  color: var(--sc-text);
  background-color: var(--sc-bg-page);
  text-align: start;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.story-title,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Aref Ruqaa", serif;
  font-weight: 700;
}

::selection {
  background: rgba(109, 40, 217, 0.25);
  color: var(--sc-text);
}

/* Cards — softer, cohesive */
.card {
  border-radius: var(--sc-radius);
  border: 1px solid rgba(109, 40, 217, 0.06);
  box-shadow: var(--sc-shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.bg-light {
  background-color: #f1effa !important;
}

/* Dark feature band */
.sc-section-dark {
  background: linear-gradient(165deg, var(--sc-bg-dark) 0%, var(--sc-bg-dark-mid) 42%, #0a0810 100%);
  position: relative;
  overflow: hidden;
}

.sc-section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 100% 0%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(13, 148, 136, 0.1), transparent 50%);
  pointer-events: none;
}

.sc-section-dark .container {
  position: relative;
  z-index: 1;
}

.sc-section-dark .text-secondary {
  color: rgba(245, 245, 250, 0.72) !important;
}

/* Gradient text — single definition */
.gradient-text {
  background: var(--sc-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.text-gradient {
  background: var(--sc-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer — RTL-aligned, modern */
footer.footer {
  background: linear-gradient(180deg, #12101c 0%, var(--sc-bg-dark) 100%);
  border-top: 1px solid var(--sc-border);
  text-align: start;
}

footer.footer .container,
footer.footer .row {
  text-align: start;
}

footer.footer .footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

footer.footer .footer-link {
  color: rgba(245, 245, 250, 0.78);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  margin-bottom: 0.65rem;
}

footer.footer .footer-link:hover {
  color: var(--sc-accent-soft);
  transform: translateX(-3px);
}

footer.footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(245, 245, 250, 0.78);
  text-align: start;
}

footer.footer .contact-item i {
  color: var(--sc-accent-soft);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

footer.footer .social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

footer.footer .social-icon:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(167, 139, 250, 0.5);
  color: #e9d5ff;
  transform: translateY(-2px);
}

footer.footer .footer-bottom {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--sc-border);
  padding: 1.25rem 0;
}

footer.footer .logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}

/* Carousel: LTR slide direction; captions stay RTL */
.carousel.slide[dir="ltr"] .carousel-caption {
  direction: rtl;
  text-align: start;
}

@media (max-width: 991.98px) {
  footer.footer .footer-link:hover {
    transform: none;
  }
}
