@media (max-width: 991px) {
    .g20-logo, .gigw-wrap{
		display:none!important;
	}
    .navbar-brand {
        padding: 0px;
    }
	.navbar-toggler {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .top-header-text {
        font-size: 11px;
    }

    .back-to-top {
        display: none;
    }

    .lang-switcher {
        top: 29%;
    }

    .director-panel {
        margin: 1rem!important;
        padding: 1rem!important;
    }

    .org-profile {
        padding: 0 1rem 0 1rem !important;
    }

    .content-wrapper .lead {
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    /* Navbar Collapse */
    .navbar-collapse {
        background: #fff;
        margin-top: 1rem;
        padding: 1rem 0;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 999;
    }
    
    .navbar-nav {
        align-items: flex-start !important;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-link:hover {
        background: #f8f9fa;
    }
    
    .nav-item:last-of-type .nav-link {
        border-bottom: none;
    }
    
    /* Hero Section */
    .carousel-inner, .carousel-item {
		height: auto;
	}
	    
}

@media (max-width: 768px) {
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        text-align: center;
    }
    
    .btn-login {
        margin-top: 1rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }

    .mission-vision {
        margin: 1rem;
    }
    
    /* Carousel */
    .carousel-caption {
        width: 95%;
        padding: 0 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    
    .carousel-indicators {
        bottom: 30px;
    }
    
    /* Sections */
    .stat-number {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Content Sections */
    .content-section {
        padding: 3rem 0 !important;
    }
    
    .stats-inline {
        gap: 1rem;
    }
    
    .image-wrapper {
        margin-top: 2rem;
    }

    .content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .stats-inline {
        justify-content: center;
        text-align: center;
    }
    
    .stats-inline .stat-item {
        text-align: center;
        flex: 1 1 calc(33.333% - 1rem);
        min-width: 100px;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-item i {
        margin-bottom: 1rem;
    }
    
    .research-item {
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--primary-color);
    }
    
    /* Footer */
    .gov-slider {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .owl-carousel .owl-item {
        height: 80px; /* Smaller height for mobile devices */
        padding: 0.5rem;
    }
    
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-logo-wrapper img {
        max-height: 95px;
    }
    
    .footer-map {
        height: 200px;
        margin-top: 1rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    /* Page Headers */
    .page-header {
        padding: 30px 0 !important;
    }
    
    .page-title {
        font-size: 2rem !important;
    }
    
    .page-subtitle {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    /* Hero Section */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Stats */
    .stats-inline .stat-item {
        flex: 1 1 100%;
    }

    .header-partner-logos {
    	display: none;
    }
    
    /* Footer */
    .contact-item {
        font-size: 0.9rem;
    }
    
    .footer-links {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* ----- Project Type Toggle Responsive ----- */

/* Tablets and below (Under 768px) */
@media (max-width: 768px) {
    .project-type-toggle {
        margin: 2rem 0 1.5rem;
        padding: 0 1rem; /* Prevent touching screen edges */
    }

    .toggle-btn {
        padding: 0.6rem 1.4rem; /* Slightly tighter padding */
        font-size: 1rem;
    }
}

/* Mobile Devices (Under 480px) */
@media (max-width: 480px) {
    .toggle-group {
        display: flex;
        width: 100%; /* Fill the container width */
        border-radius: 20px; /* Squares off slightly for better space usage */
    }

    .toggle-btn {
        flex: 1; /* Force buttons to be equal width */
        justify-content: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
        gap: 4px;
        border-radius: 16px; /* Match the tighter container radius */
    }

    .toggle-btn i {
        font-size: 0.85rem;
    }

    .toggle-btn .count {
        font-size: 0.75rem;
        padding: 0.1rem 0.5rem;
        margin-left: 4px;
    }
}

/* Extra Small Devices (Under 360px) */
@media (max-width: 360px) {
    .toggle-btn {
        flex-direction: column; /* Stack icon/text if it's still too tight */
        gap: 2px;
        padding: 0.5rem 0.2rem;
    }
    
    .toggle-btn i {
        margin-bottom: 2px;
    }
}
