
/* Top Bar Styles */
.top-bar {
    background: linear-gradient(90deg, #ee992b, #fcfdfc, #09c919);
    font-size: 0.85rem;
    color: #2c3e50;
    text-align: center;
  }

/* Text and Links */
.top-bar a {
    color: rgb(245, 239, 241) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-bar a:hover {
    color: #bbdefb !important;
    text-decoration: underline;
}

/* Phone Link */
.top-bar a[href^="tel:"] {
    font-weight: 500;
}

/* Social Icons */
.social-links a {
    display: inline-block;
    width: 25px;
    height: 25px;
    color: #f6f9fc;
    background: linear-gradient(90deg, #3b1fd6, #27139c, #26148d);
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:last-child {
    margin-right: 0;
}

.social-links a:hover {
    background-color: rgba(86, 17, 214, 0.7);
    transform: translateY(-2px);
}

/* Divider */
.top-bar .text-muted {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Tagline */
.top-bar .fw-bold {
    font-weight: 800 !important;
    font-size: 1.0rem;
    letter-spacing: 0.5px;
}

/* Base Navbar Styles */
.navbar {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    height: 40px;
    transition: all 0.3s ease;
}

/* Nav Link Hover & Active Effects */
.navbar-nav .nav-link {
    color: #2c3e50;
    position: relative;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #1a56a7;
}

.navbar-nav .nav-link.active {
    color: #1a56a7;
    font-weight: 600;
}

/* Underline Animation on Hover */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #1a56a7;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
    left: 15%;
}

.navbar-nav .nav-link.active::after {
    width: 70%;
    left: 15%;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #1a56a7;
}

/* Book Now Button - Always fit content width */
.btn-primary {
    background-color: #1a56a7;
    border: none;
    padding: 0.1rem 1rem;
    font-size: 0.1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: fit-content; /* Key change for perfect content fit */
    min-width: unset; /* Remove any minimum width constraints */
}

.btn-primary:hover {
    background-color: #164b8f;
    transform: translateY(-1px);
}


/* Mobile Responsive Styles - Horizontal Scrollable Nav */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: block;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        margin-top: 0.1rem;
        padding-bottom: 5px; /* Space for scrollbar */
        scrollbar-width: auto; /* For Firefox */
        scrollbar-color: #1a56a7 #f1f1f1; /* For Firefox */
    }

    .main-nav {
        display: inline-block;
        min-width: 100%; /* Force scrollbar to appear */
        padding: 5px 0 5px; /* Extra bottom padding for scrollbar */
    }

    .nav-item {
        display: inline-block;
        margin: 0 2px;
    }

    .nav-link {
        padding: 4px 4px;
        display: inline-block;
    }

    /* Custom 20px scrollbar styling */
    .navbar-collapse::-webkit-scrollbar {
        height: 10px;
    }

    .navbar-collapse::-webkit-scrollbar-thumb {
        background-color: #1a56a7;
        border-radius: 0px;
        border: 5px solid transparent;
        background-clip: content-box;
    }

    .navbar-collapse::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 0px;
        margin: 0 10px;
    }

    /* Always show scrollbar (non-Firefox browsers) */
    .navbar-collapse::-webkit-scrollbar-thumb {
        background-color: #1a56a7;
        visibility: visible;
    }

    /* Active link styling */
    .nav-link.active {
        background-color: rgba(26, 86, 167, 0.1);
        border-radius: 4px;
    }
}



/* Desktop Styles */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* Underline animation */
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: #1a56a7;
        transition: width 0.3s ease, left 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 70%;
        left: 15%;
    }
}

/* Common Styles */
.navbar-nav .nav-link {
    color: #2c3e50;
    position: relative;
    padding: 0.2rem 0.3rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #1a56a7;
}

.navbar-nav .nav-link.active {
    color: #1a56a7;
    font-weight: 600;
}

/* Book Now Button - Fits content */
.btn-primary {
    background-color: #1a56a7;
    border: none;
    padding: 0.2rem 1rem;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: fit-content;
}

.btn-primary:hover {
    background-color: #164b8f;
    transform: translateY(-1px);
}

/* ড্রপডাউন মেনু স্টাইল - ডেস্কটপ এবং মোবাইল উভয় ভিউতে */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    position: absolute;
    left: 0;
    z-index: 1000;
    display: none; /* ডিফল্টভাবে লুকানো */
}

/* ড্রপডাউন শো হলে স্টাইল */
.nav-item.dropdown.show .dropdown-menu {
    display: block;
}

/* মোবাইল ভিউতে ড্রপডাউন স্টাইল */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static; /* রিলেটিভ পজিশনে আনুন */
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-left: 3px solid #1a56a7;
        margin-top: 0;
        display: none; /* মোবাইলেও লুকানো রাখুন */
    }
    
    /* ড্রপডাউন শো হলে মোবাইল স্টাইল */
    .nav-item.dropdown.show .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    /* ড্রপডাউন টগল স্টাইল */
    .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-left: 0.3em solid transparent;
        
    }
}

/* এনিমেশন এড করুন */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fixed-call-button {
    position: fixed;
    left: 0px;
    bottom: 0px;
    z-index: 9999;
    background-color: #28a745; /* Green color */
    color: white;
    padding: 12px 20px;
    border-radius: 0px 0px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.fixed-call-button a {
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.fixed-call-button:hover {
    background-color: #218838; /* Darker green on hover */
    padding-bottom: 15px;
}

.fixed-call-button i {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fixed-call-button {
        left: 0px;
        bottom: 0px;
        padding: 0px 0px;
        font-size: 0.9rem;
    }
    
    .fixed-call-button i {
        font-size: 1rem;
    }
}

.back-to-top {
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 999; /* Ensures it stays above other content */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff; /* Bootstrap primary color */
    color: white;
    text-decoration: none;
    transition: opacity 0.3s, background-color 0.3s;
}

.back-to-top:hover {
    background-color: #0056b3;
    opacity: 0.8;
}
.fixed-call-button {
    position: fixed;
    left: 0px;
    bottom: 0px;
    z-index: 9999;
    background-color: #28a745; /* Green color */
    color: white;
    padding: 12px 20px;
    border-radius: 0px 0px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.fixed-call-button a {
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.fixed-call-button:hover {
    background-color: #218838; /* Darker green on hover */
    padding-bottom: 15px;
}

.fixed-call-button i {
    font-size: 1.2rem;
}

/* WhatsApp Float Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 0px;
    right: 0px;
    z-index: 1000;
    display: block !important; /* Force display */
}

.whatsapp-float-btn {
    background-color: #25D366;
    color: white !important;
    width: 150px;
    height: auto;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 0.7rem;
    padding: 5px;
    line-height: 1.2;
}

.whatsapp-float-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white !important;
}

.whatsapp-float-btn i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 0px;
        right: 0px;
    }
    
    .whatsapp-float-btn {
        width: 150px;
        height: auto;
        font-size: 0.65rem;
    }
}

/* Remove the conflicting CSS rule that hides WhatsApp button */
.whatsapp-mobile-cta {
    display: block !important; /* Changed from none to block */
}
