/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.formdangnhap {
  max-width: 320px;
  margin: auto;
  width: 100%;
}
.form-group {
  margin-bottom: 10px;
}
pre,
blockquote,
form,
figure,
p,
dl,
ul,
ol {
  margin-bottom: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
.heading-font,
.banner h1,
.banner h2,
button {
  font-weight: 500;
}
ul,
ol {
	margin: 0 0 3rem 3rem;
}

ul {
	list-style: disc;
}

ul ul {
	list-style: circle;
}

ul ul ul {
	list-style: square;
}

ol {
	list-style: decimal;
}

ol ol {
	list-style: lower-alpha;
}

ol ol ol {
	list-style: lower-roman;
}

li {
	line-height: 1.5;
	margin: 0.5rem 0 0 1rem;
}

li > ul,
li > ol {
	margin: 1rem 0 0 1rem;
}
button {
  margin: 0;
}
tr:nth-child(even) {
  background-color: #f3f3f3;
}
td,th {
    padding-left: 10px !important;
}
input[type="radio"] {
  margin: 2px;
}
.red-c {
  color: #ef4a51;
}
.yellow-c {
  color: #f1e902;
}
.green-c {
  color: #038548;
}
.border {
  border: 1px solid;
}
label {
  font-weight: 500;
}
.grid {
  display: grid;
  grid-gap: 10px;
  margin-bottom: 10px;
}
.grid-2 {
  grid-template-columns: 1fr 1fr;
}
.grid-2-sidebar {
  grid-template-columns: 1fr 5fr;
}
.flex {
  display: flex;
  align-items: center;
}
.group-ans {
  display: flex;
  align-items: center;
  justify-content: center;
}
.group-ans label {
  margin-bottom: 1em;
  margin-right: 10px;
}
.sidebar-admin {
  background: #23282d;
}
.sidebar-list {
  padding: 7px 12px;
  margin-bottom: 0;
  color: #fff;
}
.sidebar-list.active {
  background-color: #0073aa;
}
.sidebar-link {
  color: #fff;
}
.sidebar-list:hover {
  background-color: #191e23;
  color: #00b9eb;
}
.sidebar-list:hover .sidebar-link {
  color: #00b9eb;
}
.gap-bottom-15 {
  margin-bottom: 15px;
}
.my-btn {
  color: #fff;
  font-weight: 500;
  margin-bottom: 0;
  margin-top: 10px;
  line-height: normal;
  height: auto;
  min-height: 0;
  padding: 5px 12px;
}
.btn-submit {
  background: #25648d;
}
.btn-cancel {
  background: #a9a9a9;
}
.dashicons {
  margin: 0 5px;
  margin-top: -3px;
  vertical-align: middle;
}
#postbox-container-1 {
  display: none;
}
.modal-box.open-modal {
  display: flex;
}
.modal-box {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(4, 4, 4, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-content {
  max-width: 768px;
  width: 100%;
  max-height: calc(100% - 100px);
  overflow-y: scroll;
  opacity: 0;
  transform: translateY(-100px);
  transition: 1s;
  z-index: 999;
}
.modal-content.open-modal {
  opacity: 1;
  transform: translateY(0);
}
.tieu-de-section {
  padding: 15px;
  background: #ececec;
}
.chi-tiet-khoa-hoc-body {
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-gap: 15px;
}
.hinh-anh-khoa-hoc img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}
.tieu-de-khoa-hoc {
  text-align: center;
}
.tac-gia-linh-vuc {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}
.tac-gia-linh-vuc-content {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.tac-gia-linh-vuc .dashicons {
  margin-right: 5px;
}
.btn-edit,
#tab-ds-hoc-vien button[type="submit"] {
  display: flex;
  align-items: center;
  border: 1px solid #348ec9;
  font-weight: 500;
  color: #348ec9;
  min-height: 0;
  line-height: normal;
  padding: 5px 10px;
  background-color: #fff;
  margin-bottom: 10px;
}
.box-img {
  grid-row-start: 1;
  grid-row-end: 4;
}
.misha_remove_image_button {
  padding: 2px 10px;
  background: rgb(169, 169, 169);
  color: rgb(255, 255, 255);
  margin-top: 5px;
}
.tab-content {
  padding: 10px;
}
.form-user-option {
  display: flex;
}
.form-user-option .btn-edit {
  margin-right: 10px;
}
.form-user-option .list-user {
  width: auto;
}
/*************** Header ***************/
#header .flex-col {
  height: 100%;
}
#header .nav-left {
  align-items: center;
  height: 100%;
}
#header .html_topbar_left {
  height: 100%;
  display: flex;
  border-left: 1px solid #f0f0f0;
}
#header .nav-link {
  padding: 10px;
  font-size: 16px;
  border-right: 1px solid #f0f0f0;
  color: #000;
  font-weight: 400;
  transition: all 0.5s;
}
#header .nav-link:hover {
  color: #fff;
  background: rgba(0, 132, 70, 0.7);
}
.dashicons,
.dashicons-before:before {
  transition: unset;
}
.header-nav.nav-right {
  height: 100%;
  cursor: pointer;
  position: relative;
	list-style-type:none;
}
.nav-user-info {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  padding: 10px;
  min-width: 165px;
  box-shadow: 0px 2px 5px 0px #dedede;
  display: none;
}
.nav-user-info li {
	margin-left: 0 !important;
}
.login-user {
  cursor: pointer;
}
.warning {
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 500;
  color: #ef4a51;
}

