@media (max-width: 1200px) {
    .grid.grid--4-cols.ds-khoahoc {
    grid-template-columns: 1fr;
}
.left-login {
        min-width: inherit;
        padding: 0px;
        gap: 10px;
    }
.left-login h1 {
    font-size: 30px;
    line-height: 40px;
}
.right-login h2 {
    font-size: 20px;
}
.right-login img {
    max-width: 148px;
}
    .right-login {
        min-width: inherit;
        gap: 10px;
    }
    .right-login li {
    font-size: 14px;
    line-height: 20px;
    padding-left: 34px;
}
.right-login li:after {
    top: 5px;
    width: 13px;
    height: 13px;
    padding: 6px;
    background-size: 19px auto;
}
.left-login>.title-login>p, .left-login .form-group label{
		font-size: 16px;
		line-height: 24px;
	}
body.login-page {
    padding: 10px 0px;
    height: auto;
}
.remember-box, .login-form .form-group-inline a{
		font-size: 14px;
	}
}
@media (max-width: 1024px) {
	header.header-mobile {
    display: block;
}
	button.toggle-menu-main {
	    width: 44px;
	    height: 44px;
	    background-color: transparent;
	    border: none;
	    background-image: url(../images/icon-menu.svg);
	}
.menu-main-container {
        position: fixed;
        top: 79px;
        background: #fff;
        z-index: 9;
        width: 100%;
        height: calc(100vh - 79px);
        transition: all .5s;
        top: -100%;
    }
button.toggle-menu-main.toggle-menu-main-open {
    background-image: url(../images/icon-menu-open.svg);
}
.menu-main-container.menu-active-open {
    top: 79px;
}
body.home.body-over {
    overflow: hidden;
}
.bottom-meu-main {
    position: absolute;
    bottom: 0;
    padding: 26px 0px;
    width: calc(100% - 30px);
    left: 15px;
    border-top: 1px solid #ccc;
}
.content-right-page {
        padding: 0px;  
    }
	.top-header {
    	display: flex;
	    align-items: center;
	    justify-content: space-between;
	    padding: 4px 12px;
	    position: relative;
	    z-index: 10;        background: #fff;
	    border-bottom: 1px solid #E4E4E7;
	}
	.left-detail, .bottom-left-detail{
		width: 330px;
	}
a.toggle-show-left-bar{
	left: 310PX;
}
.top-list-page .grid.grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
}
.content-list-page .grid.grid--4-cols {
    grid-template-columns: repeat(3, 1fr);
}
.right-detail{
	width: calc(100% - 350px);
}
.nav-right-detail{
	min-width: 230px;
}
.name-course-right-deltail p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}


