/* style.css */
:root {
    --primary: #0A4D68; /* Deep Royal/Navy Blue */
    --secondary: #088395; /* Accent Cyan/Blue */
    --light-bg: #F2F7FF; /* Very light blue for background */
    --white: #FFFFFF;
    --text-main: #2D3748;
    --text-muted: #71809600;
    --border-color: #E2E8F0;
    --shadow-soft: 0 10px 30px rgba(10, 77, 104, 0.08);
    --shadow-hover: 0 20px 40px rgba(10, 77, 104, 0.15);
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; scroll-behavior: smooth; }
body { color: var(--text-main); background-color: var(--white); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4 { color: var(--primary); font-weight: 600; line-height: 1.3; }
.section-subtitle { color: var(--secondary); font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; font-weight: 600; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; }
.highlight { color: var(--secondary); }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 50px; font-weight: 500; text-decoration: none; cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-align: center; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 15px rgba(10, 77, 104, 0.2); }
.btn-primary:hover { background: var(--secondary); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(8, 131, 149, 0.3); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-large { padding: 15px 35px; font-size: 1.1rem; }
.btn-full { display: block; width: 100%; border-radius: var(--radius-md); }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 15px rgba(0,0,0,0.05); z-index: 1000; padding: 15px 0; transition: var(--transition); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--primary); }
.logo i { font-size: 2.2rem; color: var(--secondary); }
.logo-text h1 { font-size: 1.5rem; margin: 0; }
.logo-text span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; background: var(--secondary); bottom: -5px; left: 0; transition: var(--transition); }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero { position: relative; background: linear-gradient(135deg, rgba(10, 77, 104, 0.9) 0%, rgba(8, 131, 149, 0.8) 100%), url('hero-bg-placeholder.jpg') center/cover; padding: 150px 0 100px; color: var(--white); }
.hero-container { position: relative; z-index: 2; text-align: center; max-width: 800px; }
.hero h2 { font-size: 4rem; color: var(--white); margin-bottom: 20px; }
.hero .highlight { color: #A5F1E9; }
.badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 50px; font-size: 0.9rem; margin-bottom: 20px; backdrop-filter: blur(5px); color: #fff;}
.hero-desc { font-size: 1.2rem; margin-bottom: 40px; color: rgba(255,255,255,0.9); }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* Custom SVG Shape Divider */
.custom-shape-divider-bottom { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg); }
.custom-shape-divider-bottom svg { position: relative; display: block; width: calc(100% + 1.3px); height: 70px; }
.custom-shape-divider-bottom .shape-fill { fill: #FFFFFF; }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-wrapper { position: relative; }
.about-image-box { width: 100%; height: 450px; background: var(--light-bg); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--secondary); border: 2px dashed var(--secondary); }
.doctor-icon { font-size: 5rem; margin-bottom: 15px; }
.experience-badge { position: absolute; bottom: -20px; right: -20px; background: var(--white); padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); text-align: center; border-left: 5px solid var(--secondary); }
.doctor-name-title { font-size: 1.8rem; margin-bottom: 5px; }
.exp-text { color: var(--secondary); font-weight: 500; margin-bottom: 20px; }
.feature-list { list-style: none; margin-top: 25px; }
.feature-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-weight: 500; }
.feature-list i { color: var(--secondary); font-size: 1.2rem; }

