@media (max-width: 1200px) {
    .platform-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-link{
        padding: 15px 5px;
        font-size: 17px;
    }
    .logo-section .logo img{
        max-height: 50px;
    }
    
    .list-sidebar-nav {
        display: none;
    }
}

@media (max-width: 900px) {
    .lab-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .logo-section .logo img{
        max-height: 40px;
    }
    .header{
        height: 100px;
    }
    .nav-link{
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 10px 0;
    }
    
    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
        position: relative;
    }
    
    .logo-section {
        flex: 0 0 auto;
        order: 1;
        max-width: calc(100% - 120px);
        min-width: 0;
    }
    
    .logo-section .logo {
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    .logo-section .logo img {
        max-height: 40px;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    .carousel-container {
        padding: 0;
    }
    .header-right {
        display: flex;
        flex: 0 0 auto;
        order: 2;
        gap: 8px;
        align-items: center;
        flex-shrink: 0;
    }
    
    .mobile-search-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.3s;
    }
    
    .mobile-search-toggle img {
        width: 20px;
        height: 20px;
        display: block;
        filter: brightness(0) invert(1);
    }
    
    .mobile-search-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-toggle {
        display: block;
        padding: 8px;
        z-index: 10000;
        position: relative;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    
    body.menu-active .mobile-menu-toggle {
        display: none;
    }
    
    body.menu-active .mobile-search-toggle {
        display: none;
    }
    
    .search-section.mobile-search {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin: 10px 0 0 0;
        z-index: 1000;
        background-color: var(--primary-color);
        padding: 10px 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .search-section.mobile-search.active {
        display: flex;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 15px;
        height: 38px;
        flex: 1;
    }
    
    .search-btn {
        height: 38px;
        width: 38px;
    }
    
    .navbar {
        position: relative;
        padding: 0;
    }
    
    .nav-container {
        padding: 0;
    }
    
    .main-content {
        transition: opacity 0.3s;
    }
    
    body.menu-active .main-content {
        opacity: 0.3;
        pointer-events: none;
    }
    
    .nav-menu {
        flex-direction: column;
        display: none;
        width: 100%;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #005BAC 0%, #004b8d 100%);
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 20px 0;
        animation: slideInRight 0.3s ease-out;
        border-radius: 0;
        align-items: stretch;
        justify-content: flex-start;
    }
    
    body.menu-active .header {
        z-index: 10000;
        position: relative;
        height: auto;
        min-height: 68px;
    }
    
    .nav-menu > li {
        width: 100%;
        text-align: left;
        flex: 0 0 auto;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    body.menu-active {
        overflow: hidden;
    }
    
    .mobile-menu-close {
        position: fixed;
        top: 15px;
        right: 20px;
        color: #ffffff;
        font-size: 32px;
        cursor: pointer;
        z-index: 10001;
        width: 36px;
        height: 36px;
        display: none;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.15);
        border: none;
        transition: all 0.3s;
        padding: 0;
        line-height: 1;
    }
    
    .mobile-menu-close:hover {
        background-color: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg);
    }
    
    .mobile-menu-close:active {
        transform: rotate(90deg) scale(0.95);
    }
    
    .nav-link {
        width: 100%;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s;
        position: relative;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .has-dropdown {
        display: flex;
        flex-direction: column;
    }
    
    .has-dropdown .nav-link {
        flex: 0 0 auto;
    }
    
    .has-dropdown .nav-link::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }
    
    .has-dropdown:hover .dropdown-menu {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .has-dropdown .dropdown-menu:hover {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        display: flex !important;
        flex-wrap: wrap;
        flex-direction: row !important;
        background-color: rgba(0, 0, 0, 0.25);
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        padding: 10px 15px;
        border: none;
        gap: 8px;
    }
    
    .dropdown-menu li {
        border-bottom: none;
        flex: 0 0 auto;
    }
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        padding: 8px 12px;
        color: rgba(255, 255, 255, 0.95);
        font-size: 14px;
        display: inline-block;
        text-align: center;
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        white-space: normal;
        line-height: 1.4;
    }

    .has-subdropdown {
        width: 100%;
        flex: 1 1 100%;
    }

    .has-subdropdown > a::after {
        display: none;
    }

    .sub-dropdown-menu {
        position: static;
        display: flex !important;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 8px;
        width: 100%;
        padding: 8px 0 0;
        margin: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .sub-dropdown-menu li {
        border: none;
        flex: 0 0 auto;
    }

    .sub-dropdown-menu a {
        padding: 8px 12px;
        color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        display: inline-block;
        text-align: center;
        white-space: normal;
        line-height: 1.4;
    }
    .has-dropdown-team .dropdown-menu{
       max-width:100%;
     }
    .main-carousel {
        height: 250px;
    }
    
    .news-container {
        flex-direction: column;
    }
    
    .news-left,
    .news-right {
        max-width: 100%;
    }
    
    .news-content-wrapper {
        flex-direction: column;
    }
    
    .news-carousel-wrapper {
        margin-bottom: 20px;
    }
    
    .dynamics-container {
        flex-direction: column;
    }
    
    .platform-container {
        grid-template-columns: 1fr;
    }
    
    .lab-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item img {
        height: 250px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
        width: 100%;
    }
    
    .footer-qr {
        justify-content: center;
    }
    
    .list-banner {
        margin-bottom: 20px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        padding: 0;
        border-radius: 0;
        height: 200px;
    }
    
    .list-main-wrapper {
        flex-direction: column;
    }
    
    .list-content {
        width: 100%;
    }
    
    .content-wrapper {
        width: 100%;
    }
    
    .list-content .section-header h2,
    .content-wrapper .section-header h2 {
        display: none;
    }
    
    .list-content .section-header,
    .content-wrapper .section-header {
        justify-content: flex-start;
        padding-bottom: 15px;
    }
    
    .list-content .breadcrumb,
    .content-wrapper .breadcrumb {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .logo-section {
        max-width: calc(100% - 100px);
    }
    
    .logo-section .logo img {
        max-height: 35px;
    }
    
    .logo-section .logo {
        font-size: 18px;
    }
    
    .logo-en {
        font-size: 12px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .main-carousel {
        height: 200px;
    }
    
    .news-item img {
        height: 200px;
    }
    
    .platform-icon {
        font-size: 36px;
    }
    
    .header-right {
        gap: 6px;
    }
    
    .dropdown-menu a {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .article-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-item {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }
    
    .list-banner {
        height: 150px;
        margin-bottom: 15px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        padding: 0;
        border-radius: 0;
    }
}