:root {
    --black: #000;
    --blue: #1e90ff;
    --white: #fff;
    --light-gray: #f5f5f5;
    --lightgray: #eee;
    --gray: #333;
    --muted: #999;
    --dark: rgba(0,0,0,0.1);
    --bd-rad: 10px;
    --shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.1), 0px 4px 5px 0px rgba(0, 0, 0, 0.1), 0px 1px 10px 0px rgba(0, 0, 0, 0.1);
    --hr-line:rgba(0, 0, 0, 0.075) 0 1px;
    --danger: #dc3545;
    --success: #198754;
    --secondary: #6c757d;
    --primary: #0d6efd;
    --warning: #ffc107;
    --info: #0dcaf0;
    --dark: #212529;
    --template: #005599;


}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, Sarabun;
    text-decoration: none;
    outline: 0;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f4f6fa;
    /* background: linear-gradient(0deg, #d3d3d3, #fff, #fff); */
}

@media (hover: none) { 
    body {
        min-height: -webkit-fill-available;
    }
    /* main {
        min-height: 100vh;
    } */
}
/* a {
    color: var(--black);
} */
/* a:active, a:hover {
    color: var(--primary)!important;
} */

main {
    flex-shrink: 0;
    padding: 20px;
    flex: 1;
}

header {
    position: sticky;
    height: 60px;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    z-index: 1000;
    vertical-align: middle;
}

header label {
    font-size: 20px;
    color: var(--gray);
    cursor: pointer;
    display: none;
}

header .navbar ul {
    list-style: none;
}

header .navbar ul li {
    position: relative;
    float: left;
} 

header .navbar ul li a {
    font-size: 20px;
    padding: 18px;
    color: var(--gray);
    display: block;
}

header .navbar ul li a:hover {
    background: var(--gray);
    color: var(--white);
}

header .navbar ul li ul {
    position: absolute;
    left: 0;
    width: 200px;
    background: var(--white);
    display: none;
}

header .navbar ul li ul li {
    width: 100%;
    border-top: 1px solid var(--lightgray);
}

header .navbar ul li ul li ul {
    left: 200px;
    top: 0;
}

header .navbar ul li:focus-within > ul,
header .navbar ul li:hover > ul {
    display: initial;
}

header .logo {
    font-weight: bolder;
    font-size: 25px;
    color: var(--black);
    padding: 0 20px;
    height: 100%;
    align-content: center;
    display: flex;
    align-items: center;
}

header .logo .logo-part {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    grid-gap: 4px;

}

header .logo .logo-part i {
    font-size: 32px
}

header .logo .logo-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    line-height: 0.85;
}

header .logo .logo-text .sub-text {
    font-size: 16px
}

#menu-bar {
    display: none;
}

@media (max-width:640px) {
    header label {
        display: initial;
    }

    header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid rgba(0,0,0,0.1);
        display: none;
    }

    header .navbar ul li {
        width: 100%;
    }

    header .navbar ul li ul {
        position: relative;
        width: 100%;
    }

    header .navbar ul li ul li {
        background: var(--lightgray);
    }

    header .navbar ul li ul li ul {
        width: 100%;
        left: 0;
    }

    header .navbar ul li ul li ul li {
        background: var(--white);
    }

    #menu-bar:checked ~ .navbar {
        display: initial;
    }

}

.logout {
    height: 100%;
    padding: 0 20px;
    cursor: pointer;
    align-content: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    grid-gap: 2px;
}
.logout:hover {
    background: var(--gray);
    color: var(--white);
}

