/* Sidebar Container */
    .smart-sidebar {
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        z-index: 9999; /* High z-index to stay on top */
    }

    /* Menu Item Styling */
    .smart-sidebar .menu-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 50px;
        height: 50px;
        background-color: #009cff;
        border-radius: 10px 0 0 10px; /* Round left, sharp right */
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        padding-left: 15px; /* Adds space between the icon and left edge */
    }

    /* Hover Effect: Open "Cabinet" */
    .smart-sidebar .menu-item:hover {
        width: 200px; /* Expands horizontally */
        background-color: #1384C6;
    }

    /* Icon Styling */
    .smart-sidebar .menu-item i {
        font-size: 20px;
        color: #fff;
        transition: transform 0.3s ease;
    }

    .smart-sidebar .menu-item:hover i {
        transform: scale(1.2);
    }

    /* Label Styling */
    .smart-sidebar .menu-label {
        margin-left: 20px;
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        opacity: 0;
        white-space: nowrap;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: translateX(-20px);
    }

    .smart-sidebar .menu-item:hover .menu-label {
        opacity: 1;
        transform: translateX(0);
    }

    /* Red dot for notification - positioned at the top-left */
    .red-dot {
        position: absolute;
        top: 5px;
        left: 5px;
        width: 8px; /* Increased size for better visibility */
        height: 8px;
        background-color: red;
        border-radius: 50%;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }

    .welcome-heading{
        color: #252d40;
        font-size: 32px;
        font-weight: 700;
        line-height: 48px;
        margin-bottom: 20px;
        margin-top: 20px;

    }

    body {
        font-family: 'Poppins', sans-serif;
    }
    .page-section p{
        max-width: 90%;
        text-align: center;
    }


    .creating-clean-thumb {
        position: relative;
    }

    .img-responsive {
        height: auto;
        max-width: 100%;
    }

    .img-full {
        width: 100% !important;
    }

    .creating-clean-thumb .creating-svg {
        bottom: 15px;
        left: 20px;
        position: absolute;
        font-size: 24px;
        color: #fff;
    }

    .paragrExp {
        color: #777777;
        font-size: 18px;
        font-weight: 500;
        line-height: 27px;
        margin-top: 10px;
    }




    .more-about-spacing .more-about-itempad {
        padding: 20px;
    }


    .box-abt {
        background: #fff;
        border-radius: 15px;
        outline: 8px solid #009CFF;
        padding: 8px 18px 2px;
        position: relative;
    }

    .box-abt:before {
        border: 8px solid hsla(0, 0%, 100%, 0.3);
        border-radius: 23px;
        bottom: -8px;
        content: "";
        left: -8px;
        position: absolute;
        right: -8px;
        top: -8px;
    }

    .box-abt-inner {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
    }

    .icon-circle {
        width: 79px;
        height: 79px;
        background: rgba(14, 151, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .icon-circle i {
        font-size: 32px;
        color: #0E97FF;
    }

    .box-mr-content {
        color: #252d40;
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        margin-left: 13px;
    }

    .wapda-emp-link, .wapda-emp-link:hover {
        text-decoration: none;
    }
    @media (max-width: 576px) {
        .section-title{
        }
    }



    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .thumbnail-container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        max-width: 70%;
        margin: auto;
        overflow: hidden;
    }

    .thumbnail-wrapper {
        width: 100%;
        overflow: hidden;
    }

    .thumbnail-track {
        display: flex;
        transition: transform 0.3s ease-in-out;
    }

    .thumbnail-item {
        flex: 0 0 calc(25% - 10px); /* 4 thumbnails per row */
        margin: 0 5px;
        cursor: pointer;
    }

    .thumbnail-img {
        width: 100%;
        border-radius: 5px;
        transition: transform 0.2s;
        cursor: pointer; /* OLD*/
    }

    .thumbnail-img:hover {
        transform: scale(1.1);
    }

    .thumbnail-prev, .thumbnail-next {
        position: absolute;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .thumbnail-prev { left: 0; }
    .thumbnail-next { right: 0; }

    .indicator-btn {
        width: 10px;
        height: 10px;
        margin: 5px;
        border-radius: 50%;
        background: #ccc;
        border: none;
        cursor: pointer;
        transition: background 0.3s;
    }
    .indicator-btn.active, .indicator-btn:hover {
        background: #0077ff;
    }



    .outer-shadow-wrapper {
        border-radius: 20px;
        padding: 20px;
        background-color: white;
        margin: 40px auto;
        width: 100%;
        max-width: 1300px;
        transition: box-shadow 0.3s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* softer initial shadow */
    }

    .outer-shadow-wrapper:hover {
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); /* deeper shadow on hover */
    }




    .image-gradient-wrapper {
        position: relative;
        display: inline-block;
        border-radius: 16px;
        overflow: hidden;
    }

    .image-gradient-wrapper img {
        display: block;
        width: 100%;
        height: 90%;
        object-fit: cover;
    }

    .image-gradient-wrapper::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60%;
        pointer-events: none;
    }

    /* Gradient Variants */
    .gradient-blue::after {
        background: linear-gradient(to top, rgba(0, 123, 255, 0.4), transparent);
    }

    .gradient-orange::after {
        background: linear-gradient(to top, rgba(255, 140, 0, 0.4), transparent);
    }

    .gradient-darkblue::after {
        background: linear-gradient(to top, rgba(0, 35, 102, 0.4), transparent);
    }

    .gradient-green::after {
        background: linear-gradient(to top, rgba(0, 150, 0, 0.4), transparent);
    }


    .thumbnail-container {
        z-index: 1;          /* Keeps it above its own content but under everything else */
    }


