  :root {
    --purple: #8A158A;
    --purple-light: #b84eb8;
    --muted-bg: #fbf6fb;
    --glass-bg: rgba(255, 255, 255, 0.96);
    --card-radius: 14px;
    --shadow-soft: 0 8px 30px rgba(58, 16, 58, 0.08);

  }

  body {
    /* font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; */
    background: var(--muted-bg);
    color: #2b0b2b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Topbar */
  .topbar {
    background: var(--purple);
    color: #fff;
    font-size: .95rem;
  }

  .topbar a {
    color: #ffffffee;
    text-decoration: none;
  }

  .topbar .bi {
    vertical-align: -.15em;
  }

  /* Header / Nav */
  .navbar {
    background: transparent;
    box-shadow: 0 2px 8px rgba(16, 24, 24, 0.04);
    transition: background .28s ease, box-shadow .28s ease, padding .2s ease;
    padding: 0.6rem 0;
  }

  .navbar.navbar-solid {
    background: #fff;
    box-shadow: 0 6px 22px rgba(16, 24, 24, 0.06);
    padding: 0.4rem 0;
  }

  .brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    /* Adjust navbar height */
    padding: 4px 8px;
  }

  .brand-logo img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    border: 2px solid var(--purple);
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 10px rgba(128, 10, 128, 0.15);
    background: #fff;
    /* optional clean backdrop */
    transition: all 0.3s ease;
  }

  .brand-logo img:hover {
    box-shadow: 0 4px 14px rgba(77, 10, 77, 0.25);
    transform: scale(1.03);
  }


  .btn-outline-purple {
    border: 1px solid #8A158A;
    color: #8A158A;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 10px 22px;
  }

  .btn-outline-purple:hover {
    background: #8A158A;
    color: #fff;
    box-shadow: 0 4px 12px rgba(138, 21, 138, 0.35);
    transform: translateY(-2px);
  }

  /* .modal-backdrop.show {
  opacity: 0 !important;
} */
  /* Hero */
  .hero {
    position: relative;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    overflow: hidden;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    z-index: 1;
  }

  .hero-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    background: linear-gradient(135deg, rgba(142, 36, 170, 0.7), rgba(233, 30, 99, 0.4));
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 28px;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.205);
    animation: fadeUp 1.2s ease-out;
  }

  .hero-card h1 {
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    text-align: center;
    margin-bottom: 0.6rem;
    font-weight: 700;
    line-height: 1.05;
    color: #ffff;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.25);
  }

  .hero-card p {
    color: whitesmoke;
    opacity: 0.95;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
  }

  /* CTA Buttons */
  .cta-btn {
    background: var(--purple-light);
    color: #fff;
    border: 0;
    padding: 0.72rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(218, 66, 248, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .cta-btn:hover {
    background: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 150, 136, 0.35);
  }

  /* Emergency / Contact Box */
  .contact-box {
    /* background: linear-gradient(135deg, rgba(0, 150, 136, 0.2), rgba(0, 150, 136, 0.05)); */
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(216, 172, 216, 0.35)); */
    background: #ffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 0 10px var(--purple-light);
    border: 1px solid var(--purple-light);
    backdrop-filter: blur(12px);
    animation: slideInRight 1.4s ease-out;
  }

  .contact-box .phone {
    color: var(--purple);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 150, 136, 0.2);
  }

  .contact-box hr {
    border-color: rgba(0, 0, 0, 0.1);
  }

  .contact-box a.btn-outline-primary {
    border-color: #00796b;
    color: #00796b;
    transition: all 0.3s ease;
  }

  .contact-box a.btn-outline-primary:hover {
    background: #00796b;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.25);
  }

  /* Stat Section */
  .stat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 238, 247, 0.45));
    padding: 12px 0;
    border-radius: 10px;
    border: 1px solid rgba(138, 21, 138, 0.08);
    box-shadow: 0 4px 12px rgba(138, 21, 138, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
  }


  .stat:hover {
    transform: translateY(-5px);
  }

  /* Animations */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(60px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }



  /* Footer */
  footer {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(218,190,225,0.6) 60%, rgba(138,21,138,0.25) 100%);
    border-top: 1px solid rgba(2, 24, 22, 0.04);
    padding: 40px 0;
  }

  a.text-muted:hover {
    text-decoration: underline;
  }

  /* utility */
  img.rounded {
    border-radius: .5rem;
  }

  /* small interactions */
  a.btn-outline-success {
    border-color: var(--purple-light);
  }

  /* --------------------------------------------
    ABOUT US PAGE STYLES
  -------------------------------------------- */

  /* Subpage Hero */
  .subpage-hero {
    padding: 6rem 0 4rem;
  background: linear-gradient(135deg, rgba(138,21,138,0.85), rgba(221, 90, 221, 0.55));
   text-align: center;
  }

  .subpage-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffff;
  }

  .subpage-hero p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #ffff;
  }

  /* Section Global */
  .section {
    padding: 4rem 0;
  }

  .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--purple);

  }

  /* About Section */
  .about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
  }

  .about-text h2 {
    color: var(--purple);
  }

  .about-text p {
    margin-bottom: 1rem;
    color: #444;
  }

  .about-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }

  /* Mission & Vision */
  .light-bg {
    background: #f6fbfb;
  }

  .mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .mv-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.07));
    text-align: center;
  }

  .mv-box h2 {
    margin: 0;
    /* remove extra spacing */
    font-size: 1.5rem;
    color: var(--purple);
  }

  .mv-heading {
    display: inline-flex;
    align-items: center;
    /* aligns vertically */
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .mv-heading i {
    font-size: 30px;
    color: var(--purple);
    opacity: 0.95;
    line-height: 1;
    position: relative;
    bottom: 2px;
    /* fine-tune: pushes icon down slightly */
  }

  .mv-heading h2 {
    margin: 0;
    align-items: center;
    font-size: 1.5rem;
    color: var(--purple);
    font-weight: 600;
  }



  .mv-box p {
    text-align: center;
  }

  /* Why Choose Us */
  .why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    /* ✅ ensures all cards same height */
  }

  .why-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.07));
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }


  .why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .why-heading i {
    font-size: 28px;
    color: var(--purple);
    opacity: 0.95;
    position: relative;
    top: 2px;
    /* aligns icon with text */
  }

  .why-heading h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--purple);
    font-weight: 600;
    line-height: 1.3;
  }

  .why-card p {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
    line-height: 1.5;
  }

  /* .why-card h2 {
    color: var(--purple);
    margin-bottom: 0.5rem;
  } */

  /* Stats */
  /* Stats Strip - Option 2 (Dark with Separators) */
  .stats-strip {
    background: var(--purple-light);
    /* Dark medical blue */
    padding: 55px 0;
    color: #fff;
  }

  .stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .stat-item {
    flex: 1;
  }

  .stat-icon {
    font-size: 32px;
    margin: 0 auto 12px;
    color: #00e7d4;
    /* teal highlight */
  }

  .stat-item h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
  }

  .stat-item p {
    font-size: 15px;
    opacity: 0.85;
  }

  /* Vertical Separators */
  .separator {
    width: 1px;
    height: 65px;
    background: rgba(255, 255, 255, 0.28);
  }

  /* Testimonials */
  .testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .test-card {
    background: #fff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.08));
    text-align: center;
    font-style: italic;
  }

  .test-card h4 {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--purple);
  }

  /* CTA Box */
  .cta-box {
    background: linear-gradient(to right, var(--purple-light), var(--purple));
    text-align: center;
    color: #fff;
    padding: 3rem 1rem;
    border-radius: 12px;
  }

  .cta-box p {
    margin: 0.8rem 0 1.2rem;
    font-size: 1.05rem;
  }

  /* Ensure headings on About page are centered */
  .subpage-hero.about-hero h1,
  .about-section h2,
  .mission-vision .mv-box h2,
  .section-title,
  .testimonials .section-title,
  .cta-box h2 {
    text-align: center;
  }

  .text-teal {
    color: #00796b;
  }

  /* Facility List Styles */
  .facility-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .facility-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }

  .facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(117, 5, 139, 0.2);
  }

  .facility-item i {
    font-size: 2rem;
    color: var(--purple-light);
    flex-shrink: 0;
  }

  .facility-item h5 {
    font-weight: 600;
    margin-bottom: 0.3rem;
  }

  .facility-item p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
  }

  /* Image Wrapper Styling */
  .image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* border-radius: 22px; */
    padding: 10px;
    /* background: linear-gradient(135deg, #e0f2f1, #ffffff); */
    /* box-shadow: 0 12px 35px rgba(68, 184, 170, 0.15); */
  }

  .facility-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid var(--purple);
    box-shadow:
      0 0 25px var(--purple-light),
      0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease-in-out;
  }

  .facility-img:hover {
    transform: scale(1.04);
    box-shadow:
      0 0 35px var(--purple-light),
      0 12px 40px var(--purple-light);
    border-color: var(--purple);
  }

  /* Optional gradient overlay */
  .image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(0, 121, 107, 0.08), transparent 70%);
    border-radius: 22px;
    pointer-events: none;
  }


  /* testimonial */
  .testimonial-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
  }

  .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  }

  /* Carousel controls */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    background-color: var(--purple-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 60%;
  }

  /* Indicators (dots) */
  .carousel-indicators [data-bs-target] {
    background-color: var(--purple-light);
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }

  /* Align icon above titles in cards (keeps center alignment & minimal look) */
  .mv-box .card-icon,
  .why-card .card-icon,
  .stat-box .stat-icon,
  .test-card .card-icon {
    display: block;
    text-align: center;
    margin: 0 auto 12px;
  }

  /* Stat icons smaller and slightly tinted */
  .stat-icon i {
    font-size: 30px;
    /* ✅ slightly bigger */
    color: #fff;
    /* ✅ white icon */
    margin-bottom: 10px;
    opacity: 1;
  }

  /* Make sure h3 in small cards are center-aligned and have spacing */
  .why-card h3,
  .mv-box h2,
  .test-card h4 {
    text-align: center;
    margin-bottom: 8px;
  }

  /* Keep existing hover lifts but ensure icons react subtly */
  .mv-box:hover .card-icon,
  .why-card:hover .card-icon,
  .stat-box:hover .stat-icon,
  .test-card:hover .card-icon {
    transform: translateY(-3px);
    transition: transform 0.28s ease;
  }

  /* services */

  .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* ✅ Centers last row perfectly */
    gap: 1.8rem;
    margin: 2rem 2rem 2rem 2rem;
  }

  .service-card {
    background: #fff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.08));
    text-align: center;
    transition: 0.3s;
    flex: 1 1 300px;
    /* ✅ Each card takes equal space */
    max-width: 310px;
  }

  .service-card h3 {
    color: var(--purple);
    margin-bottom: 0.5rem;
  }

  .service-card:hover {
    transform: translateY(-5px);
  }


  .service-card .card-icon {
    font-size: 32px;
    color: var(--purple);
    margin-bottom: 12px;
    display: inline-block;
  }

  .service-card.empty {
    visibility: hidden;
    background: none;
    box-shadow: none;
    pointer-events: none;
  }

  .departments-section {
    margin-top: 80px;
  }

  .department {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
    flex-wrap: wrap;
  }

  .department:nth-child(even) {
    flex-direction: row-reverse;
  }

  .department .dept-img img {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 4px 12px #8A158A;
  }

  .department .dept-content {
    flex: 1;
  }

  .department .dept-content h3 {
    color:var(--purple-light);
    font-weight: 700;
    margin-bottom: 15px;
  }

  .department .dept-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
  }

  .btn.dept-btn {
    background: #8A158A;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .btn.dept-btn:hover {
    background: #8A158A;
  }

  /* ---------- GALLERY PAGE STYLES ---------- */
  .gallery-section {
    padding: 50px 0;
    /* background: #f8fafa; */
  }

  .gallery-section h2 {
    color: #8A158A;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
  }

  .gallery-section p {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
    color: #555;
  }

  /* ---------- Album Grid ---------- */
  /* ---------- Album Grid (3 Columns Fixed) ---------- */
  .album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
  }



  /* ---------- Album Card ---------- */
  .album-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: #fff;
  }

  .album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  }

  /* ---------- Album Image ---------- */
  .album-thumb img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.6s ease;
    filter: brightness(0.95);
  }

  .album-card:hover img {
    transform: scale(1.07);
    filter: brightness(1);
  }

  /* ---------- Overlay (Soft & Elegant) ---------- */
  .album-overlay {
    position: absolute;
    inset: 0;
    background: var(--purple-light);
    /* Soft transparent green overlay */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease, background 0.35s ease;
    text-align: center;
    border-radius: 16px;
  }

  .album-card:hover .album-overlay {
    opacity: 1;
    background: rgba(243, 188, 238, 0.6);
  }

  /* ---------- Overlay Content ---------- */
  .album-overlay i {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: var(--purple);
    padding: 12px;
    border-radius: 40%;
    backdrop-filter: blur(4px);
  }

  .album-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    font-weight: 800;
    color: var(--purple);
    letter-spacing: 0.3px;
  }

  .album-overlay p {
    font-size: 0.9rem;
    font-weight:500 ;
    color: #ffff;
    margin: 0;
  }

  /* ---------- Hidden Albums ---------- */
  .hidden-albums {
    display: none !important;
  }

  /* appointment */

  /* MODAL BACKDROP */
  .appointment-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
  }

  /* MODAL BOX */
  .appointment-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 95%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    max-height: 90vh;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* CLOSE BUTTON */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
  }

  .close-btn:hover {
    color: var(--purple);
  }

  /* FORM */
  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
  }

  .submit-btn {
    background: var(--purple);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .submit-btn:hover {
    background: #8A158A;
  }

  /* HEADER BUTTON STYLE */
  .header-btn {
    background: var(--purple-light);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .header-btn:hover {
    background: var(--purple);
  }


  /* Contact Section Styling */
  .contact-subtext {
    color: #555;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
  }

  .contact-subtext span {
    color: #8A158A;
    font-weight: 600;
  }

  .contact-subtext:hover span {
    color:#8A158A;
    text-decoration: underline;
  }

  .contact-left {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(218,190,225,0.6));
    border-radius: 20px;
    padding: 60px 40px;
    overflow: hidden;
  }

  .text-teal {
    color:#8A158A;
  }

  .floating-icon {
    position: absolute;
    font-size: 50px;
    color: var(--purple-light);
    animation: float 6s ease-in-out infinite;
  }

  .icon1 {
    top: 50px;
    right: 50px;
    animation-delay: 0s;
  }

  .icon2 {
     top: 5px;
    left: 30px;
    animation-delay: 2s;
  }

  .icon3 {
    bottom: 10px;
    right: 20px;
    animation-delay: 4s;
  }

  @keyframes float {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-10px);
    }
  }