/* ============================================
   MediCare Doctors Clinic - Premium Medical Website
   Complete Custom Stylesheet
   ============================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-subtle: #dbeafe;
    
    /* Secondary Colors */
    --success-color: #16a34a;
    --success-light: #dcfce7;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #dc2626;
    --danger-light: #fee2e2;
    --info-color: #0891b2;
    --info-light: #cffafe;
    
    /* Neutral Colors */
    --dark-color: #1f2937;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #16a34a 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    --gradient-danger: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ---------- Base Styles ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Top Bar ---------- */
.top-bar {
    font-size: 0.875rem;
    background: var(--gradient-primary) !important;
}

.top-bar span i {
    opacity: 0.9;
}

.social-links a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
    padding: 0.75rem 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--gray-500);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-icon i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.75rem 1rem !important;
    position: relative;
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-subtle);
    color: var(--primary-color);
}

.emergency-btn-pulse {
    position: relative;
    overflow: hidden;
}

.emergency-btn-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 120px; height: 120px; opacity: 0; }
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    padding-top: 80px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.min-vh-75 {
    min-height: 70vh;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 500px;
}

.search-doctor-box {
    border-left: 4px solid var(--primary-color);
}

.search-doctor-box select:focus,
.search-doctor-box input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.trust-badges h4 {
    font-size: 1.75rem;
}

.vr {
    width: 1px;
    height: 40px;
    background: var(--gray-300);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    padding: 20px;
}

.hero-image-main {
    position: relative;
    z-index: 2;
    border: 5px solid var(--white);
}

.hero-image-main img {
    object-fit: cover;
    min-height: 450px;
}

.floating-card {
    position: absolute;
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.floating-card-2 {
    top: 45%;
    right: -20px;
    animation-delay: 0.5s;
}

.floating-card-3 {
    bottom: 10%;
    left: 0;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
}

.wave-bottom svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ---------- Emergency Banner ---------- */
.emergency-banner {
    background: var(--gradient-danger) !important;
}

.emergency-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Section Common Styles ---------- */
.departments-section,
.doctors-section,
.why-us-section,
.blogs-section,
.testimonials-section,
.insurance-section {
    position: relative;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    max-width: 600px;
    font-size: 1rem;
}

/* ---------- Department Cards ---------- */
.department-card {
    transition: var(--transition-base);
    cursor: pointer;
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.department-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.department-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.department-card:hover .department-img-wrapper img {
    transform: scale(1.1);
}

.department-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(37, 99, 235, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.department-card:hover .department-overlay {
    opacity: 1;
}

/* ---------- Doctor Cards ---------- */
.doctor-card {
    transition: var(--transition-base);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl) !important;
}

.doctor-img-wrapper {
    position: relative;
    overflow: hidden;
}

.doctor-img-wrapper img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.doctor-card:hover .doctor-img-wrapper img {
    transform: scale(1.05);
}

.doctor-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.doctor-card:hover .doctor-social-overlay {
    opacity: 1;
}

.doctor-name {
    font-size: 1.1rem;
}

.doctor-specialty {
    font-size: 0.875rem;
}

.doctor-rating i {
    font-size: 0.8rem;
}

/* ---------- Why Choose Us Section ---------- */
.feature-item {
    transition: var(--transition-base);
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-badge {
    max-width: 180px;
    z-index: 2;
}

/* ---------- Packages Section ---------- */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.package-card {
    transition: var(--transition-base);
}

.package-card:hover {
    transform: translateY(-10px);
}

.package-featured {
    border: 3px solid var(--warning-color) !important;
    position: relative;
}

.package-price {
    margin: 1rem 0;
}

.package-body ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--gray-200);
}

.package-body ul li:last-child {
    border-bottom: none;
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    transition: var(--transition-base);
    border-left: 4px solid transparent !important;
}

.testimonial-card:hover {
    border-left-color: var(--primary-color) !important;
    transform: translateY(-5px);
}

.testimonial-author img {
    width: 55px;
    height: 55px;
    object-fit: cover;
}

/* ---------- Blog Cards ---------- */
.blog-card {
    transition: var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.blog-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.08);
}

.blog-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title a:hover {
    color: var(--primary-color) !important;
}

/* ---------- Insurance Logos ---------- */
.insurance-logo {
    transition: var(--transition-base);
    cursor: pointer;
}

.insurance-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

/* ---------- Newsletter Section ---------- */
.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* ---------- Footer ---------- */
.footer-section {
    background: var(--gradient-dark) !important;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-heading {
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.footer-contact li i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-icon:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    font-size: 0.875rem;
}

/* ---------- WhatsApp Button ---------- */
.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition-base);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
    width: 45px;
    height: 45px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ---------- Page Header / Breadcrumb ---------- */
