/* Health BD – Custom UI Enhancements */

/* Color system */
:root {
    --hb-primary: #0d6efd;
    --hb-primary-2: #2e59d9;
    --hb-teal: #0ea27c;
    --hb-dark: #1f2937;
    --hb-muted: #6c757d;
    --hb-light: #f8f9fa;
    --hb-border: rgba(0, 0, 0, 0.08);
}

/* Base */
html {
    scroll-behavior: smooth;
}
body {
    padding-top: 64px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
h5 {
    color: var(--hb-dark);
    font-weight: 800;
    letter-spacing: -0.015em;
}
p {
    color: #475569;
}

/* Navbar polish */
.navbar.fixed-top {
    backdrop-filter: saturate(120%) blur(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.navbar .nav-link {
    font-weight: 600;
    color: #2f3b52;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--hb-primary);
}
.navbar .nav-link.active {
    color: var(--hb-primary);
}
.navbar-brand img {
    height: 44px;
    width: auto;
}

/* Menubar upgrades */
.navbar {
    min-height: 60px;
    border-bottom: 0;
}
.navbar .navbar-nav .nav-link {
    position: relative;
    font-weight: 600;
    color: #2f3b52;
    padding: 0.75rem 0.85rem;
    text-decoration: none !important;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    color: var(--hb-primary);
    text-decoration: none !important;
}
.navbar .navbar-nav .nav-link.active {
    color: var(--hb-primary);
    text-decoration: none !important;
}
.navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2px;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--hb-primary);
    transition: width 0.18s ease;
}
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 22px;
}
.navbar .navbar-toggler {
    border: 0;
    box-shadow: none !important;
}
.navbar .btn {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
}
.navbar .btn-secondary {
    background: #ffffff;
    color: #2f3b52;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.navbar .btn-secondary:hover {
    background: #f3f6ff;
    color: var(--hb-primary);
}
.navbar .btn-danger,
.navbar .btn-success {
    background: linear-gradient(
        135deg,
        var(--hb-primary) 0%,
        var(--hb-primary-2) 100%
    );
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25);
}
.navbar .btn-danger:hover,
.navbar .btn-success:hover {
    background: linear-gradient(
        135deg,
        var(--hb-primary-2) 0%,
        var(--hb-primary) 100%
    );
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.32);
}
.navbar .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* tighten space before slider */
.carousel_slider {
    margin-top: 10px;
}
@media (max-width: 991.98px) {
    body {
        padding-top: 56px;
    }
    .carousel_slider {
        margin-top: 5px;
    }
}

/* Hero: Find doctor */
.find-doctor-hero {
    background: linear-gradient(
        135deg,
        var(--hb-teal) 0%,
        var(--hb-primary) 100%
    );
}
.search-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-radius: 20px;
}
.search-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            600px 200px at 90% -10%,
            rgba(13, 110, 253, 0.08) 0%,
            rgba(13, 110, 253, 0) 60%
        ),
        radial-gradient(
            500px 200px at -10% 110%,
            rgba(14, 162, 124, 0.08) 0%,
            rgba(14, 162, 124, 0) 60%
        );
    z-index: 0;
    pointer-events: none;
}
.search-card > * {
    position: relative;
    z-index: 1;
}
.input-with-icon .form-control,
.input-with-icon .form-select {
    height: 56px;
    padding-left: 48px;
    border-radius: 14px;
    border: 1px solid rgba(13, 110, 253, 0.15);
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.04);
}
.input-with-icon .form-control:focus,
.input-with-icon .form-select:focus {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.08);
}
.input-with-icon .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f6ff;
    color: var(--hb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid rgba(13, 110, 253, 0.15);
}
.btn-search {
    height: 56px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--hb-primary) 0%,
        var(--hb-primary-2) 100%
    );
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(13, 110, 253, 0.45);
    color: #fff;
}
@media (max-width: 576.98px) {
    .search-card {
        border-radius: 16px;
    }
}

/* Service cards */
.service-card {
    border-radius: 16px;
    height: 100%;
    box-shadow: 0 14px 40px rgba(13, 110, 253, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: transparent;
}
.service-card .service-bg {
    inset: 0;
    background: linear-gradient(
            135deg,
            rgba(14, 162, 124, 0.95) 0%,
            rgba(13, 110, 253, 0.95) 100%
        ),
        radial-gradient(
            600px 200px at -10% 110%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0) 60%
        ),
        radial-gradient(
            600px 200px at 110% -10%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0) 60%
        );
    position: absolute;
}
.service-card.service-card--blue .service-bg {
    background: linear-gradient(
            135deg,
            rgba(13, 110, 253, 0.95) 0%,
            rgba(46, 89, 217, 0.95) 100%
        ),
        radial-gradient(
            600px 200px at -10% 110%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0) 60%
        ),
        radial-gradient(
            600px 200px at 110% -10%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0) 60%
        );
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(13, 110, 253, 0.18);
}
.icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, background-color 0.25s ease;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.service-card:hover .icon-wrapper {
    transform: scale(1.06);
    background-color: rgba(255, 255, 255, 0.28);
}
.service-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}
/* Improve Our Services text contrast */
.service-content {
    color: #ffffff;
}
.service-content h3 {
    color: #ffffff;
}
.service-content p {
    color: rgba(255, 255, 255, 0.95);
}

