body {
    margin: 0 auto;
    background: linear-gradient(to bottom right, #514b80, #212160);
    height: auto;

    font-family: Arial, Helvetica, sans-serif;
}


.Menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    text-transform: none;



}


.Logo {

    margin-top: 10px;
}

.menu-icon {
    font-size: 25px;
    color: rgb(154, 0, 0);
    cursor: pointer;
    display: none;
    padding: 10px;
}

.Menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;

    background-color: #0A314f;
}

.Menu ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;


}

.Menu ul a:hover {
    color: #ff0202;
}

ul:hover a:hover {
    color: rgb(255, 255, 255);
    background-color: rgba(189, 152, 152, 0.2);
}

.Menu li a {
    display: block;
    padding: 20px 10px 10px 10px;
    color: #ffffff;
    font-size: 20px;



}

.Menu-ND {
    display: none;
    position: absolute;
    background-color: #114e7e;

    border: 1px solid #000000;

}

.Menucon:hover .Menu-ND {
    display: block;
}


.Hang2 {
    justify-content: space-between;
    background-image: url(thuvien.jpg);
    background-size: 100% 200px;
    width: 100%;
    height: 100px;
    text-align: center;


}


.slider {
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;

}

.slides {
    display: flex;
    width: 100%;
    animation: slide 9s infinite;
    margin-top: 10px;
}

.slides img {
    width: 100%;
    height: auto;
}

@keyframes slide {
    0% {
        margin-left: 0%;
    }

    25% {
        margin-left: -100%;
    }

    50% {
        margin-left: -200%;
    }

    75% {
        margin-left: -300%;
    }

    100% {
        margin-left: 0%;
    }
}

