/* -------------------------------------------------
   Service Detail Page – Scoped & Themed
   ------------------------------------------------- */

:root {
  --clr-primary: #0A84FF;
  --clr-primary-light: #58A6FF;
  --clr-primary-dark: #4F46E5;
  --clr-bg-card: rgba(18, 16, 52, 0.75);
  --clr-bg-card-hover: rgba(30, 27, 75, 0.9);
  --clr-border: rgba(148, 163, 255, 0.15);
  --clr-text: #C7D2FE;
  --clr-heading: #FFFFFF;
  --clr-muted: rgba(226, 232, 240, 0.7);
  --radius-lg: 24px;
  --radius-md: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-page {
  background: #0a0a1a;
  min-height: 100vh;
}

/* -------------------------------------------------
     Hero Section
   ------------------------------------------------- */
.service-hero-section {
  
  position: relative;
  height: 75vh;
  min-height: 670px;
  margin-top: -85px;
  padding-top: 100px;
  display: flex;
  align-items: center;
  background: #020617;
  /* Fallback */
}

.service-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
  z-index: 0;
  opacity: 0.6;
  animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }

  100% {
    transform: scale(1.1);
    filter: hue-rotate(15deg);
  }
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.3) 0%, #020617 100%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px);
  /* Scanline effect */
  z-index: 1;
  pointer-events: none;
}

.service-hero-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.service-hero-breadcrumb .breadcrumb-item a:hover {
  color: var(--clr-primary-light);
}

.service-hero-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.service-hero-title {
  text-shadow: 0 4px 12px rgb(255, 255, 255);
  font-family: 'Outfit', sans-serif;
  /* Fallback if not loaded, assume app.css loads fonts */
  letter-spacing: -0.02em;
}

/* -------------------------------------------------
     Content Area
   ------------------------------------------------- */
.padding-large {
  padding-bottom: 6rem;
}

.service-article-body {
  color: var(--clr-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.service-paragraph {
  color: #cbd5e1;
}

/* -------------------------------------------------
     Sidebar & Widgets
   ------------------------------------------------- */
.glass-card {
  background: var(--clr-bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(148, 163, 255, 0.3);
  box-shadow: 0 30px 60px rgba(80, 89, 199, 0.15);
}

.glow-effect {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.glow-effect:hover {
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.5);
  transform: translateY(-2px);
}

/* Related Services Sidebar Item */
.related-service-item {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
}

.related-service-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.related-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.related-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group:hover .group-hover-primary {
  color: var(--clr-primary-light) !important;
}

.text-xs {
  font-size: 0.75rem;
}

/* -------------------------------------------------
     Mobile / Responsive
   ------------------------------------------------- */
@media (max-width: 991px) {
  .service-hero-section {
    height: auto;
    min-height: 480px;
    padding-bottom: 6rem;
    align-items: flex-end;
  }
}

/* -------------------------------------------------
     RTL Support (Arabic)
   ------------------------------------------------- */
[dir="rtl"] .service-hero-breadcrumb .breadcrumb-item {
  float: right;
  /* Fallback */
}

[dir="rtl"] .service-hero-breadcrumb .breadcrumb {
  justify-content: flex-start;
  flex-direction: row;
  /* Ensure row direction */
}

[dir="rtl"] .service-article-body {
  text-align: right;
}

[dir="rtl"] .service-hero-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  float: right;
  padding-left: .5rem;
  padding-right: 0;
}

[dir="rtl"] .service-sidebar {
  border-right: none;
  border-left: 1px solid var(--clr-border);
}

[dir="rtl"] .service-hero-title,
[dir="rtl"] .service-hero-breadcrumb {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .related-service-item {
  text-align: right;
}

[dir="rtl"] .related-service-item:hover {
  transform: translateX(-5px);
  /* Flip hover movement */
}