/* Enhanced CSS for MediCost with Fixed Navigation and Search */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    overflow-x: hidden;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
}
p{
    text-align:justify;
    line-height:;
}
.display-3 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

.display-5 {
    font-size: 2rem;
    font-weight: 600;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Enhanced Navigation with Fixed Header */
.navbar {
    backdrop-filter: blur(20px);
    background-color: #00314a !important;
    transition: var(--transition);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    z-index: 1050;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .navbar.scrolled {
        background-color: #00314a !important;
        box-shadow: var(--shadow-lg);
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--gray-200);
    }
.mlogo {
    width: 60px;
    height: auto;
    background: #00314a;
    border-radius: 50px;
    padding: 5px;
}
.medi-tag{

}
.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: var(--transition);
}
.navbar-toggler {
    background:#fff;
    border-radius:0px;
}
.navbar-brand:hover {
    color: var(--primary-dark) !important;
    transform: scale(1.05);
}
footer {
    background: #00314a;
}
footer ul{
    margin-left:10px;
}
    footer ul li a {
        text-decoration: none;
        color: #ebe7e7;
        font-size:14px;
    }
        footer ul li a:hover, footer ul li a:focus {
            color:#fff;
        }
        footer h6 {
            color: #fff;
        }
    footer h5{
        color:#fff;
        font-size:30px;
    }
    footer p {
        color: #ebe7e7;
    }
    /* Fixed Navigation Layout */
    .navbar-nav {
        align-items: center;
        gap: 0.5rem;
        margin-left: 30px;
        flex-wrap:wrap;
    }

.navbar-nav .nav-link {
    font-weight: normal;
    padding: 0.35rem .5rem !important;
    transition: var(--transition);
    position: relative;
    color: #fff !important;
    border-radius: var(--border-radius);
    white-space: nowrap;
    font-size:14px;
}

    .navbar-nav .nav-link:hover {
        color: #ffd067 !important;
        /*background-color: rgba(99, 102, 241, 0.1);*/
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 5px;
        left: 50%;
        background: #ffd067;
        transition: var(--transition);
        transform: translateX(-50%);
        border-radius: 1px;
    }

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Fixed Navbar Actions Alignment */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Enhanced Dropdown with Hover */
.dropdown {
    position: relative;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    background-color: white;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 220px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.5rem 1rem;
    border-color: var(--gray-200);
}

/* Enhanced Search Container with Fade Effects */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.search-toggle-btn:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.search-box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    width: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    width: 300px;
}

.search-box input {
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    flex: 1;
    color: var(--gray-700);
}

.search-box input::placeholder {
    color: var(--gray-400);
}

.search-close-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.search-close-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Hero Slider Fixes */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-item {
    height: 100vh;
}

.carousel-indicators {
    bottom: 2rem;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50%;
    margin: 0 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    transition: var(--transition);
    opacity: 0.7;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.3);
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}
.breadcrumb-item + .breadcrumb-item::before {
    color:#ddd;
}
/* Section Spacing Fixes */
.py-5 {
    padding: 5rem 0 !important;
}

section {
    position: relative;
    z-index: 1;
}

/* Custom gradient backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.bg-primary {
    background: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Enhanced Button Styles */
.btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    white-space: nowrap;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-height: 56px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #bc1122;
    color: #bc1122;
    background: transparent;
}

    .btn-outline-primary:hover {
        background: #bc1122;
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        border-color: #bc1122;
    }

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    border-color: white;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-light:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Icon Fixes */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    margin: 0 auto;
    flex-shrink: 0;
}

.step-icon {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    margin: 0 auto;
    flex-shrink: 0;
}
    .step-icon img{
        width:100%;
        height:auto;
    }
    .step-number {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 auto;
        flex-shrink: 0;
    }

.region-icon {
    margin-bottom: 1rem;
    color: #6366f1;
}

/* Card Fixes */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    background: white;
    opacity:1 !important;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 2rem;
}

