/* Modern Overrides for Healthcare Website */

/* 1. Global Modernizations */
:root {
    --primary-color: #0CC0DF;
    --secondary-color: #031B4B;
    --accent-color: #F0F4F8;
    --text-color: #334155;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    color: var(--text-color);
    background-color: #f8fafc !important; /* Lighter, fresher background */
}

/* 2. Hero Slider Styles */
.main-slider {
    position: relative;
    width: 100%;
    height: 85vh; /* Taller, more immersive */
    min-height: 600px;
    overflow: hidden;
}

.swiper-slide {
    position: relative; /* Ensure overlay fits */
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(3, 27, 78, 0.8) 0%, rgba(3, 27, 78, 0.4) 50%, rgba(3, 27, 78, 0.1) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    padding: 0 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.slide-subtitle {
    display: inline-block;
    background: rgb(166 173 190);
    backdrop-filter: blur(4px);
    border: 1px solid rgb(166 173 190);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    width: fit-content;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--white);
}

.slide-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-btn-group .btn {
    padding: 15px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-modern {
    background-color: var(--secondary-color);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(12, 192, 223, 0.4);
}

    .btn-primary-modern:hover {
        background-color: #0b368b;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(12, 192, 223, 0.5);
        color: white;
    }

.btn-outline-modern {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    margin-left: 16px;
}

.btn-outline-modern:hover {
    background: var(--white);
    color: var(--secondary-color);
    border-color: var(--white);
}

/* Custom Swiper Navigation */
.swiper-button-next, .swiper-button-prev {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
}

    .swiper-button-next:hover, .swiper-button-prev:hover {
        background: #0b368b;
    }

/* 3. Modern Component Overrides */

/* Cards (Services, Features) */
.feature-card-modern {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    border: 1px solid #eef2f6;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    transition: width 0.4s ease;
    z-index: -1;
}

.feature-card-modern:hover::before {
    width: 100%;
}

.icon-box-modern {
    width: 70px;
    height: 70px;
    background: rgba(12, 192, 223, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 32px;
    transition: all 0.3s ease;
}

.feature-card-modern:hover .icon-box-modern {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.card-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Section Headings */
.section-head-modern {
    margin-bottom: 60px;
    text-align: center;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Quick Info Bar (Glassmorphism overlap) */
.quick-info-bar {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    border-right: 1px solid #eee;
    padding: 0 20px;
}

.info-item:last-child {
    border-right: none;
}

.info-icon {
    font-size: 36px;
    color: var(--primary-color);
}

.info-content h5 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-weight: 600;
}

.info-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

@media (max-width: 991px) {
    .info-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 20px 0;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .quick-info-bar {
        margin-top: -40px;
    }
}


.image-matched-form-card {
    background: #233e60;
    /* Deep blue from image */
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    color: white;
}

.form-header-matched .title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    line-height: 1.2;
}

    .form-header-matched .title span {
        color: #00cae8;
        /* Cyan color from image */
    }

.form-header-matched .subtitle {
    font-size: 1rem;
    color: #b0c4de;
    margin-bottom: 40px;
    display: block;
    line-height: 1.5;
}

.matched-input-group {
    margin-bottom: 20px;
}

    .matched-input-group .form-control,
    .matched-input-group .modern-select-box {
        background: #2b486c !important;
        /* Slightly lighter blue for inputs */
        border: none !important;
        border-radius: 12px !important;
        color: white !important;
        height: 50px !important;
        padding: 0 25px !important;
        font-size: 1rem;
    }

        .matched-input-group .form-control::placeholder {
            color: rgba(255, 255, 255, 0.4) !important;
        }

    .matched-input-group textarea.form-control {
        height: 100px !important;
        padding-top: 15px !important;
    }

    .matched-input-group .position-relative i {
        position: absolute;
        right: 25px;
        top: 22px;
        color: rgba(255, 255, 255, 0.4);
        pointer-events: none;
    }

.btn-matched-cyan {
    background: var(--secondary-color) !important;
    /* Matched Cyan */
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    height: 65px !important;
    width: 100% !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-matched-cyan:hover {
        background-color: #0b368b;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(12, 192, 223, 0.5);
        color: white;
    }

@media (max-width: 991px) {
    .unique-appointment-layout {
        padding: 60px 0;
    }

    .doctor-team-wrapper {
        margin-bottom: 50px;
    }

    .image-matched-form-card {
        padding: 40px 25px;
    }

    .form-header-matched .title {
        font-size: 2.2rem;
    }
}