:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --secondary: #0284c7;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --gray-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* top bar */
.top-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    padding: 8px 0;
}

.top-bar a {
    color: var(--gray-muted);
    text-decoration: none;
    transition: 0.2s;
}

.top-bar a:hover {
    color: var(--primary);
}

/* navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: 0.2s;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.3rem;
    letter-spacing: -0.3px;
}

.navbar-brand small {
    font-size: 0.75rem;
    color: var(--gray-muted);
    display: block;
    line-height: 1.1;
}

.navbar-brand .brand-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.6rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* announcement marquee */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 12px 0;
    font-size: 0.95rem;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    animation: marquee 28s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* hero carousel */
.hero-carousel .carousel-item {
    height: 560px;
    background-size: cover;
    background-position: center 30%;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.carousel-caption {
    bottom: 22%;
    text-align: left;
}

.carousel-caption h1 {
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* quick cards */
.quick-services {
    margin-top: 1px;
    position: relative;
    z-index: 10;
    margin-bottom: 0px;
}

.quick-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    text-align: center;
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.quick-card i {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 16px;
}

/* section */
section {
    padding: 70px 0;
}

.section-title h2 {
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--gray-muted);
    max-width: 620px;
    margin: 0 auto 45px auto;
}

/* doctor card */
.doctor-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.06);
    border-color: var(--primary);
}

.doctor-img-wrapper {
    position: relative;
    padding-top: 24px;
    background: #f1f5f9;
    text-align: center;
}

.doctor-img-wrapper img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #10b981;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

/* service card */
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 22px;
    border: 1px solid #edf2f7;
    transition: 0.2s;
    height: 100%;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.7rem;
    margin-bottom: 20px;
}

/* buttons */
.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 500;
    transition: 0.2s;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 40px;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li a {
    color: #94a3b8;
    text-decoration: none;
    line-height: 2.2;
    transition: 0.2s;
}

footer ul li a:hover {
    color: #fff;
}

footer .social-icons a {
    color: #cbd5e1;
    margin-right: 16px;
    font-size: 1.2rem;
    transition: 0.2s;
}

footer .social-icons a:hover {
    color: #fff;
}

footer .contact-line {
    color: #bdc3c7;
    line-height: 2;
}

footer .contact-line i {
    color: var(--primary);
    width: 24px;
    text-align: center;
}

footer .copyright-line {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 18px 0 0;
}

/* modal */
.modal-content {
    border: none;
    border-radius: 24px;
}

/* responsive */
@media (max-width: 991.98px) {

    /* মোবাইলে মেনু ডানে-বামে স্ক্রল করা যাবে */
    #navbarNav {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        padding: 4px 0;
    }

    #navbarNav .navbar-nav,
    #navbarNav .d-flex {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    #navbarNav .nav-link,
    #navbarNav .btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* মেনু সবসময় দেখানো হয় তাই টগলার লুকানো */
    .navbar .navbar-toggler {
        display: none;
    }

    .navbar .container {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 380px;
    }

    .quick-services {
        margin-top: -30px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .login-dropdown {
        width: 92%;
        max-width: 340px;
        right: 0;
        left: 4%;
        margin: 0 auto;
    }
}