/* fragment.css */

 .header .container{
        flex-direction:row !important;
        gap:0 !important;
    }
.header.scrolled .navbar{
    padding: 4px 0;
}

.header.scrolled .logo img{
    width: 44px;
}

.header.scrolled{
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
}
.partner-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}
/* =====================================================
   TOPBAR (scrolling ticker)
===================================================== */

.topbar {
    background: linear-gradient(90deg, #0d6efd, #0047b3, #0d6efd);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
    font-size: 14px;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}
.topbar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    animation: shimmer 5s ease-in-out infinite;
    pointer-events: none;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    box-shadow: 0 0 0 rgba(74, 222, 128, 0.6);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes shimmer {
    0%   { left: -150%; }
    60%  { left: 150%; }
    100% { left: 150%; }
}
.topbar-marquee {
    width: 100%;
    overflow: hidden;
}

.topbar-track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;   /* was 18s — slower since there's more text now */
}

.topbar-track:hover {
    animation-play-state: paused;
}

.topbar-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 40px;
    padding-right: 40px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.top-item a {
    color: #fff;
}

.top-item i {
    color: #fff;
}

.whatsapp {
    color: #25D366;
    font-weight: 600;
}

.whatsapp i {
    color: #25D366;
}
/* instead of applying to all icons */
.top-item:has(.fa-star) i {
    animation: twinkle 3s ease-in-out infinite;
}
.top-item i {
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.15); }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.navbar {
    padding: 12px 0;
    transition: var(--transition-smooth);
}

.header.scrolled .navbar {
    padding: 6px 0;
}

/* ---------- NAVBAR ROW ---------- */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* ---------- LOGO ---------- */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
    text-decoration: none;
}

.logo img {
    width: 52px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.header.scrolled .logo img {
    width: 44px;
}

.logo-text h2 {
    font-size: 21px;
    font-weight: 800;
    color: var(--accent-color);
    margin: 0;
    line-height: 1.1;
}

.logo-text p {
    margin: 2px 0 0 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* On desktop: menu + actions sit together on the right */
.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    padding: 10px 16px !important;
    position: relative;
    color: var(--text-main) !important;
    transition: var(--transition-smooth);
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--accent-color) !important;
    background: rgba(13, 110, 253, 0.04);
}

.nav-link.active {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition-smooth);
    border-radius: 10px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 40%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 24px;
}

.search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--text-main);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
}

.book-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 50px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.2);
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-decoration: none;
}

.book-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    color: #fff;
}

/* ================= FOOTER ================= */

.site-footer {
    background: #f8fbff;
    color: #333;
    padding: 55px 0 0;
    border-top: 1px solid #e7eef8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 60px;
}
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr 1.4fr;
    gap: 0;
    padding-bottom: 45px;
}

.footer-grid h3 {
    font-size: 21px;
    margin-bottom: 22px;
    color: #fff;
}
.footer-column {
    padding: 0 35px;
    border-right: 1px solid #e1e7ef;
}
.footer-column:last-child {
    border-right: none;
    padding-right: 0;
}
.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    color: #172033;
    margin-bottom: 22px;
}

.footer-grid p {
    color: #cbd7e8;
    line-height: 1.8;
    margin: 0;
}

/* Brand */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
}
.footer-logo img {
    width: 65px;
    height: auto;
}
.footer-logo h3 {
    color: #0d47a1;
    margin: 0;
    font-size: 18px;
}
.footer-logo span {
    color: #777;
    font-size: 11px;
}
.footer-brand > p {
    color: #667085;
    line-height: 1.8;
    margin: 0;
}
/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: #4b5563;
    text-decoration: none;
    transition: .3s;
}


.footer-links a:hover,
.footer-contact a:hover {
    color: #0d6efd;
}
/* Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 17px;
}
.footer-contact p,
.footer-centers p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}



.footer-contact i,
.footer-centers i {
    width: 20px;
    color: #0d6efd;
    font-size: 18px;
    margin-top: 3px;
}
.footer-whatsapp i,
.footer-whatsapp a {
    color: #25D366;
}
/* Social */

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}
/* ================= FOOTER SOCIAL ================= */

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

/* Facebook */
.footer-social a:has(.fa-facebook-f) {
    background: #1877F2;
}

/* Instagram */
.footer-social a:has(.fa-instagram) {
    background: linear-gradient(
        135deg,
        #833AB4,
        #C13584,
        #E1306C,
        #F77737,
        #FCAF45
    );
}

/* YouTube */
.footer-social a:has(.fa-youtube) {
    background: #FF0000;
}

/* WhatsApp */
.footer-social a:has(.fa-whatsapp) {
    background: #25D366;
}

.footer-social a:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    color: #fff;
}


.footer-social a:hover {
    transform: translateY(-4px);
}

/* Bottom bar */
/* Bottom bar */

.footer-bottom {
    background: linear-gradient(90deg, #0d6efd, #0047b3);
    color: #fff;
    min-height: 58px;
    border-radius: 18px 18px 0 0;
    padding: 16px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}
.copyright {
    margin-top: 50px;
    padding: 22px 0;
    text-align: center;
    color: #aebdd1;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 14px;
}

/* Floating buttons */
.call-float,
.whatsapp-float {
    position: fixed;
    right: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    z-index: 9999;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
    transition: .3s;
}

.call-float {
    bottom: 95px;
    background: #0d6efd;
}

.whatsapp-float {
    bottom: 25px;
    background: #25D366;
}

.call-float:hover,
.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
}