/* Services (8 slots grid) */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.service-card { background: var(--white); padding: 35px 25px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-soft); transition: var(--transition); border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-10px); border-bottom-color: var(--secondary); box-shadow: var(--shadow-hover); }
.icon-wrapper { width: 70px; height: 70px; background: var(--light-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; transition: var(--transition); }
.service-card:hover .icon-wrapper { background: var(--primary); color: var(--white); }
.icon-wrapper i { font-size: 1.8rem; color: var(--secondary); transition: var(--transition); }
.service-card:hover .icon-wrapper i { color: var(--white); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-box { height: 250px; background: #e2e8f0; border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); overflow: hidden; cursor: pointer; }
.gallery-box i { font-size: 3rem; margin-bottom: 10px; opacity: 0.5; }
.gallery-box:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); background: var(--primary); color: var(--white); }
.gallery-box:hover i { opacity: 1; color: var(--secondary); }

/* Contact & Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.chamber-card { background: var(--white); padding: 25px; border-radius: var(--radius-lg); margin-bottom: 20px; box-shadow: var(--shadow-soft); border-left: 5px solid var(--secondary); }
.chamber-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.chamber-card p { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 0.95rem; }
.chamber-card i { color: var(--secondary); margin-top: 4px; }
.map-box { height: 200px; background: #e2e8f0; border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); margin-top: 30px; border: 2px solid var(--border-color); }

.form-wrapper { background: var(--white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); }
.form-title { font-size: 1.8rem; margin-bottom: 5px; }
.form-subtitle { color: var(--text-muted); margin-bottom: 25px; font-size: 0.9rem; }
.modern-form .row { display: flex; gap: 20px; }
.modern-form .col { flex: 1; }
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: var(--primary); }
.input-group input, .input-group select { width: 100%; padding: 14px 15px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 1rem; transition: var(--transition); background: #f8fafc; font-family: inherit; }
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--secondary); background: var(--white); box-shadow: 0 0 0 3px rgba(8, 131, 149, 0.1); }
.msg-box { margin-top: 15px; font-weight: 500; text-align: center; }

/* Footer */
.footer { background: var(--primary); color: var(--white); padding: 60px 0 20px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; margin-bottom: 20px; }
.footer-logo h2 { color: var(--white); margin-bottom: 5px; }
.footer-social a { color: var(--white); background: rgba(255,255,255,0.1); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-left: 10px; transition: var(--transition); }
.footer-social a:hover { background: var(--secondary); transform: translateY(-3px); }
.footer-bottom { text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* Animation Classes (Intersection Observer) */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.service-thumbnail {
    width: 100%;
    height: 180px; /* ইমেজের উচ্চতা, আপনি চাইলে কমাতে/বাড়াতে পারেন */
    object-fit: cover; /* ছবি যাতে চ্যাপ্টা না হয় */
    border-radius: 6px;
    margin-bottom: 15px;
}

.doctor-name {
    color: #0047AB; /* ব্লু কালার */
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    border-top: 1px solid #eee; /* ডেসক্রিপশন থেকে আলাদা করার জন্য একটা হালকা দাগ */
    padding-top: 10px;
}
#services-container p {
    color: #333333 !important; /* লেখার কালার গাঢ় করবে */
}

#services-container h3 {
    color: #0047AB !important; /* টাইটেলের কালার ব্লু করবে */
}

