﻿:root {
    --primary-color: #2a7de1;
    --primary-dark: #1c65c1;
    --secondary-color: #3bbab5;
    --accent-color: #ff6b6b;
    --light-bg: #f0f7ff;
    --light-border: #d0e5ff;
    --dark-text: #1a365d;
    --light-text: #4a5568;
    --medical-gradient: linear-gradient(135deg, #2a7de1, #3bbab5, #4cd1c4);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --footer-bg: #0f172a;
    --footer-color: #e2e8f0;
}

html,
body {
    margin: 0;
    font-family: 'Segoe UI', 'Public Sans', sans-serif;
    background: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container,
.container-fluid {
    overflow-x: clip;
}

/* Premium Navbar - Medical Theme */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--light-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 1100;
    width: 100%;
    max-width: 100%;
    position: fixed;
    left: 0;
    right: 0;
}

.navbar-scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-dark) !important;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 0;
    text-shadow: none;
    letter-spacing: 0.3px;
}

    .navbar-brand::before {
        display: none;
    }

/* Center Menu */
.center-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

    .center-menu .navbar-nav {
        flex-direction: row;
    }

.nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
        background: rgba(42, 125, 225, 0.08);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 3px;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background: var(--medical-gradient);
        border-radius: 3px;
        transition: var(--transition);
    }

    .nav-link:hover::after {
        width: 70%;
    }

.nav-item .nav-link.active,
.nav-item .nav-link[aria-current="page"] {
    color: var(--primary-color) !important;
    background: rgba(42, 125, 225, 0.08);
}

/* Right Menu */
.right-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    color: var(--primary-color);
}

    .nav-icon:hover {
        background: rgba(42, 125, 225, 0.1);
        color: var(--primary-dark);
        transform: translateY(-2px);
    }

.badge-custom {
    background: var(--medical-gradient);
    font-size: 0.65rem;
    padding: 4px 7px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

/* Dropdown Menu Fixes */
.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.3s ease;
    display: none;
    position: absolute;
    z-index: 1000;
    right: 0;
    left: auto !important;
    transform: none !important;
}

    .dropdown-menu.show {
        display: block;
    }

.cart-dropdown {
    min-width: 320px;
    right: 0;
}

.profile-dropdown {
    min-width: 250px;
    right: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--dark-text);
    text-decoration: none;
}

    .dropdown-item:hover {
        background: var(--light-bg);
        color: var(--primary-color);
        transform: translateX(5px);
    }

.dropdown-divider {
    border-color: var(--light-border);
    opacity: 0.5;
    margin: 0.5rem 0;
}

.cart-item {
    padding: 0.8rem;
    border-radius: 12px;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

    .cart-item:hover {
        border-color: var(--light-border);
        background: rgba(255, 255, 255, 0.5);
    }

/* Profile image replacement */
.profile-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--medical-gradient);
    color: white;
    font-size: 18px;
    transition: var(--transition);
    border: 2px solid transparent;
}

    .profile-icon:hover {
        transform: scale(1.05);
        box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.2);
    }

/* Premium button */
.btn-premium {
    background: var(--medical-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

    .btn-premium:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        color: white;
    }

/* Reusable hover utilities */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .hover-lift:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    }

.hover-glow:hover {
    box-shadow: 0 0 0 4px rgba(42, 125, 225, 0.12), var(--shadow-md);
}

.link-underline {
    position: relative;
    text-decoration: none;
}

    .link-underline::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        height: 2px;
        width: 0;
        background: var(--medical-gradient);
        transition: width .25s ease;
        border-radius: 2px;
    }

    .link-underline:hover::after {
        width: 100%;
    }

.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(42, 125, 225, 0.25) !important;
}