/* Mobile */

@media (max-width: 768px) {

    .site-footer {
        padding-top: 45px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

     .call-float,
        .whatsapp-float {
            right: 16px;
            width: 50px;
            height: 50px;
            font-size: 21px;
        }
 .call-float {
        bottom: 82px;
    }


      .whatsapp-float {
           bottom: 20px;
       }

    .copyright {
        margin-top: 35px;
        padding-bottom: 85px;
    }
}
/* =====================================================
   MOBILE / TABLET (<991px)
===================================================== */
@media (max-width:991px){

    /* ---------- TOP BAR ---------- */
    .topbar{ padding:8px 0; }



    /* ---------- HEADER ---------- */
    .header{
        position:sticky;
        top:0;
    }

    .navbar{ padding:10px 0; }

    /* Top row (logo + toggler) must NEVER wrap onto two lines */
    .navbar .container{
        display:flex;
        align-items:center;
        justify-content:space-between;
        flex-wrap:nowrap;      /* was wrap — this was letting the toggler drop to row 2 */
        position:relative;      /* anchor point for the dropdown below */
    }

    /* ---------- LOGO ---------- */
    .logo{
        display:flex;
        align-items:center;
        gap:10px;
        flex:0 1 auto;
        min-width:0;
        max-width:calc(100% - 65px);
        text-decoration:none;
        margin:0;
    }

    .logo img{
        width:55px;
        height:auto;
        flex-shrink:0;
    }

    .logo-text{
        min-width:0;
        overflow:hidden;
    }

    .logo-text h2{
        margin:0;
        font-size:19px;
        line-height:1.2;
        color:#0d6efd;
        font-weight:700;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .logo-text p{
        margin:2px 0 0;
        font-size:12px;
        color:#777;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    /* ---------- HAMBURGER ---------- */
    .navbar-toggler {
        display: block;
        z-index: 1010;
        position: relative;
        width: 30px;
        height: 22px;
        border: none;
        background: none;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
        flex-shrink: 0;
    }
    .navbar-toggler:focus { box-shadow: none; outline: none; }

    .navbar-toggler span {
        position: absolute;
        width: 100%;
        height: 3px;
        background: #1e293b;
        left: 0;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .navbar-toggler span:nth-child(1) { top: 0; }
    .navbar-toggler span:nth-child(2) { top: 9px; }
    .navbar-toggler span:nth-child(3) { bottom: 0; }

    .navbar-toggler.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
        background: #0d6efd;
    }
    .navbar-toggler.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    .navbar-toggler.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 10px;
        background: #0d6efd;
    }

    /* ---------- SLIDING DRAWER PANEL ---------- */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        margin-top: 0;
        padding: 85px 24px 30px;
        background: #ffffff;
        box-shadow: -10px 0 35px rgba(0,0,0,0.12);
        z-index: 1000;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                    visibility 0.45s;
    }

    .navbar-collapse.show {
        transform: translateX(0);
        visibility: visible;
    }

    /* When not shown, prevent display: none from bootstrap */
    .navbar-collapse:not(.show) {
        display: flex !important; 
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        margin: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        opacity: 0;
        transform: translateX(20px);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    }

    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Stagger links entry */
    .navbar-collapse.show .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .navbar-collapse.show .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .navbar-collapse.show .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .navbar-collapse.show .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .navbar-collapse.show .nav-item:nth-child(5) { transition-delay: 0.3s; }

    .nav-link {
        display: flex !important;
        align-items: center;
        width: 100%;
        padding: 14px 12px !important;
        font-size: 16px;
        font-weight: 500;
        color: #1e293b !important;
        text-align: left;
        border-radius: 8px;
        transition: all 0.25s ease;
    }

    .nav-link:hover, 
    .nav-link.active {
        color: #0d6efd !important;
        background: #f0f7ff;
        padding-left: 18px !important;
    }

    .nav-link::after {
        display: none !important;
    }

    /* ---------- HEADER RIGHT (Action buttons in drawer) ---------- */
    .header-right {
        margin: auto 0 0 0 !important;
        padding-top: 24px;
        border-top: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        opacity: 0;
        transform: translateY(15px);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, opacity 0.4s ease 0.35s;
    }

    .navbar-collapse.show .header-right {
        opacity: 1;
        transform: translateY(0);
    }

    .search-btn {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        padding: 12px !important;
        background: #f1f5f9;
        color: #475569;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 15px;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    
    .search-btn:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

    .search-btn::after {
        content: "Search Tests";
    }

    .book-btn {
        width: 100% !important;
        justify-content: center;
        padding: 14px 20px !important;
        font-size: 15px;
        font-weight: 600;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(13,110,253,0.15) !important;
        transition: all 0.25s ease;
    }
    
    .book-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(13,110,253,0.25) !important;
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 991px) {

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 0;
    }

    .footer-column {
        border-right: none;
        padding: 0 25px;
    }

    .footer-column:nth-child(odd) {
        padding-left: 0;
    }
}

@media (max-width: 576px) {

    .site-footer {
        padding-top: 40px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-column,
    .footer-column:first-child,
    .footer-column:last-child {
        padding: 0;
        border: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 18px 15px 90px;
        border-radius: 14px 14px 0 0;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 12px;
    }
}