/*
 * Shifa Health Care — Component Styles
 * Header, Navigation, Footer, Page Hero, Testimonials, etc.
 */

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Transparent header (over hero) */
#header.header-transparent {
  background: transparent;
}

/* Scrolled header — glassmorphism floating bar */
#header.header-scrolled {
  margin: 12px 20px 0;
  border-radius: 20px;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

/* Inner wrapper */
#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  height: 72px;
  max-width: 1440px;
  margin: 0 auto;
  transition: height 0.4s ease;
}
#header.header-scrolled .header-inner { height: 60px; }

/* Logo */
#header .logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
#header .logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  transition: height 0.4s ease;
}
#header.header-scrolled .logo img { height: 36px; }
#header .logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
#header .logo .logo-text span { color: var(--secondary); }

/* ---- DESKTOP NAVIGATION ---- */
#navmenu { flex: 1; display: flex; justify-content: flex-end; }
#navmenu > ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
#navmenu > ul > li { position: relative; }
#navmenu > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5em 1em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
  position: relative;
  white-space: nowrap;
}
#navmenu > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: left 0.3s ease, right 0.3s ease;
}
#navmenu > ul > li > a:hover,
#navmenu > ul > li > a.active {
  color: #fff;
}
#navmenu > ul > li:hover > a::after,
#navmenu > ul > li > a.active::after {
  left: 1em;
  right: 1em;
}
#navmenu > ul > li > a i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}
#navmenu > ul > li:hover > a > i { transform: rotate(180deg); }

/* Appointment CTA in nav */
#navmenu > ul > li.nav-cta > a {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50px;
  padding: 0.5em 1.2em;
  margin-left: 0.5em;
}
#navmenu > ul > li.nav-cta > a::after { display: none; }
#navmenu > ul > li.nav-cta > a:hover { opacity: 0.9; }

/* Dropdown */
#navmenu .dropdown ul {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  list-style: none;
  padding: var(--space-2) 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
}
#navmenu .dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#navmenu .dropdown ul li a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65em 1.2em;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
}
#navmenu .dropdown ul li a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
#navmenu .dropdown ul li a:hover {
  color: #fff;
  background: rgba(11,111,173,0.15);
  padding-left: 1.5em;
}
#navmenu .dropdown ul li a:hover::before { opacity: 1; }

/* ---- MOBILE NAVIGATION ---- */
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1001;
  padding: 0;
  transition: background 0.3s;
}
.mobile-nav-toggle:hover { background: rgba(255,255,255,0.2); }
.mobile-nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* X state when open */
.mobile-nav-active .mobile-nav-toggle .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-nav-active .mobile-nav-toggle .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mobile-nav-active .mobile-nav-toggle .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay menu */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(10,14,26,0.97);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.mobile-nav-active .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-body { padding: var(--space-6); flex: 1; }
.mobile-nav-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav-body > ul > li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-nav-active .mobile-nav-body > ul > li {
  opacity: 1;
  transform: none;
}
.mobile-nav-active .mobile-nav-body > ul > li:nth-child(1)  { transition-delay: 0.1s; }
.mobile-nav-active .mobile-nav-body > ul > li:nth-child(2)  { transition-delay: 0.15s; }
.mobile-nav-active .mobile-nav-body > ul > li:nth-child(3)  { transition-delay: 0.2s; }
.mobile-nav-active .mobile-nav-body > ul > li:nth-child(4)  { transition-delay: 0.25s; }
.mobile-nav-active .mobile-nav-body > ul > li:nth-child(5)  { transition-delay: 0.3s; }
.mobile-nav-active .mobile-nav-body > ul > li:nth-child(6)  { transition-delay: 0.35s; }

