/* =========================
   1. GLOBAL RESET & VARIABLES
   ========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --secondary: #FF9800;
    --dark: #0D2137;
    --text: #546E7A;
    --white: #ffffff;
    --light-bg: #F8FBFF;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Baloo Da 2', cursive; font-weight: 700; color: var(--dark); }
a { text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================
   2. NAVBAR & HEADER
   ========================= */
.top-offer-bar { background: var(--dark); color: #fff; padding: 8px 0; font-size: 13px; position: relative; z-index: 1001; }
.offer-wrapper { display: flex; justify-content: space-between; align-items: center; }
.offer-left i, .offer-right i { color: var(--secondary); margin-right: 5px; }

/* Phone Color Fix */
.top-phone { color: #ffffff !important; font-weight: 600; }
.offer-divider { margin: 0 10px; opacity: 0.5; }
.social-icon { color: #fff; }

.navbar { position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); z-index: 1000; padding: 10px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img img { width: 45px; border-radius: 50%; border: 2px solid var(--secondary); }
.logo-text { line-height: 1; }
.logo-name { font-size: 22px; color: var(--primary); font-weight: 800; }
.logo-sub { font-size: 12px; color: var(--secondary); letter-spacing: 1px; }

.nav-menu { display: flex; gap: 25px; }
.nav-link { color: var(--dark); font-weight: 600; transition: 0.3s; position: relative; padding-bottom: 5px; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; }
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: 15px; }
.btn-nav-appointment { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 8px 20px; border-radius: 50px; font-weight: 600; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu-btn .bar { display: block; width: 25px; height: 3px; background: var(--dark); margin: 5px 0; }

/* Mobile Sidebar */
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1002; display: none; }
.mobile-menu-sidebar { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: #fff; z-index: 1003; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); padding: 20px; box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
.mobile-menu-active .mobile-menu-sidebar { right: 0; }
.mobile-menu-active .mobile-menu-overlay { display: block; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.mobile-logo { display: flex; align-items: center; gap: 10px; }
.mobile-logo img { width: 40px; }
.mobile-logo h3 { font-size: 16px; line-height: 1.2; color: var(--primary); margin: 0; }
.close-menu-btn { background: #f5f5f5; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; }
.mobile-nav-links li { margin-bottom: 15px; }
.mobile-nav-links a { color: var(--dark); font-weight: 600; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; transition: 0.3s; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { background: #E3F2FD; color: var(--primary); }
.mobile-menu-footer { margin-top: 20px; text-align: center; }
.mobile-call-btn { background: var(--secondary); color: #fff; padding: 10px; border-radius: 5px; display: block; font-weight: 700; }

/* =========================
   3. DOCTORS PAGE SPECIFIC STYLES
   ========================= */
.page-header-section {
    background: linear-gradient(rgba(13,33,55,0.9), rgba(13,33,55,0.8)), url('img/young-female-patient-visiting-dentist-office.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}
.page-header-section h1 { font-size: 3rem; margin-bottom: 10px; color: #fff; }
.page-header-section p { font-size: 1.2rem; opacity: 0.9; }

/* Doctor Cards */
.doctors-main { padding-bottom: 80px; }
.doctors-grid-wrapper { display: flex; flex-direction: column; gap: 60px; }

.doctor-card-pro {
    display: flex;
    align-items: center;
    gap: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: 0.4s ease;
}
.doctor-card-pro:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(21,101,192,0.1); border-color: var(--primary); }
.doctor-card-pro.reverse { flex-direction: row-reverse; }

.doc-image-frame { position: relative; width: 350px; height: 400px; flex-shrink: 0; border-radius: 20px; overflow: hidden; }
.doc-image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: 0.5s; }
.doctor-card-pro:hover .doc-image-frame img { transform: scale(1.05); }

.exp-badge {
    position: absolute; bottom: 20px; right: 20px; background: var(--secondary); color: #fff;
    padding: 8px 15px; border-radius: 50px; font-size: 13px; font-weight: 700; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.exp-badge.new { background: var(--primary); }

.doc-details h3 { font-size: 2.2rem; color: var(--dark); margin-bottom: 5px; }
.designation { color: var(--primary); font-weight: 700; font-size: 1.1rem; display: block; margin-bottom: 15px; }

.qualifications-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.q-badge { background: #E3F2FD; color: var(--primary-dark); padding: 5px 12px; border-radius: 5px; font-size: 13px; font-weight: 600; }

.doc-bio { font-size: 16px; margin-bottom: 25px; color: #546E7A; line-height: 1.7; }

.doc-buttons { display: flex; gap: 15px; }
.btn-call-doc {
    background: var(--primary); color: #fff; padding: 12px 25px; border-radius: 50px;
    text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 10px; transition: 0.3s;
}
.btn-call-doc:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-book-doc {
    border: 2px solid var(--primary); color: var(--primary); padding: 12px 25px; border-radius: 50px;
    text-decoration: none; font-weight: 600; transition: 0.3s;
}
.btn-book-doc:hover { background: var(--primary); color: #fff; }

/* CTA Section */
.cta-section { padding: 60px 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); text-align: center; color: #fff; margin-bottom: 50px; border-radius: 20px; margin-top: 50px; }
.cta-content h2 { color: #fff; margin-bottom: 10px; font-size: 2.5rem; }
.cta-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 25px; }
.btn-cta { background: #fff; color: var(--primary); padding: 12px 30px; border-radius: 50px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; }
.btn-cta:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* =========================
   4. FOOTER (NO WAVE - FIXED)
   ========================= */
.footer-pro { 
    background: var(--dark); /* গাঢ় নীল ব্যাকগ্রাউন্ড */
    color: #B0BEC5; 
    position: relative; 
    padding-top: 60px; /* ওয়েভ সরানোর পর স্পেস */
    padding-bottom: 30px; 
    border-top: 5px solid var(--secondary); /* কমলা বর্ডার */
    margin-top: 50px;
}

/* Footer Content */
.footer-container-inner { position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { display: flex; gap: 10px; margin-bottom: 20px; }
.footer-logo img { width: 50px; border-radius: 50%; border: 2px solid var(--secondary); }
.footer-logo .text h3 { color: #fff; margin: 0; line-height: 1.1; font-size: 22px; }
.footer-logo .text span { font-size: 12px; color: var(--secondary); }
.footer-widget h4 { color: #fff; margin-bottom: 20px; border-bottom: 2px solid var(--secondary); display: inline-block; padding-bottom: 5px; }

/* Footer Links & Contact */
.footer-links a { color: #B0BEC5; transition: 0.3s; display: block; margin-bottom: 10px; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact i { color: var(--primary); margin-top: 4px; }

/* Phone Link Color Fix */
.phone-link { color: #ffffff !important; text-decoration: none; font-weight: 600; }
.phone-link:hover { color: var(--secondary) !important; }

.footer-hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 8px; margin-bottom: 10px; font-size: 14px; }
.footer-hours .off { color: #FF5252; }
.footer-bottom { padding-top: 20px; text-align: center; font-size: 14px; }
.highlight { color: var(--secondary); font-weight: 700; }
.social-icons { display: flex; gap: 10px; }
.social-btn { width: 35px; height: 35px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 50%; transition: 0.3s; }
.social-btn:hover { background: var(--primary); transform: translateY(-3px); }

/* =========================
   5. FLOATING BUTTONS
   ========================= */
.floating-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column-reverse; gap: 15px; z-index: 9999; align-items: center; }
.float-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; box-shadow: 0 8px 25px rgba(0,0,0,0.25); transition: 0.3s; border: none; cursor: pointer; }
.float-btn:hover { transform: scale(1.1); }
.call-btn { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); width: 65px; height: 65px; font-size: 28px; position: relative; }
.whatsapp-btn { background: #25D366; }
.scroll-btn { background: var(--secondary); width: 45px; height: 45px; font-size: 18px; opacity: 0; visibility: hidden; transform: translateY(20px); }
.scroll-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.pulse-wave { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--primary); animation: wave 2s infinite; }
@keyframes wave { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }

/* =========================
   6. ANIMATIONS
   ========================= */
.fade-in-up { animation: fadeInUp 1s ease forwards; opacity: 0; transform: translateY(30px); }
.fade-in-left { animation: fadeInLeft 1s ease forwards; opacity: 0; transform: translateX(-30px); }
.fade-in-right { animation: fadeInRight 1s ease forwards; opacity: 0; transform: translateX(30px); }
.delay-1 { animation-delay: 0.2s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { to { opacity: 1; transform: translateX(0); } }

/* =========================
   7. MOBILE RESPONSIVE
   ========================= */
@media (max-width: 992px) {
    .nav-menu, .btn-nav-appointment { display: none; }
    .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
    .doctor-card-pro { flex-direction: column; text-align: center; gap: 30px; padding: 25px; }
    .doctor-card-pro.reverse { flex-direction: column; }
    .doc-image-frame { width: 100%; height: 350px; }
    .qualifications-list { justify-content: center; }
    .doc-buttons { justify-content: center; }
    .page-header-section { margin-bottom: 40px; }
    .doctors-grid-wrapper { gap: 40px; }
    
    /* Footer Mobile */
    .footer-top { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-logo, .social-icons, .footer-contact li, .footer-links a { justify-content: center; display: flex; }
    .footer-links a { width: 100%; }
    .footer-widget h4 { margin: 0 auto 20px; }
}

@media (max-width: 576px) {
    .top-offer-bar { display: none; }
    .navbar { top: 0; }
    .page-header-section { padding: 80px 0 50px; }
    .page-header-section h1 { font-size: 2.2rem; }
    
    .footer-pro { margin-top: 60px; }
    .floating-container { bottom: 20px; right: 20px; gap: 12px; }
    .call-btn { width: 60px; height: 60px; font-size: 24px; }
    .cta-section { border-radius: 0; }
}
/* =========================
   DOCTORS PAGE MOBILE FIX
   ========================= */

@media (max-width: 992px) {
    .doctor-card-pro {
        gap: 30px;
        padding: 20px;
    }
    
    .doc-image-frame {
        width: 300px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    /* কার্ডটিকে উপরে-নিচে সাজানো */
    .doctor-card-pro, 
    .doctor-card-pro.reverse {
        flex-direction: column !important;
        text-align: center;
        gap: 25px;
        max-width: 450px;
        margin: 0 auto;
    }

    /* ইমেজের সাইজ মোবাইল অনুযায়ী অটো অ্যাডজাস্ট */
    .doc-image-frame {
        width: 100% !important;
        height: 320px !important;
        max-width: 320px;
    }

    .doc-details h3 {
        font-size: 1.8rem !important;
    }

    /* বাটনগুলো এক লাইনে সুন্দর না দেখালে নিচে নিচে নিয়ে আসা */
    .doc-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .btn-call-doc, .btn-book-doc {
        width: 100%;
        justify-content: center;
        padding: 10px 20px !important;
    }

    .exp-badge {
        font-size: 11px;
        padding: 6px 12px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .page-header-section h1 {
        font-size: 2rem !important;
    }

    .doc-image-frame {
        height: 280px !important;
    }

    .doc-bio {
        font-size: 14px;
        padding: 0 10px;
    }

    /* কোয়ালিফিকেশন ব্যাজগুলো যেন ভেঙে না যায় */
    .qualifications-list {
        gap: 5px;
    }

    .q-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
}
/* =========================
   MOBILE FIX FOR DOCTOR IMAGES
   ========================= */

@media (max-width: 768px) {
    /* কার্ডের লেআউট ঠিক করা */
    .doctor-card-pro, 
    .doctor-card-pro.reverse {
        flex-direction: column !important;
        padding: 20px;
        text-align: center;
    }

    /* ইমেজ ফ্রেমের ফিক্সড হাইট সরিয়ে অটো করা যেন ছবি না কাটে */
    .doc-image-frame {
        width: 100% !important;
        max-width: 280px; /* মোবাইল স্ক্রিনে ছবির সর্বোচ্চ চওড়া */
        height: auto !important; /* হাইট অটো করা হলো যেন ছবি চ্যাপ্টা বা কেটে না যায় */
        margin: 0 auto;
        border-radius: 15px;
        overflow: hidden;
        aspect-ratio: auto; /* রেশিও লক ছেড়ে দেওয়া হলো */
    }

    .doc-image-frame img {
        width: 100%;
        height: auto !important;
        object-fit: contain; /* ছবি পুরোপুরি ফ্রেমের ভেতর থাকবে, কাটবে না */
        display: block;
    }

    /* এক্সপেরিয়েন্স ব্যাজের পজিশন ঠিক করা */
    .exp-badge {
        font-size: 11px;
        padding: 5px 10px;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .doc-image-frame {
        max-width: 240px; /* আরও ছোট স্ক্রিনের জন্য সাইজ কিছুটা কমানো */
    }
    
    .doc-details h3 {
        font-size: 1.6rem !important;
    }
}