/* On mobile, don't shift body when offcanvas opens */
@media (max-width: 991px) {
    body.offcanvas-open {
        padding-left: 0 !important;
        overflow: hidden;
    }
}

/* ============================================
   MOBILE LANDSCAPE FIX
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    #hero-carousel, 
    .hero-slide {
        height: 100vh !important;
        min-height: 350px !important;
    }

    .custom-nav {
        top: 8px !important;
        padding: 5px 20px !important;
    }

    .hero-overlay-content h1 {
        font-size: 1.8rem !important;
        margin-top: 45px !important;
        margin-bottom: 0.3rem !important;
    }

    .badge {
        font-size: 0.7rem !important;
        padding: 5px 12px !important;
    }

    .hero-overlay-content .lead {
        font-size: 0.85rem !important;
        line-height: 1.3;
        margin-bottom: 0.8rem !important;
        max-width: 85% !important;
    }

    .hero-section h1 {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-section p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-overlay-content .d-flex {
        margin-top: 0.5rem !important;
    }

    .btn-lg {
        padding: 8px 20px !important;
        font-size: 0.8rem !important;
    }
}


/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .custom-nav .collapse {
        display: none !important;
    }
}

/* SUNDARBAN MOBILE FOOTER LOOK */
@media (max-width: 767px) {
    .main-sundarban-footer {
        text-align: left; /* Sundarban uses left-alignment on mobile */
        padding-top: 50px;
    }

    .footer-logo-mobile, 
    .footer-socials-mobile {
        justify-content: flex-start !important;
    }

    /* Column Spacing */
    .main-sundarban-footer [class*="col-"] {
        margin-bottom: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 20px;
    }

    /* Remove border from the last column before the copyright hr */
    .main-sundarban-footer .col-md-6:last-of-type {
        border-bottom: none;
    }

    /* Bottom Bar Stack */
    .footer-socket-mobile {
        text-align: center !important;
    }
}

/* Community Section Mobile Optimization */
@media (max-width: 767px) {
    .community-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    #community h2 {
        font-size: 1.75rem;
    }
}

/* Horizontal View Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    #community .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    #community .gap-4 {
        gap: 1.5rem !important;
    }
}

/* ============================================
   FONT STYLE
   ============================================ */

   @media (max-width: 991px) {
    .offcanvas-body .nav-link {
        font-family: 'Rubik', sans-serif;
        font-size: 14px;
        font-weight: 400;                  /* Thicker for high visibility on mobile */
        letter-spacing: 0px;
        padding: 15px 0 !important;
        line-height: 30px;
        
        
    }
}

/* --- MOBILE MENU SPECIFIC DESIGN --- */
.mobile-menu-sundarban {
    width: 300px !important;
    background-color: #0c0c0c !important; /* Deep black-gray from reference */
    padding-left: 10px;
    
}

/* 1. Circular Logo */
.logo-circle-mobile {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.logo-circle-mobile img {
    width: 100%;
    object-fit: contain;
}

/* 2. Navigation Typography */
.nav-link-mobile {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 400; /* Bold thickness as requested */
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0px;
    transition: 0.3s;
    line-height: 30px;

}

.nav-link-mobile.active {
    color: #7bce57 !important; /* Green active state from reference */
}

/* 3. Close Button Custom Design */
.btn-close-custom {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

/* 4. Inquiry Section Styling */
.inquiry-icon {
    font-size: 1.8rem;
    color: #7bce57; /* The phone icon green */
}

.text-accent-green {
    color: #7bce57;
    font-size: 1.1rem;
}

.mobile-menu-footer p {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Enhancement: Mobile Button Feedback */
.nav-link-mobile:active, 
.btn-close-custom:active {
    transform: scale(0.95);
    background-color: rgba(123, 206, 87, 0.1);
}

/* --- HERO ARROW RESPONSIVENESS --- */

/* 1. Hide arrows by default (Mobile/Small Tablets) */
.custom-hero-arrow {
    display: none !important;
}

/* 2. Show arrows only on screens wider than 992px (Laptops/Desktops) */
@media (min-width: 992px) {
    .custom-hero-arrow {
        display: flex !important; /* Restores the circular buttons */
    }
}

/* --- FULL-WIDTH RESPONSIVE FIX --- */
#hero-carousel, 
.carousel-inner, 
.carousel-item {
    height: 100vh !important;
    width: 100% !important;
    overflow: hidden;
}

.hero-slide {
    height: 100vh !important;
    width: 100% !important;
    object-fit: cover; /* Keeps images looking perfect on all screen shapes */
}

