/* ==========================================
   NISHANT HOSPITAL — ROYAL BLUE GLOW THEME
   STEP 30A
   ========================================== */

:root{
 --nh-royal:#131f99;
 --nh-deep:#09145d;
 --nh-electric:#1468ff;
 --nh-glow:#68c8ff;
 --nh-glow-soft:rgba(58,151,255,.32);
 --nh-text:#142c62;

 --blue:#174cff;
 --teal:#2365f6;
}

/* General page colors */
body{
 color:var(--nh-text);
 background:#f2f6ff;
}

/* Main header keeps the original logo */
.site-header{
 border-bottom:1px solid rgba(47,112,255,.17);
 box-shadow:0 4px 22px rgba(20,50,149,.07);
}

/* Royal blue navigation */
.site-header .navlinks a:not(.btn):hover{
 color:#1457ef;
}

/* Primary buttons */
.site-header .btn,
.nd29-filter button,
.ndp-btn:not(.ndp-btn-outline),
.nd29-footer a:first-child,
a.nd29-clear:hover{
 background:linear-gradient(
  125deg,
  #08135e 0%,
  #1527a5 45%,
  #166aff 100%
 )!important;
 color:white!important;
 border:1px solid rgba(100,201,255,.65)!important;
 box-shadow:
  0 6px 18px rgba(23,76,220,.23),
  inset 0 1px 0 rgba(255,255,255,.25);
 transition:
  transform .3s ease,
  box-shadow .3s ease,
  filter .3s ease!important;
}

.site-header .btn:hover,
.nd29-filter button:hover,
.ndp-btn:not(.ndp-btn-outline):hover,
.nd29-footer a:first-child:hover{
 transform:translateY(-3px);
 box-shadow:
  0 0 9px rgba(93,190,255,.72),
  0 0 24px rgba(42,113,255,.40),
  0 10px 27px rgba(17,52,170,.27)!important;
 filter:brightness(1.12);
}

/* General public website CTA buttons */
.section a.btn,
.page-hero a.btn,
.ndp-page a.ndp-btn-outline,
.nd29-page a.nd29-clear{
 border-radius:12px;
 transition:
  transform .3s ease,
  box-shadow .3s ease,
  border-color .3s ease;
}

.section a.btn:hover,
.page-hero a.btn:hover,
.ndp-page a.ndp-btn-outline:hover{
 border-color:#70caff!important;
 box-shadow:
  0 0 15px rgba(37,112,255,.38),
  0 10px 28px rgba(27,66,180,.20);
}

/* Doctors listing cards */
.nd29-card{
 border-color:rgba(34,99,240,.20)!important;
 box-shadow:
  0 12px 32px rgba(18,43,130,.11),
  0 0 0 1px rgba(105,176,255,.07)!important;
}

.nd29-card:hover{
 border-color:#59b9ff!important;
 box-shadow:
  0 0 15px rgba(41,128,255,.24),
  0 19px 42px rgba(19,50,154,.21)!important;
}

/* Attractive royal blue card accent */
.nd29-card::before{
 background:linear-gradient(
  90deg,#09145d,#174cff,#73cdff
 )!important;
}

.nd29-category,
.ndp-label{
 color:#164fce!important;
 background:#eaf2ff!important;
}

/* Doctor detail cards */
.ndp-hero,
.ndp-card{
 border-color:rgba(40,94,225,.17)!important;
}

.ndp-photo{
 box-shadow:
  0 0 0 1px rgba(85,168,255,.25),
  0 13px 32px rgba(17,56,146,.14);
}

.ndp-card:hover{
 border-color:#81caff!important;
 box-shadow:
  0 0 16px rgba(35,123,255,.17),
  0 14px 38px rgba(17,49,150,.13)!important;
}

/* Department cards and information panels */
.section .glass,
.page-hero .glass{
 border-color:rgba(54,109,238,.18);
 transition:
  box-shadow .3s ease,
  border-color .3s ease,
  transform .3s ease;
}

.section .glass:hover,
.page-hero .glass:hover{
 border-color:#78c6ff;
 box-shadow:
  0 0 15px rgba(39,117,255,.14),
  0 15px 35px rgba(20,58,156,.11);
}

/* Public page backgrounds */
.nd29-page,
.ndp-page{
 background:linear-gradient(
  145deg,
  #eef5ff 0%,
  #f7faff 45%,
  #e6f0ff 100%
 )!important;
}

/* Search form focus */
.nd29-filter input:focus,
.nd29-filter select:focus{
 outline:none;
 border-color:#377dff;
 box-shadow:0 0 0 4px rgba(49,122,255,.13);
}

/* Department links */
.section a[href*="/departments"]:not(.btn),
.page-hero a[href*="/departments"]:not(.btn){
 transition:color .25s ease,text-shadow .25s ease;
}

