/* Hospital branding logo + name */
.khhims-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

/* Page loader with hospital logo */
#loader-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9fc 100%) !important;
}

#loader {
  width: 280px;
  height: auto;
  margin-left: -140px;
  margin-top: -150px;
}

.loader-inner {
  width: 280px;
  height: auto;
  background: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.khhims-loader-spin-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}

.khhims-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #00a3c8;
  border-right-color: #1a3a5c;
  animation: khhims-loader-ring-ltr 1.6s linear infinite;
}

.khhims-loader-ring-2 {
  inset: 12px;
  border: 4px solid transparent;
  border-bottom-color: #00c4e8;
  border-left-color: #2d6a8f;
  animation: khhims-loader-ring-rtl 2.2s linear infinite;
}

.khhims-loader-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  transform-style: preserve-3d;
  backface-visibility: visible;
  filter: drop-shadow(0 8px 18px rgba(0, 163, 200, 0.4));
  animation: khhims-loader-spin-ltr 2.4s ease-in-out infinite;
}

@keyframes khhims-loader-spin-ltr {
  0% {
    transform: rotateY(-180deg) scale(0.92);
    opacity: 0.7;
  }
  25% {
    transform: rotateY(-90deg) scale(0.98);
    opacity: 0.9;
  }
  50% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
  75% {
    transform: rotateY(90deg) scale(0.98);
    opacity: 0.9;
  }
  100% {
    transform: rotateY(180deg) scale(0.92);
    opacity: 0.7;
  }
}

@keyframes khhims-loader-ring-ltr {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes khhims-loader-ring-rtl {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.khhims-loader-text {
  margin: 20px 0 0;
  color: #c41e3a;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: khhims-loader-text-fade 2.4s ease-in-out infinite;
}

.khhims-loader-subtext {
  margin: 8px 0 0;
  color: #00a3c8;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  animation: khhims-loader-blink 1.4s ease-in-out infinite;
}

@keyframes khhims-loader-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes khhims-loader-text-fade {
  0%, 100% { opacity: 0.7; transform: translateX(-4px); }
  50% { opacity: 1; transform: translateX(4px); }
}

.khhims-brand-img {
  display: block;
  height: 56px;
  width: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.khhims-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}

.khhims-brand-name {
  color: #1a3a5c;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  white-space: nowrap;
}

.khhims-brand-tag {
  color: #6b7280;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 3px;
  white-space: nowrap;
}

.khhims-brand-footer .khhims-brand-name {
  color: #fff;
}

.khhims-brand-footer .khhims-brand-tag {
  color: rgba(255, 255, 255, 0.8);
}

.khhims-brand-footer .khhims-brand-img {
  height: 60px;
  width: 60px;
}

.wsmainfull {
  height: auto !important;
  min-height: 72px;
}

.desktoplogo {
  max-width: none;
  padding: 8px 0 6px !important;
  overflow: visible !important;
}

.desktoplogo .khhims-brand {
  padding: 0;
}

.wsmobileheader .khhims-brand {
  max-width: calc(100% - 100px);
}

.wsmobileheader .khhims-brand-name {
  font-size: 0.72rem;
}

.wsmobileheader .khhims-brand-tag {
  font-size: 0.48rem;
  letter-spacing: 0.4px;
}

.wsmobileheader .khhims-brand-img {
  height: 40px;
  width: 40px;
}

@media (max-width: 991px) {
  .wsmobileheader .khhims-brand-text {
    display: flex;
  }

  .wsmobileheader .smllogo {
    margin-top: 8px !important;
  }

  .wsmobileheader {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .wsmobileheader .callusbtn {
    right: 14px !important;
  }

  .wsmobileheader .wsanimated-arrow {
    left: 14px !important;
  }

  #about-1,
  #about-2,
  #about-3 {
    margin-top: 0 !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .khhims-brand-name {
    font-size: 0.95rem;
  }

  .khhims-brand-tag {
    font-size: 0.55rem;
  }

  .khhims-brand-img {
    height: 50px;
    width: 50px;
  }
}

/* Hospital hero background */
#hero-1 {
  position: relative;
  background-image: url(../images/hospital-bg.png) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  min-height: 580px;
  padding-top: 80px;
  padding-bottom: 120px;
  margin-bottom: 0;
}

#hero-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 1;
}

#hero-1 .container {
  position: relative;
  z-index: 2;
}

#hero-1 .hero-1-img {
  display: none;
}

#hero-1 .hero-txt {
  margin-top: 0 !important;
  max-width: 720px;
}

#hero-1 .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  #hero-1 .hero-txt {
    max-width: 650px;
    margin-left: 0;
    margin-right: auto;
  }
}

/* Keep department tabs matching MedService demo with icons on all screens */
#tabs-1 #pills-tab {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#tabs-1 .nav-item {
  width: auto !important;
  margin: 0 !important;
  text-align: center;
}

#tabs-1 .nav-pills .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

#tabs-1 .nav-pills .nav-link span {
  display: inline-block !important;
  float: none !important;
  margin-top: 0 !important;
  margin-right: 0 !important;
}

#tabs-1 .nav-pills .icon-xs [class*="flaticon-"]:before,
#tabs-1 .nav-pills .icon-xs [class*="flaticon-"]:after {
  font-size: 2.5rem;
  line-height: 1 !important;
}

#tabs-1 .nav-pills .nav-link.active,
#tabs-1 .nav-pills .nav-link.active:hover {
  background-color: #00a3c8;
  border-color: #00a3c8;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 163, 200, 0.35);
}

#tabs-1 .nav-pills .nav-link.active [class*="flaticon-"]:before,
#tabs-1 .nav-pills .nav-link.active [class*="flaticon-"]:after {
  color: #fff;
}

@media (min-width: 992px) {
  #tabs-1 #pills-tab {
    gap: 8px;
  }

  #tabs-1 .nav-pills .nav-link {
    font-size: 0.82rem;
    padding: 12px 14px;
  }

  #tabs-1 .nav-pills .icon-xs [class*="flaticon-"]:before,
  #tabs-1 .nav-pills .icon-xs [class*="flaticon-"]:after {
    font-size: 2rem;
  }
}

#tabs-1 .tab-img img,
#tabs-1 .tab-imgs img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: #f8fafb;
  box-shadow: 0 10px 28px rgba(26, 58, 92, 0.1);
}

@media (max-width: 767px) {
  #hero-1 {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 56px;
    text-align: center;
  }

  #hero-1::before {
    background: rgba(255, 255, 255, 0.78);
  }

  #about-1,
  #about-2,
  #about-3 {
    margin-top: 0 !important;
    padding-top: 24px;
  }

  #about-1 .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
  }

  #about-1 #abox-1 {
    border-radius: 6px 6px 0 0;
  }

  #about-1 #abox-4 {
    border-radius: 0 0 6px 6px;
  }

  #tabs-1 #pills-tab {
    flex-direction: column;
    width: 100%;
  }

  #tabs-1 .nav-item {
    width: 100% !important;
  }

  #tabs-1 .nav-pills .nav-link {
    width: 100%;
    padding: 14px 20px;
  }
}

/* About boxes - hover light-up animation */
#about-1 .row.d-flex.align-items-center {
  align-items: flex-end !important;
  overflow: visible;
}

#about-1 #abox-1,
#about-1 #abox-2,
#about-1 #abox-3,
#about-1 #abox-4 {
  position: relative;
  transition: background-color 0.45s ease, transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.45s ease;
  cursor: pointer;
  z-index: 1;
}