@media (max-width:768px) {
    .grid {
        grid-template-columns: repeat(1, 1fr)!important;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    align-items: stretch;
}

.grid > div {
    /* border: 1px solid #ccc; */
    box-shadow: var(--shadow);
    padding: 20px
}

.grid .grid-flex {
    display: flex;
    flex-direction: column;
    border-radius: var(--bd-rad);
}

.grid > div img {
    max-width: 100%;
    height: 100%;
    /* border-radius: var(--bd-rad); */
}

.grid .text {
    padding-top: 4px;
    display: flex;
    flex-direction: column;
    
}

.btn {
    color: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 50px;
    background-color: var(--white);
    /* padding: 12px 20px 12px 12px; */
    padding: 12px 20px;
    width: fit-content;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    grid-gap: 6px;
    justify-content: center;
}
.btn i {
    font-size: 20px;
    line-height: 0;
}
.btn:hover {
    color: var(--white);
    background-color: var(--blue);
}

.btn-danger {
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    color: var(--white);
    background-color: var(--danger);
}


.btn-secondary {
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.btn-secondary:hover {
    color: var(--white);
    background-color: var(--secondary);
}


@media (max-width:1024px) {
    .grid-course {
        grid-template-columns: repeat(1, 1fr)!important;
    }
}






.grid-course {
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-gap: 20px;
    align-items: stretch;
}

.grid-course .card {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    border-radius: var(--bd-rad);
    box-shadow: var(--shadow);
    background-color: var(--white);
}

.grid-course .card .card-header {
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--bd-rad) var(--bd-rad) 0 0;
    box-shadow: var(--hr-line);
    font-size: 20px;
    font-weight: bold;
}

.grid-course .card .card-footer {
    background: var(--white);
    padding: 12px 20px;
    border-radius: 0 0 var(--bd-rad) var(--bd-rad);
}

.grid-course .card .card-body {
    padding: 20px;
}

.grid-course > div img {
    max-width: 100%;
    height: 100%;
    /* border-radius: var(--bd-rad); */
}

.footer {
    display: flex;
    text-align: center;
    height: 35px;
    /* background: var(--light-gray); */
    background-color: #e1e5eb;
    /* box-shadow: 0px -5px 10px var(--dark); */
    align-content: center;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 20px;
}
.footer span {
    color: var(--gray);
    font-size: 14px;
}


.login {
    /* margin: 0 auto; */
    padding: 20px 30px;
    min-width: 280px;
    max-width: 425px;
    border-radius: var(--bd-rad);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    grid-gap: 16px;
    flex: 1;
    background-color: var(--white);
}
.login .links {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.input {
    background: var(--light-gray);
    border: 0;
    border-radius: 20px;
    padding: 12px 20px;
    outline: 0;
    font-size: 16px;
    width: 100%;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 5px 0 var(--blue);
}

.inputWithIcon {
    position: relative;
}
.inputWithIcon i {
    position: absolute;
    left: 0;
    top: 0;
    padding: 12px 16px;
    color: var(--muted);
    transition: 0.3s;
}

.inputWithIcon input {
    padding-left: 45px;
}

.inputWithIcon input:focus + i {
    color: var(--blue);
}

@media (max-width:520px) {
    .copyright {
        flex: 1;
    }
    .credit {
        display: none;
    }
}

@media (max-width:640px) {
    .grid-index .grid-flex {
        flex-direction: column!important;
    }

    .grid-index .img-index {
        max-width: 100%;
        width: 100%
    }
}

.mx-auto {
    margin: 0 auto;
}
.my-auto {
    margin: auto 0;
}
.center {
    text-align: center;
}
.mb-1 {
    margin-bottom: 4px;
}
.mb-2 {
    margin-bottom: 6px;
}
.mb-3 {
    margin-bottom: 8px;
}
.mb-4 {
    margin-bottom: 10px;
}
.flex-1 {
    flex: 1;
}
.img-index {
    max-width: 250px;
    margin-bottom: auto;
}

.grid-index {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 20px;
    align-items: stretch;
}

.grid-index .grid-flex {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    border-radius: var(--bd-rad);
    box-shadow: var(--shadow);
    padding: 20px;
    grid-gap: 10px;
    background-color: var(--white);
}

.grid-index div img {
    max-width: 100%;
    height: 100%;
    /* border-radius: var(--bd-rad); */
}

.grid-index .text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    grid-gap: 10px;
}

.grid-index .btn-course {
    display: flex;
    grid-gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.grid-index .text-course {
    display: flex;
    flex-direction: column;
}






.tabs{
    display: block;
    position: relative;
    display: flex;
    align-items: flex-end;
    grid-gap: 4px;
    padding: 0 20px;

}

.tabs .tab{
    float: left;
    display: block;
    border-radius: 3px 3px 0px 0px;
    box-shadow: var(--shadow);
}

.tabs .tab>input[type="radio"] {
    position: absolute;
    visibility: hidden;
}

.tabs .tab>label {
    display: block;
    padding: 6px 21px;
    cursor: pointer;
    position: relative;
    color: var(--white);
    background: var(--black);
    border-radius: 3px 3px 0px 0px;
}

.tabs .content {
    z-index: 0;/* or display: none; */
    overflow: hidden;
    padding: 20px;
    position: absolute;
    width: 100%;
    /* top: 27px; */
    left: 0;
    background: var(--white);
    /* color: #DFDFDF; */
    opacity:0;
    box-shadow: var(--shadow);
    border-radius: var(--bd-rad);
    /* transition: opacity 400ms ease-out; */
}

.tabs>.tab>[id^="tab"]:checked + label {
    top: 0;
    background: var(--white);
    z-index: 1000;
    /* border-top: 3px solid #000; */
    color: var(--black);
    border-top: 3px solid #000;
}

.tabs>.tab>[id^="tab"]:checked ~ [id^="tab-content"] {
    z-index: 1;/* or display: block; */
    opacity: 1;
    /* transition: opacity 400ms ease-out; */
}

video {
    cursor: pointer;
}

.video-content {
    display: flex;
    flex-direction: column;
    grid-gap: 8px;
}

.video-content .btn-course {
    display: flex;
    grid-gap: 8px;
    align-items: center;
}

.video-content .btn {
    width: 100%;
    text-align: center;
}

.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}
.text-red {
    color: var(--red);
}
.text-black {
    color: var(--black);
}
.text-green {
    color: var(--green);
}
.fs-1 {
    font-size: 26px;
}
.fs-2 {
    font-size: 24px;
}
.fs-3 {
    font-size: 22px;
}
.fs-4 {
    font-size: 20px;
}
.fs-5 {
    font-size: 18px;
}
.fs-6 {
    font-size: 16px;
}
.fs-7 {
    font-size: 14px;
}
.fs-8 {
    font-size: 12px;
}

.disabled {
    pointer-events: none;
    color: var(--muted);
    border: 1px solid var(--muted);
    cursor: not-allowed;
}

.rotate-90 {
    rotate: 90deg;
    font-size: 16px !important;
}


input[type="radio"] {
    box-shadow: none;
    cursor: pointer;
    
}
.exam label {
    cursor: pointer;
}

.exam {
    margin-bottom: 12px;
}

.exam-id {
    position: absolute;
}

.exam-content, .answer-body {
    margin-left: 24px;
}
.bold {
    font-weight: bold;
}
.jc-between {
    justify-content: space-between;
}
.ai-end {
    align-items: flex-end!important
}

.success {
    color: var(--success);
}
.danger {
    color: var(--danger);
}
.muted {
    color: var(--muted);
}



.lds-dual-ring {
    color: #000000;
    margin-right: 6px;
}
.lds-dual-ring,
.lds-dual-ring:after {
    box-sizing: border-box;
}
.lds-dual-ring {
    display: inline-block;
    width: 16px;
    height: 16px;
}
.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 20px;
    height: 20px;
    /* margin: 8px; */
    border-radius: 50%;
    border: 2px solid black;
    border-color: black transparent black transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.nav-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
}
.nav-btn {
    height: 100%;
    padding: 0 20px;
    cursor: pointer;
    align-content: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    grid-gap: 2px;
}