/*************** Trang chủ ***************/
#content-home {
  padding: 120px 0;
  background-color: #f1f1f1;
}
#content-home .grid-2-sidebar {
  margin: 0 15px;
  grid-gap: 30px;
  grid-template-columns: 1fr 4fr;
}
.box-cat {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background: #fff;
  border: 1px solid #dedede;
}
.box-cat .nav-item {
  padding: 6px 12px;
  display: block;
  width: 100%;
  margin: 0;
  border-bottom: 1px solid #e3e3e3;
  transition: all 0.5s;
}
.box-cat .nav-item:hover {
  background-color: #f1f1f1;
}
.box-cat .nav-item.active {
  background-color: #00a758;
}
.box-cat .nav-link {
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  padding: 0;
  transition: all 0.5s;
}
.box-cat .heading-box {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin: 0;
  font-weight: 500;
}
.box-cat .nav-item:hover .nav-link {
  color: #00a758;
}
.box-cat .nav-item.active .nav-link {
  color: #fff;
}
.box-cat .dashicons {
  margin: 0;
  font-size: 13px;
  padding: 4px;
}
.grid-content {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-gap: 20px;
}
.box-item .head-img {
  margin-bottom: 8px;
}
.box-item .title-item {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0;
}
.box-item .author-item {
  color: #9e9a9a;
  font-size: 14px;
}
/*************** Trang Single  ***************/
.single ul, .single li {
	list-style-type: unset;
}
.detail-post {
  padding-top: 50px;
  padding-bottom: 50px;
  background: #f7f7f7;
}
.detail-post .head-post {
  display: flex;
  margin-bottom: 50px;
}
.detail-post .img-post {
  margin-right: 15px;
}
.detail-post .des-post {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;

}
.detail-post .des-post.type {
    margin: auto;
    text-align: center;
}
.detail-post .p-title {
  margin-bottom: 0;
  font-weight: 500;
}
.detail-post .p-author,
.detail-post .p-tax {
  font-size: 15px;
  color: #757575;
}
.p-tax .link {
  color: #757575;
}
.p-tax:hover .link {
  color: #008446;
}
.amout-line {
    text-align: center;
    margin-bottom: 10px;
    margin-top: -10px;
    color: #8a8a8a;
}
.detail-post .des-post .dashicons {
  font-size: 15px;
  vertical-align: middle;
  margin-top: 2px;
}
.content-post .intro-post {
  margin-bottom: 25px;
  padding-bottom: 35px;
  border-bottom: 1px solid #dadada;
}
.list-lesson .heading,
.list-test .heading,
.related-post .heading {
  font-weight: 500;
}
.list-lesson .heading .dashicons,
.list-test .heading .dashicons,
.related-post .heading .dashicons {
  vertical-align: middle;
  margin-top: -2px;
}
.lesson-item {
  display: flex;
  justify-content: space-between;
}
.lesson-item .link-files {
  min-width: 100px;
}
.list-lesson .lesson-item,
.list-test .lesson-item {
  border-bottom: 1px solid #dadada;
  padding-bottom: 5px;
  padding-left: 35px;
  transition: all 0.5s;
}
.list-lesson .lesson-item:hover,
.list-test .lesson-item:hover {
  background: #fff;
}
.list-lesson .lesson-link,
.list-test .lesson-link {
  color: #008446;
}
.related-post {
  padding: 25px 0;
}

.detail-post .type-bai_hoc .head-post,
.detail-post .type-cau_hoi .head-post,
.detail-post .type-bai_kiem_tra .head-post {
  justify-content: center;
  padding-bottom: 5px;
  border-bottom: 1px dashed #d2d2d2;
}
.start-btn,
.end-btn {
  color: #fff;
  font-weight: 400;
}
.start-btn {
  background: #008446;
  margin-bottom: 5px;
}
button.end-btn {
  background: #ef1313 !important;
}
#list_cauhoi .grid {
  grid-gap: 15px;
  grid-template-columns: 1fr 1fr;
}
.content-test {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: 320px;
  min-height: 200px;
  background: #ffffffe3;
  transform: translateY(-50%);
  box-shadow: 0 0 3px 0 #ffffff;
  padding: 10px;
}
.content-test .link-back {
  padding: 0 12px;
  border: 1px solid;
  margin-top: 10px;
}
.content-test .dashicons {
  vertical-align: middle;
  margin-top: -4px;
}
.content-test .note {
  color: #015d32;
  font-weight: 500;
  text-align: center;
}
.type-cau_hoi .p-title {
  margin-bottom: 10px;
}
.hidden-content {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-30px);
}
.display-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s;
}
.change-pos {
  position: fixed;
  top: 96px;
  left: 0;
  animation: move 2s;
}
@keyframes move {
  from {
    top: 0;
  }
  to {
    top: 96px;
    left: 0;
  }
}