a,
.btn {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Page header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

    .page-header h2 {
        font-weight: 800;
        font-size: clamp(2rem, 5vw, 2.5rem);
        background: var(--medical-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        display: inline-block;
        margin-bottom: 1.2rem;
        letter-spacing: -0.5px;
    }

        .page-header h2::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 5px;
            background: var(--medical-gradient);
            border-radius: 3px;
            max-width: 100%;
        }

    .page-header p {
        color: var(--light-text);
        font-size: clamp(1rem, 3vw, 1.15rem);
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.7;
    }


/* Hero Slider */
.hero-slider {
    height: 90vh;
    position: relative;
    overflow: hidden;
    margin-top: 75px;
    padding-top: 80px;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 90vh;
        padding-top: 72px;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

    .slide.active {
        opacity: 1;
        z-index: 1;
    }

.slide-1 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("https://i.pinimg.com/1200x/91/43/39/914339b75f15daba84052b119cd3ccf8.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("https://images.unsplash.com/photo-1504814532849-92787d1bb4b7");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("https://images.unsplash.com/photo-1534751516642-a1af1ef26a56");
    background-size: cover;
    background-position: center;
    background-repeat:  no-repeat;
}
.slide-content {
    max-width: 800px;
    padding: 0 20px;
}

.slide h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide p {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    margin: 20px auto 36px;
    max-width: 700px;
}

.btn-hero {
    background-color: #fff;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

    .btn-hero:hover {
        background-color: #f0f0f0;
        color: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    }

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .slider-controls {
        bottom: 20px;
        gap: 8px;
    }

    .slider-dot {
        width: 14px;
        height: 14px;
    }

        .slider-dot.active {
            transform: scale(1.3);
        }
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

    .slider-dot.active {
        background: #fff;
        transform: scale(1.2);
    }

/* Features Section */
.features {
    padding: 100px 0;
    text-align: center;
    background: #fff;
}

@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }
}

.features h2 {
    margin-bottom: 60px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

    .features h2::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: var(--medical-gradient);
        border-radius: 2px;
    }

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border-top: 4px solid transparent;
    background-clip: padding-box;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
        border-image: var(--medical-gradient);
        border-image-slice: 1;
    }

    .feature-card i {
        font-size: 3.5rem;
        margin-bottom: 25px;
        background: var(--medical-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .feature-card h5 {
        font-weight: 600;
        margin-bottom: 15px;
        color: var(--dark-text);
    }

    .feature-card p {
        color: var(--light-text);
    }

/* Floating elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: var(--medical-gradient);
    opacity: 0.1;
    z-index: 0;
}

.float-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.float-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

/* Section with background */
.section-with-bg {
    position: relative;
    overflow: hidden;
    background-color: #f0f7ff;
    background-image: radial-gradient(at 40% 20%, rgba(42, 125, 225, 0.1) 0px, transparent 50%), radial-gradient(at 80% 0%, rgba(59, 186, 181, 0.1) 0px, transparent 50%), radial-gradient(at 0% 50%, rgba(255, 107, 107, 0.1) 0px, transparent 50%);
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 24px;
}

@media (max-width: 768px) {
    .section-with-bg {
        margin: 2rem 0;
        padding: 2rem 0;
    }
}

/* Medicine cards */
.medicine-card {
    background: linear-gradient(135deg, #ffffff, #f8faff);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.9);
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

    .medicine-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: var(--medical-gradient);
        opacity: 0.8;
        transition: var(--transition);
    }

    .medicine-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 50px rgba(42, 125, 225, 0.2), 0 0 20px rgba(59, 186, 181, 0.1) !important;
        border-color: rgba(42, 125, 225, 0.2);
    }

    .medicine-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(42, 125, 225, 0.05), rgba(59, 186, 181, 0.05));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
        pointer-events: none;
    }

    .medicine-card:hover::after {
        opacity: 1;
    }

    .medicine-card:hover::before {
        opacity: 1;
        height: 8px;
    }

.card-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .card-img-container {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .card-img-container {
        height: 140px;
    }
}

.medicine-card img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1);
}

.medicine-card:hover img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.05) contrast(1.1);
}


.category-badge {
    transition: all 0.3s ease;
}

.medicine-card:hover .category-badge {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn {
    position: relative;
    overflow: hidden;
}

    .add-to-cart-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
    }

    .add-to-cart-btn:hover::before {
        left: 100%;
    }

    .add-to-cart-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 15px 35px rgba(42, 125, 225, 0.4);
    }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.03) 100%);
    pointer-events: none;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 1.8rem;
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
}

.medicine-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    line-height: 1.4;
}

    .medicine-name a {
        color: inherit;
        text-decoration: none;
        transition: var(--transition);
        display: block;
    }

        .medicine-name a:hover {
            color: var(--primary-color);
            text-shadow: 0 1px 10px rgba(42, 125, 225, 0.15);
        }