.nav-btn:hover {
    background: var(--lightgray);
    color: var(--black);
}

.btn-success {
    color: var(--success);
    border-color: var(--success);
}

.card-box-container {
    display: grid;
    grid-gap: 20px;
}

.card-box {
    border-radius: var(--bd-rad);
    box-shadow: var(--shadow);
    background-color: var(--white);
    /* padding: 20px; */
    grid-gap: 1px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.card-box-header {
    background: var(--white);
    /* padding: 12px 20px; */
    border-radius: var(--bd-rad) var(--bd-rad) 0 0;
    box-shadow: var(--hr-line);
    font-size: 20px;
    font-weight: bold;
}

.card-box-body {
    background: var(--white);
    /* padding: 12px 20px; */
    box-shadow: var(--hr-line);
    /* font-size: 20px; */
    /* font-weight: bold; */
}
.card-box-footer {
    background: var(--white);
    /* padding: 12px 20px; */
    border-radius: 0 0 var(--bd-rad) var(--bd-rad);
    /* box-shadow: var(--hr-line); */
    font-size: 20px;
    font-weight: bold;
}

.title-card {
    padding: 12px 20px 0px 20px;
    font-size: 32px;
    font-weight: bold;
}
.subtitle-card {
    padding: 0px 20px 12px 20px;
    /* font-size: 25px; */
    /* font-weight: bold; */
}


@media (min-width:768px) {
    .card-box-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}
@media (max-width:768px) {
    .card-box-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width:420px) {
    .card-box-container {
        grid-template-columns: 1fr;
    }
}

.kenber {
    color: var(--danger);
}
.elearning {
    color: var(--template);
}

.text-red {
    color: var(--danger);
}

.text-green {
    color: var(--success);
}
.text-primary {
    color: var(--primary);
}

.text-blue {
    color: var(--blue);
}

.text-gray {
    color: var(--gray);
}
.text-secondary {
    color: var(--secondary);
}
.text-muted {
    color: var(--muted);
}

.header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
}


.breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 0;
}