.service-card {
    transition: var(--transition);
    height: 100%;
    opacity:1 !important;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.testimonial-card {
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hospital-card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.hospital-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Region Cards Fixes */
.region-card {
    padding: 1rem .3rem;
    border-radius: var(--border-radius-lg);
    background: #f5f5f5 !important;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.region-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stats Section Fixes */
.stat-item {
    padding: 1.5rem;
    text-align: center;
}

.counter {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: white;
}

/* Price Range Fixes */
.price-range {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}
/* Contact Page Styles */
.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius:50px;
}

.office-card {
    transition: all 0.3s ease;
}

    .office-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

.office-flag {
    font-size: 3rem;
    text-align: center;
}

.contact-details p {
    margin-bottom: 0.5rem;
}
/* Scroll to Top Button Fixes */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #bc111f;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Rating Fixes */
.hospital-rating {
    color: var(--warning-color);
    font-weight: 600;
}

.rating {
    color: var(--warning-color);
    font-size: 1.1rem;
}

/* Table Fixes */
.table-hover tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

/* Form Fixes */
.form-step {
    display: none;
    animation: fadeInUp 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

.step-indicator {
    padding: .5rem;
    border-radius: 50PX;
    transition: var(--transition);
    opacity: 0.5;
    background: rgba(99, 102, 241, 0.1);
    text-align: center;
}

.step-indicator.active {
    background: var(--gradient-primary);
    color: white;
    opacity: 1;
    transform: scale(1.1);
}

.step-indicator i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.registration-progress {
    margin-bottom: 0rem;
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-200);
    padding: 0.875rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-select {
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-200);
    padding: 0.875rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Social Links Fixes */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

    .social-links a:hover {
        background: rgba(116, 83, 173, 0.8);
        transform: translateY(-3px);
        color: white;
    }

/* Badge Fixes */
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    background: var(--gradient-primary);
    color: #fff !important;
}

/* Progress Bar Fixes */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: var(--gray-200);
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design Fixes */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .search-box.active {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
        gap: 0;
    }
    
    .navbar-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
    }
    
    .search-container {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .search-box.active {
        width: 100%;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    
    .search-toggle-btn {
        display: none;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
        margin-top: 1rem;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
    
    /* Mobile dropdown fixes */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-100);
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        height: 80vh;
    }
    
    .carousel-item {
        height: 80vh;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .feature-icon,
    .service-icon,
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .step-icon {
        width: 100%;
        height: auto;
        font-size: 1.5rem;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .region-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 1rem;
    }
    
    .carousel-control-next {
        right: 1rem;
    }
    
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .py-5 {
        padding: 3rem 0 !important;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    .input-group > .form-select {
        width:100%;
    }
    .hero-slide {
        height: 70vh;
    }
    
    .carousel-item {
        height: 70vh;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .py-5 {
        padding: 2.5rem 0 !important;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .region-card {
        padding: 1.5rem 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    .navbar{
        padding:0px;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .navbar-brand img{
        width:150px;
        height:auto;
    }
    #searchBack {
        height: 90vh !important;
        padding: 75px 10px !important;
        overflow: hidden;
        position: relative;
    }
        #searchBack video#bgVideo {
            position: absolute;
            top: 140px !important;
            left: 0;
            width: 100%;
            height: 100%;
            display:none;
            object-fit: contain !important;
            z-index: 0;
        }

        #searchBack *:not(video) {
            position: relative;
            z-index: 1;
        }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

.border-radius-lg {
    border-radius: var(--border-radius);
}

.border-radius-xl {
    border-radius: var(--border-radius-lg);
}

/* Ensure all content is visible */
.min-vh-100 {
    min-height: 100vh;
}

/* Fix z-index issues */
.navbar {
    z-index: 1050;
}

.carousel {
    z-index: 1;
}

.scroll-to-top {
    z-index: 1060;
}

.dropdown-menu {
    z-index: 1070;
}

/* Ensure proper spacing */
.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.g-5 {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
}

/* Fix button alignment */
.d-flex.gap-3 {
    gap: 1rem;
}

.justify-content-center {
    justify-content: center !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

/* Ensure proper text contrast */
.text-white {
    color: white !important;
}

.text-muted {
    color: #2a2b2c !important;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix card heights */
.h-100 {
    height: 100% !important;
}

/* Ensure proper alignment */
.align-items-center {
    align-items: center !important;
}

.text-center {
    text-align: center !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Search overlay for mobile */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* Contact Form Styles */
#contactForm .form-control {
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-200);
    padding: 0.875rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

    #contactForm .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        outline: none;
    }

#contactForm .form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

#contactForm .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
/* Feature Cards */
.feature-card {
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .feature-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.2) !important;
    }

/* Procedure Cards */
.procedure-card {
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

    .procedure-card:hover {
        transform: translateY(-8px) scale(1.05);
        background: rgba(255, 255, 255, 0.25) !important;
    }

.procedure-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.price-display {
    margin-top: 1rem;
}

/* Pulse Animation */
.pulse-animation {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}
/* Backdrop Blur Effect */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.navbar-collapse{
    justify-content:end;
}
/*Searchback Section*/
#searchBack {
    height: 100vh;
    padding: 100px 10px;
    overflow: hidden;
    position: relative;
    /*background-image: url('../images/medicost_bnr.jpg');
    background-size: cover;
    background-position: center*/
}
    #searchBack video#bgVideo {
        position: absolute;
        left: 0;
        width: 100%;
        object-fit: cover;
        z-index: 0;
    }

    #searchBack *:not(video) {
        z-index: 1;
    }
/*.search-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

    .search-container:hover {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
    }

.location-icon {
    position: relative;
    color: #6366f1;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 10px;
}

.location-option {
    display: none;
    position: absolute;
    top: 32px;
    left: -20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    width: 200px;
}
    .location-option label {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
        color: #333;
    }
.location-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

    .location-search:focus {
        border-color: #6366f1;
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
.location-icon:hover #locationOption {
    display: block;
}

.search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 8px 12px;
    background: transparent;
}

.search-button {
    background: #6366f1;
    border: none;
    color: white;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

    .search-button:hover {
        transform: scale(1.1);
    }*/
/* Package Page Styles */
.package-category-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

    .package-category-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

.package-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

    .package-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.package-image {
    position: relative;
    overflow: hidden;
}

    .package-image img {
        height: 200px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.package-card:hover .package-image img {
    transform: scale(1.05);
}

.package-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.package-features .feature-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.package-pricing {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.package-rating {
    font-size: 0.9rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.category-icon {
    width: 60px;
    padding: 10px;
    font-size: 1.5rem;
    border-radius: 50px;
}
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.animate {
    opacity: 1;
    transform: translateY(0);
}

.card, .service-card, .testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.skip-link:focus {
    position: absolute !important;
    top: 6px !important;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.is-valid {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Floating Widget Styles */
/* Floating button */
.floating-btn {
    position: fixed;
    bottom: 100px;
    right: 33px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 2000; /* Always on top */
}

/* Tabs container */
.tabs-container {
    position: fixed;
    bottom: 160px;
    right: 20px;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1999;
    /* Hidden by default */
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: all 0.25s ease;
}

    /* When active */
    .tabs-container.show {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

/* Tab headers */
.tab-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    background: #f9f9f9;
    transition: background 0.2s;
}

    .tab-btn.active {
        background: #6366f1;
        color: white;
    }

/* Tab content */
.tab-content {
    display: none;
    flex-direction: column;
    padding: 10px;
}

    .tab-content.active {
        display: flex;
    }

/* Items inside */
.item {
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.item span{
    margin-right:8px;
    font-size:14px;
}
    .item:hover {
        background: #f1f1f1;
    }

/* Hospital Profile Styles */
.hospital-hero {
    min-height: 60vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hospital-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 1;
    }

    .hospital-hero .container {
        position: relative;
        z-index: 2;
    }

.hospital-rating {
    font-size: 1.2rem;
}

.hospital-overview {
    line-height: 1.7;
}

.feature-highlight {
    transition: all 0.3s ease;
}

    .feature-highlight:hover {
        transform: translateY(-5px);
    }

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hospital-stats .stat-item {
    padding: 1rem;
    transition: all 0.3s ease;
}

    .hospital-stats .stat-item:hover {
        transform: translateY(-5px);
    }

.hospital-quick-info {
    top: 100px;
}

.info-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

    .info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.service-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.pricing-info {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.package-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

    .package-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

.package-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.package-features {
    font-size: 0.9rem;
    line-height: 1.6;
}

.package-pricing {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.facility-card {
    transition: all 0.3s ease;
}

    .facility-card:hover {
        transform: translateY(-5px);
    }

.facility-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

    .contact-form .form-control:focus,
    .contact-form .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    }
.social-links1 a {
    font-size: 1.5rem; /* adjust size */
    transition: all 0.3s ease;
    color: #555; /* default gray */
}

    /* Facebook */
    .social-links1 a .bi-facebook {
        color: #1877f2;
    }

    .social-links1 a:hover .bi-facebook {
        transform: scale(1.2);
        color: #145dbf;
    }

    /* Twitter (X) */
    .social-links1 a .bi-twitter {
        color: #1da1f2;
    }

    .social-links1 a:hover .bi-twitter {
        transform: scale(1.2) rotate(5deg);
        color: #0d8ddb;
    }

    /* Instagram */
    .social-links1 a .bi-instagram {
        background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .social-links1 a:hover .bi-instagram {
        transform: scale(1.2) rotate(-5deg);
    }

    /* WhatsApp */
    .social-links1 a .bi-whatsapp {
        color: #25D366;
    }

    .social-links1 a:hover .bi-whatsapp {
        transform: scale(1.2);
        color: #1da851;
    }
.carousel-container {
    position: relative;
    width: 100%;
    padding:10px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-card {
    flex: 0 0 25%; /* 4 per row by default */
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 0px;
    margin: 0; /* no gap */
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    transition: .3s ease-in-out;
}
.carousel-card a{
    display:inline-block;
    width:100%;
    height:100%;
}
    .carousel-card:hover{
        transform:scale(1.05);
        transition:.3s ease-in-out;
    }
    .carousel-overlay {
        background: linear-gradient(180deg, transparent, black, black);
        padding: 1rem 1.5rem;
        border-radius: 0px;
        text-align: center;
        position: absolute;
        bottom: 0;
        width: 100%;
    }

    .carousel-overlay h3 {
        color: #fff;
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
    }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #bc111f;
    color:#fff;
    border: none;
    width: 45px;
    height: 55px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

/* Responsive */
@media (max-width: 992px) {
    .carousel-card {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .carousel-card {
        flex: 0 0 100%;
        height: 280px;
    }
}