.stock-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.in-stock {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.out-of-stock {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    position: relative;
}

.current-price {
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--medical-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.8rem;
}

.original-price {
    font-size: 1.1rem;
    color: var(--light-text);
    text-decoration: line-through;
    position: relative;
}

.add-to-cart-btn {
    background: var(--medical-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.8rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

/* Doctor cards */
.doctor-card {
    background: linear-gradient(135deg, #ffffff, #f8faff);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.9);
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

    .doctor-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: var(--medical-gradient);
        opacity: 0.8;
        transition: var(--transition);
    }

    .doctor-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 50px rgba(42, 125, 225, 0.2), 0 0 20px rgba(59, 186, 181, 0.1) !important;
        border-color: rgba(42, 125, 225, 0.2);
    }

    .doctor-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(42, 125, 225, 0.05), rgba(59, 186, 181, 0.05));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
        pointer-events: none;
    }

    .doctor-card:hover::after {
        opacity: 1;
    }

    .doctor-card:hover::before {
        opacity: 1;
        height: 8px;
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.doctor-image-container {
    padding: 2rem 1rem 1.2rem;
    display: flex;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .doctor-image-container {
        padding: 1.5rem 1rem 1rem;
    }
}

@media (max-width: 576px) {
    .doctor-image-container {
        padding: 1.2rem 0.8rem 0.8rem;
    }
}

.doctor-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    filter: brightness(1);
}

@media (max-width: 768px) {
    .doctor-image {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 576px) {
    .doctor-image {
        width: 100px;
        height: 100px;
    }
}

.doctor-card:hover .doctor-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(42, 125, 225, 0.4), 0 0 30px rgba(59, 186, 181, 0.2);
    border-color: var(--medical-gradient);
    filter: brightness(1.05) contrast(1.1);
}

.doctor-specialty {
    transition: all 0.3s ease;
}

.doctor-card:hover .doctor-specialty {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(42, 125, 225, 0.2);
}

.btn-book,
.btn-chat {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 50px;
    text-decoration: none;
}

    .btn-book::before,
    .btn-chat::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .btn-book:hover::before,
    .btn-chat:hover::before {
        left: 100%;
    }

    .btn-book:hover,
    .btn-chat:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 10px 25px rgba(42, 125, 225, 0.3);
    }

.doctor-card-body {
    padding: 0 1.5rem 1.8rem;
    text-align: center;
}

@media (max-width: 768px) {
    .doctor-card-body {
        padding: 0 1.2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .doctor-card-body {
        padding: 0 1rem 1.2rem;
    }
}

.doctor-name {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--dark-text);
    letter-spacing: -0.5px;
}

    .doctor-name a {
        color: inherit;
        text-decoration: none;
        transition: var(--transition);
    }

        .doctor-name a:hover {
            color: var(--primary-color);
            text-shadow: 0 1px 10px rgba(42, 125, 225, 0.15);
        }

