body {
    font-family: 'Poppins', sans-serif;
    background: #f8f8fb;
    overflow-x: hidden; /* prevent accidental horizontal scroll on small devices */
    position: relative;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar-custom {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 70px;
    padding: 10px 20px;
    background: white !important;
    color: #1a0a3c;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    visibility: visible;
}

.navbar-custom .container-fluid {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Logo */
.navbar-custom .nav-logo {
    max-height: 95px;  /* increased size */
    width: auto;
}

/* Nav links */
.navbar-custom .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar-custom .nav-links li a {
    color: #791864;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.navbar-custom .nav-links li a:hover,
.navbar-custom .nav-links li a.active {
    color: #4b1a67;  /* darker purple hover */
}

/* Hero section */
.hero-section {
    position: relative;
    padding: 100px 15px 80px;
    background-image: url('../assets/images/image1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #1a0a3c;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.10);
    pointer-events: none;
}

.hero-section .container,
.hero-section .row,
.hero-section .col-lg-8 {
    position: relative;
    z-index: 2;
}

.hero-section .hero-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.1rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: #6b2a9e;
    background: rgba(122, 75, 217, 0.1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.hero-section h1 {
    font-size: 3.4rem;
    line-height: 1.03;
    margin-bottom: 1.25rem;
    max-width: 760px;
    color: #1a0a3c;
}

.hero-section p {
    max-width: 760px;
    margin-bottom: 0;
    line-height: 1.85;
    color: #4f4f59;
    font-size: 1.03rem;
}

.hero-section .hero-text-wrapper {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-section .hero-text-wrapper .hero-label {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.hero-section .hero-text-wrapper h1 {
    color: #ffffff;
}

.hero-section .hero-text-wrapper p {
    color: #f0f0f0;
}

.hero-cta-section {
    padding: 60px 15px;
    background: #f8f8fb;
}

.hero-cta-section .hero-motivation {
    color: #1a0a3c;
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-cta-section .hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-cta-section .hero-cta-group .btn:nth-child(1),
.hero-cta-section .hero-cta-group .btn:nth-child(2) {
    flex: 0 1 auto;
}

.hero-cta-section .hero-cta-group .btn:last-child {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
}

.hero-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 60, 0.15);
    max-width: 540px;
}

.hero-card-img {
    width: 100%;
    display: block;
    object-fit: cover;
    min-height: 320px;
}

.hero-card-body {
    padding: 1.6rem 1.8rem 2rem;
}

.hero-card-body h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a0a3c;
}

.hero-section .hero-text-wrapper .hero-cta-group .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.hero-section .hero-text-wrapper .hero-cta-group .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-section .hero-text-wrapper .hero-cta-group {
    justify-content: center;
}

@media (max-width: 991px) {
    .hero-section {
        padding: 80px 15px 60px;
    }
    .hero-section h1 {
        font-size: 2.6rem;
    }
    .hero-cta-group {
        flex-direction: column;
    }
    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-section .hero-text-wrapper .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-section .hero-text-wrapper {
        padding: 1.5rem;
    }
    .hero-cta-section {
        padding: 40px 15px;
    }
    .hero-cta-section .hero-motivation {
        font-size: 1.1rem;
    }
}
}

@media (max-width: 575px) {
    .hero-section {
        padding: 60px 15px 40px;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .hero-text-wrapper {
        padding: 1rem;
        margin: 0 1rem;
    }
    .hero-cta-section {
        padding: 30px 15px;
    }
    .hero-cta-section .hero-motivation {
        font-size: 1rem;
    }
}

/* Keep mobile menu link colors dark for readability */
.mobile-menu .mobile-nav-links li a {
    color: #1a0a3c;
}

/* HEADER WITH LOGO */
.header-with-logo {
  max-width: 1000px;
}

/* LOGO SIZE (INCREASED BUT REFINED) */
.main-logo {
    max-width: 190px;
    margin-top: 0;        /* remove any top margin */
    margin-bottom: 14px;  /* spacing below logo for header text */
}

/* HEADER TEXT */
.welcome-strip h3 {
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.welcome-strip p {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.85;
}

/* Reduce space above the logo */

.welcome-strip {
    position: relative;
    padding: 100px 15px; /* give enough space for text */
    background-color: #f8f8f8;  /* fallback color */
    background-image: url('assets/images/logo.png'); /* logo as background */
    background-repeat: no-repeat;
    background-position: center center; /* centered in section */
    background-size: 250px auto; /* adjust size of logo */
}

/* Optional: overlay for readability */
.welcome-strip::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.4); /* light overlay, reduces obstruction of text */
    z-index: 1;
}

/* Header text container */
.welcome-strip {
    position: relative;
    padding: 100px 15px;          /* space for text */
    background-color: #f8f8f8;    /* fallback */
    background-image: url('../assets/images/logo.png');  /* correct path from CSS file */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 25px auto;  /* adjust logo size */
}

/* Optional overlay if you want text readable */
.welcome-strip::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0);  /* set to 0 so logo is visible */
    z-index: 1;
}

/* Header container above background */
.welcome-strip .container {
    position: relative;
    z-index: 2;  /* ensures text is above background */
    text-align: center;
}

/* Fancy welcome note placed above the welcome heading */
.welcome-note {
    display: inline-block;
    max-width: 760px;
    background: linear-gradient(180deg, rgba(122,75,217,0.04), rgba(122,75,217,0.01));
    border: 2px solid #7a4bd9; /* purple outline */
    padding: 10px 16px;
    border-radius: 10px;
    color: #2b1530;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(122,75,217,0.04);
}
.welcome-note p { margin: 0; color: #4b2b4f; }

@media (max-width: 575px) {
    .welcome-note { width: calc(100% - 32px); padding: 8px 12px; border-left-width: 3px; }
    .welcome-note p { font-size: 0.85rem; }
}

/* Ensure only one hamburger is visible on mobile - disable default bootstrap background icon */
@media (max-width: 575px) {
    .navbar-toggler {
        border: none;
        padding: 6px 8px;
        background: transparent;
        z-index: 1300;
    }
    .navbar-toggler .navbar-toggler-icon { background-image: none !important; }
    .navbar-toggler .fa-bars { font-size: 1.15rem; color: #fff; }
}

/* Optional: remove any margin from the logo itself */
/* Logo closer to navbar */

.welcome-strip {
  position: relative;
  top: -5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-links a.active {
    color: #ffb6d5;
}

/* STATS */
.stat-tile {
    border: 2px solid #9c27b0;
    padding: 25px;
    border-radius: 14px;
    background: #fff;
    transition: transform 0.3s;
}

.stat-tile:hover {
    transform: translateY(-6px);
}

.stat-tile i {
    color: #ad1457;
    font-size: 26px;
    margin-bottom: 10px;
}

/* STATS PARAGRAPH */
.stats-description {
    background: #fff;
    padding: 25px;
    border-left: 6px solid #6a1b9a;
    border-radius: 10px;
}

/* SERVICES */
.services-section {
    padding: 80px 0;
}

.services-section .row > div {
    display: flex;
    align-items: stretch;
}

.services-section .row > [class*="col-"] {
    margin-bottom: 0;
}

.services-section .row > [class*="col-"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    min-height: 350px;
}

.service-flip-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(121, 24, 116, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.service-flip-card:hover {
    box-shadow: 0 15px 35px rgba(121, 24, 116, 0.15);
    transform: translateY(-5px);
}

.service-flip-card i {
    transition: all 0.3s ease;
}

.service-flip-card:hover i {
    transform: scale(1.1);
}

.service-flip-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-flip-card h6 {
    color: #791864;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-flip-card p {
    color: #666;
    line-height: 1.5;
    text-align: left;
}

.service-card h4 i {
    color: #6a1b9a;
    margin-right: 8px;
}

.image-placeholder {
    background: linear-gradient(135deg, #eee, #ddd);
    min-height: 220px;
    height: auto;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: 600;
    overflow: hidden;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-pair {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.service-pair > .service-card,
.service-pair > .image-placeholder {
  width: 100%;
}

@media (min-width: 768px) {
  .service-pair {
    flex-direction: row;
    gap: 30px;
    align-items: stretch;
  }

  .service-pair > .service-card,
  .service-pair > .image-placeholder {
    width: calc(50% - 15px);
  }
}

/* Footer */
.footer {
    background: #1a0a3c; /* deep purple */
    color: #fff;
    padding: 50px 20px 30px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer h5 {
    display: none;
}

.footer-section-icon {
    position: absolute;
    font-size: 120px;
    color: #ff69b4;
    opacity: 0.08;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.footer-top > div {
    position: relative;
    z-index: 1;
}

.footer-top > div > ul,
.footer-top > div > p,
.footer-top > div > .footer-social,
.footer-top > div > .btn {
    position: relative;
    z-index: 2;
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffeb3b; /* hover highlight */
}

.footer-contact li,
.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #ffeb3b;
}

.footer-divider {
    border-top: 1px solid #6a0dad;
    margin: 30px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-terms {
    color: #ccc;
}

.footer-terms:hover {
    color: #ffeb3b;
}

/* Footer Mobile Responsiveness */
@media (max-width: 991px) {
    .footer-top {
        flex-direction: column;
        gap: 2rem !important;
    }

    .footer-top > [class*="col-"] {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Force mobile layout for footer columns - CONSOLIDATED */
@media (max-width: 575px) {
    .footer {
        padding: 40px 16px 25px 16px;
        text-align: center;
    }

    .footer h5 {
        display: none;
    }

    .footer-section-icon {
        display: none;
    }

    .footer a {
        display: inline-block;
        text-align: center;
    }

    .footer-top {
        gap: 1.5rem !important;
        flex-direction: column;
    }

    .footer-top > div,
    .footer-top > [class*="col-"] {
        text-align: center;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
        clear: both;
        float: none;
    }

    .footer-contact,
    .footer-links {
        text-align: center;
    }

    .footer-contact li,
    .footer-links li {
        margin-bottom: 8px;
        font-size: 0.9rem;
        justify-content: center;
        flex-direction: row;
    }

    .footer-contact li i,
    .footer-links li i {
        min-width: 20px;
        margin-right: 8px;
    }

    .footer-social {
        justify-content: center;
        gap: 1.5rem !important;
    }

    .footer-social a {
        font-size: 1.5rem;
        color: #fff;
        transition: color 0.3s;
    }

    .footer-top > div p {
        font-size: 0.9rem;
        margin: 0 0 20px 0 !important;
        text-align: center;
        display: block !important;
        width: 100% !important;
        clear: both !important;
        float: none !important;
        padding: 0 !important;
    }

    .footer-top > div p.small {
        font-size: 0.85rem;
        margin: 0 0 20px 0 !important;
        text-align: center;
        display: block !important;
        width: 100% !important;
        clear: both !important;
        float: none !important;
        padding: 0 !important;
    }

    .footer-top > div ul {
        text-align: center;
        padding: 0;
        list-style: none;
    }

    .footer-top > div ul li a {
        color: #fff;
    }

    .btn-lg {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        width: 100% !important;
        display: block;
        text-align: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.85rem;
        margin-bottom: 8px;
        text-align: center;
    }

    .footer-terms {
        color: #ccc;
        text-align: center;
    }

    .footer-divider {
        margin: 20px 0;
    }
}

/* Footer Desktop Optimization - Large screens */
@media (min-width: 992px) {
    .footer-top {
        display: flex;
        align-items: flex-start;
    }

    .footer-contact-col {
        order: 5;
        text-align: right;
    }

    .footer-contact-col .footer-section-icon {
        left: 90%;
        transform: translateY(-50%);
    }

    .footer-contact-col ul {
        text-align: right;
    }

    .footer-contact-col li {
        justify-content: flex-end;
    }

    /* Stack office hours vertically on desktop */
    .footer-top > .col-12.col-md-6.col-lg-2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Increase spacing between office hours and after hours on desktop */
    .footer-top > div p {
        margin-bottom: 16px !important;
        line-height: 1.8;
    }

    .footer-top > div p:first-of-type {
        margin-bottom: 24px !important;
    }

    .footer-top > div p.small {
        margin-bottom: 16px !important;
    }
    }
}

/* WELCOME STRIP SIZE & SPACING */
.welcome-strip {
    padding: 80px 0 70px;
    background: #f4f1f8;
}

.welcome-strip h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #6a1b9a;
    margin-bottom: 20px;
}

.welcome-strip p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    max-width: 1100px;
}

/* STATS SAFETY FIX */
.stats {
    padding: 80px 0;
    position: relative;
}

.stat-tile {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* SERVICES TO NEXT SECTION SPACING */
.services-section {
    margin-bottom: 90px;
}

/* WHY HOSPITAL AT HOME */
.hospital-works {
    padding: 90px 0;
    background: linear-gradient(180deg, #ffffff, #f7f4fb);
}

.hospital-works h2 {
    color: #6a1b9a;
    font-weight: 600;
}

.works-card {
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    border-left: 6px solid #9c27b0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    height: 100%;
}

.works-card h4 {
    margin-bottom: 18px;
    color: #ad1457;
}

.works-card h4 i {
    margin-right: 8px;
    color: #6a1b9a;
}

.works-card ul {
    padding-left: 18px;
}

.works-card li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.7;
}

.services-section {
    margin-bottom: 40px;
}

.hospital-works {
    margin-top: 0;
    padding-top: 60px;
}

/* CLINICAL PARTNERSHIP MODEL */
.clinical-partnership {
    padding: 90px 0;
    background: #ffffff;
}

.clinical-partnership h2 {
    color: #6a1b9a;
    font-weight: 600;
}

.clinical-partnership .lead {
    max-width: 900px;
    margin: 0 auto;
    color: #555;
    line-height: 1.8;
}

.partnership-tile {
    background: #f8f6fb;
    padding: 35px;
    border-radius: 14px;
    border-left: 5px solid #ad1457;
    height: 100%;
}

.partnership-tile h4 {
    margin-bottom: 18px;
    color: #6a1b9a;
}

.partnership-tile h4 i {
    margin-right: 8px;
    color: #ad1457;
}

.partnership-tile ul {
    padding-left: 18px;
}

.partnership-tile li {
    margin-bottom: 10px;
    color: #444;
}

.partnership-tile.subtle {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    line-height: 1.9;
    background: linear-gradient(135deg, #f4f1f8, #ffffff);
}

/* Home Care Horizontal Tiles */
.home-care-works {
    position: relative;
}
.home-care-works .tile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
} 

.home-care-works .step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg,#ff8acb,#7a4bd9);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
}

.home-care-works .step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    color: #ad1457;
}

.home-care-works .step-content { flex: 1 1 auto; min-width: 0; }

.home-care-works .tile i { transition: transform .25s ease; }
.home-care-works .tile:hover i { transform: translateY(-4px); }
.home-care-works .tile h5 { font-weight: 600; color: #6a1b9a; margin-bottom: 6px; }
.home-care-works .tile p { color: #555; font-size: 0.95rem; line-height: 1.5; margin:0; }

.home-care-works .tile i {
    color: #ad1457; /* icon color */
    transition: transform .25s ease;
}

.home-care-works .tile:hover i {
    transform: translateY(-4px);
}

.home-care-works .tile h5 {
    font-weight: 600;
    color: #6a1b9a;
    margin-bottom: 10px;
}

.home-care-works .tile p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 575px) {
  .home-care-works .tile { padding: 14px; text-align: left; flex-direction: row; }
  .home-care-works::before { display: none; } /* remove vertical pink line on mobile */
  .home-care-works .step-badge { position: static; width: 40px; height: 40px; margin-left: 12px; }
  .arrow-col { display: flex !important; margin: 12px 0; justify-content: center; }
  .arrow-col i { transform: rotate(90deg); }
}

/* Arrows between tiles */
.arrow-col i {
    color: #ad1457;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .arrow-col {
        display: flex;
        justify-content: center;
        margin: 8px 0;
    }
}

/* ABOUT US SECTION */
/* ABOUT US SECTION */
.about-us {
    background-color: #f8f8f8;
}

.about-us h2 {
    color: #6a1b9a;
    font-weight: 600;
}

.about-us h3, .about-us h4, .about-us h5 {
    color: #ad1457;
    margin-top: 1.5rem;
}

.about-us p {
    color: #444;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Column layout on desktop */
@media (min-width: 992px) {
    .about-us .row.g-4 {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .about-us .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Ensure service sections take full width */
    .about-us .col-lg-6 > .about-service-section {
        flex: 0 0 auto !important;
        min-width: 100% !important;
    }
}

/* Mosaic grid wrapper */
.mosaic-grid {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* Mosaic Tiles */
.about-tile {
    border-radius: 14px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 3px solid rgba(255,255,255,0.06);
    min-height: 100px;
}

.about-tile .tile-text {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.about-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.12));
    mix-blend-mode: multiply;
    pointer-events: none;
}

.about-tile:hover, .about-tile:focus {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    outline: none;
}

.about-tile.small {
    flex: 1 1 calc(48% - 6px);
    min-height: 120px;
}

.about-tile.medium {
    flex: 1 1 100%;
    min-height: 160px;
}

.about-tile.large {
    flex: 1 1 100%;
    min-height: 240px;
}

/* Benefit cards */
.benefit-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(122,75,217,0.08);
    box-shadow: 0 8px 24px rgba(122,75,217,0.04);
    padding: 2rem 1.5rem;
    min-height: auto;
    height: auto;
}
.benefit-card i { color: #6a1b9a; }

/* Service sections - separate content areas */
.about-service-section {
    display: block;
    width: 100%;
    flex: 0 0 100% !important;
    padding: 1.5rem;
    background: #ffffff;
    border-left: 4px solid #ad1457;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(122,75,217,0.06);
    margin-bottom: 1.5rem;
}

.service-title {
    color: #ad1457;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-closing-section {
    color: #666;
    font-style: italic;
    padding-top: 1.5rem;
}

.about-closing-section p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Desktop: Make benefit cards display 3 per row */
@media (min-width: 992px) {
    .about-us .row.g-3 .col-md-4 {
        flex: 0 0 calc(33.333% - 1rem) !important;
        max-width: calc(33.333% - 1rem) !important;
    }
}

/* CTA inside about */
.about-cta {
    background: linear-gradient(90deg,#7a4bd9,#ff69b4);
    color:#fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight:700;
}

/* Focus-visible for mosaic tiles */
.about-tile:focus-visible { box-shadow: 0 0 0 4px rgba(122,75,217,0.12); }

/* Mobile adjustments */
@media (max-width: 575px) {
    .mosaic-grid { gap: 10px; }
    .about-tile.small, .about-tile.medium, .about-tile.large { flex-basis: 100% !important; min-height: 110px; }
    .about-tile.large { min-height: 180px; }
    .about-tile .tile-text { font-size: 1.25rem; }
    .benefit-card { padding: 14px; }
    .about-cta { width: 100%; display: inline-block; padding: 12px; }
    
    /* Hide image on mobile for about section */
    .about-image {
        display: none !important;
    }
    
    /* Ensure about section first column (image) is hidden and content is full width */
    .about-us .col-lg-6:first-of-type {
        display: none !important;
    }
    
    /* Ensure benefit card columns stack properly on mobile */
    .about-us .col-md-4 {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* Ensure proper text display in about section */
    .about-us .col-lg-6:last-of-type {
        padding: 1rem;
        display: block !important;
        flex-direction: column !important;
    }
    
    /* Ensure heading and paragraphs stack vertically and display with proper spacing */
    .about-us h3,
    .about-us p {
        width: 100% !important;
        clear: both !important;
        float: none !important;
        display: block !important;
        margin-bottom: 1rem !important;
    }
    
    /* Ensure row with benefit cards stacks properly */
    .about-us .row {
        flex-direction: column !important;
    }
    
    /* Values section flip cards on mobile */
    .mission-vision-values .flip-card {
        height: 280px !important;
        min-height: 280px !important;
    }
    
    .mission-vision-values .flip-card-inner {
        min-height: 280px !important;
        height: 100% !important;
    }
    
    .mission-vision-values .flip-card-front,
    .mission-vision-values .flip-card-back {
        min-height: 280px !important;
        height: 280px !important;
    }
    
    .mission-vision-values .value-flip-card {
        height: 280px !important;
        min-height: 280px !important;
        padding: 1rem 0.75rem !important;
    }
    
    /* Remove gap between values cards on mobile */
    .mission-vision-values .row {
        gap: 0 !important;
    }
    
    /* Remove column margins/padding on mobile */
    .mission-vision-values [class*="col-"] {
        margin-bottom: 0 !important;
    }
}

/* Responsive Mosaic */
@media (max-width: 991px) {
    .about-us .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .about-tile {
        width: 48%;
        margin: 1% 1%;
    }
}

/* Text inside mosaic tiles */
.about-tile .tile-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 10px;
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

/* Font size based on tile size */
.about-tile.large .tile-text {
    font-size: 2.5rem;
}

.about-tile.medium .tile-text {
    font-size: 1.8rem;
}

.about-tile.small .tile-text {
    font-size: 1.3rem;
}

/* Hover effect */
.about-tile:hover .tile-text {
    transform: scale(1.1);
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

/* Appointment Modal */
#appointmentModal .form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#appointmentModal .form-control:focus {
    border-color: #ad1457;
    box-shadow: 0 0 10px rgba(173,20,87,0.3);
}

#appointmentModal .btn-primary {
    background: linear-gradient(135deg, #6a1b9a, #ad1457);
    border: none;
    font-weight: 600;
    padding: 12px 40px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#appointmentModal .btn-primary:hover {
    transform: scale(1.05);
}

/* Confirmation Modal */
#confirmationModal .modal-body p {
    font-size: 1.1rem;
    color: #333;
}

#confirmationModal .btn-success {
    background-color: #28a745;
    border-radius: 8px;
    padding: 10px 30px;
    font-weight: 600;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-box.center {
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
}

.modal-box h2 {
  margin-bottom: 8px;
  color: #4b2e83;
}

.modal-subtitle {
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}

.form-row {
  display: flex;
  gap: 12px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #7a4bd9;
}

.btn-primary {
  background: linear-gradient(135deg, #7a4bd9, #4b2e83);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.95;
}

.full-width {
  width: 100%;
}

.nav-link.active {
  color: #7a4bd9;
  font-weight: 600;
  border-bottom: 2px solid #7a4bd9;
}

section {
  scroll-margin-top: 100px;
}

/* TESTIMONIALS */
.testimonials-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0f8ff 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(79, 158, 196, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(121, 24, 116, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.section-header h2 {
  font-weight: 700;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.section-header .subtitle {
  color: #4f9ec4;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.section-intro {
  max-width: 850px;
  margin: 0 auto;
  color: #666;
  line-height: 1.8;
  font-size: 1.1rem;
}

.testimonial-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  margin-top: 70px;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  padding: 60px 50px;
  border-radius: 25px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.testimonial-decoration {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 8px;
}

.decoration-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f9ec4, #791864);
  opacity: 0.3;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f9ec4, #791864);
  border-radius: 25px 25px 0 0;
}

.testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.15), 0 20px 45px rgba(0, 0, 0, 0.1);
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 40px;
  font-size: 70px;
  color: rgba(79, 158, 196, 0.1);
  z-index: 1;
}

.testimonial-text {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.8;
  font-style: italic;
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: #4f9ec4;
  position: absolute;
  top: -15px;
  left: -20px;
  font-family: 'Georgia', serif;
  opacity: 0.3;
}

.testimonial-text::after {
  content: '"';
  font-size: 3rem;
  color: #4f9ec4;
  position: absolute;
  bottom: -35px;
  right: -20px;
  font-family: 'Georgia', serif;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 2px solid rgba(79, 158, 196, 0.1);
  position: relative;
  z-index: 2;
}

.author-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f9ec4, #2c7da0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  margin-right: 20px;
  box-shadow: 0 8px 20px rgba(79, 158, 196, 0.3);
  border: 3px solid #fff;
}

.testimonial-author h5 {
  margin: 0 0 5px 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: #777;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial-rating {
  position: absolute;
  bottom: 25px;
  right: 30px;
  display: flex;
  gap: 3px;
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-header {
  padding: 20px 0 5px;
}

/* FLIP CARDS - DISABLED FLIP, SHOW INFO ONLY */
.flip-card {
  background-color: transparent;
  height: auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: auto;
  text-align: center;
}

.flip-card-front {
  display: none !important;
}

.flip-card-back {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 15px;
  transform: none;
}

.value-flip-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(121, 24, 116, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.value-flip-card:hover {
  box-shadow: 0 15px 35px rgba(121, 24, 116, 0.15);
  transform: translateY(-5px);
}

.value-flip-card i {
  transition: all 0.3s ease;
}

.value-flip-card:hover i {
  transform: scale(1.1);
}

.value-flip-card h5 {
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value-flip-card h6 {
  color: #791864;
  font-weight: 600;
  margin-bottom: 1rem;
}

.value-flip-card p {
  color: #666;
  line-height: 1.5;
}

/* Contact Section */
.contact-section {
    background: #f7f7f7; /* light gray background */
    color: #1a0a3c;
    font-family: 'Poppins', sans-serif;
}

.contact-section h2 {
    color: #6a0dad; /* purple heading */
    font-weight: 600;
}

.contact-section p {
    color: #333;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    border: 2px solid #d3d3d3;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .form-control:focus {
    border-color: #6a0dad;
    box-shadow: 0 0 8px rgba(106,13,173,0.3);
}

.contact-form .btn-primary {
    background: linear-gradient(90deg, #6a0dad, #ff69b4);
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Contact Modal */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.contact-modal {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.contact-modal h4 {
    color: #6a0dad;
    margin-bottom: 15px;
}

.contact-modal p {
    color: #333;
    margin-bottom: 20px;
}

.contact-modal .btn-primary {
    padding: 10px 30px;
    font-size: 1rem;
    border-radius: 8px;
}

/* SOCIAL SIDEBAR */
.social-sidebar {
    position: fixed;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    z-index: 1100;
    transition: transform 0.28s ease, opacity 0.2s ease;
}
.social-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.social-sidebar ul li { margin: 12px 0; }
.social-sidebar ul li a {
    display:flex;
    justify-content:center;
    align-items:center;
    width:48px;
    height:48px;
    background:#fff;
    color:#6a0dad;
    font-size:18px;
    border-radius:50%;
    box-shadow:0 8px 20px rgba(0,0,0,0.12);
    transition: transform .22s ease, background .22s ease, color .22s ease;
    text-decoration:none;
}
.social-sidebar ul li a:hover, .social-sidebar ul li a:focus { transform: translateY(-6px); background: linear-gradient(135deg,#6a0dad,#ff69b4); color:#fff; }

/* Mobile: convert to bottom-centered pill; keep hidden until toggle opened */
.social-sidebar { left: 50%; top: auto; bottom: 18px; transform: translateX(-50%) translateY(8px) scale(.98); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .2s ease; }
.social-sidebar.open { transform: translateX(-50%) scale(1); opacity: 1; pointer-events: auto; }
.social-sidebar ul { flex-direction: row; background: rgba(255,255,255,0.95); padding: 8px 10px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); backdrop-filter: blur(6px); }
.social-sidebar ul li { margin: 0 6px; }

/* Mobile toggle button */
.social-toggle { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1110; background: linear-gradient(90deg,#7a4bd9,#ff69b4); color:#fff; width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 12px 30px rgba(122,75,217,0.18); border:none; }
.social-toggle i { font-size:18px; }
.social-toggle[aria-expanded='true'] { box-shadow:0 16px 40px rgba(122,75,217,0.25); transform: translateX(-50%) scale(1.05); }

/* Decorative button and navbar polish */
/* Navbar is now white everywhere - removed gradient */

/* Navbar is white everywhere - no need for desktop-specific rules */

.btn-primary { transition: transform .18s ease, box-shadow .18s ease; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(122,75,217,0.14); }

/* Ensure social toggle hidden on desktop */
@media (min-width: 992px) {
  .social-toggle { display: none; }
  .social-sidebar { left: 12px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .social-sidebar ul { flex-direction: column; padding: 0; background: transparent; box-shadow:none; backdrop-filter: none; }
  .social-sidebar ul li { margin: 14px 0; }
}

* {
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Responsive improvements */
@media (max-width: 991px) {
  .nav-logo { max-width: 140px; }
  .navbar-custom { padding: 8px 12px; }
  .welcome-strip { padding: 60px 12px; background-size: 180px auto; }
  .welcome-strip h3 { font-size: 1.6rem; }
  .stat-tile { padding: 18px; }
  .image-placeholder { min-height: 180px; }
  .about-tile.large .tile-text { font-size: 1.8rem; }
  .about-tile.medium .tile-text { font-size: 1.2rem; }
  .about-tile.small .tile-text { font-size: 1rem; }
  .social-sidebar { left: 8px; }
  .nav-links { gap: 18px; }
  /* Hide mobile-only CTAs on small screens as requested */
  .mobile-cta, .social-toggle { display: none !important; }
}

@media (max-width: 575px) {
    .nav-logo { max-width: 120px; }
  .welcome-strip { padding: 40px 10px; background-size: 140px auto; }
  .welcome-strip h3 { font-size: 1.4rem; }
  .home-care-works .tile { padding: 18px; min-width: 0; }
  
  /* Testimonials Mobile Optimization */
  .testimonials-section { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
  .section-header .subtitle { font-size: 1rem; }
  .section-intro { font-size: 0.95rem; max-width: 100%; }
  
  .testimonial-wrapper { 
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
  }
  
  .testimonial-card { 
    padding: 25px 18px;
    border-radius: 15px;
  }
  
  .quote-icon { 
    font-size: 50px;
    left: 15px;
    top: -10px;
  }
  
  .testimonial-text { 
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .testimonial-author { 
    margin-top: 25px;
    padding-top: 15px;
  }
  
  .author-avatar {
    width: 50px;
    height: 50px;
    font-size: 0.9rem;
    margin-right: 12px;
    border: 2px solid #fff;
  }
  
  .testimonial-author h5 { 
    font-size: 0.95rem;
    margin-bottom: 3px;
  }
  
  .testimonial-author span { 
    font-size: 0.8rem;
  }
  
  .testimonial-rating {
    bottom: 15px;
    right: 15px;
    gap: 2px;
  }
  
  .testimonial-rating i { 
    font-size: 0.85rem;
  }
  
  .decoration-circle { 
    width: 6px;
    height: 6px;
  }
  
  .about-tile.large { height: 160px; }
  section { scroll-margin-top: 80px; }
  .navbar-custom .nav-links { flex-direction: column; gap: 12px; }
} 

/* Mobile-only: overlay navbar with white background */
@media (max-width: 575px) {
    .navbar-custom {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: white !important;
        padding: 10px 12px;
        z-index: 1200;
    }

    /* Keep brand/logo on the left and toggler on the right */
    .navbar-custom .container-fluid { display:flex; align-items:center; gap:8px; }
    .navbar-custom .navbar-brand { margin-right: 0; }
    .navbar-custom .navbar-toggler { margin-left: auto; }

    /* When the collapsed menu is shown, give it an opaque background for readability */
    .navbar-custom .navbar-collapse.collapse.show {
        background: #ffffff;
        padding: 12px;
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    /* Ensure nav links in expanded menu are readable */
    .navbar-custom .navbar-collapse .nav-links a { color: #1a0a3c; }
    .navbar-custom .navbar-collapse .nav-links a.active,
    .navbar-custom .navbar-collapse .nav-links a:hover { color: #7a4bd9; }

    /* Slightly reduce logo size for mobile */
    .navbar-custom .nav-logo { max-height: 56px; }
}

@media (max-width: 575px) {
}

/* Focus-visible enhancement for keyboard users */
:focus-visible {
  outline: 3px solid rgba(122,75,217,0.35);
  outline-offset: 2px;
}

/* Ensure modal dialogs are constrained on small screens */
.modal-dialog {
  max-width: 540px;
  margin: 1.75rem auto;
}

@media (max-width: 575px) {
  .modal-dialog {
    margin: 12px;
    max-width: calc(100% - 24px);
  }
  .modal-content { border-radius: 12px; }
} 

/* UNIFIED CARD STYLING FOR ENTIRE PAGE */
/* Mission, Vision & Values Section */
.mission-vision-values {
    padding: 80px 0;
    background: #f4f1f8;
}

.mission-vision-values h2 {
    color: #6a1b9a;
    font-weight: 600;
    margin-bottom: 60px;
    font-size: 2.2rem;
}

.value-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(122,75,217,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #791864;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(122,75,217,0.15);
}

.value-card i {
    color: #791864;
    margin-bottom: 16px;
}

.value-card h4 {
    color: #6a1b9a;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.value-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Stakeholders Section */
.stakeholders {
    padding: 80px 0;
    background: #ffffff;
}

.stakeholders h2 {
    color: #6a1b9a;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.stakeholders .lead {
    color: #555;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.stakeholder-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(122,75,217,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #791864;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stakeholder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(122,75,217,0.15);
}

.stakeholder-card i {
    color: #791864;
    margin-bottom: 16px;
    font-size: 2rem;
}

.stakeholder-card h5 {
    color: #6a1b9a;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.stakeholder-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Service Process Section */
.service-process {
    padding: 80px 0;
    background: #f4f1f8;
}

.service-process h2 {
    color: #6a1b9a;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.service-process .lead {
    color: #555;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.process-step {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(122,75,217,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #791864;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(122,75,217,0.15);
}

.process-step .step-number {
    margin-bottom: 20px;
}

.process-step .step-number .badge {
    background: linear-gradient(135deg, #791864, #ad1457);
    color: #fff;
    font-size: 1.2rem;
    padding: 10px 16px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step h5 {
    color: #6a1b9a;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.process-step h5 i {
    color: #791864;
    margin-right: 8px;
}

.process-step p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .mission-vision-values h2,
    .stakeholders h2,
    .service-process h2 {
        font-size: 1.8rem;
    }
    
    .value-card,
    .stakeholder-card,
    .process-step {
        padding: 24px;
    }
    
    /* Mobile service layout: service-pair ensures text first, then image */
    .service-pair {
        flex-direction: column;
    }
    
    .service-pair .col-12 {
        width: 100%;
    }
}

/* Ensure images are always visible on mobile */
@media (max-width: 575px) {
    .mission-vision-values h2,
    .stakeholders h2,
    .service-process h2 {
        font-size: 1.5rem;
    }
    
    .value-card,
    .stakeholder-card,
    .process-step {
        padding: 20px;
    }
    
    .value-card i,
    .stakeholder-card i {
        font-size: 2rem;
    }
    
    /* Ensure service images are visible on mobile */
    .services-section .image-placeholder {
        display: block !important;
        visibility: visible !important;
        min-height: 140px !important;
        order: 2 !important; /* Images come after text on mobile */
    }
    
    .services-section .service-card {
        order: 1 !important; /* Text comes first on mobile */
    }
    
    .services-section .image-placeholder img {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        object-fit: cover !important;
    }
}

/* Mobile CTA */
.mobile-cta { position: fixed; bottom:18px; left:50%; transform:translateX(-50%); z-index:1100; background: linear-gradient(90deg,#7a4bd9,#ff69b4); color:#fff; padding:10px 18px; border-radius:40px; box-shadow:0 8px 30px rgba(122,75,217,0.18); font-weight:700; display:flex; align-items:center; gap:8px; text-decoration:none; }
.mobile-cta i { font-size: 1.05rem; }

/* Back to top */
.back-to-top { position: fixed; right:18px; bottom:18px; z-index:1100; background:#1a0a3c; color:#fff; border-radius:50%; width:44px; height:44px; display:none; align-items:center; justify-content:center; box-shadow:0 12px 30px rgba(0,0,0,.2); border:none; }
.back-to-top.show { display:flex; transform:translateY(0); transition:transform .25s ease; }

/* Navbar scrolled */
.navbar-custom.scrolled { background: white !important; box-shadow:0 8px 20px rgba(0,0,0,0.12); padding:6px 12px; transition:all .3s ease; }

/* Final polish: consistent spacing and accessibility */
section:not(.welcome-strip) {
    padding-top: 40px; /* reduced spacing between sections for a tighter flow */
    padding-bottom: 40px;
}

/* Accessible focus for buttons */
.btn-primary:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(122,75,217,0.18);
  outline-offset: 3px;
}

/* Navbar collapse styling for mobile for clarity */
@media (max-width:991px) {
  .navbar-custom .navbar-collapse {
    background: rgba(255,255,255,0.98);
    padding: 14px;
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }
  .navbar-custom .navbar-collapse .nav-links a {
    color: #1a0a3c;
  }
  .navbar-custom .navbar-collapse .nav-links a:hover,
  .navbar-custom .navbar-collapse .nav-links a.active { color: #7a4bd9; }
}

/* Service card hover */
.service-card { transition: transform .35s ease, box-shadow .35s ease; }
.service-card:hover { transform: translateY(-8px) scale(1.02); box-shadow:0 20px 40px rgba(0,0,0,0.08); }

/* Counters */
.counter { font-weight:700; font-size:1.8rem; display:inline-block; }

/* subtle float for badge */
@keyframes floaty { 0% { transform:translateY(0);} 50%{ transform:translateY(-6px);} 100%{ transform:translateY(0);} }
/* Hamburger Button Styling */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
    z-index: 1110;
    position: relative;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: #1a0a3c;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1105;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mobile-menu.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu.active .mobile-nav-links {
    animation: slideDown 0.3s ease;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 16px 0;
    text-align: left;
}

.mobile-nav-links li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-links li:last-child {
    border-bottom: none;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #1a0a3c;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 8px;
}

.mobile-nav-links a:hover {
    color: #791864;
    background-color: rgba(121, 24, 100, 0.05);
}
}

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 991px) {
    /* Mobile navbar: sticky at top with visible styling */
    .navbar-custom {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        padding: 10px 20px;
        z-index: 1100;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .navbar-custom .navbar-brand { position: static; z-index: 1110; }
    
    /* Show hamburger button on mobile */
    .hamburger {
        display: flex;
    }

    .navbar-custom .navbar-collapse { display: none !important; }
    .navbar-custom .navbar-toggler { position: static; z-index: 1110; border: none; background: transparent; }
    .navbar-custom .navbar-toggler .fa-bars { color: #1a0a3c; font-size: 1.2rem; }

    /* When menu expanded, show as modal dialog */
    .collapse.show {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0,0,0,0.5) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1105 !important;
        padding: 20px !important;
        width: 100% !important;
        height: 100% !important;
    }
    .collapse.show .navbar-nav {
        background: white;
        border-radius: 16px;
        padding: 40px 30px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        position: relative;
        z-index: 1106;
        max-width: 500px;
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        margin: 0;
    }
    .collapse.show .nav-links { flex-direction: column !important; gap: 20px !important; padding: 0 !important; align-items: center !important; margin: 0 !important; list-style: none !important; display: flex !important; }
    .collapse.show .nav-links li { width: 100%; }
    .collapse.show .nav-links li a { color: #1a0a3c !important; font-size: 1.2rem !important; font-weight: 700 !important; text-decoration: none !important; transition: color 0.3s; display: block !important; text-align: center !important; padding: 10px 0; }
    .collapse.show .nav-links li a:hover,
    .collapse.show .nav-links li a.active { color: #791864 !important; }
}

@media (max-width: 575px) {
    .mobile-cta { bottom: 14px; width: calc(100% - 40px); left: 50%; transform: translateX(-50%); }

    /* Mobile navbar: sticky at top with visible styling */
    .navbar-custom {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        background: white !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        padding: 10px 20px;
        z-index: 1100;
        width: 100%;
    }
    .navbar-custom .navbar-collapse { display: none !important; }
    .navbar-custom .navbar-brand { position: static; z-index: 1110; }
    .navbar-custom .navbar-toggler { position: static; z-index: 1110; border: none; background: transparent; }
    .navbar-custom .navbar-toggler .fa-bars { color: #1a0a3c; font-size: 1.2rem; }

    /* When menu expanded, show as modal dialog */
    .collapse.show {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0,0,0,0.5) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1105 !important;
        padding: 20px !important;
        width: 100% !important;
        height: 100% !important;
    }
    .collapse.show .navbar-nav {
        background: white;
        border-radius: 16px;
        padding: 40px 30px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        position: relative;
        z-index: 1106;
        max-width: 500px;
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        margin: 0;
    }
    .collapse.show .nav-links { flex-direction: column !important; gap: 20px !important; padding: 0 !important; align-items: center !important; margin: 0 !important; list-style: none !important; display: flex !important; }
    .collapse.show .nav-links li { width: 100%; }
    .collapse.show .nav-links li a { color: #1a0a3c !important; font-size: 1.2rem !important; font-weight: 700 !important; text-decoration: none !important; transition: color 0.3s; display: block !important; text-align: center !important; padding: 10px 0; }
    .collapse.show .nav-links li a:hover,
    .collapse.show .nav-links li a.active { color: #791864 !important; }
}

   
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1105 !important; 
        padding: 20px !important;
        width: 100% !important;
        height: 100% !important;
    }
    .collapse.show .navbar-nav {
        background: white;
        border-radius: 16px;
        padding: 40px 30px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        position: relative;
        z-index: 1106;
        max-width: 500px;
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        margin: 0;
    }
    .collapse.show .nav-links { flex-direction: column !important; gap: 20px !important; padding: 0 !important; align-items: center !important; margin: 0 !important; list-style: none !important; display: flex !important; }
    .collapse.show .nav-links li { width: 100%; }
    .collapse.show .nav-links li a { color: #1a0a3c !important; font-size: 1.2rem !important; font-weight: 700 !important; text-decoration: none !important; transition: color 0.3s; display: block !important; text-align: center !important; padding: 10px 0; }
    .collapse.show .nav-links li a:hover,
    .collapse.show .nav-links li a.active { color: #791864 !important; }
}

@media (max-width: 575px) {
    .mobile-cta { bottom: 14px; width: calc(100% - 40px); left: 50%; transform: translateX(-50%); }

    /* Mobile navbar: sticky at top with visible styling */
    .navbar-custom {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        background: white !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    .mobile-cta { bottom: 14px; width: calc(100% - 40px); left: 50%; transform: translateX(-50%); }

    /* Mobile navbar: sticky at top with visible styling */
    .navbar-custom {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        background: white !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        padding: 10px 20px;
        z-index: 1100;
        width: 100%;
    }
    .navbar-custom .navbar-collapse { display: none !important; }
    .navbar-custom .navbar-brand { position: static; z-index: 1110; }
    .navbar-custom .navbar-toggler { position: static; z-index: 1110; border: none; background: transparent; }
    .navbar-custom .navbar-toggler .fa-bars { color: #1a0a3c; font-size: 1.2rem; }

    /* When menu expanded, show as modal dialog */
    .collapse.show { 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important;
        background: rgba(0,0,0,0.5) !important; 
        position: fixed !important; 
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1105 !important; 
        padding: 20px !important;
        width: 100% !important;
        height: 100% !important;
    }
    .collapse.show .navbar-nav {
        background: white;
        border-radius: 16px;
        padding: 40px 30px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        position: relative;
        z-index: 1106;
        max-width: 500px;
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        margin: 0;
    }
    .collapse.show .nav-links { flex-direction: column !important; gap: 20px !important; padding: 0 !important; align-items: center !important; margin: 0 !important; list-style: none !important; display: flex !important; }
    .collapse.show .nav-links li { width: 100%; }
    .collapse.show .nav-links li a { color: #1a0a3c !important; font-size: 1.2rem !important; font-weight: 700 !important; text-decoration: none !important; transition: color 0.3s; display: block !important; text-align: center !important; padding: 10px 0; }
    .collapse.show .nav-links li a:hover,
    .collapse.show .nav-links li a.active { color: #791864

/* Mobile Responsiveness for Service Flip Cards */
@media (max-width: 991px) {
    .services-section .row > [class*="col-lg-"] {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .services-section .row > [class*="col-"] img {
        min-height: 250px;
        width: 100%;
    }

    .flip-card {
        height: auto;
        min-height: 320px;
    }

    .service-flip-card {
        min-height: 320px;
        padding: 1.5rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    .service-flip-card h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .service-flip-card h6 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .service-flip-card p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .service-flip-card p:last-child {
        margin-bottom: 0;
    }

    .service-flip-card i {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* Mobile Responsiveness for Values Section */
@media (max-width: 991px) {
    .mission-vision-values .row > [class*="col-"] {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .mission-vision-values .flip-card {
        height: auto;
        min-height: 280px;
        width: 100% !important;
    }

    .mission-vision-values .value-flip-card {
        padding: 2rem 1.5rem !important;
        min-height: 280px;
        width: 100% !important;
    }
}

@media (max-width: 575px) {
    .services-section {
        padding: 40px 0;
    }

    .services-section .row {
        gap: 1rem !important;
    }

    .services-section .row > [class*="col-"] {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .services-section .row > [class*="col-"] img {
        min-height: 280px;
        width: 100%;
        height: auto;
        display: block;
    }

    .flip-card {
        height: auto;
        min-height: 380px;
    }

    .flip-card-inner {
        min-height: 380px;
    }

    .flip-card-front,
    .flip-card-back {
        min-height: 380px;
        display: flex;
        align-items: center;
    }

    .service-flip-card {
        min-height: 380px;
        padding: 1.25rem 0.75rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        word-wrap: break-word;
    }

    .service-flip-card h5 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .service-flip-card h6 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .service-flip-card p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
    }

    .service-flip-card p:last-child {
        margin-bottom: 0;
    }

    .service-flip-card i {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .flip-card-front .small {
        font-size: 0.7rem !important;
    }

    .flip-card-back .small {
        font-size: 0.7rem !important;
        display: block;
        word-break: break-word;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }
}