.mobile-nav-body > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.25s;
}
.mobile-nav-body > ul > li > a:hover { color: var(--secondary); }
.mobile-nav-body > ul > li > a .toggle-icon {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: transform 0.3s ease;
}
.mobile-nav-body ul.dropdown-active > li:first-child + li { margin-top: 0; }
.mobile-nav-body .dropdown-menu-mobile {
  display: none;
  list-style: none;
  padding: 0 0 var(--space-4) var(--space-4);
  margin: 0;
}
.mobile-nav-body .dropdown-menu-mobile.open { display: block; }
.mobile-nav-body .dropdown-menu-mobile li a {
  display: block;
  padding: 0.5em 0;
  font-size: var(--text-base);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-body .dropdown-menu-mobile li a:hover { color: var(--secondary); }
.mobile-nav-footer {
  padding: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: var(--space-4);
}
.mobile-nav-footer a.btn { flex: 1; justify-content: center; }

@media (min-width: 1200px) {
  .mobile-nav-toggle { display: none; }
  .mobile-nav-overlay { display: none !important; }
}
@media (max-width: 1199px) {
  .mobile-nav-toggle { display: flex; }
  #navmenu { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
}
#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(at 20% 80%, rgba(11,111,173,0.15) 0%, transparent 50%),
    radial-gradient(at 80% 20%, rgba(5,192,145,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.footer-top {
  padding: var(--space-20) 0 var(--space-12);
  position: relative;
}
.footer-brand {
  margin-bottom: var(--space-6);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.footer-logo img {
  height: 44px;
  border-radius: 8px;
}
.footer-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.footer-logo .logo-name span { color: var(--secondary); }
.footer-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 300px;
  margin-bottom: var(--space-6);
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}
.footer-contact-item i {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(11,111,173,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--secondary); }

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-5);
  position: relative;
  padding-bottom: var(--space-3);
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: var(--space-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width 0.3s ease;
  flex-shrink: 0;
}
.footer-links a:hover {
  color: rgba(255,255,255,0.9);
  transform: translateX(4px);
}
.footer-links a:hover::before { width: 12px; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0;
}

.footer-bottom {
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}
.footer-copyright strong { color: rgba(255,255,255,0.7); }
.footer-credits {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.3);
}
.footer-credits a {
  color: rgba(255,255,255,0.5);
  transition: color 0.25s;
}
.footer-credits a:hover { color: var(--secondary); }

/* ============================================================
   TESTIMONIALS SECTION (Redesigned)
   ============================================================ */
.testimonials-section {
  background: var(--surface-2);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '"';
  position: absolute;
  top: -60px;
  left: -30px;
  font-size: 30rem;
  color: rgba(11,111,173,0.03);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Swiper testimonials */
.testimonials-swiper-wrap {
  position: relative;
  padding: 0 var(--space-6) var(--space-8);
}
.testimonials-swiper-wrap .swiper-pagination {
  bottom: 0;
}
.testimonials-swiper-wrap .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(11,111,173,0.25);
  opacity: 1;
  transition: all 0.3s ease;
}
.testimonials-swiper-wrap .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 28px;
  border-radius: 4px;
}

/* ============================================================
   PAGE TITLE HERO (Redesigned from old .page-title)
   ============================================================ */
.page-title {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,0.88) 0%, rgba(11,111,173,0.7) 100%);
  z-index: 1;
}
.page-title .page-title-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 8s ease;
}
.page-title:hover .page-title-bg { transform: scale(1.05); }
.page-title .container {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: var(--space-12);
}
.page-title h1 {
  font-size: var(--text-4xl);
  color: #fff;
  font-weight: 800;
  margin-bottom: var(--space-4);
  line-height: 1.1;
}
.page-title .breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.page-title .breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.page-title .breadcrumbs ol li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}
.page-title .breadcrumbs ol li a { color: rgba(255,255,255,0.8); }
.page-title .breadcrumbs ol li a:hover { color: var(--secondary); }
.page-title .breadcrumbs ol li+li::before {
  content: '/';
  margin-right: var(--space-2);
  opacity: 0.4;
}
.page-title .breadcrumbs ol li.current { color: var(--secondary); font-weight: 600; }

/* ============================================================
   PORTFOLIO / GALLERY GRID
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-8) 0;
}
@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-5);
}
.portfolio-item:hover .overlay { opacity: 1; }
.portfolio-item .overlay a {
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.portfolio-item .overlay a:hover { transform: scale(1.2); }

/* ============================================================
   SECTION CONTENT BLOCKS (used on service pages)
   ============================================================ */
.content-block {
  padding: var(--space-12) 0;
}
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 768px) {
  .content-split { grid-template-columns: 1fr; gap: var(--space-8); }
}
.content-split.reverse > :first-child { order: 2; }
.content-split.reverse > :last-child { order: 1; }
@media (max-width: 768px) {
  .content-split.reverse > * { order: unset; }
}
.content-text h2 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.content-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: var(--space-5); }
.content-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
}
.content-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.content-list li:last-child { border-bottom: none; }
.content-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Service info grid */
.service-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: var(--space-10) 0;
}

/* Featured list item */
.feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-6);
}
.feature-item .fi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(11,111,173,0.1), rgba(5,192,145,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.feature-item h5 { font-size: var(--text-base); color: var(--dark); margin-bottom: var(--space-1); }
.feature-item p { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }

/* ============================================================
   CONTACT SECTION COMPONENTS
   ============================================================ */
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  height: 100%;
}
.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.contact-info-card .ci-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(11,111,173,0.1), rgba(5,192,145,0.1));
  border: 2px dashed rgba(11,111,173,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.4s ease;
}
.contact-info-card:hover .ci-icon {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}
.contact-info-card h3 { font-size: var(--text-base); color: var(--dark); margin-bottom: var(--space-2); }
.contact-info-card p, .contact-info-card a { font-size: var(--text-sm); color: var(--text-muted); }
.contact-info-card a:hover { color: var(--primary); }

/* Map container */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.map-container iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ============================================================
   APPOINTMENT FORM PREMIUM STYLING
   ============================================================ */
.appointment-section {
  background: var(--surface-2);
}
.appointment-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .appointment-card { padding: var(--space-8) var(--space-6); }
}

/* ============================================================
   BLOOD BANK SPECIAL LAYOUT
   ============================================================ */