.TimKiem {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.TimKiem input {
    width: 550px;
    height: 40px;
    border-radius: 5px;
    border: none;
    border-collapse: collapse;
    font-size: 15px;
    box-shadow: 0px 10px 15px 0 black;


}

.TimKiem button {
    width: 100px;
    height: 40px;
    border-radius: 5px;
    border: none;
    background-color: #ffffff;

    font-size: 15px;
    border-collapse: collapse;


}

.Hang3 {
    display: flex;
    width: 100%;
    height: auto;

}

.ChiDan {


    width: 100%;

    height: 350px;
}


.ND a {
    text-decoration: none;
    color: #ffffff;
    font-size: 25px;
    padding: 15px;
    display: inline;
}


.ND {
    border: 2px solid black;
    font-size: 15px;
    color: #ffffff;
    margin: 20px 0 0 20px;
    background-color: rgba(99, 150, 225, 0.3);
    border-radius: 15px;
    padding: 15px;
}

.ND a:hover {
    color: #ff0267;

}

.Menu a:hover {
    color: #ff0202;
}

.Hang4 img {

    width: 100%;
    height: 100%;
    transition: 0.5s;
    object-fit: cover;
    pointer-events: none;

}

.TinTuc .layer {
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    position: absolute;
    bottom: 0;
    width: 100%;
    opacity: 0;
    height: 100%;
    transition: 0.3s;

}

.TinTuc .info {
    position: absolute;
    bottom: -50%;
    padding: 15px;
    opacity: 0;
    transition: 0.5s bottom, 1.75s opacity;
}

.Hang4 {
    background: linear-gradient(to bottom right, #977dff, #060076);
    justify-content: center;
    align-items: center;
    margin: 10px 0 10px 0;
    width: 100%;

}

.TT {
    display: flex;
    padding-bottom: 25px;
    overflow-x: auto;
    max-width: 100%;
    justify-content: space-around;
    height: 100%;

}

.TinTuc {
    background: rgba(10, 7, 7, 0.1);
    border-radius: 16px;
    overflow: hidden;
    flex: 0 0 auto;
    width: 350px;
    height: 500px;
    transition: 0.5s;
    margin: 25px;
    position: relative;
    cursor: pointer;



}

.info button {
    background-color: #10abd2;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-weight: bold;
}

.info button:active {
    background-color: #ff0267;
    color: white;
}

.TinTuc p {
    font-size: 14px;
    margin-top: 3px;
    color: white;
}

.TinTuc:hover,
.TinTuc:hover img,
.TinTuc:hover layer {
    transform: scale(1.1);
}

.TinTuc:hover>.layer {
    opacity: 1;
}

.TinTuc:hover>.info {
    bottom: 0;
    opacity: 1;
}



.Sach {
    display: flex;
    padding: 25px;
    overflow-x: auto;
    max-width: 100%;
    justify-content: space-around;
    height: 100%;
    white-space: nowrap;
}

.Chinh {
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-right: 25px;
    color: #F0D7CC;
    font-size: 18px;
    height: 100%;
    text-align: center;
    flex: 0 0 auto;

}



.Chinh img {
    width: 200px;
    border-radius: 10px;
}


.Chinh button {
    margin-top: auto;
    min-width: 120px;
    padding: 5px 10px;
    background: #00c96f;
    color: white;
    border: none;
    border-radius: 20px;

    font-size: 15px;

}

.Chinh button:active {
    background-color: #ff0267;
    color: white;
}

.Chinh:hover {
    scale: 1.1;
}

.Hang5 {
    background: linear-gradient(to bottom right, #3b0f54, #4253c6);
    margin: 10px 0 10px 0;


}

.Hang9 {
    background: linear-gradient(to bottom right, #020724, #034111);
    margin: 10px 0 10px 0;


}

.Hang7 {
    background: linear-gradient(to bottom right, #83969b, #000000);
    margin: 10px 0 10px 0;


}

.Hang8 {
    background: linear-gradient(to bottom right, #4a9e48, #e0b75c);
    margin: 10px 0 10px 0;


}





.Hang5 a {
    text-decoration: none;
    color: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
}

.Hang5 p {

    color: #ffffff;
    font-size: 14px;
    padding-bottom: 10px;
}

.Hang5 a:hover {
    color: #491010;
}

.Hang5 img {
    width: 200px;
    height: 300px;
    border-radius: 10px;
}

.Hang7 a {
    text-decoration: none;
    color: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
}

.Hang7 p {

    color: #ffffff;
    font-size: 14px;
    padding-bottom: 10px;
}

.Hang7 a:hover {
    color: #491010;
}

.Hang7 img {
    width: 200px;
    height: 300px;
    border-radius: 10px;
}

.Hang8 a {
    text-decoration: none;
    color: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
}

.Hang8 p {

    color: #ffffff;
    font-size: 14px;
    padding-bottom: 10px;
}

.Hang8 a:hover {
    color: #491010;
}

.Hang8 img {
    width: 200px;
    height: 300px;
    border-radius: 10px;
}

.Hang9 a {
    text-decoration: none;
    color: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
}

.Hang9 p {

    color: #ffffff;
    font-size: 14px;
    padding-bottom: 10px;
}

.Hang9 a:hover {
    color: #491010;
}

.Hang9 img {
    width: 200px;
    height: 300px;
    border-radius: 10px;
}

.Hang6 {
    background: linear-gradient(to bottom right, #323249, #181b51);
    padding: 10px;
    display: flex;
}

.TieuDe h2 {
    text-align: center;
    color: #97dde8;
    font-size: 40px;
    padding-top: 10px;
}

.BanDo {
    width: 50%;
    text-align: center;

    margin-right: 5px;
}

.Cuoi {
    width: 100%;
    height: 45px;
    background: #0A314F;
    color: white;
    font-size: 16px;

    text-align: center;
    padding-top: 10px;
}

.footer {
    margin-top: 10px;
    font-size: 20px;
}

.footer col-md-10 {
    height: 100px;
    padding-top: 5px;
    margin-bottom: 15px;
}

.YTB {
    width: 50%;
    text-align: center;

    margin-left: 5px;
}

.LienLac {
    position: fixed;
    right: 0;
    top: 300px;
    margin: 10px;
}

#toggler,
nav label {
    display: none;
}

@media (max-width: 992px) {
    .TieuDe h2 {
        font-size: 30px;
    }


    .ND {
        margin: 20px 0 0 0;

    }

    .ChiDan a {
        font-size: 15px;
    }

    .Hang3 {
        flex-direction: column;
    }

    .slider,
    .ChiDan {
        width: 100%;
        margin: 0 0 10px;
        height: auto;
    }

    .TT,
    .Sach {

        overflow-x: auto;
        width: 100%;


    }

    .TT {
        display: flex;
        padding-bottom: 25px;
        overflow-x: auto;
        max-width: 100%;
        justify-content: space-around;
        height: 100%;

    }

    .TinTuc {
        background: rgba(10, 7, 7, 0.1);
        border-radius: 16px;
        overflow: hidden;
        flex: 0 0 auto;
        width: 250px;
        height: 400px;
        transition: 0.5s;

        margin: 15px;
        cursor: pointer;



    }

    body {
        width: 100%;
    }

    .info button {
        background-color: #10abd2;
        border: none;
        padding: 8px 12px;
        border-radius: 8px;
        margin-top: 8px;
        font-weight: bold;

    }

    .TinTuc p {
        font-size: 13px;
        margin-top: 3px;
        color: white;

    }

    .Hang5,
    .Hang7,
    .Hang8,
    .Hang9,
    .Hang4,
    .Hang3,
    .Hang2 {
        margin: 0;
    }


    .Hang6 {
        flex-direction: column;
    }

    .LienLac img {
        width: 50px;
        height: 50px;
    }

    .BanDo,
    .YTB {
        width: 100%;
        margin: 10px 0;
    }

    .Logo {
        display: none;
    }

    .BD, .VD {
        width: 100%;
        padding: 5px;
    }

    .TimKiem input {
        height: 30px;
        width: 70%;
    }

    .TimKiem button {
        width: auto;
        margin-left: -1px;
        height: 30px;
    }

    .LienLac {
        position: fixed;
        bottom: 10px;

        top: auto;
    }

    .LienLac img {
        width: 40px;
        height: 40px;
    }

    .cus-ttcedu-footer {
        font-size: 13px;
    }

}

@media (max-width: 480px) {


    .TinTuc p,
    .Chinh p {
        font-size: 12px;
    }

    .Chinh img {
        width: 150px;
        height: 300px;
    }

    .Chinh button {
        min-width: 100px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .Menu {
        background: #0A314F;
        height: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .logo {
        font-weight: bold;
        font-size: 20px;
    }


    .MN {
        width: 100%;
        overflow: hidden;
        display: none;
        position: absolute;
        top: 100%;
        height: auto;
        left: 0;
        background: #0A314f;
        z-index: 999;
        text-align: center;
    }

    .list {
        list-style: none;
        margin: 0 auto;
        flex-direction: column;
        align-items: center;

    }

    .list li {
        display: inline;
        height: auto;

    }

    .list a {
        text-decoration: none;
        color: rgb(231, 192, 192);
        font-size: 15px;

    }

    .Menu-ND {
        display: none;
        position: relative;

        background-color: #114e7e;

        border: 1px solid #000000;


    }

    nav label {
        display: inline-flex;
        align-items: center;
        cursor: pointer;

    }

    #toggler:checked~.MN {
        display: inline-flex;
    }

    .Menu img {
        height: 30px;
        width: auto;
    }

    .ND {
        font-size: 10px;
    }
}


.menu-icon {
    font-size: 30px;
    color: white;
    cursor: pointer;
    display: none;
    padding: 5px;
    line-height: 1;

}



@media (max-width: 768px) {
    .menu-icon {
        display: block;
        font-size: 20px;
    }
}

.social ul {
display: flex;
    list-style: none;
    flex-wrap: wrap;

    
   
}
.social li a{
    display: block;
    padding: 20px 10px 10px 10px;
    color: #ffffff;
    font-size: 20px;
}
.social li{
    list-style: none;
}