.section a[href*="/departments"]:not(.btn):hover,
.page-hero a[href*="/departments"]:not(.btn):hover{
 color:#1258f4;
 text-shadow:0 0 12px rgba(34,112,255,.26);
}

/* Floating call button */
.nh-contact-call{
 background:linear-gradient(
  135deg,#101b8b,#165fff
 )!important;
 border:1px solid #77ceff!important;
 box-shadow:
  0 0 12px rgba(41,143,255,.38),
  0 9px 25px rgba(21,58,154,.28)!important;
}

.nh-contact-call:hover{
 box-shadow:
  0 0 18px rgba(68,161,255,.65),
  0 0 30px rgba(44,116,255,.38)!important;
}

/* WhatsApp remains green for recognition */
.nh-contact-wa{
 box-shadow:
  0 0 0 2px rgba(78,154,255,.16),
  0 10px 25px rgba(20,54,135,.20)!important;
}

/* Footer */
.site-footer{
 background:linear-gradient(
  130deg,
  #06104b 0%,
  #101e83 55%,
  #0a174f 100%
 )!important;
 border-top:2px solid rgba(83,168,255,.55);
 box-shadow:0 -6px 28px rgba(40,107,255,.10);
}

.site-footer a:hover{
 color:#8ad6ff!important;
 text-shadow:0 0 12px rgba(80,190,255,.45);
}

/* Accessible keyboard focus */
.site-header a:focus-visible,
.nd29-card a:focus-visible,
.ndp-page a:focus-visible{
 outline:3px solid #69caff;
 outline-offset:4px;
}

/* Responsive glow */
@media(max-width:760px){
 .nd29-card:hover,
 .ndp-card:hover{
  box-shadow:0 10px 30px rgba(20,56,155,.13)!important;
 }
}

/* Reduced motion accessibility */
@media(prefers-reduced-motion:reduce){
 .site-header .btn,
 .nd29-filter button,
 .ndp-btn,
 .nd29-card,
 .ndp-card{
  transition:none!important;
 }
}

/* ==============================================
   NISHANT_ROYAL_BLUE_30B2
   Royal Blue Glow — Department & CTA Polish
   ============================================== */

:root{
 --nh-royal-dark:#09145d;
 --nh-royal-mid:#1424a0;
 --nh-electric-blue:#1768ff;
 --nh-edge-glow:#75cbff;
 --nh-border-glow:rgba(62,143,255,.42);
}

/* 1. GLOBAL BUTTON DESIGN */

.site-header .navlinks .btn,
.home-section .btn,
.page-hero .btn,
.section .btn,
.home-dept-link,
.department-card .card-link,
.nd29-footer a:first-child,
.ndp-btn:not(.ndp-btn-outline){
 background:linear-gradient(
  120deg,
  #08145d 0%,
  #192aa8 48%,
  #1768ff 100%
 )!important;

 color:#fff!important;
 border:1px solid #70c6ff!important;
 border-radius:13px!important;

 box-shadow:
  inset 0 1px 0 rgba(255,255,255,.32),
  0 5px 15px rgba(28,75,205,.24),
  0 0 12px rgba(43,125,255,.17)!important;

 transition:
  transform .3s ease,
  box-shadow .3s ease,
  filter .3s ease!important;
}

/* Glow on hover */

.site-header .navlinks .btn:hover,
.home-section .btn:hover,
.page-hero .btn:hover,
.section .btn:hover,
.home-dept-link:hover,
.department-card .card-link:hover,
.nd29-footer a:first-child:hover,
.ndp-btn:not(.ndp-btn-outline):hover{
 transform:translateY(-3px)!important;
 filter:brightness(1.13);

 box-shadow:
  inset 0 1px 0 rgba(255,255,255,.42),
  0 0 10px rgba(96,196,255,.85),
  0 0 26px rgba(40,117,255,.52),
  0 12px 28px rgba(17,42,145,.25)!important;
}

/* 2. DEPARTMENT LISTING — CARD LAYOUT */

.department-grid{
 align-items:stretch;
 gap:24px;
}

.department-card{
 position:relative;
 display:flex;
 flex-direction:column;
 min-width:0;
 overflow:hidden!important;
 border:1px solid rgba(69,137,255,.25)!important;
 border-radius:23px!important;
 background:#fff!important;

 box-shadow:
  0 12px 30px rgba(18,50,145,.11),
  0 0 0 1px rgba(115,186,255,.08)!important;

 transition:
  transform .35s ease,
  box-shadow .35s ease,
  border-color .35s ease!important;
}

.department-card:hover{
 transform:translateY(-7px);
 border-color:#68c6ff!important;

 box-shadow:
  0 0 16px rgba(49,139,255,.25),
  0 0 29px rgba(40,112,255,.13),
  0 20px 42px rgba(20,54,145,.18)!important;
}