.blood-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 768px) {
  .blood-cards-grid { grid-template-columns: 1fr; }
}
.blood-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.blood-card.donate { border-top: 4px solid var(--secondary); }
.blood-card.request { border-top: 4px solid var(--primary); }
.blood-card h2 { font-size: var(--text-2xl); color: var(--dark); margin-bottom: var(--space-4); }
.blood-card p { color: var(--text-muted); margin-bottom: var(--space-6); line-height: 1.7; }

.blood-type-select {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.blood-type-btn {
  padding: 0.5em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s ease;
  font-size: 0.85rem;
}
.blood-type-btn:hover,
.blood-type-btn.active {
  border-color: var(--primary);
  background: rgba(11,111,173,0.08);
  color: var(--primary);
}

/* ============================================================
   ACCREDITATION PAGES
   ============================================================ */
.accreditation-badge {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--gradient-dark);
  border-radius: var(--radius-lg);
  color: #fff;
  margin-bottom: var(--space-6);
}
.accreditation-badge .badge-icon {
  font-size: 3rem;
  color: var(--accent);
  flex-shrink: 0;
}
.accreditation-badge h3 { font-size: var(--text-xl); color: #fff; margin-bottom: var(--space-1); }
.accreditation-badge p { font-size: var(--text-sm); color: rgba(255,255,255,0.7); margin: 0; }

/* Timeline (accreditation process) */
.timeline {
  position: relative;
  padding-left: var(--space-10);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-10) + 8px);
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-glow);
}
.timeline-item h4 { font-size: var(--text-lg); color: var(--dark); margin-bottom: var(--space-2); }
.timeline-item p { font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================================
   CLIENTS PAGE
   ============================================================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin: var(--space-10) 0;
}
@media (max-width: 768px) { .clients-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .clients-grid { grid-template-columns: 1fr; } }
.client-logo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.client-logo-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.client-logo-card img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.client-logo-card:hover img { transform: scale(1.05); }
.client-logo-card .glightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,111,173,0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}
.client-logo-card:hover .glightbox-overlay { opacity: 1; }

/* ============================================================
   ISOTOPE PORTFOLIO OVERRIDES
   ============================================================ */
.isotope-container .portfolio-content {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.isotope-container .portfolio-content img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.isotope-container .portfolio-info {
  background: linear-gradient(to top, rgba(10,14,26,0.8), transparent);
}

/* ============================================================
   SWIPER OVERRIDES (testimonials & sliders)
   ============================================================ */
.swiper-pagination-bullet {
  background: rgba(11,111,173,0.3);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
  background: var(--primary);
  width: 28px;
  border-radius: 4px;
}

/* ============================================================
   RESPONSIVE FIXES
   ============================================================ */
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-desc { max-width: 100%; }
  .content-split.reverse > :first-child,
  .content-split.reverse > :last-child { order: unset; }
  .page-title h1 { font-size: var(--text-3xl); }
  .page-title .container { padding-top: 100px; }
  #header .header-inner { padding: 0 var(--space-4); }
}

/* ============================================================
   HEADER MOBILE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
  #header.header-scrolled {
    margin: 8px 12px 0;
    border-radius: 14px;
  }
  #header .header-inner {
    height: 60px;
    padding: 0 var(--space-4);
  }
  #header.header-scrolled .header-inner {
    height: 52px;
  }
}

@media (max-width: 480px) {
  #header.header-scrolled {
    margin: 6px 8px 0;
    border-radius: 12px;
  }
}

/* ============================================================
   FOOTER COLUMN GAPS
   ============================================================ */
@media (max-width: 576px) {
  .footer-top .row { gap: 2rem 0; }
  .footer-heading { margin-bottom: var(--space-4); }
}

/* ============================================================
   TESTIMONIAL CARD MIN HEIGHT
   ============================================================ */
.testimonial-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.testimonial-card .testimonial-text { flex: 1; }

/* ============================================================
   SERVICE CARD HOVER — disable on touch devices
   ============================================================ */
@media (hover: none) {
  .service-card:hover { transform: none; box-shadow: var(--shadow-card); }
  .card-modern:hover { transform: none; }
  .info-card:hover { transform: none; }
  .contact-info-card:hover { transform: none; }
}

/* ============================================================
   ENSURE NAVMENU HIDDEN ON MOBILE
   ============================================================ */
@media (max-width: 1199px) {
  #navmenu { display: none !important; }
}
@media (min-width: 1200px) {
  .mobile-nav-toggle { display: none !important; }
  .mobile-nav-overlay { display: none !important; visibility: hidden !important; }
}

/* ============================================================
   MAP IFRAME RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
  .map-container iframe {
    height: 280px;
  }
}

/* ============================================================
   SECTION PADDING MOBILE REDUCTION
   ============================================================ */
@media (max-width: 576px) {
  .cta-section { padding: var(--space-16) 0; }
  .testimonials-section { padding: var(--space-16) 0; }
}

/* ============================================================
   PROCESS STEPS RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .process-step {
    gap: 0.75rem;
  }
  .step-content h4 { font-size: var(--text-base); }
  .step-content p { font-size: var(--text-sm); }
}
