/* Global Reset & Typography */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter', sans-serif;
}

body{
    background:#f8fafc;
    color:#0f172a;
    overflow-x:hidden;
}

.container{
    width:95%;
    max-width:1400px;
    margin:auto;
}

/* TOP BAR */
.top-bar{
    background:#0f172a;
    color:white;
    padding:10px 0;
    font-size:14px;
}

.top-flex{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
}

/* HEADER & NAVIGATION (অর্গানাইজড হেডার) */
.header{
    position:sticky;
    top:0;
    z-index:99;
    background:white;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
    width: 100%;
}

.header-container {
    display: flex;
    flex-direction: column;
}

.header-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 0;
    gap:20px;
}

.logo{
    font-size:30px;
    font-weight:800;
    color:#0B5ED7;
    text-decoration: none;
}

.logo span{
    color:#00B4D8;
}

.search-box{
    flex:1;
    max-width:550px;
}

.search-box input{
    width:100%;
    padding:13px 20px;
    border-radius:50px;
    border:1px solid #ddd;
    outline:none;
    font-size:15px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #0B5ED7;
}

.header-icons{
    display:flex;
    gap:20px;
    align-items: center;
}

.header-icon-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.header-icon-link:hover {
    color: #0B5ED7;
}

/* NAVBAR (মেনুবার পাশাপাশি বিন্যাস) */
.navbar{
    display:flex;
    align-items:center;
    gap:35px;
    padding:12px 0;
    border-top:1px solid #f1f5f9;
}

.category-btn{
    background:#0B5ED7;
    color:white;
    padding:11px 22px;
    border: none;
    border-radius:50px;
    font-weight:600;
    font-size: 15px;
    cursor:pointer;
    transition: background 0.3s;
}

.category-btn:hover {
    background: #094cb3;
}