#about-1 #abox-1 .abox-1,
#about-1 #abox-2 .abox-1,
#about-1 #abox-3 .abox-1,
#about-1 #abox-4 .abox-1 {
  transition: height 0.45s ease, padding 0.45s ease;
}

#about-1 #abox-1:hover,
#about-1 #abox-2:hover,
#about-1 #abox-3:hover,
#about-1 #abox-4:hover {
  background-color: #ff4081 !important;
  transform: translateY(-22px);
  box-shadow: 0 20px 45px rgba(255, 64, 129, 0.45);
  z-index: 5;
}

#about-1 #abox-1:hover .abox-1,
#about-1 #abox-2:hover .abox-1,
#about-1 #abox-3:hover .abox-1,
#about-1 #abox-4:hover .abox-1 {
  height: 340px;
}

@media (max-width: 991px) {
  #about-1 #abox-1:hover,
  #about-1 #abox-2:hover,
  #about-1 #abox-3:hover,
  #about-1 #abox-4:hover {
    transform: translateY(-10px);
  }

  #about-1 #abox-1:hover .abox-1,
  #about-1 #abox-2:hover .abox-1,
  #about-1 #abox-3:hover .abox-1,
  #about-1 #abox-4:hover .abox-1 {
    height: auto;
    min-height: 320px;
  }
}

/* Header address link */
.headtoppart .address a {
  color: inherit;
  text-decoration: none;
}

.headtoppart .address a:hover {
  text-decoration: underline;
}

/* ============================================================
   KHHIMS Footer – Holy Family Hospital style
   ============================================================ */
#footer-1.khhims-footer {
  background-color: #1a2d5a;
  color: #ffffff;
  padding: 50px 0 0;
  margin-top: 0;
}

#footer-1.khhims-footer .container {
  max-width: 1140px;
}

/* Top row */
.khhims-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.khhims-footer-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5c842 0%, #e8a820 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  flex-shrink: 0;
}

.khhims-footer-emblem {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* Footer nav */
.khhims-footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.khhims-footer-nav a {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.khhims-footer-nav a:hover {
  color: #f5c842;
}

/* Social icons */
.khhims-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.kfh-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.kfh-social:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #ffffff;
}

.kfh-facebook { background-color: #3b5998; }
.kfh-twitter { background-color: #1da1f2; }
.kfh-instagram { background-color: #e4405f; }
.kfh-linkedin { background-color: #0077b5; }

/* Start a conversation */
.khhims-footer-conversation {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.kfh-heading {
  color: #f5c842;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.kfh-divider {
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.55);
}

/* Contact row */
.khhims-footer-contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  padding-bottom: 28px;
}

.kfh-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.kfh-contact-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.kfh-contact-label {
  color: #f5c842;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.kfh-contact-text {
  display: block;
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 400;
  text-decoration: none;
}

.kfh-contact-text.kfh-contact-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
}

.kfh-time {
  font-weight: 500;
}

.khhims-footer-intro {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.65;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.kfh-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #ffffff;
}

a.kfh-contact-text:hover {
  color: #f5c842;
  text-decoration: underline;
}

/* Copyright bar */
.khhims-footer-copyright {
  background-color: #152448;
  padding: 16px 20px;
  text-align: center;
}

.khhims-footer-copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}

.khhims-footer-copyright span {
  color: #5eb8f0;
  font-weight: 600;
}

.khhims-footer-staff {
  margin-bottom: 8px !important;
}

.khhims-footer-staff a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.khhims-footer-staff a:hover {
  color: #5eb8f0;
}

/* Floating chat button */
.khhims-chat-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.khhims-chat-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

/* Footer responsive */
@media (max-width: 991px) {
  .khhims-footer-top {
    justify-content: center;
    text-align: center;
  }

  .khhims-footer-nav ul {
    gap: 6px 16px;
  }

  .khhims-footer-contact {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .kfh-contact-item {
    min-width: 100%;
  }
}

@media (max-width: 575px) {
  #footer-1.khhims-footer {
    padding-top: 36px;
  }

  .khhims-footer-contact {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .khhims-footer-nav a {
    font-size: 0.65rem;
    letter-spacing: 0.8px;
  }

  .khhims-footer-nav ul {
    gap: 4px 12px;
  }

  .kfh-heading {
    font-size: 0.72rem;
  }

  .kfh-contact-text {
    font-size: 0.82rem;
  }
}

/* Hospital photo gallery – info-2 section */
.khhims-hospital-gallery {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

.khhims-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
}

.khhims-gallery-cell {
  overflow: hidden;
  border-radius: 4px;
  background: #eef4f8;
  min-height: 0;
}

.khhims-gallery-top,
.khhims-gallery-bottom {
  min-height: 150px;
}

.khhims-gallery-main {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 312px;
}

.khhims-gallery-cell img {
  width: 100% !important;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
  position: relative !important;
}

.khhims-gallery-top img {
  object-position: 12% center;
}

.khhims-gallery-bottom img {
  object-position: 88% center;
}

.khhims-gallery-main img {
  object-position: center center;
}

.khhims-gallery-badge {
  position: absolute;
  left: 4%;
  bottom: -6px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #1977cc;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow:
    0 0 0 10px rgba(25, 119, 204, 0.14),
    0 0 0 20px rgba(25, 119, 204, 0.07);
  z-index: 2;
}

/* About section hospital photo slider */
.khhims-hospital-slider-wrap {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 99, 175, 0.15);
}

.khhims-hospital-slider .khhims-hospital-slide {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #1a2d5a;
}

.khhims-hospital-slider .khhims-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.khhims-hospital-slider .khhims-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 30px 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.78) 100%);
  z-index: 1;
}

.khhims-hospital-slider .khhims-slide-tag {
  display: inline-block;
  align-self: flex-start;
  background: #00a3c8;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.khhims-hospital-slider .khhims-slide-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  max-width: 98%;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.khhims-hospital-slider .khhims-slide-text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  max-width: 95%;
}

.khhims-slide-left {
  object-position: 18% center;
}

.khhims-slide-right {
  object-position: 82% center;
}

.khhims-hospital-slider .owl-nav {
  display: none !important;
}

.khhims-hospital-slider .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
}

.khhims-hospital-slider .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 4px 5px;
  background: rgba(255, 255, 255, 0.55);
}

.khhims-hospital-slider .owl-dot.active span,
.khhims-hospital-slider .owl-dot:hover span {
  background: #00a3c8;
}

/* About section hospital photo (static fallback) */
.khhims-about-hospital {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 99, 175, 0.15);
}

.khhims-about-hospital img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .khhims-hospital-slider .khhims-hospital-slide {
    height: 360px;
  }

  .khhims-hospital-slider .khhims-slide-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 767px) {
  .khhims-hospital-slider .khhims-hospital-slide {
    height: 300px;
  }

  .khhims-hospital-slider .khhims-slide-overlay {
    padding: 20px 18px 32px;
  }

  .khhims-hospital-slider .khhims-slide-title {
    font-size: 1.15rem;
  }

  .khhims-hospital-slider .khhims-slide-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 991px) {
  .khhims-gallery-grid {
    max-width: 460px;
  }

  .khhims-gallery-top,
  .khhims-gallery-bottom {
    min-height: 120px;
  }

  .khhims-gallery-main {
    min-height: 252px;
  }
}

@media (max-width: 767px) {
  .khhims-gallery-grid {
    max-width: 100%;
    gap: 10px;
  }

  .khhims-gallery-badge {
    width: 58px;
    height: 58px;
    font-size: 1.3rem;
    left: 0;
    bottom: -4px;
  }
}

