/* mitr-300 - latin_thai */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Mitr';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/mitr-v11-latin_thai-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
  /* mitr-regular - latin_thai */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Mitr';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/mitr-v11-latin_thai-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Global */
*, ::before, ::after{
    box-sizing: border-box;
}

html {
    color: rgb(0, 0, 5);
    font-family: 'Mitr', sans-serif;
    font-weight: 300;
    
}

h1, h2, h3, h4 ,h5, h6{

    font-weight: 400;
    line-height: 1.4;
    margin-top: 0px;
    margin-bottom: 16px;

}
h1{
    color: rgb(240, 243, 240);
    font-size: 40px;
}
h2{
    color: darkgreen;    
    font-size: 28px;
}
h3{
    font-size: 24px;
}
h4{

    font-size: 22px;
}
h5{
    color: rgb(240, 243, 240);
    font-size: 20px;
}
h6{
    font-size: 18px;
}
h7{
    font-size: 20px;
}
p{
    font-size: 18px;
    line-height: 1.6;
}

a{
   color: blue; 
}

.text-center{
    text-align: center;
}

.text-gray{
    color: gray;
}

/*.site-home{

    display: inline-block;
    height: 350px;

}*/

.button-view{
    color: white;
    background-color: black;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    padding: 6px 12px;
    margin-bottom: 16px;

}

.button-regis{
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    color: white;
    background-color: #0715df;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    padding: 6px 12px;
    margin-bottom: 16px;

}

.button-del{
    color: white;
    background-color: red;
    border: none;
    border-radius: 8px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    padding: 6px 12px;
    margin-bottom: 16px;
}

/* content section*/
.content-section{
    padding: 64px 16px;

}

.content-section-single{
    min-height: calc(100vh - 120px);
}

.content-container{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-container-narrow{
    max-width: 600px;
}
.content-title{
    margin-bottom: 24px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 16px;   /* ขนาด size เท่ากับ content-section*/
    row-gap: 16px;
    margin-bottom: 16px;
}

@media screen and (min-width: 720px) {
    .grid2 {
        grid-template-columns: 1fr 1fr;
    }
    .grid3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .grid4 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    
}

.image-block{
    display: block;
    max-width: 100%;
    margin-bottom: 12px;
}

.image-block2{
    display: block;
    max-width: 90%;
    margin-bottom: 12px;
}

.image-block3{
    display: block;
    max-width: 20%;
    margin-bottom: 12px;
}

/* Header */
.site-header {
    background-color: rgb(27, 28, 27);
    border-bottom: 1px solid;
    box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-start;
    height: 50px;
}

.site-header-item {
    color: white;
    background-color: rgba(0,0,0,0);
    font-weight: 400;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0px 10px;
}

.site-header-item a {
    color: white;
    background-color: rgba(0,0,0,0);
    font-weight: 400;
    padding: 10px;
    align-items: center;
    transition: background-color 0.3s;
    cursor: pointer;

}
/*.site-header-item a,
.site-header-item button {
  color: #111111;
  background-color: rgba(247, 242, 242, 0);
  font-weight: 400;
  padding: 10px;
  align-items: center;
  transition: background-color 0.3s;
  cursor: pointer;
}
*/

.site-header-item:hover {
    background-color: rgba(0,0,0,0.2);

}

.site-header-item a:hover,
.site-header-item button:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.site-header-brand {
    display: inline-block;
    height: 35px;
    margin-right: 8px;
}

/* Footer*/
.site-footer {

    background-color: rgba(104, 102, 102, 0.2);
    text-align: center;
    padding: 18px;
}

.site-footer-copyright {

    font-size: 12px;
}

/* Form */
.form-field{
    margin-bottom: 16px;
}

label{
    display: block;
    margin-bottom: 4px;
    line-height: 1.6;
}

input[type="text"]{
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
    border: 1px solid #888888;
    border-radius: 4px;
    font-size: 16px;
    display: block;
    width: 100%;
    height: 35px;
    padding-top: 4px 12px;
}
input[type="text"]:focus{
    border-color: #0817eb;
}


/* Home landing*/
/* .home-landing-section {
    background-color: #56f5c6;
    background-image: url('home-bg2.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    padding: 100px 16px;
}

.home-landing-text {
    text-shadow: 1px 1px 2px rgba(25, 136, 247, 0.8);
    padding-top: 50px;
    padding-bottom: 50px;
}

/* mobile */
/* @media only screen and (min-height: 844px)
{
.home-landing-section{
     background-size: contain;
}
.home-landing-text{
     padding: 0;
}
} */ */

/* Course*/
.course-name a:not(:hover){
    color: black;
    text-decoration: none;
}

/* Dark Theme */
body.dark {
    color: #ffffff;
    background-color: rgb(23, 24, 24);
}

/* checkbox */
.cnns-comment-subscription label {
    display: inline;
    padding-left: 10px;
}

/* Invoice */
body{margin-top:20px;
    background-color:#eee;
    }
    
    .card {
        box-shadow: 0 20px 27px 0 rgb(0 0 0 / 5%);
    }
    .card {
        position: relative;
        display: flex;
        flex-direction: column;
        min-width: 0;
        word-wrap: break-word;
        background-color: #fff;
        background-clip: border-box;
        border: 0 solid rgba(0,0,0,.125);
        border-radius: 1rem;
    }