/* Image must stay inside its own container */

.department-card .department-image{
 position:relative;
 display:block;
 flex:0 0 auto;
 width:100%;
 height:245px;
 overflow:hidden;
 margin:0;
 background:linear-gradient(135deg,#e4edff,#bcd9ff);
}

.department-card .department-image img{
 display:block;
 width:100%;
 height:100%;
 object-fit:cover;
 object-position:center center;
 transform:scale(1);
 transition:transform .75s cubic-bezier(.2,.7,.2,1);
}

.department-card:hover .department-image img{
 transform:scale(1.08);
}

/* Text is below the image — no overlap */

.department-card .card-body{
 position:relative;
 z-index:2;
 display:flex;
 flex-direction:column;
 flex:1;
 min-width:0;
 padding:21px!important;
 background:#fff!important;
}

.department-card .card-body h2,
.department-card .card-body h3{
 position:static!important;
 color:#142e6c!important;
 font-size:21px;
 line-height:1.35;
 margin:0 0 11px;
 text-shadow:none!important;
}

.department-card .card-body p{
 position:static!important;
 margin:0 0 17px;
 color:#5b7091;
 font-size:14px;
 line-height:1.75;
}

.department-card .card-link{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 align-self:flex-start;
 width:auto;
 padding:11px 16px;
 margin-top:auto;
 font-size:13px;
 font-weight:800;
 text-decoration:none;
}

/* 3. DEPARTMENT DETAIL PAGE */

.page-hero{
 background:linear-gradient(
  115deg,
  #edf4ff 0%,
  #e4edff 55%,
  #dbeaff 100%
 )!important;
}

.detail-photo{
 border-radius:22px;
 border:2px solid rgba(77,157,255,.45);

 box-shadow:
  0 0 17px rgba(55,132,255,.19),
  0 18px 40px rgba(24,55,145,.12)!important;

 transition:
  transform .45s ease,
  box-shadow .45s ease;
}

.detail-photo:hover{
 transform:scale(1.025);

 box-shadow:
  0 0 23px rgba(63,148,255,.35),
  0 20px 45px rgba(20,60,149,.18)!important;
}

.detail-placeholder{
 background:linear-gradient(
  135deg,#dceaff,#b6d6ff
 )!important;
 color:#1854e8!important;
 border-radius:20px;
}

/* 4. HOMEPAGE DEPARTMENT LINKS */

.home-dept-link{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 align-self:flex-start;
 padding:10px 17px;
 margin-top:13px;
 font-size:13px;
 font-weight:800;
 text-decoration:none;
}

.home-section .center-action .btn{
 padding:14px 23px;
 font-weight:800;
}

/* 5. DEPARTMENT AND INFORMATION PANELS */

.section .glass,
.detail-content .content-panel,
.detail-content .contact-panel{
 border:1px solid rgba(60,133,255,.22)!important;
 border-radius:21px;

 box-shadow:
  0 12px 35px rgba(21,56,145,.08),
  0 0 0 1px rgba(110,181,255,.05)!important;
}

.section .glass:hover,
.detail-content .content-panel:hover,
.detail-content .contact-panel:hover{
 border-color:#80caff!important;
 box-shadow:
  0 0 14px rgba(65,140,255,.16),
  0 16px 37px rgba(23,55,154,.12)!important;
}

/* 6. ROYAL BLUE TYPOGRAPHY ACCENTS */

.section-heading,
.page-hero h1,
.home-section h2{
 color:#122b6d;
}

.eyebrow{
 color:#2356e7;
}

/* 7. FLOATING CALL BUTTON */

.nh-contact-call{
 background:linear-gradient(
  125deg,#0b1673,#1759f5
 )!important;

 border:1px solid #78caff!important;

 box-shadow:
  0 0 13px rgba(74,157,255,.35),
  0 9px 26px rgba(20,51,143,.25)!important;
}

.nh-contact-call:hover{
 box-shadow:
  0 0 14px rgba(89,182,255,.80),
  0 0 29px rgba(39,115,255,.48)!important;
}

/* 8. FOOTER */

.site-footer{
 background:linear-gradient(
  130deg,
  #060e45 0%,
  #101b77 55%,
  #0a154c 100%
 )!important;

 border-top:2px solid rgba(109,192,255,.65);

 box-shadow:
  0 -5px 24px rgba(29,87,255,.12);
}

/* 9. MOBILE OPTIMIZATION */

@media(max-width:760px){

 .department-card .department-image{
  height:215px;
 }

 .department-card .card-body{
  padding:18px!important;
 }

 .department-card .card-body h2,
 .department-card .card-body h3{
  font-size:19px;
 }

 .department-card .card-link{
  padding:10px 14px;
 }

 .detail-photo:hover{
  transform:none;
 }
}

/* 10. ACCESSIBILITY */

.department-card a:focus-visible,
.home-dept-link:focus-visible,
.page-hero a:focus-visible{
 outline:3px solid #68c8ff;
 outline-offset:4px;
}

@media(prefers-reduced-motion:reduce){

 .department-card,
 .department-card .department-image img,
 .detail-photo,
 .home-dept-link,
 .department-card .card-link{
  transition:none!important;
 }

 .department-card:hover,
 .department-card:hover .department-image img,
 .detail-photo:hover{
  transform:none!important;
 }
}

/* ===========================================
   NISHANT_HOME_DEPT_FIX_30C
   Homepage Department Card Overlap Fix
   =========================================== */

/* Only cards containing the homepage department link */
.home-section article:has(.home-dept-link){
 position:relative;
 display:flex!important;
 flex-direction:column!important;
 height:100%;
 overflow:hidden!important;
 border:1px solid rgba(74,150,255,.32)!important;
 border-radius:24px!important;
 background:#fff!important;
 box-shadow:0 12px 30px rgba(15,48,155,.11)!important;
 transition:
   transform .35s ease,
   border-color .35s ease,
   box-shadow .35s ease!important;
}

/* Image wrapper */
.home-section article:has(.home-dept-link) > div:has(img){
 position:relative!important;
 display:block;
 width:100%;
 height:240px!important;
 min-height:240px!important;
 flex:0 0 240px!important;
 padding:0!important;
 margin:0!important;
 overflow:hidden!important;
 border-radius:0!important;
 background:#e2efff;
}

/* Image fills the top area */
.home-section article:has(.home-dept-link) img{
 display:block;
 width:100%!important;
 height:100%!important;
 object-fit:cover!important;
 object-position:center!important;
 transform:scale(1);
 transition:transform .7s cubic-bezier(.2,.7,.2,1);
}

/* Text must remain below the image */
.home-section article:has(.home-dept-link) h2,
.home-section article:has(.home-dept-link) h3,
.home-section article:has(.home-dept-link) p{
 position:static!important;
 top:auto!important;
 bottom:auto!important;
 left:auto!important;
 right:auto!important;
 transform:none!important;
 float:none!important;
 text-shadow:none!important;
}

/* Restore normal content flow */
.home-section article:has(.home-dept-link) > div:has(.home-dept-link){
 position:relative!important;
 display:flex!important;
 flex-direction:column!important;
 flex:1;
 min-width:0;
 padding:23px!important;
 margin:0!important;
 background:#fff!important;
}

/* Department heading */
.home-section article:has(.home-dept-link) h2,
.home-section article:has(.home-dept-link) h3{
 color:#132C6B!important;
 font-size:21px!important;
 font-weight:800!important;
 line-height:1.35!important;
 margin:0 0 12px!important;
 padding:0!important;
}

/* Department description */
.home-section article:has(.home-dept-link) p{
 color:#567092!important;
 font-size:14px!important;
 line-height:1.75!important;
 margin:0 0 18px!important;
 padding:0!important;
}

/* Royal Blue button stays at card bottom */
.home-section article:has(.home-dept-link) .home-dept-link{
 position:relative!important;
 display:inline-flex!important;
 align-items:center;
 justify-content:center;
 align-self:flex-start;
 width:fit-content;
 max-width:100%;
 margin-top:auto!important;
 padding:12px 18px!important;
 line-height:1.4;
 white-space:normal;
 color:#fff!important;
 text-decoration:none;
}

/* Hover: glow and image zoom */
@media(hover:hover){
 .home-section article:has(.home-dept-link):hover{
  transform:translateY(-7px)!important;
  border-color:#70CCFF!important;
  box-shadow:
    0 0 18px rgba(50,142,255,.30),
    0 20px 42px rgba(13,48,148,.19)!important;
 }

 .home-section article:has(.home-dept-link):hover img{
  transform:scale(1.07);
 }
}

/* Mobile */
@media(max-width:767px){
 .home-section article:has(.home-dept-link) > div:has(img){
  height:220px!important;
  min-height:220px!important;
  flex-basis:220px!important;
 }

 .home-section article:has(.home-dept-link) > div:has(.home-dept-link){
  padding:19px!important;
 }

 .home-section article:has(.home-dept-link) h2,
 .home-section article:has(.home-dept-link) h3{
  font-size:19px!important;
 }

 .home-section article:has(.home-dept-link) .home-dept-link{
  font-size:13px!important;
 }
}

/* Accessibility */
@media(prefers-reduced-motion:reduce){
 .home-section article:has(.home-dept-link),
 .home-section article:has(.home-dept-link) img{
  transition:none!important;
 }

 .home-section article:has(.home-dept-link):hover,
 .home-section article:has(.home-dept-link):hover img{
  transform:none!important;
 }
}