/* About Us breadcrumb – hospital background */
#breadcrumb.khhims-breadcrumb {
  position: relative;
  background-image: url(../images/hospital-bg.png) !important;
  background-size: cover !important;
  background-position: center center !important;
  padding: 0;
}

#breadcrumb.khhims-breadcrumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  z-index: 0;
}

#breadcrumb.khhims-breadcrumb .container {
  position: relative;
  z-index: 1;
}

#breadcrumb.khhims-breadcrumb .breadcrumb-holder {
  padding-top: 48px;
  padding-bottom: 52px;
}

/* Hero "More About Hospital" button */
#hero-1 .khhims-hero-cta {
  display: inline-block;
  padding: 15px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 163, 200, 0.35);
  margin-top: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#hero-1 .khhims-hero-cta:hover {
  box-shadow: 0 10px 28px rgba(14, 142, 171, 0.45);
  transform: translateY(-2px);
}

/* Keep mega menu panels out of page flow until opened (template safety) */
.wsmenu > .wsmenu-list > li > .wsmegamenu {
  pointer-events: none;
}

.wsmenu > .wsmenu-list > li:hover > .wsmegamenu {
  pointer-events: auto;
}

/* Owl carousel: avoid broken multi-slide strip before JS init */
.services-holder:not(.owl-loaded),
.khhims-hospital-slider:not(.owl-loaded),
.reviews-holder:not(.owl-loaded) {
  display: block !important;
}

.services-holder:not(.owl-loaded) .sbox-3:not(:first-child),
.khhims-hospital-slider:not(.owl-loaded) .khhims-hospital-slide:not(:first-child) {
  display: none !important;
}

/* Desktop hero spacing under fixed header */
@media (min-width: 992px) {
  #hero-1.hero-section {
    margin-top: 0;
    padding-top: 100px;
  }

  #about-1 {
    margin-top: -80px;
  }
}

/* Opening hours – department photos on the side (auto-rotate) */
#info-8 {
  overflow: hidden;
}

.info-8-img {
  display: block !important;
  background-image: none !important;
  background-color: #f4f8fa;
  overflow: hidden;
}

.info-8-img .khhims-info8-dept-slider {
  height: 100%;
  min-height: 100%;
}

.info-8-img .khhims-info8-dept-slider:not(.owl-loaded) {
  display: flex;
  overflow: hidden;
}

.info-8-img .khhims-info8-dept-slider:not(.owl-loaded) .khhims-info8-dept-slide:not(:first-child) {
  display: none;
}

.info-8-img .owl-stage-outer,
.info-8-img .owl-stage,
.info-8-img .owl-item,
.info-8-img .khhims-info8-dept-slide {
  height: 100%;
}

.khhims-info8-dept-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 40px 32px 48px;
  box-sizing: border-box;
  min-height: 380px;
}

.khhims-info8-dept-slide img {
  width: 100%;
  max-width: 640px;
  height: auto;
  max-height: min(520px, 72vh);
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(26, 58, 92, 0.12);
}

.info-8-img .owl-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: 0;
}

.info-8-img .owl-dots .owl-dot span {
  background: rgba(0, 163, 200, 0.35);
}

.info-8-img .owl-dots .owl-dot.active span,
.info-8-img .owl-dots .owl-dot:hover span {
  background: #00a3c8;
}

@media (max-width: 991px) {
  .info-8-img {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    top: auto !important;
    bottom: auto !important;
    margin-top: 24px;
    min-height: 320px;
  }

  .khhims-info8-dept-slide {
    padding: 24px 20px 48px;
    min-height: 280px;
  }
}


/* Statistics section – fix invisible white text (missing statistic.jpg) */
#statistic-1 {
  position: relative;
  background-image: url(../images/hospital-bg.png) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: scroll !important;
  padding-top: 80px !important;
  padding-bottom: 50px !important;
}

#statistic-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 110, 171, 0.92) 0%, rgba(0, 163, 200, 0.88) 100%);
  z-index: 0;
}

#statistic-1 .container {
  position: relative;
  z-index: 1;
}

#statistic-1 .statistic-block {
  margin-bottom: 30px;
}

#statistic-1 .statistic-block [class*="flaticon-"]::before,
#statistic-1 .statistic-block [class*="flaticon-"]::after {
  color: #ffffff !important;
}

#statistic-1 .statistic-number,
#statistic-1 .statistic-number .count-element,
#statistic-1 .txt-400 {
  color: #ffffff !important;
}

#statistic-1 .txt-400 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 1;
}

/* Banner sections – fix invisible white text (missing banner JPGs) */
#banner-7 {
  position: relative;
  background-image: url(../images/hospital-bg.png) !important;
  background-size: cover !important;
  background-position: center center !important;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

#banner-7::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 110, 171, 0.9) 0%, rgba(0, 163, 200, 0.85) 100%);
  z-index: 0;
}

#banner-7 .container {
  position: relative;
  z-index: 1;
}

#banner-7 .banner-txt h2,
#banner-7 .banner-txt p {
  color: #ffffff !important;
}

#banner-2 .bg-image.bg-inner {
  position: relative;
  background-image: url(../images/hospital-bg.png) !important;
  background-size: cover !important;
  background-position: center center !important;
  padding-top: 70px;
  padding-bottom: 70px;
}

#banner-2 .bg-image.bg-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 110, 171, 0.9) 0%, rgba(0, 163, 200, 0.85) 100%);
  z-index: 0;
}

#banner-2 .bg-image.bg-inner > .container {
  position: relative;
  z-index: 1;
}

#banner-2 .banner-txt h3,
#banner-2 .banner-txt p,
#banner-2 .section-id.id-color {
  color: #ffffff !important;
}

#banner-2 .banner-2-img img {
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Video section – visible hospital preview image */
#video-1 .video-preview img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(16, 99, 175, 0.2);
  object-fit: cover;
  min-height: 280px;
}

/* Qualified Doctors (info-6) – hospital photo (no stock doctor placeholder) */
#info-6 .info-6-img {
  background-image: url(../images/hospital-bg.png) !important;
  background-size: cover;
  background-position: center center;
}

#info-6 .info-6-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 163, 200, 0.15) 0%, rgba(0, 163, 200, 0.55) 100%);
  pointer-events: none;
}

/* Director's Message – portrait + message layout */
.khhims-director-section {
  position: relative;
  padding-top: 90px;
  padding-bottom: 90px;
  background: linear-gradient(135deg, #eef6fc 0%, #f8fbfe 45%, #ffffff 100%);
  overflow: hidden;
}

.khhims-director-bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.khhims-director-deco-cross {
  position: absolute;
  top: 8%;
  right: 6%;
  font-size: 12rem;
  color: rgba(14, 110, 171, 0.06);
  transform: rotate(45deg);
  line-height: 1;
}

.khhims-director-deco-hospital {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 42%;
  max-width: 480px;
  height: 55%;
  background: url(../images/hospital-bg.png) no-repeat bottom right;
  background-size: contain;
  opacity: 0.08;
}

.khhims-director-section .container {
  position: relative;
  z-index: 1;
}

.khhims-director-grid {
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  gap: 48px 56px;
  align-items: start;
}

.khhims-director-portrait {
  position: relative;
}

.khhims-director-photo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 16px 48px rgba(14, 110, 171, 0.22);
}

.khhims-director-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 30% 70%, rgba(0, 163, 200, 0.35), transparent 65%);
  z-index: -1;
  filter: blur(8px);
}