.breadcrumb li {
    display: inline-block;
    font-size: 14px;
}

.breadcrumb li:before {
    content: '/';
    margin: 0 5px;
}

.breadcrumb li:first-child:before {
    content: '';
    margin: 0;
}

.header-title {
    padding: 12px 0;
    margin-top: 12px;
}

.breadcrumb-css {
    padding: 10px 12px;
    border-radius: var(--bd-rad);
    /* box-shadow: var(--shadow); */
    background-color: #e1e5eb;
    grid-gap: 1px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    margin-top: 8px;
}
.gg-0 {
    grid-gap: 0!important;
}
.gg-1 {
    grid-gap: 2px!important;
}

.grid-btn {
    display: grid!important;
    grid-template-columns: 3fr 1fr;
}

.padding-card {
    padding: 15px 20px!important;
}

.link-card {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
}

.fw-thin {
    font-weight: normal;
}


.header {
    position: sticky;
    height: 60px;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    z-index: 1000;
    vertical-align: middle;
}
.header label {
    font-size: 20px;
    color: var(--gray);
    cursor: pointer;
    display: none;
}


.header .logo {
    font-weight: bolder;
    font-size: 37.5px;
    color: var(--black);
    padding: 0 20px;
    height: 100%;
    align-content: center;
    display: flex;
    align-items: center;
}

.header .logo .logo-part {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    grid-gap: 4px;

}

.header .logo .logo-part i {
    font-size: 48px
}

.header .logo .logo-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    line-height: 0.85;
}

.header .logo .logo-text .sub-text {
    font-size: 24px
}


.back-btn {
    padding: 8px 20px!important;
}

.f-column {
    flex-direction: column!important;
}



.rwd-table {
    margin: auto;
    min-width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.rwd-table tr:first-child {
    border-top: none;
    background: var(--template);
    color: #fff;
}

.bg-register {
    background: var(--blue)!important;
}
.bg-finish {
    background: var(--success)!important;
}

.rwd-table tr {
    border-top: 1px solid var(--light-gray);
    /* border-bottom: 1px solid #ddd; */
    /* background-color: #f5f9fc; */
}

.rwd-table tr:nth-child(odd):not(:first-child) {
    /* background-color: #ebf3f9; */
}

.rwd-table th {
    display: none;
}

.rwd-table td {
    display: block;
}

.rwd-table td:first-child {
    margin-top: .5em;
}

.rwd-table td:last-child {
    margin-bottom: .5em;
}

.rwd-table td:before {
    content: attr(data-th) "";
    font-weight: bold;
    width: 150px;
    display: inline-block;
    color: #000;
}

.rwd-table th,
.rwd-table td {
    text-align: left;
}

.rwd-table {
    /* color: #333; */
    border-radius: var(--bd-rad);
    overflow: hidden;
    background: var(--white);
}

.rwd-table tr {
    border-color: #bfbfbf;
}

.rwd-table th,
.rwd-table td {
    padding: 6px 20px;
}
@media screen and (max-width: 641px) {
    .rwd-table tr:nth-child(2) {
        border-top: none;
    }
}
@media screen and (min-width: 640px) {
    .rwd-table tr:hover:not(:first-child) {
        background-color: var(--lightgray);
    }
    .rwd-table td:before {
        display: none;
    }
    .rwd-table th,
    .rwd-table td {
        display: table-cell;
        padding: 6px 20px;
    }
    .rwd-table th:first-child,
    .rwd-table td:first-child {
        width: 150px;
    }
    .rwd-table th:last-child,
    .rwd-table td:last-child {
        width: 180px;
    }
    .rwd-table th,
    .rwd-table td {
        padding: 10px 20px;
    }
}

.full-flex {
    border-radius: var(--bd-rad);
    box-shadow: var(--shadow);
    padding: 20px;
    background-color: var(--white);
}

.mt-1 {
    margin-top: 6px;
}
.mt-2 {
    margin-top: 8px;
}
.mt-3 {
    margin-top: 12px;
}
.mt-4 {
    margin-top: 16px;
}
.mt-5 {
    margin-top: 20px;
}


.show_result {
    padding-left: 20px;
}

.mw-800px {
    max-width: 800px;
    width: 100%;
}

.setting-form {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    grid-gap: 10px;
    align-content: center;
    align-items: center;
}

.textWithIcon {
    position: absolute;
    left: 0;
    top: 0;
    padding: 12px 0 12px 40px;
    color: var(--muted);
    transition: 0.3s;
}

.pdInput {
    padding-left: 135px!important;
}

.inputWithIcon input:focus + i + span {
    color: var(--blue);
}