/* =========================
   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; }
.top-phone { color: #fff; 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: 0.3s; 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: block; }
.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. SERVICES PAGE HERO
   ========================= */
.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: 50px;
}
.page-header-section h1 { font-size: 3rem; margin-bottom: 10px; color: #fff; }
.page-header-section p { font-size: 1.2rem; opacity: 0.9; }

/* =========================
   4. SERVICES TAB SYSTEM
   ========================= */
.services-main { padding-bottom: 80px; }
.service-tabs-wrapper { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.s-tab {
    background: #fff; border: 2px solid #eee; padding: 10px 20px; border-radius: 50px;
    font-weight: 700; color: #555; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 8px;
}
.s-tab:hover, .s-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); }

/* Content Box */
.service-content-box {
    background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; transition: 0.3s;
}
.s-details h2 { font-size: 2.5rem; color: var(--dark); margin-bottom: 15px; }
.s-details p { font-size: 1.1rem; color: #546E7A; margin-bottom: 25px; line-height: 1.7; }
.s-list li { margin-bottom: 10px; display: flex; gap: 10px; font-weight: 600; color: #455A64; }
.s-list i { color: #2E7D32; font-size: 18px; }

.s-meta { background: var(--light-bg); padding: 30px; border-radius: 15px; text-align: center; }
.meta-box { margin-bottom: 20px; border-bottom: 1px dashed #ddd; padding-bottom: 15px; }
.meta-box span { font-size: 13px; color: #78909C; font-weight: 600; }
.meta-box h3 { font-size: 1.8rem; color: var(--primary); margin: 5px 0 0; }
.btn-book-now { display: block; background: var(--secondary); color: #fff; padding: 12px; border-radius: 50px; font-weight: 700; transition: 0.3s; }
.btn-book-now:hover { background: #E65100; transform: translateY(-3px); }

/* =========================
   5. OTHER SERVICES GRID
   ========================= */
.all-services-section { padding: 60px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.5rem; color: var(--dark); }
.section-title p { color: #546E7A; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: #fff; padding: 30px; border-radius: 15px; text-align: center; border: 1px solid #eee; transition: 0.3s; }
.service-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.icon-bg { width: 60px; height: 60px; background: #E3F2FD; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 20px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: #78909C; margin-bottom: 15px; }
.price-tag { background: #E8F5E9; color: #2E7D32; padding: 5px 10px; border-radius: 5px; font-size: 13px; font-weight: 700; }

/* =========================
   6. PACKAGES
   ========================= */
.packages-section { padding: 60px 0; background: #F8FBFF; }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.package-card { background: #fff; padding: 30px; border-radius: 20px; text-align: center; transition: 0.3s; position: relative; border: 1px solid #eee; }
.package-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.package-card.popular { border: 2px solid var(--secondary); transform: scale(1.05); }
.pop-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--secondary); color: #fff; padding: 5px 15px; border-radius: 50px; font-size: 12px; font-weight: 700; }

.p-header h3 { margin-bottom: 10px; color: var(--dark); }
.price .old { text-decoration: line-through; color: #999; font-size: 14px; margin-right: 10px; }
.price .new { font-size: 1.8rem; color: var(--primary); font-weight: 800; }

.package-card ul { margin: 25px 0; text-align: left; padding-left: 20px; }
.package-card li { margin-bottom: 10px; color: #555; }
.package-card i { color: #2E7D32; margin-right: 8px; }

.btn-book { border: 2px solid var(--primary); color: var(--primary); padding: 10px 25px; border-radius: 50px; font-weight: 600; display: inline-block; transition: 0.3s; }
.btn-book:hover, .btn-book.primary { background: var(--primary); color: #fff; }

/* =========================
   7. 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-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 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 */
.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); }

/* =========================
   8. 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; } }

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

@media (max-width: 768px) {
    .service-content-box { grid-template-columns: 1fr; padding: 25px; gap: 20px; }
    .s-meta { order: -1; margin-bottom: 20px; }
    .packages-grid { grid-template-columns: 1fr; }
    .package-card.popular { transform: none; }
}

@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; }
    .footer-top { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-logo, .social-icons, .footer-contact li { justify-content: center; }
    .footer-widget h4 { margin: 0 auto 20px; }
    
    .floating-container { bottom: 20px; right: 20px; }
    .call-btn { width: 60px; height: 60px; font-size: 24px; }
}
/* =========================
   SERVICES PAGE MOBILE FIX
   ========================= */

@media (max-width: 992px) {
    .service-content-box {
        grid-template-columns: 1fr; /* ২ কলাম থেকে ১ কলামে আনা */
        padding: 30px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* ট্যাবগুলো মোবাইলে পাশাপাশি স্ক্রলযোগ্য করা */
    .service-tabs-wrapper {
        justify-content: flex-start;
        overflow-x: auto; /* ডানে-বামে স্ক্রল হবে */
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .s-tab {
        flex: 0 0 auto; /* ট্যাবগুলো চ্যাপ্টা হবে না */
        padding: 8px 15px;
        font-size: 14px;
    }

    .s-details h2 {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .s-meta {
        order: -1; /* প্রাইস বক্সটি মোবাইলে উপরে দেখাবে */
        margin-bottom: 10px;
        padding: 20px;
    }

    .meta-box h3 {
        font-size: 1.5rem !important;
    }

    /* প্যাকেজ কার্ডগুলো ঠিক করা */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 10px;
    }

    .package-card.popular {
        transform: scale(1); /* মোবাইলে জুম কমিয়ে দেওয়া */
        margin-top: 20px;
    }
}

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

    .service-card {
        padding: 20px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    /* ফুটারের ঠিকানা কেটে যাওয়ার সমস্যা সমাধান */
    .footer-contact li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}