/* Shifa Healthcare: calm, editorial redesign shared by every page. */
:root {
  --shifa-ink: #172b3a;
  --shifa-muted: #617381;
  --shifa-blue: #176b78;
  --shifa-teal: #2b9d8f;
  --shifa-line: #e4eceb;
  --shifa-paper: #f5f8f7;
  --shifa-shadow: 0 18px 48px rgba(27, 59, 67, .09);
  --default-font: 'Inter', system-ui, sans-serif;
  --heading-font: 'Inter', system-ui, sans-serif;
  --nav-font: 'Inter', system-ui, sans-serif;
  --primary: var(--shifa-blue);
  --secondary: var(--shifa-teal);
  --dark: var(--shifa-ink);
  --text: var(--shifa-ink);
  --text-muted: var(--shifa-muted);
  --border: var(--shifa-line);
  --surface: #fff;
  --surface-2: var(--shifa-paper);
  --gradient-primary: linear-gradient(135deg, #176b78, #2b9d8f);
  --gradient-dark: linear-gradient(135deg, #153b48, #176b78);
}

html { scroll-behavior: smooth; }
body { color: var(--shifa-ink); background: #fff; font-family: var(--default-font); }
body, p { line-height: 1.75; }
h1, h2, h3, h4, h5, h6 { color: var(--shifa-ink); font-family: var(--heading-font); letter-spacing: -.035em; }
p { color: var(--shifa-muted); }
a { color: var(--shifa-blue); }
::selection { color: #fff; background: var(--shifa-blue); }

/* A compact white masthead keeps navigation visible on every page. */
#header, #header.header-transparent, #header.header-scrolled {
  position: absolute; top: 0; left: 0; right: 0; z-index: 999;
  margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  height: auto; min-height: 78px; background: rgba(255,255,255,.97) !important;
  box-shadow: 0 1px 0 rgba(23,43,58,.08); backdrop-filter: blur(16px);
}
#header.header-scrolled { position: fixed; }
#header .header-inner, #header.header-scrolled .header-inner { height: 78px; max-width: 1320px; margin: auto; padding: 0 28px; }
#header .logo img, #header.header-scrolled .logo img { height: 46px; width: auto; border-radius: 9px; }
#header .logo .logo-text { color: var(--shifa-ink); font-size: 1rem; font-weight: 750; letter-spacing: -.03em; }
#header .logo .logo-text span { color: var(--shifa-blue); }
#navmenu > ul { gap: 3px; }
#navmenu > ul > li > a, #navmenu > ul > li > a:focus { color: #334d59 !important; font-size: .82rem; font-weight: 650; padding: 12px 12px; white-space: nowrap; }
#navmenu > ul > li > a:hover, #navmenu > ul > li > a.active, #navmenu > ul > li.dropdown:hover > a { color: var(--shifa-blue) !important; }
#navmenu > ul > li > a.active::after { content: ''; position: absolute; height: 2px; left: 12px; right: 12px; bottom: 4px; background: var(--shifa-teal); border-radius: 2px; }
#navmenu > ul > li.dropdown > a { position: relative; }
#navmenu .nav-cta > a { color: #fff !important; border-radius: 999px; padding: 11px 19px; background: var(--gradient-primary); box-shadow: 0 6px 16px rgba(23,107,120,.17); }
#navmenu .dropdown ul { border: 1px solid var(--shifa-line); border-radius: 14px; padding: 10px; background: #fff; box-shadow: var(--shifa-shadow); }
#navmenu .dropdown ul a { border-radius: 8px; color: var(--shifa-muted) !important; }
#navmenu .dropdown ul a:hover { background: var(--shifa-paper); color: var(--shifa-blue) !important; }
.mobile-nav-toggle { color: var(--shifa-ink); background: #eaf2f1 !important; border-radius: 10px !important; }
.mobile-nav-toggle .bar { background: var(--shifa-ink) !important; }

/* Interior page headers become quiet, legible title bands. */
.page-title, .page-title[style] {
  min-height: 300px !important; display: flex; align-items: center; padding: 112px 0 42px !important;
  background-color: #f2f7f6 !important; border-bottom: 1px solid var(--shifa-line);
}
.page-title::before { display: none !important; }
.page-title .container { padding-top: 0 !important; }
.page-title .eyebrow { color: var(--shifa-blue) !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.page-title h1, .page-title h1[style] { color: var(--shifa-ink) !important; font-size: clamp(2rem, 4vw, 3.35rem) !important; line-height: 1.12 !important; max-width: 900px; }
.page-title h1 span { background: none !important; color: var(--shifa-blue) !important; -webkit-text-fill-color: var(--shifa-blue) !important; }
.page-title .breadcrumbs { margin-top: 1rem !important; }
.page-title .breadcrumbs ol li, .page-title .breadcrumbs ol li a, .page-title .breadcrumbs ol li.current { color: #788994 !important; }
.page-title .breadcrumbs ol li+li::before { color: #aab8bd !important; }

/* Content rhythm and type scale shared by all existing pages. */
main section { padding-top: clamp(56px, 7vw, 92px) !important; padding-bottom: clamp(56px, 7vw, 92px) !important; }
main section:nth-of-type(even) { background-color: #f7faf9 !important; }
.section-title { margin-bottom: 38px; }
.section-title .eyebrow, .eyebrow { color: var(--shifa-blue); font-size: .72rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.section-title h2 { margin: 8px 0 12px; font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.2; }
.section-title p { max-width: 700px; margin: 0 auto; }
.headline-accent { color: var(--shifa-blue) !important; }
main p { font-size: .96rem; }
main .container { max-width: 1200px; }

/* Cards, imagery and buttons. */
.strength-card, .why-card, .who-card, .solution-group, .service-item, .testimonial-item,
.journey-body, .team-member, .info-item, .contact .info-item, .php-email-form,
.card, .feature-card, .service-card {
  border-color: var(--shifa-line) !important; border-radius: 16px !important;
  box-shadow: 0 5px 22px rgba(27,59,67,.045); transition: transform .25s ease, box-shadow .25s ease;
}
.strength-card:hover, .why-card:hover, .who-card:hover, .solution-group:hover, .service-item:hover { transform: translateY(-4px); box-shadow: var(--shifa-shadow); }
img { border-radius: 12px; }
.btn, a.btn { border-radius: 999px !important; font-weight: 650; letter-spacing: 0; box-shadow: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary, a.btn-primary { border: 0 !important; background: var(--gradient-primary) !important; color: white !important; box-shadow: 0 7px 18px rgba(23,107,120,.18) !important; }
.btn-secondary { color: var(--shifa-blue) !important; background: #e8f2f0 !important; border: 1px solid #d8e9e5 !important; }
.btn-ghost { border: 1px solid rgba(255,255,255,.6) !important; color: #fff !important; background: rgba(255,255,255,.08) !important; }
input, textarea, select, .form-control { border: 1px solid #dce7e5 !important; border-radius: 10px !important; padding: 12px 14px !important; box-shadow: none !important; }
input:focus, textarea:focus, select:focus, .form-control:focus { border-color: var(--shifa-teal) !important; }

/* The homepage keeps its existing image and information, with a calmer overlay. */
#hero.hero-section { min-height: min(780px, 100vh) !important; background: #153b48 !important; }
#hero .carousel-item img { opacity: .25 !important; }
#hero .container { padding-top: 138px !important; padding-bottom: 70px !important; }
#hero .eyebrow { color: #66d2c0 !important; }
#hero .hero-title-one-line { font-family: var(--heading-font) !important; letter-spacing: -.045em; }
#hero .hero-title-one-line span { background: none !important; color: #7ce0ce !important; -webkit-text-fill-color: #7ce0ce !important; }
#hero .card-glass { border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.10) !important; box-shadow: 0 24px 70px rgba(0,0,0,.16); backdrop-filter: blur(18px); }
#hero .card-glass p { color: rgba(255,255,255,.76) !important; }
#hero .card-glass h3 { color: #fff !important; }
#hero .anim-float-slow { left: -8px !important; bottom: -30px !important; z-index: 2; }
#hero .row > .col-lg-5 { padding-left: 30px; }
#hero .row > .col-lg-7 > div[style*="display:flex"][style*="margin-top:3rem"] > div > div:first-child { font-family: var(--heading-font) !important; font-size: 2rem !important; letter-spacing: -.04em; }
.pillar-card { border-radius: 18px !important; box-shadow: 0 15px 35px rgba(13,44,50,.12); }
.pillar-card:hover { transform: translateY(-5px) !important; }

/* Footer and small-screen navigation. */
#footer { background: #153642 !important; color: rgba(255,255,255,.75); }
#footer .footer-top { padding-top: 68px; padding-bottom: 48px; }
#footer .footer-heading { color: #fff; font-size: .92rem; letter-spacing: 0; }
#footer .footer-links a { color: rgba(255,255,255,.67); }
#footer .footer-links a:hover, #footer a:hover { color: #7ce0ce; }
#footer .footer-divider { border-color: rgba(255,255,255,.12); }
#footer .footer-bottom { padding: 18px 0; }
.scroll-progress { background: var(--shifa-teal) !important; }
@media (max-width: 991px) {
  #header, #header.header-transparent, #header.header-scrolled { min-height: 68px; }
  #header .header-inner, #header.header-scrolled .header-inner { height: 68px; padding: 0 18px; }
  .page-title, .page-title[style] { min-height: 260px !important; padding: 96px 0 34px !important; }
  .mobile-nav-overlay { background: #153642 !important; }
  #navmenu > ul > li > a.active::after { display: none; }
}
@media (max-width: 575px) {
  #header .logo img { height: 40px; }
  #hero .container { padding-top: 112px !important; }
  #hero .hero-title-one-line { font-size: clamp(2.2rem, 10vw, 3.3rem) !important; }
  main section { padding-top: 52px !important; padding-bottom: 52px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Full site visual refresh: clinical, welcoming and built for healthcare services. */
:root {
  --shifa-ink: #18343b;
  --shifa-muted: #65797b;
  --shifa-blue: #176b70;
  --shifa-teal: #36a58f;
  --shifa-line: #dfeae5;
  --shifa-paper: #f1f6f2;
  --shifa-shadow: 0 20px 55px rgba(24, 52, 59, .11);
  --primary: #176b70;
  --secondary: #36a58f;
  --dark: #18343b;
  --text: #18343b;
  --text-muted: #65797b;
  --surface: #fff;
  --surface-2: #f1f6f2;
  --border: #dfeae5;
  --gradient-primary: linear-gradient(125deg, #176b70, #36a58f);
  --gradient-dark: linear-gradient(135deg, #163d45, #176b70);
}

body { background: #fff; color: var(--shifa-ink); }
main section { position: relative; padding-top: clamp(64px, 8vw, 112px) !important; padding-bottom: clamp(64px, 8vw, 112px) !important; }
main section:nth-of-type(odd) { background: #f3f7f3 !important; }
main section:nth-of-type(even) { background: #fff !important; }
main .container { max-width: 1240px; }
h1, h2, h3, h4, h5, h6 { color: #18343b; letter-spacing: -.04em; }
main p { color: #637779; line-height: 1.82; }
.eyebrow, .section-title .eyebrow { color: #188278 !important; font-size: .73rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-title { margin: 0 auto 46px; max-width: 820px; }
.section-title h2 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.1; margin: 12px 0 15px; }
.section-title p { font-size: 1rem; }
.headline-accent { color: #168075 !important; }

/* Page-specific hero bands use each page's own photograph when one is set. */
.page-title, .page-title[style] {
  min-height: 365px !important; padding: 130px 0 58px !important; align-items: center;
  background-color: #e9f2ed !important; background-size: cover !important; background-position: center !important;
  border: 0; isolation: isolate;
}
.page-title::before { content: ''; display: block !important; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(14,49,54,.94), rgba(20,88,83,.76) 55%, rgba(25,91,83,.38)); }
.page-title[style*="background-image"]::before { background: linear-gradient(90deg, rgba(14,49,54,.94) 0%, rgba(18,76,73,.78) 55%, rgba(18,76,73,.40) 100%); }
.page-title .container { z-index: 1; }
.page-title .eyebrow { color: #91e0ce !important; margin-bottom: .9rem !important; }
.page-title h1, .page-title h1[style] { color: #fff !important; font-size: clamp(2.5rem, 5.3vw, 4.35rem) !important; line-height: 1.05 !important; max-width: 850px; letter-spacing: -.055em; }
.page-title h1 span { color: #9ce2d2 !important; -webkit-text-fill-color: #9ce2d2 !important; }
.page-title .breadcrumbs { margin-top: 1.3rem !important; }
.page-title .breadcrumbs ol li, .page-title .breadcrumbs ol li a, .page-title .breadcrumbs ol li.current { color: rgba(255,255,255,.8) !important; }
.page-title .breadcrumbs ol li+li::before { color: rgba(255,255,255,.48) !important; }

/* The homepage hero becomes a bright split layout with a real care setting. */
#hero.hero-section { min-height: 760px !important; background: #f1f6f2 !important; color: var(--shifa-ink); }
#hero #heroCarousel { left: auto !important; top: 92px !important; right: 0 !important; bottom: 0 !important; width: 46% !important; height: auto !important; overflow: hidden; border-radius: 36px 0 0 36px; }
#hero #heroCarousel .carousel-inner, #hero #heroCarousel .carousel-item { height: 100% !important; }
#hero #heroCarousel img { width: 100%; height: 100%; object-fit: cover; opacity: 1 !important; }
#hero > div[style*="linear-gradient(135deg,rgba(10,14,26"] { background: linear-gradient(90deg, #f1f6f2 0%, #f1f6f2 42%, rgba(241,246,242,.9) 55%, rgba(24,83,78,.08) 100%) !important; }
#hero .bg-particles { display: none; }
#hero .container { padding-top: 145px !important; padding-bottom: 95px !important; }
#hero .hero-title-one-line { color: #19373c !important; font-size: clamp(2.8rem, 5.2vw, 5rem) !important; max-width: 760px !important; line-height: 1.02 !important; letter-spacing: -.06em; }
#hero .hero-title-one-line span { background: none !important; color: #17877b !important; -webkit-text-fill-color: #17877b !important; }
#hero .eyebrow { color: #168278 !important; }
#hero .container p[style*="rgba(255,255,255"] { color: #5d7475 !important; font-size: clamp(1rem,1.35vw,1.13rem) !important; }
#hero .btn-ghost { color: #176b70 !important; border-color: #a8c8be !important; background: #fff !important; }
#hero .card-glass { background: rgba(19,63,66,.90) !important; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 25px 75px rgba(15,50,50,.26); backdrop-filter: blur(12px); }
#hero .card-glass h3 { color: #fff !important; }
#hero .card-glass p { color: rgba(255,255,255,.76) !important; }
#hero .anim-float-slow { background: #f0fcf7 !important; border: 1px solid #bee5d6 !important; box-shadow: 0 12px 30px rgba(14,65,60,.13); }
#hero .anim-float-slow div:first-child { color: #607d78 !important; }
#hero .anim-float-slow div:last-child { color: #176b70 !important; }
#hero .row > .col-lg-7 > div[style*="display:flex"][style*="margin-top:3rem"] { padding-top: 26px; border-top: 1px solid #d7e4de; max-width: 720px; gap: clamp(1rem, 3vw, 2.6rem) !important; }
#hero .row > .col-lg-7 > div[style*="display:flex"][style*="margin-top:3rem"] > div > div:first-child { color: #176b70 !important; font-size: 2rem !important; }
#hero .row > .col-lg-7 > div[style*="display:flex"][style*="margin-top:3rem"] > div > div:last-child { color: #65797b !important; letter-spacing: .08em !important; }
#hero > .container > div[style*="position:absolute"][style*="bottom:-30px"] { display: none !important; }

/* Universal service cards and content modules. */
.service-card, .serviceBox, .service-item, .strength-card, .why-card, .who-card,
.solution-group, .journey-stage, .hms-module-card, .testimonial-item, .team-member,
.feature-card, .process-step, .icon-box-modern, .portfolio-item, .info-item,
.contact .info-item, .php-email-form, .card, .journey-body, .contact-form,
.service-card[style], .serviceBox[style] {
  border: 1px solid #dfeae5 !important; border-radius: 20px !important; background: #fff !important;
  box-shadow: 0 8px 28px rgba(29,65,61,.055); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.service-card:hover, .serviceBox:hover, .service-item:hover, .strength-card:hover, .why-card:hover,
.who-card:hover, .solution-group:hover, .journey-stage:hover, .hms-module-card:hover,
.feature-card:hover, .portfolio-item:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(29,65,61,.12); border-color: #bedbd0 !important; }
.serviceBox, .serviceBox.pink { padding: 30px !important; }
.serviceBox .title, .serviceBox h3 { color: #18343b !important; font-size: 1.2rem; }
.serviceBox .cont li { color: #607477; line-height: 1.7; }
.service-card { overflow: hidden; }
.service-card .card-icon, .card-icon, .icon-box-modern .icon, .fi-icon, .strength-icon, .why-icon,
.service-icon, .hms-module-icon, .solution-group-icon {
  color: #167d72 !important; background: #e7f4ef !important; border-radius: 15px !important;
}
.feature-item { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.feature-item h5 { color: #213d41 !important; }
.feature-item p { color: #718384 !important; }
.process-step { padding: 18px 22px !important; margin-bottom: 12px; }
.step-number, .journey-stage-num { color: #188278 !important; -webkit-text-fill-color: #188278 !important; background: #e5f2ec !important; }
.step-content h4, .journey-stage h3 { color: #18343b !important; }
.content-list li { color: #637779; padding-block: 6px; }
.content-list li i, .content-list li::before { color: #21887c !important; }
.portfolio-item { overflow: hidden; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-item:hover img { transform: scale(1.04); }
.who-header { background: #eaf4ef !important; }
.who-body { background: #fff !important; }
.who-header h3, .who-header h4 { color: #18343b !important; }
.journey-stage { padding: 28px !important; }
.solution-group-title { color: #18343b !important; }

/* Distinct section transitions, callouts and page-level spacing. */
.cta-section { margin: 0 !important; padding: 76px 0 !important; background: linear-gradient(125deg,#174950,#16786e) !important; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; width: 420px; height: 420px; right: -100px; top: -210px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.035), 0 0 0 90px rgba(255,255,255,.025); }
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { color: #fff !important; font-size: clamp(2rem,4vw,3.2rem); }
.cta-content p { color: rgba(255,255,255,.76) !important; }
.cta-content .btn-primary { background: #fff !important; color: #176b70 !important; }
.cta-content .btn-ghost { border-color: rgba(255,255,255,.52) !important; }
.btn, a.btn { min-height: 48px; padding: 12px 23px; font-size: .92rem; font-weight: 700; }
.btn-primary, a.btn-primary { background: linear-gradient(125deg,#176b70,#36a58f) !important; border: 0 !important; box-shadow: 0 9px 24px rgba(22,107,100,.2) !important; }
.btn-secondary { background: #e7f2ec !important; color: #176b70 !important; border: 1px solid #cfe2d8 !important; }
.btn-ghost { background: #fff !important; color: #176b70 !important; border: 1px solid #b8d4ca !important; }
.section-title + .row { margin-top: 10px; }
input, textarea, select, .form-control { min-height: 48px; border: 1px solid #d6e4dd !important; border-radius: 12px !important; background: #fbfdfb !important; color: #18343b !important; }
textarea, textarea.form-control { min-height: 140px; }
label, .form-label { color: #354f50; font-weight: 650; }
input:focus, textarea:focus, select:focus, .form-control:focus { border-color: #38a28e !important; box-shadow: 0 0 0 4px rgba(54,165,143,.12) !important; }

/* Homepage values strip and site footer. */
#footer { background: #153b40 !important; }
#footer .footer-top { padding: 76px 0 54px; }
#footer .footer-logo img { border-radius: 12px; }
#footer .footer-heading { color: #fff; }
#footer .footer-desc, #footer .footer-contact-item, #footer .footer-copyright, #footer .footer-credits { color: rgba(255,255,255,.66) !important; }
#footer .footer-links a { color: rgba(255,255,255,.7); }
#footer .footer-links a:hover, #footer a:hover { color: #8fe0ce; }
#footer .footer-divider { border-color: rgba(255,255,255,.13); }
.scroll-top { background: #208b7d !important; border-radius: 50% !important; }

@media (max-width: 991px) {
  #hero.hero-section { min-height: auto !important; }
  #hero #heroCarousel { top: 68px !important; width: 100% !important; height: 360px !important; bottom: auto !important; border-radius: 0 0 28px 28px; opacity: .22; }
  #hero > div[style*="linear-gradient(135deg,rgba(10,14,26"] { background: linear-gradient(180deg,rgba(241,246,242,.62),#f1f6f2 330px) !important; }
  #hero .container { padding-top: 118px !important; }
  #hero .row > .col-lg-5 { display: none !important; }
  .page-title, .page-title[style] { min-height: 300px !important; padding: 105px 0 42px !important; }
}
@media (max-width: 575px) {
  #hero #heroCarousel { height: 300px !important; }
  #hero .container { padding-top: 105px !important; padding-bottom: 56px !important; }
  #hero .hero-title-one-line { font-size: clamp(2.5rem, 12vw, 3.45rem) !important; }
  #hero .row > .col-lg-7 > div[style*="margin-top:3rem"] { gap: 16px !important; }
  #hero .row > .col-lg-7 > div[style*="margin-top:3rem"] > div > div:first-child { font-size: 1.6rem !important; }
  main section { padding-top: 58px !important; padding-bottom: 58px !important; }
  .page-title, .page-title[style] { min-height: 270px !important; }
  .page-title h1 { font-size: clamp(2.15rem, 10vw, 3.2rem) !important; }
  .cta-section { padding: 56px 0 !important; }
}