.name-course-right-deltail h4{
	font-size: 18px;
	line-height: 30px;
}
.name-course-right-deltail {
    font-size: 14px;
    line-height: 22px;
}
.nav-right-detail a, .nav-right-detail button {
    font-size: 14px;
    padding: 5px;
    gap: 5px;
}
.nav-right-detail a img {
    max-width: 18px;
}
.left-page {
    display: none;
}
.right-page {
	    width: 100%;
	    max-height: inherit;
	}
	.course-add-choose>div {
    margin-bottom: 9px;
}
.course-add-choose {
    display: block;
}
.content-add-course h2 {
    font-size: 24px;
}
.box-add-course>h3 {
    font-size: 20px;
    line-height: 30px;
}
.name-course-input>input{
	    padding: 10px 11px;font-size: 16px;
}
.form-upload select {
    height: 41px;
    padding: 10px;
  
}
.box-file-name {
    flex-wrap: wrap;
}
.box-file-name>div {
    width: calc(100% - 44px);
    font-size: 14px;
}.btn-flex-align-between {
    flex-wrap: wrap;
}
}
@media (max-width: 768px) {
    .list-course-item>a>img { 
    height: auto; 
}

	.faq-item>h4 {
    font-size: 16px;
    line-height: 24px;
}
	     .bottom-left-detail {
        width: 100%;
    }
    .left-detail{
        width: 0px;
        height: 0px;
    }
    .left-detail.collapsed {
    width: 100%;
    height: auto;
}
	.content-detail {
        padding: 16px;
        gap: 0px;
        width: 100%;
    }
	.grid--2-cols {
	    grid-template-columns: 1fr;
	}
    .left-login {
        padding: 0px;
        margin-top:10%;
        order: 2;
        min-width: inherit;
    }
    .right-login{
    	 min-width: inherit;
    	 display:none;
    }
    a.login-other {
    width: 47%;}
	.right-login h2, .right-login ul {
	    display: none;
	}
    .right-detail {
        width: 100%;
        height: auto;
        margin-top: 20px;
    }
    .top-right-detail {
    /*display: block;
    text-align: left;*/
    position: fixed; /* Luôn giữ cố định */
    top: 0; /* Cách mép trên */
    left: 0; /* Cách mép trái */
    right: 0; /* Cách mép phải, nếu cần full-width */
    z-index: 1000; /* Đảm bảo nằm trên cùng */
}    
.center-right-detail { 
    margin-top: 130px;
}
.nav-right-detail {
        min-width: 230px;
        justify-content: flex-start;
        margin-top: 14px;
    }
    .list-course-left{
    	max-height: 100%;
    }
	.right-login img {
	    max-width: 148px;
	}
	    body.login-page {
        height: auto;
        width: 100%;
        display: block;
        padding: 10px 0px;
    }
	.left-login h1 {
	    font-size: 24px;
	    line-height: 38px;
	}
	.top-list-page .grid.grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
}
.header-list-course {
    display: block;
    margin-bottom: 17px;
}
    .content-list-page .grid.grid--4-cols {
        grid-template-columns: 1fr;
        column-gap: 12px;
        row-gap: 12px;
    }
    .top-list-page, .content-list-page {
    padding: 0px 16px;
}
.list-box-item p {
    font-size: 16px;
    line-height: 22px;
}
.list-box-item h5 {
    font-size: 24px;
 }
.content-list-page {
    margin-top: 10px;
}
.detail-post {
    padding: 12px;
}
.detail-post h4, .detail-post p,.accordion-title-detail {
    font-size: 14px;
    line-height: 22px;
}
a.toggle-show-left-bar {
        
        left: 7px;
        top: 105px;
    }
    .right-detail.collapsed {
    width: 100%;
}
a.read-more {
    font-size: 14px;
    height: 36px;
    line-height: 36px;
    margin-top: 15px;
}
.popup-content {
    padding: 20px 10px;
}
.content-form>h3 {
    font-size: 20px;
    line-height: 30px;
}
.form-upload label {
    font-size: 16px;
    line-height: 24px;
}
.form-upload input, .form-upload textarea{
	padding: 10px;
	height: 44px;
}
button.btn-close-bottom.close-btn {
    font-size: 14px;
    height: 36px;
}
button.submit-tr {
    font-size: 14px;
    height: 36px;
    line-height: 36px;
}
a.toggle-show-left-bar.toggle-show-left-bar-hide {
    left: calc(100% - 55px);
    transform: rotate(180deg);
}
.responsive-iframe {
    width: 100%;
    height: 100vh; 
    border: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch; 
}

    .responsive-iframe {
        height: 100vh;
    }

.pdf-content {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Đảm bảo nội dung không bị cuộn */
    display: flex;
    justify-content: center;
    align-items: center;
}
.responsive-iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch; /* Đảm bảo cuộn mượt mà trên iOS */
    display: block; /* Đảm bảo không có khoảng trắng thừa */
}
}
@media (max-width: 540px) {
.right-header-course a {
    padding: 0px 10px;
    width: 50%;
    text-align: center;
    align-items: center;
    justify-content: center;
}
a.btn-add-nv.btn-primary {
    font-size: 14px;
    padding: 7px;
}
.btn-flex-align-end a, .btn-flex-align-end-show a, .close-cancle {
    height: 36px;
    font-size: 14px;
}
.content-add-course {
    padding: 0px 16px;
    padding-top: 24px;
}

.course-add-choose>div>a {
    font-size: 14px;
}
	.top-list-page .grid.grid--4-cols {
    grid-template-columns: 1fr;
}
    .popup-content {
    max-height: 75vh;
    }
    .btn-flex-align-end a, .btn-flex-align-end-show a, .close-cancle {
        height: 36px;
        font-size: 13px;
        padding: 0px 10px;
    }
}
