/* ===================================
   Abicare Hospital - Global Styles
   =================================== */

:root {
    --primary-light: #E6F4FF;
    --primary: #1E90FF;
    --primary-dark: #0B6FBF;
    --text-dark: #0B2B3A;
    --text-muted: #6c757d;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   Navbar Styles
   =================================== */

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
}

.navbar-brand:hover {
    color: var(--primary);
}

.brand-text {
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: -5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   Hero Banner
   =================================== */

.hero-banner {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.hero-banner h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-banner .lead {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-stats {
    margin-top: 3rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Section Styles
   =================================== */

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===================================
   Why Choose Section
   =================================== */

.why-choose {
    background: var(--bg-white);
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.value-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===================================
   Featured Services
   =================================== */

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}

.service-card h5 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* ===================================
   Doctors Section
   =================================== */

.doctor-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.doctor-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 1.5rem;
    text-align: center;
}

.doctor-info h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.specialty {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.credentials {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* ===================================
   Testimonials Section
   =================================== */

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.patient-info {
    display: flex;
    flex-direction: column;
}

.patient-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.patient-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================================
   Resources Preview
   =================================== */

.resource-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.resource-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.resource-card:hover .resource-image img {
    transform: scale(1.1);
}

.resource-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.resource-content {
    padding: 1.5rem;
}

.resource-content h5 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.resource-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.resource-link {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* ===================================
   CTA Banner
   =================================== */

.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
}

.cta-content .lead {
    color: rgba(255, 255, 255, 0.9);
}

.btn-light {
    background: white;
    color: var(--primary);
    border: none;
}

.btn-light:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--text-dark);
}

.tagline-footer {
    font-size: 0.9rem;
    color: var(--primary);
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
}

.footer a {
    color: var(--primary);
}

.footer a:hover {
    color: white;
}

/* ===================================
   Form Styles
   =================================== */

.form-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.form-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-control,
.form-select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 144, 255, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ===================================
   Service Detail Page
   =================================== */

.service-detail-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.service-detail-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===================================
   Insurance Page
   =================================== */

.insurance-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.insurance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.insurance-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.insurance-logo img {
    max-height: 60px;
    max-width: 100%;
}

.faq-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-item h5 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* ===================================
   Loading Spinner
   =================================== */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn .spinner {
    margin-right: 0.5rem;
}

/* ===================================
   Page Header
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-top: 1rem;
    justify-content: center;
}

.breadcrumb-item a {
    color: var(--primary);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .hero-banner {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-banner h1 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .value-card,
    .service-card {
        margin-bottom: 1rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}