/* --- 1. GOOGLE FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0e82fd;       /* Bright Medical Blue */
    --secondary: #002347;     /* Dark Navy */
    --accent: #17cf97;        /* Success Green */
    --light-bg: #f8fbff;      /* Light Blue Background */
    --white: #ffffff;
    --text: #666666;
    --border: #eeeeee;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease-in-out;
}

/* --- 2. RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; color: var(--text); line-height: 1.7; background: var(--white); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; color: var(--secondary); font-weight: 700; line-height: 1.3; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea { outline: none; }

/* --- 3. UTILITY CLASSES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--light-bg); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: 30px;
    text-transform: capitalize;
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}
.btn:hover { background-color: var(--secondary); border-color: var(--secondary); transform: translateY(-3px); }
.btn-secondary { background-color: var(--secondary); border-color: var(--secondary); }
.btn-secondary:hover { background-color: var(--primary); border-color: var(--primary); }
.btn-white { background-color: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background-color: var(--secondary); color: var(--white); border-color: var(--secondary); }

/* Section Titles */
.section-title { margin-bottom: 50px; text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title span { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.section-title h2 { font-size: 36px; margin-bottom: 15px; }
.section-title p { margin: 0; }

/* --- 4. TOP HEADER & NAVBAR --- */
.top-header { background-color: var(--secondary); color: var(--white); padding: 10px 0; font-size: 14px; }
.top-header .container { display: flex; justify-content: space-between; align-items: center; }
.top-contact li { display: inline-block; margin-right: 20px; }
.top-contact i { color: var(--primary); margin-right: 5px; }
.top-social a { color: var(--white); margin-left: 15px; }
.top-social a:hover { color: var(--primary); }

.navbar-area { background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 999; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 85px; }
.logo { font-size: 28px; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.logo i { color: var(--primary); font-size: 32px; }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-link { font-weight: 600; color: var(--secondary); font-family: 'Poppins', sans-serif; font-size: 15px; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

.mobile-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--secondary); }

/* --- 5. HERO & BANNERS --- */
.page-banner {
    background: linear-gradient(rgba(0,35,71,0.7), rgba(0,35,71,0.7)), url('/images/aboutus.jpg?w=1200');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}
.page-banner h2 { color: var(--white); font-size: 40px; margin-bottom: 15px; }
.page-banner ul { display: flex; justify-content: center; gap: 10px; font-weight: 600; }
.page-banner ul li a { color: var(--primary); }

.hero-slider {
    background: var(--light-bg);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.hero-content span { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; }
.hero-content h1 { font-size: 55px; margin-bottom: 20px; color: var(--secondary); line-height: 1.2; }
.hero-content p { font-size: 18px; margin-bottom: 35px; max-width: 600px; }
.hero-image img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* --- 6. FEATURE & SERVICE CARDS --- */
.features-area { margin-top: -50px; position: relative; z-index: 2; padding-bottom: 80px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.single-feature {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.single-feature:hover { border-bottom: 4px solid var(--primary); transform: translateY(-5px); }
.single-feature .icon { width: 70px; height: 70px; line-height: 70px; background: rgba(14, 130, 253, 0.1); border-radius: 50%; text-align: center; color: var(--primary); font-size: 30px; margin-bottom: 25px; }
.single-feature h3 { font-size: 22px; margin-bottom: 15px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.service-card .icon { font-size: 45px; color: var(--primary); margin-bottom: 25px; display: inline-block; }
.service-card h3 { font-size: 22px; margin-bottom: 15px; }
.read-more-btn { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; margin-top: 15px; }

/* --- 7. ABOUT & DOCTORS --- */
.about-area { padding-bottom: 80px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img img { border-radius: 15px; width: 100%; }
.about-content ul { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 25px 0; }
.about-content li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--secondary); }
.about-content li i { color: var(--primary); }

.doctor-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: var(--transition); text-align: center; }
.doctor-card:hover { transform: translateY(-10px); }
.doctor-card .img { height: 350px; overflow: hidden; }
.doctor-card .img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.doctor-card:hover .img img { transform: scale(1.1); }
.doctor-info { padding: 25px; }
.doctor-info span { color: var(--primary); font-weight: 500; display: block; margin-bottom: 10px; }
.doctor-social { margin-top: 15px; }
.doctor-social a { width: 35px; height: 35px; line-height: 35px; background: #f4f4f4; border-radius: 50%; display: inline-block; margin: 0 3px; color: var(--text); }
.doctor-social a:hover { background: var(--primary); color: white; }

/* --- 8. HOW DOUTOR WORKS --- */
.how-it-works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.how-img img { border-radius: 15px; box-shadow: var(--shadow); }
.how-steps { display: flex; flex-direction: column; gap: 20px; }
.work-step { display: flex; align-items: flex-start; gap: 20px; background: var(--white); padding: 25px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.work-step .icon { width: 60px; height: 60px; line-height: 60px; background: rgba(14, 130, 253, 0.1); border-radius: 50%; text-align: center; color: var(--primary); font-size: 24px; flex-shrink: 0; }
.work-step h3 { font-size: 20px; margin-bottom: 10px; }
.step-arrow { text-align: center; color: var(--primary); font-size: 20px; margin: -10px 0; }

/* --- 9. INSURANCE SECTION --- */
.insurance-area { background-color: var(--primary); padding: 80px 0; overflow: hidden; }
.insurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.insurance-content { color: var(--white); }
.insurance-content h2 { color: var(--white); font-size: 36px; margin-bottom: 20px; }
.insurance-content p { color: rgba(255,255,255,0.9); margin-bottom: 30px; font-size: 18px; }
.insurance-img img { border-radius: 15px; }

/* --- 10. APP DOWNLOAD SECTION (UPDATED: LIGHT BG) --- */
.app-download-area { background-color: var(--light-bg); padding: 80px 0; overflow: hidden; }
.app-download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.app-content { color: var(--text); }
.app-content span { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 15px; }
.app-content h2 { color: var(--secondary); font-size: 36px; margin-bottom: 20px; }
.app-content p { color: var(--text); margin-bottom: 35px; font-size: 18px; }
.app-buttons { display: flex; gap: 15px; }
.store-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--secondary); /* Dark button for light BG */
    color: var(--white);
    padding: 12px 25px;
    border-radius: 10px;
    transition: var(--transition);
}
.store-btn:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.store-btn i { font-size: 32px; }
.store-btn div { display: flex; flex-direction: column; }
.store-btn small { font-size: 12px; }
.store-btn span { font-weight: 700; font-size: 18px; line-height: 1; }
.app-img img { border-radius: 15px; }

/* --- 11. FORMS & BLOG --- */
.appointment-area { background: url('https://img.freepik.com/free-photo/blur-hospital_1203-7957.jpg') fixed center center; position: relative; padding: 100px 0; }
.appointment-area::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 35, 71, 0.9); }
.appointment-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; color: white; }
.app-form { background: var(--white); padding: 40px; border-radius: 10px; color: var(--text); }
.app-form input, .app-form select, .app-form textarea { width: 100%; height: 50px; background: #f8fbff; border: 1px solid #eee; padding: 0 15px; margin-bottom: 20px; border-radius: 5px; }
.app-form textarea { height: 120px; padding-top: 15px; }
.app-form button { width: 100%; border: none; }

.blog-card { background: var(--white); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.blog-img { height: 240px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-content { padding: 25px; }
.blog-meta { display: flex; gap: 15px; font-size: 13px; color: var(--primary); margin-bottom: 10px; }

.faq-item { background: white; margin-bottom: 20px; padding: 25px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.faq-item h3 { font-size: 18px; margin-bottom: 10px; cursor: pointer; display: flex; justify-content: space-between; }

/* --- 12. DOCTOR MODAL (POPUP) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 35, 71, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 2fr 3fr;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-img { height: 100%; min-height: 400px; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-details { padding: 40px; position: relative; }
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 28px; color: #999; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--primary); }
.modal-details h2 { color: var(--secondary); font-size: 32px; margin-bottom: 5px; }
.modal-role { color: var(--primary); font-weight: 600; font-size: 18px; display: block; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.modal-bio { color: var(--text); margin-bottom: 30px; font-size: 16px; line-height: 1.8; }
.modal-info-list { margin-bottom: 30px; }
.modal-info-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--secondary); }
.modal-info-list i { color: var(--primary); }

/* --- 13. FOOTER (5 COLUMN) --- */
.footer-area { background-color: var(--secondary); color: #bcd0f7; padding-top: 80px; margin-top: auto; }
.footer-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; margin-bottom: 50px; }
.footer-widget h3 { color: var(--white); margin-bottom: 25px; font-size: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: 0.3s; color: #bcd0f7; font-size: 15px; }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.copyright-area { background-color: var(--secondary); padding: 25px 0; margin-top: 60px; text-align: center; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- 14. RESPONSIVE --- */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 40px; }
    .appointment-inner, .about-grid, .how-it-works-grid, .insurance-grid, .app-download-grid { grid-template-columns: 1fr; }
    .how-img, .insurance-img, .app-img { order: -1; margin-bottom: 30px; }
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .top-header { display: none; }
    .step-arrow { transform: rotate(-90deg); margin: 10px 0; }
    /* Footer */
    .footer-grid-5 { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    /* Modal */
    .modal-content { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
    .modal-img { height: 250px; min-height: auto; }
    .modal-details { padding: 30px 20px; }
}

@media (max-width: 576px) {
    .footer-grid-5 { grid-template-columns: 1fr; }
}