/**
 * Certificates (Chứng chỉ đạt được) Page Styles
 * 
 * @package GiaoDienNguoiDung
 */

/* ============================================
   Navigation Tabs (.gy-nav)
   ============================================ */
.gy-nav {
    height: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    width: 1200px;
    margin: 0 auto 40px;
}

.gy-nav ul {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gy-nav li {
    list-style: none;
}

.gy-nav li a {
    display: block;
    font-size: 16px;
    color: #1C2087;
    line-height: 18px;
    height: 35px;
    position: relative;
    text-decoration: none;
}

.gy-nav li:hover a,
.gy-nav li.sidenavcur a {
    font-size: 16px;
    font-weight: bold;
}

.gy-nav li:hover a:after,
.gy-nav li.sidenavcur a:after {
    position: absolute;
    width: 100%;
    height: 6px;
    content: "";
    background: #EA5404;
    left: 0;
    bottom: -3px;
}

/* ============================================
   Main Certificates Section (.ryzs)
   ============================================ */
.ryzs {
    padding: 30px 0 100px;
}

.ryzs ul {
    height: 408px;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.ryzs li {
    float: left;
    width: 33.3%;
    text-align: center;
    margin-top: 40px;
}

.ryzs li img {
    display: block;
    margin: 0 auto;
    height: 296px;
    object-fit: contain;
}

.ryzs li p {
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 16px;
    color: #333;
    margin: 0;
}

.ryzs_txt {
    margin-top: 80px;
}

.ryzs_txt p {
    float: left;
    width: 33.3%;
    font-size: 16px;
    color: #333;
    height: 48px;
    line-height: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 40px;
    box-sizing: border-box;
    margin: 0;
}

/* ============================================
   Patents & Certificates Section (.zlzs)
   ============================================ */
.zlzs {
    padding: 0 20px 40px;
}

.zlzs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.zlzs li {
    float: left;
    width: calc(20% - 16px);
}


.zlzs li img {
    display: block;
    width: 100%;
    height: auto;
}

.zlzs li p {
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 14px;
    color: #666;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 10px 0 0;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.clear {
    clear: both;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1199.98px) {
    .ryzs_txt p{
        width: 50%;
    }
    .gy-nav {
        width: 100%;
        padding: 0 20px;
    }
    
    .ryzs ul {
        height: auto;
        min-height: 408px;
    }
    
    .zlzs li {
        width: calc(25% - 15px);
    }
}

@media (max-width: 991.98px) {
    .gy-nav {
        height: auto;
        padding: 10px 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .gy-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .gy-nav::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }
    
    .gy-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0 20px;
        min-width: max-content;
    }
    
    .gy-nav li {
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .gy-nav li:last-child {
        margin-right: 0;
    }
    
    .gy-nav li a {
        white-space: nowrap;
    }
    
    .ryzs {
        padding: 30px 20px 80px;
    }
    
    .ryzs ul {
        height: auto;
        min-height: auto;
        padding: 20px 0;
    }
    
    .ryzs li {
        width: 33.3%;
        margin-top: 20px;
    }
    
    .ryzs li img {
        height: 250px;
    }
    
    .ryzs_txt {
        margin-top: 50px;
    }
    
    .ryzs_txt p {
        width: 50%;
    }
    
    .zlzs {
        padding: 0 20px 40px;
    }
    
    .zlzs li {
        width: calc(50% - 10px);
    }
}

@media (max-width: 767.98px) {
    .zlzs ul{
        gap:15px
    }
    .gy-nav {
        height: auto;
        padding: 10px 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .gy-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .gy-nav::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }
    
    .gy-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0 20px;
        min-width: max-content;
    }
    
    .gy-nav li {
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .gy-nav li:last-child {
        margin-right: 0;
    }
    
    .gy-nav li a {
        white-space: nowrap;
        font-size: 16px;
    }
    
    .ryzs {
        padding: 20px 15px 60px;
    }
    
    .ryzs ul {
        height: auto;
        min-height: auto;
        padding: 15px 0;
    }
    
    .ryzs li {
        width: 100%;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .ryzs li:first-child {
        margin-top: 0;
    }
    
    .ryzs li img {
        height: auto;
        max-height: 300px;
    }
    
    .ryzs_txt {
        margin-top: 40px;
    }
    
    .ryzs_txt p {
        width: 100%;
        float: none;
        padding-left: 20px;
    }
    
    .zlzs {
        padding: 0 15px 30px;
    }
    
    .zlzs li {
        width: calc(50% - 7.5px);
    }
}

@media (max-width: 575.98px) {
    .ryzs {
        padding: 20px 10px 50px;
    }
    
    .ryzs li img {
        max-height: 250px;
    }
    
    .ryzs_txt p {
        font-size: 14px;
        height: auto;
        line-height: 24px;
        padding: 10px 0 10px 20px;
    }
    
    .zlzs {
        padding: 0 10px 20px;
    }
    
    .zlzs li {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .zlzs li p {
        font-size: 13px;
        height: auto;
        line-height: 20px;
        white-space: normal;
        overflow: visible;
    }
}