.q-head {
  display: flex;
  align-items: flex-start;
}
.q-head label {
  font-size: 100%;
  min-width: 55px;
  text-decoration: underline;
}
.back-kh {
  padding: 5px;
  border: 1px dashed #008446;
  transition: all 0.5s;
  text-align: center;
	display: block;
}
/*************** Popup Login  ***************/
.box-bg {
  background: rgba(204, 203, 203, 0.8);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  transform: scale(0);
  transition: transform 1s;
}
.popup-login {
  min-width: 450px;
  padding: 35px;
  margin: auto;
  transform: translateY(-30%);
  box-shadow: 0px 0px 8px 0px #f9f9f9;
  background: #ffffffcf;
}
.title-popup {
  text-align: center;
  color: #038548;
  text-transform: uppercase;
  font-weight: 500;
}
.popup-login .field-item {
  position: relative;
  margin-bottom: 15px;
}
.popup-login .field-item input {
  margin: 0;
  padding-right: 45px;
}
.popup-login .field-item .dashicons {
  height: auto;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background: #ef4a51;
  margin: 0;
  width: 35px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-forget {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.popup-login .loss-pass {
  font-size: 15px;
}
.row-forget .dashicons {
  font-size: 16px;
  margin-top: 4px;
}
.row-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-btn,
.cancel-popup {
  font-weight: 500;
  margin: 10px 5px;
  min-width: 93px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-btn {
  color: #00a758;
  border: 1px solid #00a758;
}
.cancel-popup {
  color: #ef4a51;
  border: 1px solid #ef4a51;
}
/*************** Trang tài khoản  ***************/
.layout-acc {
  margin-top: 80px;
}
.layout-acc .grid.grid-2.container {
  grid-template-columns: 1fr 4fr;
}
.layout-acc .col-info {
  box-shadow: 0 0 4px 0 #d1d1d1;
  padding: 25px 5px;
}
.layout-acc .avarta {
  text-align: center;
  border-bottom: 1px dashed #d1d1d1;
  margin-bottom: 25px;
}
.layout-acc .avarta img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}
.layout-acc .list-info-item {
  padding: 5px;
  border-bottom: 1px solid #f5f5f5;
}
.content-block {
  margin: 0 25px;
}
.btn-save {
  background: #038548;
  color: #fff;
  padding: 5px 12px;
  min-height: 0;
  line-height: normal;
  min-width: 90px;
}
.empty-block {
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
}
.empty-block > .dashicons {
    display: block;
    font-size: 40px;
    width: 50px;
    height: 50px;
}
.back {
    padding: 5px 12px;
    border: 1px dashed #008446;
    margin-top: 20px;
}
#tab-ds-hoc-vien .form-user-option {
  margin-bottom: 20px;
}
#tab-ds-hoc-vien .form-user-option button,
.form-user-option .list-user {
  margin-bottom: 0;
}
.sl-right {
	text-align: center;
}
.page-template-quan-ly-khoa-hoc .del {
	display: none;
}

@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE  ***************/
  .grid-2-sidebar,.layout-acc .grid.grid-2.container,.grid-2,.chi-tiet-khoa-hoc-body,
  #content-home .grid-2-sidebar,
  #list_cauhoi .grid {
    grid-template-columns: 1fr;
  }
  .start-btn {
    z-index: 2;
  }
  .box-item {
    margin: 0 10px;
  }
  .popup-login {
    min-width: 320px;
    padding: 15px;
    transform: translateY(-20%);
  }
	.logo-left .logo {
		margin-right: 0;
	}
	#header .flex-col {
		display: flex;
	}
	#content-home {
    padding: 20px 0;
}
	.detail-post .head-post {
		display:block;
		text-align: center;
	}
	.detail-post .img-post {
		margin-bottom: 5px;
		margin-right: 0
	}
	.detail-post .img-post img {
		width: 100%;
	}
	.list-lesson .lesson-item, .list-test .lesson-item {
		padding-left: 0;
	}
	.lesson-item .link-files {
    min-width: 0;
}
	.related-post .heading {
		margin: 0 10px;
	}
	#main-content {
		padding: 0 !important;
	}
	#new_post {
		padding: 10px;
	}
}