/* Specialty grid */
.specialty-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--hb-border);
}
.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.specialty-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}
.specialty-card:hover .specialty-icon {
    background: linear-gradient(135deg, #4e73df 0%, #36b9cc 100%);
    transform: scale(1.1);
}
.specialty-icon i {
    font-size: 28px;
    color: #333;
    transition: all 0.3s ease;
}
.specialty-card:hover .specialty-icon i {
    color: #fff;
}
.specialty-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    transition: all 0.3s ease;
}
.specialty-card:hover .specialty-title {
    color: #4e73df;
}
.specialty-overlay {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background-color: #4e73df;
    color: #fff;
    padding: 8px 0;
    transition: all 0.3s ease;
    opacity: 0;
}
.specialty-card:hover .specialty-overlay {
    bottom: 0;
    opacity: 1;
}
@media (max-width: 767.98px) {
    .specialty-icon {
        width: 60px;
        height: 60px;
    }
    .specialty-icon i {
        font-size: 24px;
    }
    .specialty-title {
        font-size: 14px;
    }
}

/* Doctors team section */
.team-bg {
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}
.team .member {
    gap: 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--hb-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.team .pic img {
    border-radius: 12px;
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.team .member-heading a {
    color: var(--hb-dark);
    font-weight: 700;
    text-decoration: none;
}
.team .member-heading a:hover {
    color: var(--hb-primary);
}
.team .team-icon {
    color: var(--hb-primary);
}

/* Hospital cards */
.hospital-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.hospital-logo {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.logo-container img {
    max-height: 100%;
    max-width: 70%;
    object-fit: contain;
    transition: all 0.3s ease;
}
.hospital-card:hover .logo-container img {
    transform: scale(1.05);
}
.hospital-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(40, 167, 69, 0.9);
    color: #fff;
    font-size: 12px;
    padding: 5px 15px;
    text-align: center;
    font-weight: 600;
}
.hospital-info {
    padding: 20px;
    flex-grow: 1;
}
.hospital-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hospital-meta {
    display: flex;
    justify-content: center;
    font-size: 14px;
    color: var(--hb-muted);
}
.hospital-actions {
    display: flex;
    padding: 15px;
    background-color: var(--hb-light);
    border-top: 1px solid #eee;
}
.hospital-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doctor-btn {
    background-color: #4e73df;
    color: #fff;
    margin-right: 5px;
}
.pathology-btn {
    background-color: #36b9cc;
    color: #fff;
    margin-left: 5px;
}
.hospital-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* Blog cards */
.blog-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.blog-image {
    position: relative;
    overflow: hidden;
}
.blog-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}
.blog-card:hover .blog-image img {
    transform: scale(1.1);
}
.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #4e73df;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}
.blog-content {
    padding: 25px;
    flex-grow: 1;
}
.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--hb-muted);
}
.blog-excerpt {
    color: var(--hb-muted);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    background-color: var(--hb-light);
}
.read-more {
    color: #4e73df;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}
.read-more:hover {
    color: var(--hb-primary-2);
}
.read-more i {
    transition: all 0.3s ease;
}
.read-more:hover i {
    transform: translateX(5px);
}

/* Sponsors marquee */
.brand-marquee {
    overflow: hidden;
    position: relative;
}
.brand-track {
    display: flex;
    align-items: center;
    gap: 36px;
    will-change: transform;
    animation: brand-scroll 28s linear infinite;
}
.brand-item {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 160px;
    height: 80px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.9;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.02);
}
.brand-marquee:hover .brand-track {
    animation-play-state: paused;
}
@keyframes brand-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
@media (max-width: 767.98px) {
    .brand-item {
        width: 120px;
        height: 64px;
        gap: 20px;
    }
    .brand-track {
        animation-duration: 24s;
    }
}
@media (prefers-reduced-motion: reduce) {
    .brand-track {
        animation: none;
    }
}

/* Hero slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f6fb;
    width: 80%;
    height: 500px;
    margin: 0 auto;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 400ms ease;
    will-change: opacity;
}
.hero-slide.is-active {
    opacity: 1;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(1.08) saturate(1.06) contrast(1);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.06) 0%,
        rgba(0, 0, 0, 0.03) 40%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    color: var(--hb-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.hero-nav.prev {
    left: 12px;
}
.hero-nav.next {
    right: 12px;
}
.hero-nav:hover {
    background: #fff;
}
.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}
.hero-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}
.hero-dots button.is-active {
    background: var(--hb-primary);
}
@media (max-width: 767.98px) {
    .hero-nav {
        width: 36px;
        height: 36px;
    }
    .hero-slider {
        width: 95%;
        height: 320px;
    }
}

/* Footer */
footer.bg-dark {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* New Footer */
.site-footer {
    background: #0f172a;
}
.site-footer .footer-main {
    background: linear-gradient(180deg, #0f172a 0%, #0b1223 100%);
}
.site-footer .footer-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}
.site-footer .footer-links li {
    margin: 0.25rem 0;
}
.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}
.site-footer .footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.site-footer .footer-social a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}
.site-footer .footer-social a:hover {
    color: #fff;
}
.site-footer .footer-bottom {
    background: #0b1223;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