.khhims-director-photo-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.khhims-director-name-card {
  position: absolute;
  left: 0;
  bottom: 24px;
  max-width: 88%;
  background: linear-gradient(135deg, #0e4d82 0%, #1565a8 100%);
  border-radius: 8px;
  padding: 18px 20px 16px;
  box-shadow: 0 10px 28px rgba(14, 77, 130, 0.35);
  color: #ffffff;
}

.khhims-director-name-card-quote {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.khhims-director-name-card-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.khhims-director-name-card-degree {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.khhims-director-name-card-role {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #7dd3f0;
}

.khhims-director-name-card-role--alt {
  font-size: 0.88rem;
  color: rgba(125, 211, 240, 0.85);
  margin-bottom: 6px;
}

.khhims-director-name-card-org {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  padding-right: 28px;
}

.khhims-director-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.khhims-director-label-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1a3a5c;
  white-space: nowrap;
}

.khhims-director-label-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #0e6eab 0%, #0e6eab 70%, transparent 100%);
  max-width: 120px;
}

.khhims-director-label-pulse {
  color: #28a745;
  font-size: 1.25rem;
  line-height: 1;
}

.khhims-director-headline-bar {
  display: block;
  width: 56px;
  height: 4px;
  background: #0e6eab;
  border-radius: 2px;
  margin-bottom: 16px;
}

.khhims-director-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 700;
  color: #1a3a5c;
  line-height: 1.25;
  margin: 0 0 24px;
}

.khhims-director-body p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #4a5f73;
  margin: 0 0 16px;
}

.khhims-director-body p:last-child {
  margin-bottom: 0;
}

.khhims-director-signoff {
  margin-top: 28px;
  padding-top: 8px;
}

.khhims-director-signature {
  display: block;
  margin-bottom: 8px;
  max-width: 200px;
  height: auto;
}

.khhims-director-signoff-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a5c;
}

.khhims-director-signoff-degree {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #4a5f73;
}

.khhims-director-signoff-role {
  margin: 6px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0e6eab;
}

.khhims-director-signoff-role--alt {
  margin-top: 2px;
  font-weight: 600;
  color: #5a8fb8;
}

@media (max-width: 991px) {
  .khhims-director-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 560px;
    margin: 0 auto;
  }

  .khhims-director-portrait {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .khhims-director-content {
    width: 100%;
  }

  .khhims-director-deco-hospital {
    width: 70%;
    opacity: 0.05;
  }
}

@media (max-width: 575px) {
  .khhims-director-section {
    padding-top: 65px;
    padding-bottom: 70px;
  }

  .khhims-director-name-card {
    position: relative;
    bottom: auto;
    left: auto;
    max-width: 100%;
    margin-top: -32px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .khhims-director-deco-cross {
    font-size: 8rem;
    top: 2%;
  }
}

/* Leadership messages – alternating card layout */
.khhims-messages-section {
  padding-top: 80px;
  padding-bottom: 90px;
  background: #f4f7fa;
}

.khhims-message-cards {
  max-width: 1140px;
  margin: 0 auto;
}

.khhims-message-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(26, 58, 92, 0.12);
  margin-bottom: 32px;
  overflow: hidden;
  min-height: 280px;
}

.khhims-message-card:last-child {
  margin-bottom: 0;
}

.khhims-message-card--reverse {
  flex-direction: row-reverse;
}

.khhims-message-profile {
  flex: 0 0 34%;
  max-width: 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px;
  color: #ffffff;
}

.khhims-message-profile--blue {
  background: linear-gradient(180deg, #1565a8 0%, #0e4d82 100%);
}

.khhims-message-profile--dark {
  background: linear-gradient(180deg, #1e2d3d 0%, #141f2b 100%);
}

.khhims-message-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.15);
}

.khhims-message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.khhims-message-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
  margin: 0 0 14px;
  letter-spacing: 0.2px;
}

.khhims-message-degree {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.khhims-message-role {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.khhims-message-role--badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.65rem;
  max-width: 100%;
  line-height: 1.35;
}

.khhims-message-body {
  flex: 1;
  position: relative;
  padding: 42px 48px 42px 40px;
  display: flex;
  align-items: center;
}

.khhims-message-body--reverse {
  padding: 42px 40px 42px 48px;
}

.khhims-message-body p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: #3d4f5f;
}

.khhims-message-quote {
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 1;
  color: rgba(14, 110, 171, 0.12);
  font-weight: 700;
  pointer-events: none;
  z-index: 0;
}

.khhims-message-quote--right {
  top: 12px;
  right: 28px;
}

.khhims-message-quote--left {
  top: 12px;
  left: 28px;
}

@media (max-width: 991px) {
  .khhims-message-card,
  .khhims-message-card--reverse {
    flex-direction: column;
  }

  .khhims-message-profile {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 32px 24px 28px;
  }

  .khhims-message-body,
  .khhims-message-body--reverse {
    padding: 32px 28px 36px;
  }

  .khhims-message-quote {
    font-size: 5rem;
  }
}

@media (max-width: 575px) {
  .khhims-messages-section {
    padding-top: 60px;
    padding-bottom: 70px;
  }

  .khhims-message-body p {
    font-size: 0.95rem;
  }

  .khhims-message-photo {
    width: 110px;
    height: 110px;
  }
}

/* Announcements – three-column layout */
.khhims-announcements-section {
  padding-top: 70px;
  padding-bottom: 80px;
  background: #ffffff;
}

.khhims-announcements-grid {
  display: grid;
  grid-template-columns: minmax(180px, 22%) minmax(0, 1fr);
  gap: 36px 40px;
  align-items: start;
}

.khhims-announcements-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 36px 40px;
  align-items: start;
}