/* Tablets and smaller (≤ 991.98px) */
@media (max-width: 991.98px) {
    .col-lg-3.col-md-4.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 20px;
    }

    .paragrExp {
        font-size: 12.5px;
        line-height: 22px;
        margin-top: 10px;
    }

    .creating-clean-thumb .creating-svg {
        font-size: 20px;
        bottom: 12px;
        left: 12px;
    }

    .service-img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 12px;
    }

    .service-item {
        padding: 10px 5px;
    }

     /* Slider Adjustments */

    .outer-shadow-wrapper {
        padding: 10px 8px;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .section-title {
        font-size: 18px;
        padding: 4px 8px;
        margin-bottom: 8px;
    }

    #header-carousel {
        max-width: 90%;
        margin: 0 auto 6px auto;
    }

    #header-carousel .carousel-item img,
    #header-carousel .carousel-item video {
        height: 170px;
        object-fit: cover;
        border-radius: 8px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }

    .thumbnail-container {
        margin-top: 5px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
    }

    .thumbnail-wrapper {
        overflow-x: auto;
        padding: 0 4px;
    }

    .thumbnail-track {
        display: flex;
        gap: 5px;
    }

    .thumbnail-img {
        height: 42px;
        width: 64px;
        object-fit: cover;
        border-radius: 5px;
    }

    .thumbnail-prev,
    .thumbnail-next {
        padding: 3px;
        font-size: 11px;
    }

    .indicator-btn {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }

    .d-flex.justify-content-center.mt-3 {
        margin-top: 6px !important;
    }


    /*Video related*/
    .video-banner {
        height: 50vh !important;
    }

    /*Portals*/
    .service-item.mt-4 {
        margin-top: 0 !important;
    }

    .video-social-icons {
        bottom: 20px !important;
        left: 6% !important;
    }

    .social-media-left {
        left: 10px; /* keep them tight to screen edge */
        gap: 12px;  /* reduce spacing between icons */
    }
}

/* Small phones (≤ 575.98px) */
@media (max-width: 575.98px) {
    .col-lg-3.col-md-4.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 16px;
    }

    .creating-clean-thumb .creating-svg {
        font-size: 18px;
        bottom: 10px;
        left: 10px;
    }

    .paragrExp {
        font-size: 12.5px;
        line-height: 20px;
        margin-top: 8px;
    }

    .icon-circle i {
        font-size: 20px;
    }

    .service-img {
        width: 100%;
        height: 130px;
        object-fit: cover;
        border-radius: 10px;
    }

    .service-item {
        padding: 6px 2px;
    }

    /* Slider Adjustments */
    /* Carousel height reduced for mobile */


 .outer-shadow-wrapper {
        padding: 6px 6px;
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .section-title {
        font-size: 15px;
        padding: 3px 6px;
        margin-bottom: 6px;
    }

    #header-carousel {
        max-width: 100%;
        margin: 0 auto 4px auto;
    }

    #header-carousel .carousel-item img,
    #header-carousel .carousel-item video {
        height: 130px !important;
        object-fit: cover;
        border-radius: 6px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }

    .thumbnail-container {
        margin-top: 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .thumbnail-wrapper {
        overflow-x: auto;
        padding: 0 3px;
    }

    .thumbnail-track {
        display: flex;
        gap: 4px;
    }

    .thumbnail-img {
        height: 36px;
        width: 54px;
        object-fit: cover;
        border-radius: 4px;
    }

    .thumbnail-prev,
    .thumbnail-next {
        padding: 2px;
        font-size: 10px;
    }

    .indicator-btn {
        width: 6px;
        height: 6px;
        margin: 0 2px;
    }

    .d-flex.justify-content-center.mt-3 {
        margin-top: 5px !important;
    }


    /*Video related*/
    .video-banner {
        height: 50vh !important;
    }

    /*Portals*/

    .service-item.mt-4 {
        margin-top: 0 !important;
    }

        .video-social-icons {
        gap: 6px !important;
        left: 4% !important;
        bottom: 12px !important;
    }

    .video-social-icons a {
        width: 24px !important;
        height: 24px !important;
    }

    .video-social-icons i {
        font-size: 12px !important;
    }

    .social-media-left {
        gap: 8px;
        left: 5px; /* hug edge tightly */
    }

    .social-media-left a {
        padding: 5px;
    }

    .social-media-left i {
        font-size: 12px;
    }

}