.page-header {
    background: var(--gradient-primary);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-title {
    font-size: 2.5rem;
    color: var(--white);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* ---------- About Page ---------- */
.about-intro-img {
    position: relative;
}

.about-intro-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.mission-vision-card {
    transition: var(--transition-base);
    height: 100%;
}

.mission-vision-card:hover {
    transform: translateY(-5px);
}

.stat-counter {
    font-size: 2.5rem;
    font-weight: 800;
}

.certification-badge {
    transition: var(--transition-base);
}

.certification-badge:hover {
    transform: scale(1.05);
}

/* ---------- Doctors Listing Page ---------- */
.doctor-filter-form .form-control,
.doctor-filter-form .form-select {
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
}

.doctor-list-card {
    transition: var(--transition-base);
    border-left: 4px solid transparent;
}

.doctor-list-card:hover {
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-lg) !important;
}

.doctor-list-img {
    width: 180px;
    height: 220px;
    object-fit: cover;
}

.availability-badge {
    font-size: 0.75rem;
}

.available-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---------- Doctor Details Page ---------- */
.doctor-profile-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.doctor-profile-img {
    width: 250px;
    height: 280px;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.info-list-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.specialization-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary-subtle);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.25rem;
}

.schedule-table td {
    padding: 0.75rem;
    vertical-align: middle;
}

.review-card {
    border-left: 3px solid var(--warning-color);
}

/* ---------- Services Page ---------- */
.service-card {
    transition: var(--transition-base);
    height: 100%;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    border-bottom-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    margin-bottom: 1.25rem;
    transition: var(--transition-base);
}

.service-card:hover .service-icon-wrapper {
    transform: rotateY(180deg);
}

/* ---------- Appointment Form ---------- */
.appointment-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    padding: 1rem 1.25rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.time-slot-btn {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.625rem 1.25rem;
    background: var(--white);
    transition: var(--transition-fast);
}

.time-slot-btn:hover,
.time-slot-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* ---------- Departments Page ---------- */
.department-detail-card {
    transition: var(--transition-base);
    height: 100%;
}

.department-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl) !important;
}

.department-icon-large {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    font-size: 2.5rem;
}

/* ---------- Contact Page ---------- */
.contact-info-card {
    transition: var(--transition-base);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.contact-icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ---------- Blog Pages ---------- */
.blog-detail-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=1400&h=600&fit=crop');
    background-size: cover;
    background-position: center;
}

.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-detail-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-detail-content p {
    margin-bottom: 1.25rem;
}

.blog-share-buttons .btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.related-blog-card {
    transition: var(--transition-base);
}

.related-blog-card:hover {
    transform: translateY(-5px);
}

.comment-card {
    border-left: 3px solid var(--primary-color);
}

.comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

/* ---------- Utility Classes ---------- */
.text-purple {
    color: #7c3aed;
}

.bg-purple-subtle {
    background-color: #ede9fe;
}

.bg-gradient-danger {
    background: var(--gradient-danger) !important;
}

.rounded-4 {
    border-radius: var(--radius-xl) !important;
}

.rounded-3 {
    border-radius: var(--radius-lg) !important;

/* ---------- Responsive Design ---------- */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 60px;
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .min-vh-75 {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-image-wrapper {
        margin-top: 40px;
    }
    
    .floating-card {
        position: relative;
        display: inline-block;
        margin: 10px;
    }
    
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    .experience-badge {
        position: relative !important;
        margin-right: 0 !important;
        margin-top: 20px;
    }
    
    .page-header {
        padding: 80px 0 50px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .doctor-profile-img {
        width: 200px;
        height: 230px;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        font-size: 0.8rem;
    }
    
    .top-bar .row > div {
        text-align: center !important;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-doctor-box .row > div {
        margin-bottom: 0.5rem;
    }
    
    .trust-badges {
        gap: 1.5rem !important;
    }
    
    .trust-badges h4 {
        font-size: 1.35rem;
    }
    
    .vr {
        display: none;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .emergency-banner .col-lg-4 {
        text-align: center !important;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .newsletter-form input {
        min-width: auto !important;
    }
    
    .footer-heading {
        margin-top: 1.5rem;
    }
    
    .page-header {
        padding: 70px 0 40px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .doctor-list-img {
        width: 120px;
        height: 150px;
    }
    
    .package-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.625rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .whatsapp-btn {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 90px;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    .top-bar,
    .navbar,
    .whatsapp-btn,
    .back-to-top,
    .emergency-banner,
    .footer-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}