/* ইমেজের স্টাইল */
#services-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
/* Responsive Media Queries */
/* =========================================================
   MOBILE & TABLET RESPONSIVE CSS
   ========================================================= */

   @media (max-width: 991px) {
    /* লেআউট পরিবর্তন (২ কলাম বা ১ কলাম) */
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* স্পেসিং ও ফন্ট সাইজ */
    .hero { padding: 130px 0 80px; }
    .hero h2 { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    .about-image-box { height: 350px; }
    
    /* ফুটার */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* মোবাইল স্ক্রিনের জন্য (৭৬৭px বা তার ছোট) */
@media (max-width: 767px) {
    
    
    /* গ্লোবাল প্যাডিং ও টাইপোগ্রাফি */
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 25px; text-align: center; }
    
    /* ন্যাভিগেশন বার (ছবি অনুযায়ী এক লাইনে লোগো ও বাটন, নিচে মেনু) */
    
    .nav-container { 
        flex-wrap: wrap; 
        justify-content: space-between; /* লোগো একদম বামে এবং বাটন একদম ডানে রাখবে */
        align-items: center;
        padding: 10px 15px; 
    }
    
    /* লোগো (১ম পজিশন, বামে) */
    .logo { 
        order: 1; 
        gap: 6px; /* আইকন ও নামের মাঝের গ্যাপ কমানো হলো */
        max-width: 65%; /* লোগোর জন্য নির্দিষ্ট জায়গা */
    }
    
    .logo i { 
        font-size: 1.3rem; 
        padding-left: 0; 
    }
    
    .logo-text h1 { 
        font-size: 12px; /* লেখাটিকে একদম ছোট করা হলো */
        white-space: nowrap; /* লেখা ভেঙে নিচে নামতে দেবে না */
        overflow: hidden; 
        text-overflow: ellipsis; /* স্ক্রিন বেশি ছোট হলে শেষে ... দেখাবে */
        margin: 0;
    }
    
    .logo-text span { 
        display: none; 
    }
    
    /* বুক নাও বাটন (২য় পজিশন, ডানে) */
    .navbar .btn { 
        order: 2; 
        padding: 6px 12px; /* বাটন আরেকটু ছোট করা হলো যাতে সুন্দরভাবে ফিট হয় */
        margin-right: 0;
        font-size: 12px; 
        white-space: nowrap;
    }
    
    /* মেনু (৩য় পজিশন, নিচে সম্পূর্ণ জায়গা জুড়ে) */
    .navbar nav { 
        order: 3; 
        width: 100%; 
        margin-top: 15px; 
    }
    
    .nav-links { 
        flex-direction: row; 
        justify-content: center; 
        gap: 15px; 
    }
    
    .nav-links a { 
        font-size: 0.85rem; 
    }

    /* হিরো সেকশন */
    .hero { padding: 130px 0 80px; text-align: center; }
    .hero h2 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; }
    .hero-sub { font-size: 0.85rem; margin-bottom: 20px; }
    .hero-desc { font-size: 1rem; margin-bottom: 25px; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; align-items: center; width: 100%; }
    .btn-dark-teal, .btn-white-fill, .btn-large { width: 80%; padding: 12px; border-radius: 50px; font-size: 1rem; }
    
    /* অ্যাবাউট সেকশন ও ব্যাজ (একদম পারফেক্ট সেন্টার) */
    .about-image-wrapper { position: relative; margin-bottom: 40px; }
    .about-image-box { height: auto; border: none; background: transparent; }
    .experience-badge { 
        position: absolute; 
        bottom: -25px; 
        left: 50%; 
        transform: translateX(-50%); 
        width: 85%; 
        padding: 15px; 
        text-align: center; 
        border-radius: 12px; 
        border-left: none; /* বর্ডার রিমুভ করা হলো */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .experience-badge h3 { font-size: 1.1rem; color: #0A4D68; margin-bottom: 5px; }
    .experience-badge p { font-size: 0.85rem; color: #666; margin: 0; }
    .doctor-name-title { font-size: 1.4rem; }
    
    /* সার্ভিস সেকশন */
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 25px 15px; }
    .service-thumbnail, #services-container img { height: 220px; }
    
    /* গ্যালারি সেকশন */
    .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
    .gallery-box { height: 220px; }
    
    /* কন্ট্যাক্ট ও ফর্ম সেকশন */
    .contact-info { text-align: center; }
    .form-wrapper { padding: 25px 15px; }
    .form-title { font-size: 1.5rem; }

    .map-box { height: 250px; margin-top: 20px; }

    /* ফুটার সেকশন */
    .footer { padding: 40px 0 20px; }
    .footer-logo h2 { font-size: 1.2rem; }
    .footer-social a { width: 35px; height: 35px; margin: 0 5px; }

    /* iOS Mobile Form Overflow & Size Fix */
    .modern-form .row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .modern-form .col {
        width: 100% !important;
    }

    .input-group {
        width: 100% !important;
        margin-bottom: 15px !important; /* আপনার অরিজিনাল গ্যাপ */
        box-sizing: border-box !important;
    }

    .input-group input, 
    .input-group select,
    .input-group input[type="date"],
    .input-group input[type="time"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        -webkit-box-sizing: border-box !important;
        -webkit-appearance: none !important; /* iOS এর ডিফল্ট স্টাইল মুছবে */
        appearance: none !important;
        
        /* আপনার দেওয়া একদম অরিজিনাল সাইজ */
        padding: 12px !important; 
        font-size: 0.95rem !important; 
        
        height: auto !important; /* বক্সকে চ্যাপ্টা হতে দেবে না */
    }
}