/* Mobile landscape & medium phones */
@media (max-width: 767.98px) {
    .video-social-icons {
        gap: 8px !important;
        left: 5% !important;
        bottom: 15px !important;
    }

    .video-social-icons a {
        width: 28px !important;
        height: 28px !important;
    }

    .video-social-icons i {
        font-size: 13px !important;
    }

    .social-media-left {
        gap: 10px;
    }

    .social-media-left a {
        padding: 6px; /* shrink hit area */
    }

    .social-media-left i {
        font-size: 14px;
    }
}

/* Fix responsiveness issues between 1240px-1200px */
@media (max-width: 1240px) and (min-width: 1200px) {
    .video-banner {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        overflow: hidden;
        position: relative;
    }
    
    .video-banner video {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        object-fit: cover;
        position: absolute;
    }
    
    .menu-overlay {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        position: absolute;
        overflow: hidden;
    }
    
    .content-wrapper {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Ensure all content spans full width */
    body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        position: relative;
    }
    
    html {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Fix video overlay positioning */
    .video-overlay {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Fix social icons positioning */
    .video-social-icons {
        left: 9% !important;
        right: auto !important;
    }
    
    .social-media-left {
        left: 20px !important;
        right: auto !important;
    }
}

/* Fix responsiveness issues between 1110px-991px */
@media (max-width: 1110px) and (min-width: 991px) {
    .video-banner {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        overflow: hidden;
        position: relative;
    }
    
    .video-banner video {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        object-fit: cover;
        position: absolute;
    }
    
    .menu-overlay {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        position: absolute;
        overflow: hidden;
    }
    
    .content-wrapper {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Ensure all content spans full width */
    body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        position: relative;
    }
    
    html {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Fix video overlay positioning */
    .video-overlay {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Adjust video text overlay positioning for smaller screens */
    .video-text-overlay {
        left: 5% !important;
        right: auto !important;
        max-width: 90%;
    }
    
    /* Adjust social icons positioning */
    .video-social-icons {
        left: 5% !important;
        right: auto !important;
    }
    
    .social-media-left {
        left: 10px !important;
        right: auto !important;
    }
}

/* Additional fix for the problematic range 1200px-1110px */
@media (max-width: 1199px) and (min-width: 1110px) {
    .video-banner {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        overflow: hidden;
        position: relative;
    }
    
    .video-banner video {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        object-fit: cover;
        position: absolute;
    }
    
    .menu-overlay {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        position: absolute;
        overflow: hidden;
    }
    
    .content-wrapper {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Ensure all content spans full width */
    body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        position: relative;
    }
    
    html {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Fix video overlay positioning */
    .video-overlay {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Fix social icons positioning */
    .video-social-icons {
        left: 9% !important;
        right: auto !important;
    }
    
    .social-media-left {
        left: 20px !important;
        right: auto !important;
    }
}

/* Global fixes to prevent white space issues */
@media (min-width: 991px) and (max-width: 1360px) {
    /* Ensure video banner spans full width */
    .video-banner {
        position: relative;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure video element spans full width */
    .video-banner video {
        position: absolute;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure menu overlay spans full width */
    .menu-overlay {
        position: absolute;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important; /* Changed from hidden to visible for dropdowns */
    }
    
    /* Ensure content wrapper spans full width */
    .content-wrapper {
        position: relative;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden;
    }
    
    /* Ensure body and html span full width */
    body, html {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden;
        position: relative;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Fix video overlay positioning */
    .video-overlay {
        position: absolute;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure navbar spans full width */
    .navbar {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important; /* Ensure dropdowns are visible */
    }
    
    /* Ensure navbar container spans full width */
    .navbar .container,
    .navbar .container-fluid {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Fix dropdown functionality for problematic widths */
    .navbar .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        margin-top: 0 !important;
        border: none !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
        z-index: 1000 !important;
        display: none !important; /* Bootstrap will handle display */
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        overflow: visible !important;
    }
    
    /* Ensure dropdowns show on hover */
    .navbar .nav-item:hover .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Ensure dropdowns show on click (Bootstrap) */
    .navbar .dropdown-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Fix dropdown positioning for right-aligned items */
    .navbar .nav-item.dropdown:last-child .dropdown-menu {
        left: auto !important;
        right: 0 !important;
    }
    
    /* Ensure navbar items are properly positioned for dropdowns */
    .navbar .nav-item {
        position: relative !important;
        overflow: visible !important;
    }
    
    .navbar .navbar-nav {
        overflow: visible !important;
        position: relative !important;
    }
}

/* Specific navbar adjustments for problematic width ranges */
@media (max-width: 1240px) and (min-width: 1200px) {
    /* Adjust navbar spacing to prevent cutoff */
    .navbar .navbar-nav .nav-link {
        margin-right: 15px !important;
        font-size: 13px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Ensure Contact Us button is fully visible and maintains pill shape */
    .navbar .btn.btn-light {
        font-size: 12px !important;
        padding: 6px 12px !important;
        margin-right: 15px !important;
        white-space: nowrap !important;
        border-radius: 50px !important; /* Maintain pill shape */
        min-width: 80px !important; /* Ensure minimum width for pill shape */
        height: 32px !important; /* Fixed height to maintain proportions */
    }
    
    /* Adjust logo size for better fit */
    .navbar-brand img {
        height: 45px !important;
    }
    
    /* Reduce left margin of navbar collapse */
    .navbar .navbar-collapse {
        margin-left: 20px !important;
    }
    
    /* Ensure dropdown functionality works */
    .navbar .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        margin-top: 0 !important;
        z-index: 1000 !important;
        overflow: visible !important;
    }
    
    .navbar .nav-item:hover .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 1199px) and (min-width: 1120px) {
    /* Further reduce spacing for smaller screens */
    .navbar .navbar-nav .nav-link {
        margin-right: 12px !important;
        font-size: 12px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    
    /* Ensure Contact Us button fits and maintains pill shape */
    .navbar .btn.btn-light {
        font-size: 11px !important;
        padding: 5px 10px !important;
        margin-right: 12px !important;
        white-space: nowrap !important;
        border-radius: 50px !important; /* Maintain pill shape */
        min-width: 70px !important; /* Ensure minimum width for pill shape */
        height: 30px !important; /* Fixed height to maintain proportions */
    }
    
    /* Adjust logo size */
    .navbar-brand img {
        height: 42px !important;
    }
    
    /* Reduce left margin further */
    .navbar .navbar-collapse {
        margin-left: 15px !important;
    }
    
    /* Ensure dropdown functionality works */
    .navbar .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        margin-top: 0 !important;
        z-index: 1000 !important;
        overflow: visible !important;
    }
    
    .navbar .nav-item:hover .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 1119px) and (min-width: 991px) {
    /* Most compact spacing for smallest desktop screens */
    .navbar .navbar-nav .nav-link {
        margin-right: 10px !important;
        font-size: 11px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    
    /* Compact Contact Us button with maintained pill shape */
    .navbar .btn.btn-light {
        font-size: 10px !important;
        padding: 4px 8px !important;
        margin-right: 10px !important;
        white-space: nowrap !important;
        border-radius: 50px !important; /* Maintain pill shape */
        min-width: 65px !important; /* Ensure minimum width for pill shape */
        height: 28px !important; /* Fixed height to maintain proportions */
    }
    
    /* Smallest logo size */
    .navbar-brand img {
        height: 40px !important;
    }
    
    /* Minimal left margin */
    .navbar .navbar-collapse {
        margin-left: 10px !important;
    }
    
    /* Ensure dropdown menus don't get cut off */
    .navbar .dropdown-menu {
        min-width: 180px !important;
        font-size: 11px !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        margin-top: 0 !important;
        z-index: 1000 !important;
        overflow: visible !important;
    }
    
    .navbar .dropdown-item {
        padding: 6px 15px !important;
        font-size: 11px !important;
    }
    
    /* Ensure dropdown functionality works */
    .navbar .nav-item:hover .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


@media (max-width: 991px) {
    .mobile-card-stack {
        position: relative;
        height: 280px;
        max-width: 90%;
        margin: 0 auto;
        display: block;
        perspective: 1000px;
    }

    .stack-card {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .stack-card[data-tilt="left"] {
        transform: rotate(-5deg) translateY(-6px);
    }

    .stack-card[data-tilt="right"] {
        transform: rotate(5deg) translateY(6px);
    }


    .stack-card.zoomed {
        transform: scale(1.02);
        z-index: 1000 !important;
    }

    .stack-media {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 578px) {
    .mobile-card-stack {
        height: 220px;
    }

    .stack-card {
        border-radius: 10px;
    }
}