.khhims-announcements-list-wrap {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.khhims-announcement-panel {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.khhims-announcement-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.khhims-announcements-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.khhims-announcements-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c5d5e3;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.khhims-announcements-dot.is-active {
  background: #0e6eab;
  transform: scale(1.15);
}

.khhims-announcements-dot:hover {
  background: #00a3c8;
}

.khhims-announcements-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0 0 14px;
  line-height: 1.2;
}

.khhims-announcements-subtitle {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #6b7c8f;
  margin: 0 0 28px;
}

.khhims-announcements-viewall {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: #c9ad7f;
  color: #1a2332;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.khhims-announcements-viewall:hover {
  background: #b89a6a;
  color: #1a2332;
  transform: translateY(-1px);
}

.khhims-announcement-featured-img {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 18px;
}

.khhims-announcement-featured-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.khhims-announcement-featured-img:hover img {
  transform: scale(1.03);
}

.khhims-announcement-featured-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.khhims-announcement-featured-title a {
  color: #1a3a5c;
  text-decoration: none;
}

.khhims-announcement-featured-title a:hover {
  color: #0e6eab;
}

.khhims-announcement-meta,
.khhims-announcement-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.khhims-announcement-date {
  font-size: 0.88rem;
  color: #5a8fb8;
  white-space: nowrap;
}

.khhims-announcement-readmore {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0e6eab;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.khhims-announcement-readmore:hover {
  color: #00a3c8;
}

.khhims-announcements-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.khhims-announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.khhims-announcement-item-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.khhims-announcement-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.khhims-announcement-item-body {
  flex: 1;
  min-width: 0;
}

.khhims-announcement-item-title {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.khhims-announcement-item-title a {
  color: #1a3a5c;
  text-decoration: none;
}

.khhims-announcement-item-title a:hover {
  color: #0e6eab;
}

@media (max-width: 1199px) {
  .khhims-announcements-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .khhims-announcements-intro {
    max-width: 520px;
  }

  .khhims-announcements-content {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 991px) {
  .khhims-announcements-content {
    grid-template-columns: 1fr;
  }

  .khhims-announcement-featured-img img {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .khhims-announcements-section {
    padding-top: 55px;
    padding-bottom: 65px;
  }

  .khhims-announcements-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .khhims-announcements-title {
    font-size: 1.75rem;
  }

  .khhims-announcement-item-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
  }
}

/* Consultant schedule & diagnostic timings */
.khhims-schedule-section {
  padding-top: 75px;
  padding-bottom: 85px;
  background: #ffffff;
}

.khhims-schedule-row {
  margin-top: 10px;
}

.khhims-schedule-row > [class*="col-"] {
  margin-bottom: 28px;
}

.khhims-schedule-card {
  height: 100%;
  background: #f8fbfd;
  border: 1px solid #e3edf5;
  border-radius: 10px;
  padding: 28px 28px 24px;
  box-shadow: 0 8px 28px rgba(26, 58, 92, 0.06);
}

.khhims-schedule-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid #0e6eab;
}

.khhims-schedule-card-head i {
  font-size: 1.5rem;
  color: #00a3c8;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 163, 200, 0.12);
  border-radius: 8px;
}

.khhims-schedule-card-head h4 {
  margin: 0;
}

.khhims-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.khhims-schedule-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e8f0f6;
}

.khhims-schedule-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.khhims-schedule-specialty {
  font-weight: 700;
  color: #1a3a5c;
  font-size: 0.98rem;
  flex: 0 0 auto;
  min-width: 120px;
}

.khhims-schedule-days {
  font-size: 0.94rem;
  color: #4a5f73;
  text-align: right;
  flex: 1 1 180px;
  line-height: 1.5;
}

.khhims-schedule-badge {
  display: inline-block;
  background: rgba(14, 110, 171, 0.1);
  color: #0e6eab;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  text-align: center;
}

.khhims-schedule-badge--24 {
  background: rgba(40, 167, 69, 0.12);
  color: #1e7e34;
}

@media (max-width: 575px) {
  .khhims-schedule-days {
    text-align: left;
    flex-basis: 100%;
  }
}

/* Who We Are — journey / history page */
.khhims-journey-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 90px 0 80px;
  overflow: hidden;
}

.khhims-journey-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.khhims-journey-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8, 45, 82, 0.92) 0%, rgba(0, 120, 160, 0.75) 55%, rgba(0, 163, 200, 0.45) 100%);
}

.khhims-journey-hero .container {
  position: relative;
  z-index: 1;
}

.khhims-journey-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5ee4ff;
  margin-bottom: 14px;
}

.khhims-journey-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
  color: #ffffff;
}

.khhims-journey-motto {
  font-size: 1rem;
  color: #b8ecff;
  margin-bottom: 16px;
}

.khhims-journey-motto i {
  color: #28a745;
  margin-right: 8px;
}

.khhims-journey-lead {
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.khhims-history-hero-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.khhims-history-hero-badge-num {
  display: block;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  color: #ffe082;
}

.khhims-history-hero-badge-label {
  display: block;
  font-size: 0.95rem;
  margin-top: 8px;
  opacity: 0.95;
}

.khhims-history-hero-badge-date {
  display: block;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5ee4ff;
}

.khhims-history-motto-strip {
  background: linear-gradient(90deg, #0a3d6e 0%, #00a3c8 50%, #0a3d6e 100%);
  padding: 14px 0;
  text-align: center;
}

.khhims-history-motto-strip p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.khhims-history-intro {
  padding: 56px 0 20px;
  background: #ffffff;
}

.khhims-history-intro-card {
  text-align: center;
  padding: 36px 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fcfe 0%, #ffffff 100%);
  border: 1px solid rgba(0, 163, 200, 0.15);
  box-shadow: 0 16px 48px rgba(26, 58, 92, 0.08);
}

.khhims-history-intro-card p:last-child {
  margin-bottom: 0;
  color: #5a6f82;
  line-height: 1.75;
}

.khhims-history-emblem {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f7fb 0%, #ffffff 55%, #fef9f0 100%);
}

.khhims-history-emblem-visual {
  text-align: center;
  padding: 24px;
}

.khhims-history-emblem-visual img {
  max-width: 100%;
  width: min(380px, 100%);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(26, 58, 92, 0.15));
}

.khhims-history-emblem-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4a6075;
}

.khhims-history-emblem-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.khhims-history-emblem-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  color: #1a3a5c;
  line-height: 1.6;
}

.khhims-history-emblem-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: #00a3c8;
  width: 22px;
  text-align: center;
}

.khhims-history-emblem-text p:last-child {
  margin-bottom: 0;
  color: #5a6f82;
  line-height: 1.75;
}

/* Timeline photo grids */
.khhims-timeline-card-media.khhims-history-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-height: 200px;
  background: #eef4f8;
  padding: 6px;
}

.khhims-history-media-grid--two {
  grid-template-columns: 1fr 1fr;
}

.khhims-history-media-grid .khhims-history-photo--wide {
  grid-column: 1 / -1;
}

.khhims-history-photo {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  min-height: 120px;
}

.khhims-history-photo::after {
  content: "\f00e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0e6eab;
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.khhims-history-photo:hover::after {
  opacity: 1;
  transform: scale(1);
}

.khhims-history-photo img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.khhims-history-photo:hover img {
  transform: scale(1.06);
}

@media (min-width: 768px) {
  .khhims-timeline-card:has(.khhims-history-media-grid) {
    flex-direction: column !important;
  }

  .khhims-timeline-item--left .khhims-timeline-card:has(.khhims-history-media-grid) {
    flex-direction: column !important;
  }

  .khhims-timeline-card:has(.khhims-history-media-grid) .khhims-timeline-card-text,
  .khhims-timeline-card:has(.khhims-history-media-grid) .khhims-timeline-card-media {
    flex: none;
    width: 100%;
  }
}

.khhims-journey-timeline {
  padding: 80px 0 60px;
  background: #f7fafc;
}

.khhims-journey-intro-row {
  margin-bottom: 48px;
}

.khhims-timeline {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.khhims-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, #00a3c8 0%, #0e6eab 100%);
  border-radius: 3px;
}

.khhims-timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 48px;
  box-sizing: border-box;
}

.khhims-timeline-item--right {
  margin-left: 50%;
}

.khhims-timeline-item--left {
  margin-left: 0;
  padding-left: 40px;
  padding-right: 40px;
}