.doctor-contact {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

    .doctor-contact i {
        width: 16px;
        color: var(--primary-color);
        margin-right: 0.4rem;
    }

.doctor-specialty {
    background: rgba(42, 125, 225, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
}

.consultation-price {
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--medical-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: block;
}

.doctor-bio {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating {
    margin-bottom: 1.5rem;
}

    .rating i {
        color: #ffc107;
        font-size: 1.1rem;
        margin: 0 0.1rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

        .rating i.inactive {
            color: #e2e8f0;
        }

    .rating:hover i {
        transform: scale(1.1);
    }

.action-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .btn-book,
    .btn-chat {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        gap: 0.5rem;
    }
}

.btn-book {
    background: var(--medical-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-chat {
    background: rgba(42, 125, 225, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Enhanced Footer Styles */
footer {
    background: linear-gradient(135deg, var(--footer-bg), #1e293b);
    color: var(--footer-color);
    padding: 60px 0 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--medical-gradient);
        opacity: 0.3;
    }

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .footer-content {
        gap: 30px;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.footer-logo {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

    .footer-logo::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: var(--medical-gradient);
        border-radius: 2px;
    }

.footer-description {
    color: var(--footer-color);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 350px;
    margin: 0 auto;
    opacity: 0.9;
}

.footer-column {
    position: relative;
}

    .footer-column h4 {
        font-size: 1.3rem;
        margin-bottom: 25px;
        position: relative;
        padding-bottom: 12px;
        color: var(--footer-color);
        font-weight: 700;
    }

        .footer-column h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--medical-gradient);
            border-radius: 2px;
            transition: width 0.3s ease;
        }

    .footer-column:hover h4::after {
        width: 80px;
    }

@media (max-width: 576px) {
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column:hover h4::after {
        width: 60px;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 15px;
    }

    .footer-links a {
        color: var(--light-text);
        text-decoration: none;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        position: relative;
        border-radius: 8px;
        overflow: hidden;
    }

        .footer-links a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            width: 3px;
            height: 0;
            background: var(--medical-gradient);
            transition: height 0.3s ease;
            transform: translateY(-50%);
        }

        .footer-links a:hover {
            color: var(--primary-color);
            transform: translateX(8px);
            padding-left: 12px;
        }

            .footer-links a:hover::before {
                height: 100%;
            }

    .footer-links i {
        font-size: 0.9rem;
        width: 18px;
        transition: transform 0.3s ease;
    }

    .footer-links a:hover i {
        transform: scale(1.2) rotate(10deg);
    }

.footer-contact {
    margin-bottom: 20px;
}

    .footer-contact p {
        display: flex;
        align-items: center;
        margin-bottom: 18px;
        color: var(--light-text);
        gap: 12px;
        padding: 10px;
        border-radius: 10px;
        transition: background 0.3s ease;
        position: relative;
    }

        .footer-contact p:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateX(5px);
        }

    .footer-contact i {
        color: var(--secondary-color);
        width: 22px;
        font-size: 1rem;
        transition: transform 0.3s ease;
    }

    .footer-contact p:hover i {
        transform: scale(1.1);
    }

@media (max-width: 576px) {
    .footer-contact p {
        justify-content: center;
        gap: 8px;
    }
}

.footer-social {
    display: flex;
    gap: 18px;
    margin-top: 25px;
    justify-content: center;
}

@media (max-width: 576px) {
    .footer-social {
        justify-content: center;
        gap: 15px;
    }
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--footer-color);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

    .footer-social a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--medical-gradient);
        transition: left 0.5s ease;
        z-index: -1;
    }

    .footer-social a:hover {
        background: var(--medical-gradient);
        color: white;
        transform: translateY(-5px) rotate(360deg) scale(1.1);
        box-shadow: 0 10px 30px rgba(42, 125, 225, 0.4);
    }

        .footer-social a:hover::before {
            left: 0;
        }

.footer-social i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.footer-social a:hover i {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

    .footer-bottom p {
        margin: 0;
        opacity: 0.8;
        transition: color 0.3s ease;
    }

    .footer-bottom:hover p {
        color: var(--primary-color);
    }

/* Floating elements in footer */
.footer-floating {
    position: absolute;
    border-radius: 50%;
    background: var(--medical-gradient);
    opacity: 0.05;
    animation: float 6s ease-in-out infinite;
}

    .footer-floating:nth-child(1) {
        top: 20%;
        right: 10%;
        width: 100px;
        height: 100px;
        animation-delay: 0s;
    }

    .footer-floating:nth-child(2) {
        bottom: 20%;
        left: 10%;
        width: 80px;
        height: 80px;
        animation-delay: 2s;
    }

@keyframes float {

    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Styles - Fixed Mobile Navbar */
@media (max-width: 991.98px) {

    /* Let the collapse push content instead of overlaying it */
    .center-menu {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 0;
    }

    /* Use Bootstrap's default show/hide */
    .navbar-collapse {
        display: none;
    }

        .navbar-collapse.show {
            display: block;
        }

    .center-menu .navbar-nav {
        flex-direction: column;
        text-align: left;
        gap: 0;
        padding: 0.25rem 0.25rem 0.5rem 0.25rem;
    }

        .center-menu .navbar-nav .nav-link {
            padding: 0.75rem 0.75rem !important;
            border-radius: 10px;
        }


    .menu-section-title {
        font-size: 0.78rem;
        color: var(--light-text);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin: 0.25rem 0.5rem 0.5rem 0.5rem;
    }

    .right-menu ul {
        display: none;
    }

    /* Center dropdowns safely within viewport on mobile */
    .dropdown-menu {
        left: 12px !important;
        right: 12px !important;
        transform: none !important;
        width: auto;
        max-width: calc(100vw - 24px);
    }

    /* Avoid horizontal scroll */
    .navbar,
    .container-fluid {
        max-width: 100vw;
        width: 100vw;
        overflow-x: hidden;
    }

    .navbar {
        padding-left: 12px;
        padding-right: 12px;
        left: 0;
        right: 0;
    }

        .navbar .container-fluid {
            padding-left: 0;
            padding-right: 0;
        }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .page-header {
        margin-bottom: 2rem;
    }

        .page-header h2 {
            font-size: clamp(1.5rem, 6vw, 2rem);
        }

        .page-header p {
            font-size: 0.95rem;
            padding: 0 1rem;
        }

    /* Fix empty space and page width on mobile */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

        .container.mt-5.mb-5 {
            margin-top: 1rem !important;
            margin-bottom: 1rem !important;
        }
}

/* See more button */
.see-more-btn {
    background: var(--medical-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: block;
    margin: 3rem auto 0;
    width: 275px;
    height: 55px;
    text-align: center;
    text-decoration: none;
}

    .see-more-btn:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        color: white;
    }

