/* Capsule Tabs Menu Styling */

.vision.express-box {
    background-color: #fff;
    padding: 30px 0;
}

.about-menu {
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* Hide dropdown toggle button on desktop */
.about-menu .dropdown-toggle {
    display: none;
}

.about-menu .menu-items {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
}

.about-menu .menu-items li {
    flex: 0 0 220px !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
}

.about-menu .menu-items li a {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background-color: #fff;
    color: #002060;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid #002060;
    font-size: 14px;
    font-weight: 600;
    font-family: "Poppins-SemiBold", Arial, sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.about-menu .menu-items li a:hover,
.about-menu .menu-items li.active a {
    background-color: #002060;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 32, 96, 0.2);
}

/* Ensure 5 items in first row, 4 in second row */
.about-menu .menu-items li:nth-child(1),
.about-menu .menu-items li:nth-child(2),
.about-menu .menu-items li:nth-child(3),
.about-menu .menu-items li:nth-child(4),
.about-menu .menu-items li:nth-child(5) {
   /* flex: 0 0 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;*/
	 flex: 0 0 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
}

.about-menu .menu-items li:nth-child(n+6) {
 /*   flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    padding: 0;*/
	   flex: 0 0 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    padding: 0;
}

/* Tablet Styles */
@media only screen and (max-width: 1024px) {

    .about-menu .menu-items li:nth-child(1),
    .about-menu .menu-items li:nth-child(2),
    .about-menu .menu-items li:nth-child(3),
    .about-menu .menu-items li:nth-child(4),
    .about-menu .menu-items li:nth-child(5),
    .about-menu .menu-items li:nth-child(n+6) {
        flex: 0 0 calc(33.333% - 15px);
        min-width: 150px;
    }

    .about-menu .menu-items li a {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Mobile Styles */
@media only screen and (max-width: 767px) {
    .vision.express-box {
        padding: 20px 60px !important; /* Remove left/right padding completely */
    }
    
    .about-menu {
        padding: 0 15px !important; /* Add padding only to menu container */
    }

    /* Show dropdown toggle on mobile */
    .about-menu .dropdown-toggle {
        display: block;
        width: 100% !important;
        padding: 15px 15px !important;
        background-color: #002060;
        color: #fff;
        border: none;
        border-radius: 50px;
        font-size: 16px;
        font-weight: 600;
        font-family: "Poppins-SemiBold", Arial, sans-serif;
        cursor: pointer;
        position: relative;
        text-align: left;
        margin-bottom: 15px;
    }

    .about-menu .dropdown-toggle:after {
        content: '\f107';
        font-family: 'FontAwesome';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .about-menu .dropdown-toggle.active:after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Hide menu items by default on mobile */
    .about-menu .menu-items {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px; padding-bottom:20px;
    }

    .about-menu .menu-items.show {
        display: flex;
    }

    .about-menu .menu-items li {
        width: 100% !important;
        flex: 0 0 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
    }

    .about-menu .menu-items li:nth-child(1),
    .about-menu .menu-items li:nth-child(2),
    .about-menu .menu-items li:nth-child(3),
    .about-menu .menu-items li:nth-child(4),
    .about-menu .menu-items li:nth-child(5),
   .about-menu .menu-items li:nth-child(n+6){
        flex: 0 0 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
    }

    .about-menu .menu-items li a {
        width: 100% !important;
        padding: 12px 10px !important;
        font-size: 14px !important;
        text-align: center !important;
    }
		.about-menu .menu-items li:nth-child(n+6) {
  /*  flex: 0 0 0px !important;
    min-width: 220px !important;
    max-width: 220px !important;*/
	
	flex: 0 0 0px !important;
        min-width: 0px !important;
       /* max-width: 200px !important;*/
	    max-width: 94% !important;
        margin: 0px 8px;
}
}

/* Small Mobile */
@media only screen and (max-width: 480px) {
    .about-menu .menu-items li a {
        padding: 10px 15px !important; /* Reduced padding */
        font-size: 13px !important;
        text-align: center !important;
    }
}