/* hero badge */

.hero-badge {
  background-color: #960c0c;
  /* red */
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  margin-right: 2px;
  line-height: 1;
}


/* BADGE COLOR======================== */

.badge-solid-red {
  background-color: #960c0c;
  color: #ffffff;
  border-radius: 50rem; /* pill */
  padding: 0.45em 0.9em;
  font-weight: 500;
}

.badge-outline-red {
  background-color: transparent;
  color: #960c0c;
  border: 1.5px solid #960c0c;
  border-radius: 50rem; /* pill */
  padding: 0.45em 0.9em;
  font-weight: 500;
}
.profile-highlights i {
  color: #960c0c;
  font-size: 1.05rem;
}
/* modal header cross design =============== */
/* Themed close button */
.themed-close {
  background-color: rgba(150, 12, 12, 0.08);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  opacity: 1;
}

/* Remove bootstrap focus/outline */
.themed-close:focus,
.themed-close:active {
  outline: none;
  box-shadow: none;
}

/* Hover effect */
.themed-close:hover {
  background-color: rgba(150, 12, 12, 0.15);
}

/* Change X icon color */
.themed-close {
  filter: invert(13%) sepia(84%) saturate(4075%) hue-rotate(350deg) brightness(88%) contrast(95%);
}


/*============= FLOATING WHATSAPP BUTTON ===============*/

.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 30px;
  left: 35px; /* <-- moved from right to left */
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}


:root {
    --card-bg: #ffffff;
    --card-hover-bg: #ffe6e6;
    --card-shadow: rgba(0, 0, 0, 0.08);
    --arrow-color: #1f2f31;
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

.dept-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--card-hover-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--card-shadow);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}
.dept-card .dept-info h5 {
    margin: 0;
    font-weight: 600;
}
.dept-card .dept-info small {
    color: #6c757d;
}
.dept-card .dept-arrow {
    font-size: 1.5rem;
    /* color: var(--arrow-color); */
    color: #960c0c;
    transition: transform var(--transition-speed) ease;
}
.dept-card:hover {
    background-color: var(--card-hover-bg);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--card-shadow);
}
.dept-card:hover .dept-arrow {
    transform: translateX(6px);
}

/* Department Description Styling */
.department-content {
    background-color: #f0f8ff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--card-shadow);
}




/* marquee text design  */

.marquee__noticeSection {
  width: 100%;
  background: #960c0c; /* hospital blue */
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}

.marquee__track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

.marquee__noticeSection span {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding-left: 100%;
}

/* Smooth animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ==============================
   TOP CARD SECTION (SCOPED)
============================== */

.top-cards-links {
  margin-top: -70px;
  position: relative;
  z-index: 5;
}

/* Wrapper */
.top-cards-links .cards-wrapper {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* ==============================
   Card Base
============================== */

.top-cards-links .service-card {
  flex: 1;
  padding: 50px 25px 80px;
  text-align: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
  border: 1px dashed rgba(0, 0, 0, 0.15);
}

/* Remove double border */
.top-cards-links .service-card + .service-card {
  margin-left: -1px;
}

/* Background layer */
.top-cards-links .service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1),
              background 0.35s ease,
              box-shadow 0.35s ease;
  transform-origin: center;
  z-index: -1;
  will-change: transform;
}

/* Hover Background Scaling */
.top-cards-links .service-card:hover::before {
  background: #960c0c;
  transform: scaleY(1.12);
  box-shadow: 0 35px 60px rgba(150, 12, 12, 0.35);
  border-radius: 12px;
}

/* ==============================
   Icon Circle
============================== */

.top-cards-links .icon-wrap {
  width: 75px;
  height: 75px;
  margin: 0 auto 20px;
  background: rgba(150, 12, 12, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.top-cards-links .icon-wrap i {
  font-size: 30px;
  color: #960c0c;
  transition: all 0.3s ease;
}

/* ==============================
   Text
============================== */

.top-cards-links .service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f2b3c;
  transition: color 0.3s ease;
}

.top-cards-links .service-card p {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
  transition: color 0.3s ease;
}

/* ==============================
   Chevron
============================== */

.top-cards-links .chevron-circle {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 45px;
  height: 45px;
  background: #960c0c;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(150, 12, 12, 0.3);
}

/* ==============================
   Hover Effects
============================== */

.top-cards-links .service-card:hover h3,
.top-cards-links .service-card:hover p {
  color: #ffffff;
}

.top-cards-links .service-card:hover .icon-wrap {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.top-cards-links .service-card:hover .icon-wrap i {
  color: #ffffff;
}

.top-cards-links .service-card:hover .chevron-circle {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  background: #ffffff;
  color: #960c0c;
}

/* Enable wrapping */
.top-cards-links .cards-wrapper {
  flex-wrap: wrap;
}

/* Mobile Layout */
@media (max-width: 768px) {

  .top-cards-links .service-card {
    flex: 0 0 33.333%;   /* 3 cards per row */
    max-width: 33.333%;
    padding: 30px 15px 70px;
  }

  /* Last two cards take 50% each */
  .top-cards-links .service-card:nth-child(4),
  .top-cards-links .service-card:nth-child(5) {
    flex: 0 0 50%;
    max-width: 50%;
  }

}