.nav-links-wrapper {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link{
    text-decoration: none;
    color: #0f172a;
    font-weight:600;
    font-size: 15px;
    cursor:pointer;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #0B5ED7;
}

/* HERO SECTION */
.hero{
    padding:60px 0;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.hero h1{
    font-size:55px;
    font-weight:800;
    line-height:1.1;
    margin-bottom:20px;
}

.hero p{
    font-size:18px;
    color:#64748b;
    margin-bottom:25px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    margin-bottom:30px;
}

/* BUTTONS STYLE */
.btn-primary{
    background:#0B5ED7;
    color:white;
    padding:14px 28px;
    border:none;
    border-radius:50px;
    font-weight:600;
    cursor:pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #094cb3;
}

.btn-outline{
    background:white;
    border:2px solid #0B5ED7;
    color:#0B5ED7;
    padding:14px 28px;
    border-radius:50px;
    font-weight:600;
    cursor:pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #0B5ED7;
    color: white;
}

.btn-danger{
    background:#ef4444;
    color:white;
    padding:14px 28px;
    border:none;
    border-radius:50px;
    font-weight:600;
    cursor:pointer;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-danger-link {
    text-decoration: none;
}

.badges{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.badge{
    background:white;
    padding:12px 18px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.04);
}

.hero-slider{
    height:420px;
    background:white;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.06);
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-slider img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* MAIN LAYOUT WRAPPER (SIDEBAR + MAIN CONTENT) */
.main-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

/* SIDEBAR STYLING */
.sidebar {
    width: 310px;
    background: white;
    padding: 30px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
    position: sticky;
    top: 140px; /* Header-এর নিচে সুন্দরভাবে আটকে থাকার জন্য */
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.close-sidebar-btn {
    display: none; /* শুধুমাত্র মোবাইলে স্লাইড ইন হলে শো করবে */
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #64748b;
}

.category-group {
    margin-bottom: 30px;
}

.category-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 15px;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-list li a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 15px;
    display: block;
    transition: all 0.2s;
    padding: 3px 0;
}

.category-list li a:hover {
    color: #0B5ED7;
    transform: translateX(5px);
}

/* MAIN CONTENT CONTAINER */
.main-content {
    flex: 1;
    min-width: 0;
}

/* SECTIONS COMMON */
.portal-section, .quick-services, .featured-section, .marketplace-section,
.services-market-section, .team-section, .coverage-section, .reviews-section,
.partner-section, .why-section, .how-section, .stats-section, .callback-section, .faq-section {
    padding: 35px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

/* PORTALS */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.portal-card {
    background: white;
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,.04);
}

.portal-card h3 {
    font-size: 26px;
    margin-bottom: 25px;
}

.portal-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.portal-box h4 {
    margin-bottom: 8px;
}

.portal-btn {
    margin-top: 15px;
    background: #0B5ED7;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.portal-btn:hover {
    background: #094cb3;
}

/* QUICK ACCESS SERVICES */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.03);
    transition: .3s;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.service-card h4 {
    font-size: 17px;
}

/* PRODUCTS & MARKETPLACE GRID */
.featured-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.product-card, .market-card, .service-card-new {
    background: white;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

.product-image, .market-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #e2e8f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-desc {
    color: #64748b;
    font-size: 14px;
    margin: 10px 0;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #0B5ED7;
    margin: 10px 0;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.market-card h4, .service-card-new h4 {
    margin: 15px 0 10px;
}

.market-card p, .service-card-new p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

/* EMERGENCY SUPPORT */
.emergency-box {
    background: #ef4444;
    color: white;
    padding: 40px;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.emergency-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* TEAM */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.team-card {
    background: white;
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.03);
}

.team-image {
    height: 180px;
    background: #e2e8f0;
    border-radius: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* COVERAGE */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.coverage-grid div {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.01);
}

.map-placeholder {
    height: 350px;
    background: #e2e8f0;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

/* CALLBACK SECTION */
.callback-box {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

.callback-box form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: center;
}

.callback-box input, .callback-box select {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    width: 100%;
}

/* FAQ SECTION */
.faq-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.faq-item h4 {
    margin-bottom: 10px;
}

/* FLOATING BUTTONS */
.floating-call, .floating-whatsapp {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    z-index: 99;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.floating-call:hover, .floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-call {
    bottom: 90px;
    background: #0B5ED7;
}

.floating-whatsapp {
    bottom: 20px;
    background: #22c55e;
}

/* MOBILE APP SECTION */
.mobile-app-section {
    padding: 70px 0;
    background: #fff;
    margin-top: 40px;
}

.mobile-app-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.mobile-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.mobile-content p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 25px;
}

.app-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-btn {
    padding: 15px 25px;
    border: none;
    background: #0B5ED7;
    color: white;
    border-radius: 50px;
    cursor: pointer;
}

.mobile-mockup {
    display: flex;
    justify-content: center;
}

.phone-placeholder {
    width: 280px;
    height: 500px;
    background: #e2e8f0;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* FOOTER */
.footer {
    background: #0f172a;
    color: white;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer h3, .footer h4 {
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 10px;
    color: #cbd5e1;
}

.footer p {
    color: #cbd5e1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
}

/* SIDEBAR OVERLAY BACKGROUND */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 999;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .main-layout {
        gap: 20px;
    }
    .sidebar {
        width: 270px;
    }
    .featured-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) {
    /* Mobile-এ সাইডবার ড্রয়ার করার নিয়ম */
    .sidebar {
        position: fixed;
        top: 0;
        left: -320px; 
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        border-radius: 0;
        transition: left 0.3s ease-in-out;
    }
    
    .sidebar.active {
        left: 0; 
    }

    .close-sidebar-btn {
        display: block;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .market-grid {
        grid-template-columns: 1fr;
    }

    .featured-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .callback-box form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar {
        justify-content: space-between;
    }

    .nav-links-wrapper {
        display: none; /* মোবাইলে শুধু ক্যাটাগরি বাটন রাখছি */
    }

    .mobile-app-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .featured-products {
        grid-template-columns: 1fr;
    }
}