.khhims-timeline-node {
  position: absolute;
  top: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.khhims-timeline-item--right .khhims-timeline-node {
  left: -22px;
}

.khhims-timeline-item--left .khhims-timeline-node {
  right: -22px;
}

.khhims-timeline-node--teal { background: #00a3c8; }
.khhims-timeline-node--blue { background: #0e6eab; }
.khhims-timeline-node--purple { background: #6f42c1; }
.khhims-timeline-node--indigo { background: #3f51b5; }
.khhims-timeline-node--pink { background: #e91e8c; }
.khhims-timeline-node--green { background: #28a745; }

.khhims-timeline-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(26, 58, 92, 0.1);
}

.khhims-timeline-item--left .khhims-timeline-card {
  flex-direction: column-reverse;
}

@media (min-width: 768px) {
  .khhims-timeline-card {
    flex-direction: row;
    align-items: stretch;
  }

  .khhims-timeline-item--left .khhims-timeline-card {
    flex-direction: row-reverse;
  }

  .khhims-timeline-card-text,
  .khhims-timeline-card-media {
    flex: 1 1 50%;
  }
}

.khhims-timeline-card-text {
  padding: 24px 22px;
}

.khhims-timeline-year {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
}

.khhims-timeline-year--teal { color: #00a3c8; }
.khhims-timeline-year--blue { color: #0e6eab; }
.khhims-timeline-year--purple { color: #6f42c1; }
.khhims-timeline-year--indigo { color: #3f51b5; }
.khhims-timeline-year--pink { color: #e91e8c; }
.khhims-timeline-year--green { color: #28a745; }

.khhims-timeline-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0 0 10px;
}

.khhims-timeline-card-text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #5a6f82;
}

.khhims-timeline-card-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.khhims-journey-quote {
  padding: 70px 0;
  background: #eef4f9;
}

.khhims-journey-quote-text {
  position: relative;
  padding-left: 8px;
}

.khhims-journey-quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.8;
  color: #00a3c8;
  display: block;
  margin-bottom: 8px;
}

.khhims-journey-quote-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #1a3a5c;
  line-height: 1.35;
  margin: 0 0 16px;
}

.khhims-journey-quote-sign {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #0e6eab;
  margin: 0;
}

.khhims-journey-team-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 58, 92, 0.12);
}

.khhims-journey-stats {
  background: linear-gradient(135deg, #0a3d6e 0%, #0e6eab 100%);
  padding: 48px 0;
}

.khhims-journey-stat {
  text-align: center;
  color: #ffffff;
  padding: 16px 8px;
}

.khhims-journey-stat i {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.khhims-journey-stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.khhims-journey-stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

@media (max-width: 991px) {
  .khhims-timeline::before {
    left: 22px;
  }

  .khhims-timeline-item,
  .khhims-timeline-item--right,
  .khhims-timeline-item--left {
    width: 100%;
    margin-left: 0;
    padding: 0 0 40px 56px;
  }

  .khhims-timeline-item--right .khhims-timeline-node,
  .khhims-timeline-item--left .khhims-timeline-node {
    left: 0;
    right: auto;
  }
}

@media (max-width: 575px) {
  .khhims-journey-hero {
    min-height: 360px;
    padding: 70px 0 60px;
  }

  .khhims-history-hero-badge.d-lg-none {
    margin-top: 24px;
    text-align: left;
  }

  .khhims-history-media-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Our Services page (all-services.html) */
.khhims-services-hero {
  padding: 70px 0 60px;
  background: linear-gradient(135deg, #f0f9fc 0%, #ffffff 100%);
}

.khhims-services-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00a3c8;
  margin-bottom: 12px;
}

.khhims-services-eyebrow--light {
  color: #7dd3f0;
}

.khhims-services-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #1a3a5c;
  line-height: 1.2;
  margin: 0 0 12px;
}

.khhims-services-title span {
  color: #00a3c8;
}

.khhims-services-pulse-line {
  display: block;
  color: #28a745;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.khhims-services-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: #5a6f82;
  max-width: 520px;
}

.khhims-services-hero-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(14, 110, 171, 0.15);
}

.khhims-services-specialties {
  padding: 75px 0 65px;
  background: #ffffff;
}

.khhims-services-heart-icon {
  font-size: 1.5rem;
  color: #00a3c8;
  margin: 8px 0 0;
}

.khhims-specialty-grid {
  margin-top: 20px;
}

.khhims-specialty-grid > [class*="col-"] {
  margin-bottom: 32px;
}

.khhims-specialty-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(26, 58, 92, 0.1);
  overflow: visible;
  height: 100%;
  padding-top: 28px;
}

.khhims-specialty-icon {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0e6eab;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(14, 110, 171, 0.35);
  z-index: 2;
}

.khhims-specialty-icon--teal { background: #00a3c8; }
.khhims-specialty-icon--purple { background: #6f42c1; }
.khhims-specialty-icon--orange { background: #fd7e14; }
.khhims-specialty-icon--pink { background: #e91e8c; }
.khhims-specialty-icon--green { background: #28a745; }
.khhims-specialty-icon--indigo { background: #3f51b5; }
.khhims-specialty-icon--blue { background: #1565a8; }

.khhims-specialty-img {
  margin: 0 16px;
  border-radius: 10px;
  overflow: hidden;
  height: 140px;
}

.khhims-specialty-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.khhims-specialty-body {
  padding: 18px 20px 22px;
  text-align: center;
}

.khhims-specialty-body p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #6b7c8f;
  margin-bottom: 12px;
}

.khhims-specialty-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0e6eab;
  text-decoration: none;
}

.khhims-specialty-link:hover {
  color: #00a3c8;
}

.khhims-services-why {
  padding: 0 0 70px;
}

.khhims-services-why-box {
  background: #eef4f9;
  border-radius: 16px;
  padding: 48px 40px;
}

.khhims-services-why-bar {
  display: block;
  width: 48px;
  height: 3px;
  background: #00a3c8;
  margin: 14px 0 18px;
}

.khhims-stat-mini {
  text-align: center;
  padding: 12px 8px;
}

.khhims-stat-mini-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.khhims-stat-mini-icon--blue { background: #0e6eab; }
.khhims-stat-mini-icon--teal { background: #00a3c8; }
.khhims-stat-mini-icon--orange { background: #fd7e14; }
.khhims-stat-mini-icon--purple { background: #6f42c1; }

.khhims-stat-mini strong {
  display: block;
  font-size: 1.05rem;
  color: #1a3a5c;
}

.khhims-stat-mini span {
  font-size: 0.82rem;
  color: #6b7c8f;
}

.khhims-services-cta {
  padding: 0 0 80px;
}

.khhims-services-cta-box {
  background: linear-gradient(135deg, #0a3d6e 0%, #0e6eab 100%);
  border-radius: 16px;
  padding: 40px 32px;
  overflow: hidden;
}

.khhims-services-cta-left h3 {
  color: #fff;
  margin-bottom: 16px;
}

.khhims-services-cta-left p {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.khhims-services-cta-left i {
  margin-right: 8px;
  color: #7dd3f0;
}

.khhims-services-cta-mid h4 {
  color: #fff;
}

.khhims-services-cta-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991px) {
  .khhims-services-why-box {
    padding: 36px 24px;
  }

  .khhims-services-cta-mid {
    margin: 28px 0;
  }
}

/* Our Departments page (all-departments.html) */
.khhims-dept-hero {
  position: relative;
  padding: 100px 0 0;
  min-height: 380px;
}

.khhims-dept-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.khhims-dept-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 45, 82, 0.75) 0%, rgba(0, 163, 200, 0.55) 100%);
}

.khhims-dept-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
}

.khhims-dept-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7dd3f0;
  margin-bottom: 12px;
  display: inline-block;
}

.khhims-dept-eyebrow i {
  margin-right: 8px;
}

.khhims-dept-title {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
}

.khhims-dept-title span {
  color: #5ee4ff;
}

.khhims-dept-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.khhims-dept-filter-bar {
  position: relative;
  z-index: 2;
  margin-top: -52px;
  margin-bottom: 48px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 58, 92, 0.12);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.khhims-dept-search {
  flex: 1 1 220px;
  position: relative;
}

.khhims-dept-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ab;
}

.khhims-dept-search-input {
  width: 100%;
  border: 1px solid #e3edf5;
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  font-size: 0.95rem;
}

.khhims-dept-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.khhims-dept-filter {
  border: none;
  background: #eef4f9;
  color: #1a3a5c;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.khhims-dept-filter.is-active,
.khhims-dept-filter:hover {
  background: #0e6eab;
  color: #fff;
}

.khhims-dept-grid-section {
  padding: 20px 0 70px;
  background: #f8fbfd;
}

.khhims-dept-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(26, 58, 92, 0.08);
  height: 100%;
  padding-top: 26px;
}

.khhims-dept-card-icon {
  position: absolute;
  top: -16px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0e6eab;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(14, 110, 171, 0.35);
  z-index: 2;
}

.khhims-dept-card-img {
  margin: 0 16px;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
}

.khhims-dept-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.khhims-dept-card-body {
  padding: 16px 18px 20px;
}

.khhims-dept-card-body p {
  font-size: 0.86rem;
  color: #6b7c8f;
  line-height: 1.5;
  margin-bottom: 8px;
}

.khhims-dept-meta {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #00a3c8;
  margin-bottom: 10px;
}

.khhims-dept-card-wrap {
  margin-bottom: 32px;
}

.khhims-dept-mini-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid #e3edf5;
}

.khhims-dept-mini {
  text-align: center;
  width: 72px;
  color: #0e6eab;
}

.khhims-dept-mini span {
  display: flex;
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border: 2px solid #0e6eab;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.khhims-dept-mini small {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a3a5c;
}

.khhims-dept-diagnostic-banner {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
}

.khhims-dept-diagnostic-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.khhims-dept-diagnostic-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 45, 82, 0.92) 0%, rgba(8, 45, 82, 0.7) 100%);
  z-index: 0;
}

.khhims-dept-diagnostic-banner .container {
  position: relative;
  z-index: 1;
}

.khhims-dept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.khhims-dept-tags span {
  background: rgba(255, 255, 255, 0.95);
  color: #1a3a5c;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
}

.khhims-dept-tags i {
  color: #0e6eab;
  margin-right: 6px;
}

.khhims-dept-why {
  padding: 70px 0;
  background: #fff;
}

.khhims-dept-why-item {
  text-align: center;
  padding: 12px;
}

.khhims-dept-why-item strong {
  display: block;
  font-size: 1rem;
  color: #1a3a5c;
  margin: 12px 0 8px;
}

.khhims-dept-why-item p {
  font-size: 0.88rem;
  color: #6b7c8f;
  line-height: 1.55;
  margin: 0;
}

.khhims-dept-cta {
  padding: 0 0 80px;
}

.khhims-dept-cta-inner {
  background: linear-gradient(135deg, #0a3d6e 0%, #0e6eab 100%);
  border-radius: 14px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.khhims-dept-cta-building {
  max-height: 120px;
  width: auto;
  float: right;
  opacity: 0.85;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .khhims-dept-hero .container {
    padding-bottom: 120px;
  }

  .khhims-dept-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Department details modal */
.khhims-dept-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.khhims-dept-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.khhims-dept-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 55, 0.72);
}

.khhims-dept-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.khhims-dept-modal.is-open .khhims-dept-modal-panel {
  transform: translateY(0) scale(1);
}

.khhims-dept-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1e3a5f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}

.khhims-dept-modal-close:hover {
  background: #1e5799;
  color: #fff;
}

.khhims-dept-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
}

.khhims-dept-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 12px 0 0 12px;
}

.khhims-dept-modal-body {
  padding: 36px 32px 32px;
}

.khhims-dept-modal-meta {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #00a3ad;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.khhims-dept-modal-summary {
  color: #5f6b7a;
  margin-bottom: 12px;
}

.khhims-dept-modal-detail {
  color: #444;
  line-height: 1.65;
  margin-bottom: 16px;
}

.khhims-dept-modal-points {
  margin: 0 0 18px;
  padding-left: 1.15rem;
  color: #333;
}

.khhims-dept-modal-points li {
  margin-bottom: 6px;
}

.khhims-dept-modal-schedule {
  margin-bottom: 22px;
  padding: 12px 14px;
  background: #f4f7f9;
  border-radius: 8px;
  font-size: 14px;
  color: #1e3a5f;
}

.khhims-dept-modal-schedule i {
  color: #1e5799;
  margin-right: 8px;
}

.khhims-dept-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

body.khhims-dept-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .khhims-dept-modal-grid {
    grid-template-columns: 1fr;
  }

  .khhims-dept-modal-media img {
    min-height: 200px;
    border-radius: 12px 12px 0 0;
  }

  .khhims-dept-modal-body {
    padding: 28px 20px 24px;
  }
}

/* Media pages — gallery, blog, events */
.khhims-media-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.khhims-media-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.khhims-media-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 45, 80, 0.92) 0%, rgba(0, 120, 130, 0.55) 100%);
}

.khhims-media-hero .container {
  position: relative;
  z-index: 2;
}

.khhims-media-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.95;
}

.khhims-media-eyebrow i {
  margin-right: 8px;
}

.khhims-media-title {
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.khhims-media-title span {
  color: #5eead4;
}

.khhims-media-tagline {
  font-size: 1.05rem;
  max-width: 520px;
  opacity: 0.92;
}

.khhims-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.khhims-gallery-filter {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.khhims-gallery-filter.is-active,
.khhims-gallery-filter:hover {
  background: #fff;
  color: #1e5799;
}

.khhims-gallery-section {
  background: #f4f7f9;
}

.khhims-gallery-items {
  margin-top: 10px;
}

.khhims-gallery-item {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(30, 60, 90, 0.12);
  background: #fff;
}

.khhims-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.khhims-gallery-item:hover img {
  transform: scale(1.05);
}

.khhims-gallery-caption {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a5f;
}

.khhims-media-cta {
  background: linear-gradient(90deg, #1e5799 0%, #00a3ad 100%);
  padding: 48px 0;
}

.khhims-media-cta-inner {
  text-align: center;
}

.khhims-media-cta-inner .btn {
  margin: 8px 6px;
}

.khhims-blog-featured {
  background: #fff;
}

.khhims-blog-featured-row {
  padding: 20px 0;
}

.khhims-blog-featured-img {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.khhims-blog-featured-img img {
  width: 100%;
  display: block;
}

.khhims-blog-badge {
  display: inline-block;
  background: #e8f4fc;
  color: #1e5799;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.khhims-blog-meta {
  color: #6b7c93;
  font-size: 14px;
  margin-bottom: 14px;
}

.khhims-blog-meta i {
  margin-right: 6px;
  color: #00a3ad;
}

.khhims-blog-card {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(30, 60, 90, 0.08);
  background: #fff;
}

.khhims-blog-notice {
  background: #f4f7f9;
  border-left: 4px solid #1e5799;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
}

.khhims-events-section {
  background: #f4f7f9;
}

.khhims-event-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(30, 60, 90, 0.08);
  height: calc(100% - 24px);
}

.khhims-event-card--upcoming {
  border-top: 3px solid #00a3ad;
}

.khhims-event-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: #1e5799;
  color: #fff;
  border-radius: 8px;
  padding: 10px 6px;
  line-height: 1.1;
}

.khhims-event-day {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.khhims-event-mon {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.9;
}

.khhims-event-body p {
  font-size: 14px;
  color: #5f6b7a;
  margin-bottom: 6px;
}

.khhims-event-past {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(30, 60, 90, 0.08);
}

.khhims-event-past img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.khhims-event-past-body {
  padding: 20px;
}

/* Events page — enhanced layout & images */
.khhims-events-hero {
  padding-bottom: 36px;
}

.khhims-events-hero-overlay {
  background: linear-gradient(105deg, rgba(8, 45, 82, 0.9) 0%, rgba(0, 120, 160, 0.72) 55%, rgba(0, 163, 200, 0.5) 100%);
}

.khhims-events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.khhims-events-filter {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.khhims-events-filter:hover,
.khhims-events-filter.is-active {
  background: #fff;
  color: #0e6eab;
  border-color: #fff;
}

.khhims-events-section {
  padding: 70px 0 80px;
}

.khhims-events-grid {
  margin-top: 8px;
}

.khhims-events-item-wrap.is-hidden {
  display: none !important;
}

.khhims-event-card-v2 {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  height: calc(100% - 28px);
  box-shadow: 0 12px 36px rgba(26, 58, 92, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.khhims-event-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(26, 58, 92, 0.14);
}

.khhims-event-card-v2-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.khhims-event-card-v2-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.khhims-event-card-v2:hover .khhims-event-card-v2-media img {
  transform: scale(1.06);
}

.khhims-event-card-v2-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
}

.khhims-event-card-v2-tag--teal { background: #00a3c8; }
.khhims-event-card-v2-tag--blue { background: #0e6eab; }
.khhims-event-card-v2-tag--red { background: #c62828; }
.khhims-event-card-v2-tag--purple { background: #6f42c1; }
.khhims-event-card-v2-tag--green { background: #28a745; }

.khhims-event-card-v2-date {
  position: absolute;
  bottom: 14px;
  right: 14px;
  min-width: 52px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  color: #1a3a5c;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.75rem;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.khhims-event-card-v2-date strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #00a3c8;
}

.khhims-event-card-v2-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.khhims-event-card-v2-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #5a6f82;
  margin-bottom: 8px;
}

.khhims-event-card-v2-body p:last-of-type {
  flex: 1;
}

.khhims-event-meta {
  color: #0e6eab !important;
  font-weight: 600;
  font-size: 0.85rem !important;
}

.khhims-event-meta i {
  margin-right: 6px;
  opacity: 0.85;
}

.khhims-event-card-v2-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #00a3c8;
}

.khhims-event-card-v2-link:hover {
  color: #0e6eab;
}

.khhims-events-photo-strip {
  margin-top: 12px;
}

.khhims-events-photo {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 1;
  box-shadow: 0 8px 24px rgba(26, 58, 92, 0.1);
}

.khhims-events-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.khhims-events-photo span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(8, 45, 82, 0.88));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.khhims-events-photo:hover img {
  transform: scale(1.08);
}

.khhims-events-banner {
  padding: 0 0 70px;
  background: #f4f7f9;
}

.khhims-events-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: linear-gradient(120deg, #0a3d6e 0%, #0e6eab 55%, #00a3c8 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26, 58, 92, 0.18);
}

.khhims-events-banner-img {
  flex: 1 1 280px;
  min-height: 220px;
  max-height: 320px;
  overflow: hidden;
}

.khhims-events-banner-img img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.khhims-events-banner-text {
  flex: 1 1 300px;
  padding: 36px 32px;
}

.khhims-events-banner-text p {
  opacity: 0.92;
  margin-bottom: 20px;
  line-height: 1.65;
}

.khhims-event-card-v2-media.khhims-event-view-details {
  cursor: pointer;
}

.khhims-event-view-details:focus {
  outline: 2px solid #00a3c8;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .khhims-media-hero {
    padding: 80px 0 60px;
  }

  .khhims-media-title {
    font-size: 1.75rem;
  }
}

/* Doctors page */
.khhims-doctors-hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.khhims-doctors-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.khhims-doctors-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 40, 72, 0.94) 45%, rgba(0, 130, 140, 0.75) 100%);
}

.khhims-doctors-hero .container {
  position: relative;
  z-index: 2;
}

.khhims-doctors-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.khhims-doctors-eyebrow i {
  margin-right: 8px;
}

.khhims-doctors-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
}

.khhims-doctors-title span {
  color: #5eead4;
}

.khhims-doctors-tagline {
  font-size: 1.15rem;
  color: #a8e6ec;
  margin-bottom: 14px;
}

.khhims-doctors-lead {
  max-width: 520px;
  opacity: 0.95;
  line-height: 1.65;
}

.khhims-doctors-hero-visual {
  position: relative;
  min-height: 320px;
}

.khhims-doctors-hero-photo {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

.khhims-doctors-hero-photo--main {
  width: 72%;
  height: 340px;
  margin-left: auto;
  display: block;
}

.khhims-doctors-hero-photo--sub {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  height: 200px;
  border: 4px solid #fff;
}

.khhims-doctors-filter-section {
  background: #fff;
  padding-top: 50px;
}

.khhims-doctors-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.khhims-doctors-filter {
  border: 1px solid #d8e2ec;
  background: #fff;
  color: #334155;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.khhims-doctors-filter.is-active,
.khhims-doctors-filter:hover {
  background: #1e5799;
  border-color: #1e5799;
  color: #fff;
}

.khhims-doctors-grid-section {
  background: #f4f7f9;
  padding-bottom: 60px;
}

.khhims-doctor-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(30, 60, 90, 0.1);
  margin-bottom: 28px;
  height: calc(100% - 28px);
  display: flex;
  flex-direction: column;
}

.khhims-doctor-card-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.khhims-doctor-card-icon span {
  font-size: 18px;
  color: #1e5799;
}

.khhims-doctor-card-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
}

.khhims-doctor-card-body {
  padding: 18px 18px 0;
  flex: 1;
}

.khhims-doctor-role {
  color: #00a3ad;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.khhims-doctor-qual {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.khhims-doctor-exp {
  font-size: 13px;
  color: #475569;
  margin-bottom: 0;
}

.khhims-doctor-exp i {
  color: #1e5799;
  margin-right: 6px;
}

.khhims-doctor-profile-link {
  display: block;
  margin-top: 16px;
  padding: 12px 18px;
  background: #eef6fc;
  color: #1e5799;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  border-radius: 0 0 12px 12px;
  margin-left: -18px;
  margin-right: -18px;
  width: calc(100% + 36px);
}

.khhims-doctor-profile-link:hover {
  background: #1e5799;
  color: #fff;
}

.khhims-doctors-consult-cta {
  padding: 50px 0;
  background: #fff;
}

.khhims-doctors-consult-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.khhims-doctors-consult-primary {
  background: linear-gradient(135deg, #1e5799 0%, #164a7a 100%);
  border-radius: 14px;
  padding: 32px 28px;
  overflow: hidden;
}

.khhims-doctors-consult-img {
  width: 100%;
  border-radius: 10px;
  max-height: 180px;
  object-fit: cover;
}

.khhims-doctors-consult-secondary {
  background: #eef8fb;
  border-radius: 14px;
  padding: 32px 28px;
}

.khhims-doctors-phone a {
  display: inline-block;
  background: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: #1e5799;
  margin: 12px 0;
  box-shadow: 0 4px 14px rgba(30, 87, 153, 0.12);
}

.khhims-doctors-hours {
  font-size: 14px;
  color: #64748b;
}

.khhims-doctors-stats-bar {
  background: #fff;
  border-top: 1px solid #e8eef4;
  padding: 36px 0 48px;
}

.khhims-doctors-stat {
  text-align: center;
  padding: 12px 8px;
}

.khhims-doctors-stat i {
  font-size: 28px;
  color: #1e5799;
  margin-bottom: 8px;
}

.khhims-doctors-stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a5f;
}

.khhims-doctors-stat-label {
  font-size: 13px;
  color: #64748b;
}

.khhims-doctor-modal-qual {
  font-weight: 600;
  color: #00a3ad;
  margin-bottom: 12px;
}

@media (max-width: 991px) {
  .khhims-doctors-consult-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .khhims-doctors-title {
    font-size: 1.85rem;
  }

  .khhims-doctors-filter-bar {
    justify-content: flex-start;
  }
}
