﻿:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #23BE8F;
    --primary-light: #D3F2E8;
    --primary-50: rgba(35, 190, 143, 0.5);
    --primary-15: rgba(35, 190, 143, 0.15);
    --primary-darken: #1EA67D;
    --primary-logo: #F4F8F8;
    --secondary: #FA9844;
    --secondary-light: #FDE0C6;
    --secondary-50: rgba(250, 152, 68, 0.5);
    --secondary-darken: #F78B2F;
    --success: #28a745;
    --success-light: #e8faec;
    --default: #6c757d;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #FF6657;
    --danger-50: rgba(255, 102, 87, 0.5);
    --light: #f8f9fa;
    --dark: #343a40;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 130px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 130px;
    /*line-height: 60px;*/ /* Vertically center the text there */
    background-color: #ffffff;
}


/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

body > .content-section {
    padding: 60px 15px 0;
    margin-top: 55px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.bg-primary {
    background-color: #23BE8F !important;
}

body {
    font-family: Kanit, Roboto, sans-serif;
}


header nav.navbar {
    background-color: #23BE8F;
    padding: 0px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .05), inset 0 -1px 0 rgba(0, 0, 0, .1);
    border-radius: 0px !important;
}

    header nav.navbar .navbar-brand {
        min-width: 200px;
        min-height: 45px;
        background-color: #fff;
        padding: 5px 20px;
        border-bottom-right-radius: 20px;
        border-right: 5px solid #dfdfdf;
    }

        header nav.navbar .navbar-brand label {
            font-size: 16px;
        }

    header nav.navbar .navbar-nav .nav-item .nav-link {
        font-size: 16px;
        color: #fff;
        padding: 0px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-inline-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

.container {
    margin: auto;
    padding: 0px;
    max-width: 1000px;
}



.card.login-card {
    border-radius: 5px;
    overflow: hidden;
}

.login-card .bg-login img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card.login-card .card-body {
    padding: 0px;
}

    .card.login-card .card-body .row {
        margin: 0px !important;
    }

        .card.login-card .card-body .row > div {
            padding: 0px;
        }

    .card.login-card .card-body .login-form .login-text {
        margin-left: 10px;
        font-size: 21px;
        font-weight: bold;
    }

    .card.login-card .card-body .login-form .login-form-footer .btn-login {
        background: #23BE8F;
        border: 0px;
        border-radius: 20px;
    }

    .card.login-card .card-body .login-form .login-form-footer .btn-forgot {
        background: #fff;
        color: #07b288;
        font-size: 13px;
        border: 0px;
    }

.text-primary {
    color: #23BE8F !important;
}

.text-grey {
    color: #7A8688 !important;
}
/* #region footer */
/* #endregion footer */

/* #region Login Layout Page */
.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #23BE8F;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(35, 190, 143, .25);
}

.has-float-label {
    display: block;
    position: relative;
}

    .has-float-label label, .has-float-label > span:last-of-type {
        position: absolute;
        cursor: text;
        font-size: 12px;
        opacity: 1;
        top: -.4em;
        left: .75rem;
        z-index: 3;
        line-height: 1;
        padding: 0 1px;
    }

    .has-float-label label, .has-float-label > span, .has-top-label label, .has-top-label > span {
        background-color: white;
        color: #07b288;
    }

.invalid-feedback {
    text-align: left !important;
}

.fa.fix {
    display: inline-block;
    background-color: rgba(177, 243, 226, 0.25);
    border-radius: 60px;
    padding: 0.5em 0.6em;
}

.icon.circle {
    display: inline-block;
    background-color: rgba(177, 243, 226, 0.25);
    border-radius: 60px;
    padding: 0.1em 0.1em;
    color: #07b288;
    font-size: 20px;
}

/* Img  ----------- */
.text-login {
    position: absolute;
    top: 70%;
    left: 40%;
    transform: translate(-50%, -50%);
    color: #ffffff;
}

    .text-login label {
        font-style: italic;
    }

/* #endregion Login Layout Page */

/* #region Responsive */
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
    .login-card .bg-login {
        /*     height: 350px;*/
        overflow: hidden;
    }

    .text-login {
        top: 70%;
    }

    .cover-c {
        padding-top: 180px;
        padding-bottom: 180px;
    }

    .footer-logo {
        height: 60px;
    }

    #home-page nav.navbar .navbar-brand {
        min-width: 200px;
    }

    /* #region Banner Responsive */
    #banner-section, #owl-banner .owl-stage-outer, #owl-banner .owl-stage-outer .owl-stage, .wrapper {
        height: 450px;
    }

    #owl-banner .owl-dots {
        position: absolute;
        bottom: 20px;
        z-index: 1;
        left: 150px;
    }

    #owl-banner .owl-item .item .detail {
        position: absolute;
        top: 70px;
        left: 150px;
        max-width: 450px;
    }

        #owl-banner .owl-item .item .detail label {
            font-size: 30px;
        }

        #owl-banner .owl-item .item .detail h4 {
            font-size: 44px;
        }
    /* #endregion Banner Responsive */
}

/*
##Device = Laptops, Desktops
##Screen = B/w 1025px to 1280px
*/
@media (min-width: 1025px) and (max-width: 1280px) {
    .login-card .bg-login {
        height: 350px;
        overflow: hidden;
    }

    .text-login {
        top: 70%;
    }

    .footer-logo {
        height: 60px;
    }

    #home-page nav.navbar .navbar-brand {
        min-width: 200px;
    }

    /* #region Banner Responsive */
    #banner-section, #owl-banner .owl-stage-outer, #owl-banner .owl-stage-outer .owl-stage, .wrapper {
        height: 350px;
    }

    #owl-banner .owl-dots {
        position: absolute;
        bottom: 20px;
        z-index: 1;
        left: 120px;
    }

    #owl-banner .owl-item .item .detail {
        position: absolute;
        top: 50px;
        left: 120px;
        max-width: 450px;
    }

        #owl-banner .owl-item .item .detail label {
            font-size: 24px;
        }

        #owl-banner .owl-item .item .detail h4 {
            font-size: 38px;
        }
    /* #endregion Banner Responsive */
}

/*
##Device = Tablets, Ipads (portrait)
##Screen = B/w 768px to 1024px
*/
@media (min-width: 768px) and (max-width: 1024px) {
    .login-card .bg-login {
        height: 280px;
        overflow: hidden;
    }

    .text-login {
        top: 70%;
    }

    .cover-c {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .footer-logo {
        height: 40px;
    }

    #home-page nav.navbar .navbar-brand {
        min-width: 60px;
    }

    /* #region Banner Responsive */
    #banner-section, #owl-banner .owl-stage-outer, #owl-banner .owl-stage-outer .owl-stage, .wrapper {
        height: 300px;
    }

    #owl-banner .owl-dots {
        position: absolute;
        bottom: 20px;
        z-index: 1;
        left: 30px;
    }


    #owl-banner .owl-item .item .detail {
        position: absolute;
        top: 50px;
        left: 30px;
        max-width: 450px;
    }

        #owl-banner .owl-item .item .detail label {
            font-size: 18px;
        }

        #owl-banner .owl-item .item .detail h4 {
            font-size: 32px;
        }
    /* #endregion Banner Responsive */
}

/*
##Device = Tablets, Ipads (landscape)
##Screen = B/w 768px to 1024px
*/
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .login-card .bg-login {
        height: 350px;
        overflow: hidden;
    }

    .text-login {
        top: 70%;
    }

    .cover-c {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .footer-logo {
        height: 40px;
    }

    #home-page nav.navbar .navbar-brand {
        min-width: 200px;
    }

    /* #region Banner Responsive */
    #owl-banner .owl-dots {
        position: absolute;
        bottom: 20px;
        z-index: 1;
        left: 50px;
    }
    /* #endregion Banner Responsive */
}

/*
##Device = Low Resolution Tablets, Mobiles (Landscape)
##Screen = B/w 481px to 767px
*/
@media (min-width: 481px) and (max-width: 767px) {
    .login-card .bg-login {
        height: 280px;
        overflow: hidden;
    }

    .text-login {
        top: 70%;
        font-size: 70%;
    }

    .footer-logo {
        height: 30px;
    }

    .footer-card {
        font-size: 60%;
    }

    .cover-c {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    body {
        margin-bottom: 170px !important;
    }

    .footer {
        height: 170px !important;
    }

    body .content-section {
        padding: 20px 15px !important;
    }

    #home-page nav.navbar .navbar-brand {
        min-width: 60px;
    }

    /* #region Banner Responsive */
    #owl-banner .owl-dots {
        position: absolute;
        bottom: 20px;
        z-index: 1;
        left: 15px;
    }
    /* #endregion Banner Responsive */
}

/*
##Device = Most of the Smartphones Mobiles (Portrait)
##Screen = B/w 320px to 479px
*/
@media (min-width: 320px) and (max-width: 480px) {
    .login-card .bg-login {
        height: 150px;
    }

    #home-layout .text-login {
        top: 50%;
        font-size: 60%;
    }

    .text-login {
        top: 50%;
        font-size: 70%;
    }

    .cover-c {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .footer-logo {
        height: 30px;
    }

    .footer-card {
        font-size: 60%;
    }

    body {
        margin-bottom: 202px !important;
    }

    .footer {
        height: 202px !important;
    }

    body > .content-section {
        padding: 15px 15px !important;
    }

    /* #region Banner Responsive */
    #banner-section, #owl-banner .owl-stage-outer, #owl-banner .owl-stage-outer .owl-stage, .wrapper {
        height: 200px;
    }

    #owl-banner .owl-dots {
        position: absolute;
        bottom: 10px;
        z-index: 1;
        left: 15px;
    }

    #owl-banner .owl-item .item .detail {
        position: absolute;
        top: 20px;
        left: 15px;
        max-width: 450px;
    }

        #owl-banner .owl-item .item .detail label {
            font-size: 12px;
        }

        #owl-banner .owl-item .item .detail h4 {
            font-size: 26px;
        }
    /* #endregion Banner Responsive */
}
/* #endregion Responsive */

/* #region Button State */
.btn-multiple-state {
    position: relative;
    transition: opacity 500ms;
}

    .btn-multiple-state .spinner,
    .btn-multiple-state .icon {
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        opacity: 0;
        visibility: hidden;
        top: 50%;
        transform: translateY(-50%);
        transition: opacity 500ms;
        color: #fff;
    }

        .btn-multiple-state .icon i {
            vertical-align: text-bottom;
            font-size: 18px;
        }

    .btn-multiple-state .label {
        transition: opacity 500ms;
    }

    .btn-multiple-state.show-spinner .label {
        opacity: 0;
    }

    .btn-multiple-state.show-spinner .spinner {
        opacity: 1;
        visibility: visible;
    }

    .btn-multiple-state.show-success .label {
        opacity: 0;
    }

    .btn-multiple-state.show-success .icon.success {
        opacity: 1;
        visibility: visible;
    }

    .btn-multiple-state.show-fail .label {
        opacity: 0;
    }

    .btn-multiple-state.show-fail .icon.fail {
        opacity: 1;
        visibility: visible;
    }

    .btn-multiple-state.btn-primary:disabled {
        opacity: 1;
        background: #1EA27A;
        border-color: #1EA27A;
    }
/* #endregion Button State */

/* #region Spinner */
.spinner {
    width: 36px;
    text-align: center;
}

    .spinner > div {
        width: 6px;
        height: 6px;
        background-color: #fff;
        border-radius: 100%;
        display: inline-block;
        -webkit-animation: sk-bouncedelay 1.2s infinite ease-in-out both;
        animation: sk-bouncedelay 1.2s infinite ease-in-out both;
    }

    .spinner .bounce1 {
        -webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
    }

    .spinner .bounce2 {
        -webkit-animation-delay: -0.16s;
        animation-delay: -0.16s;
    }

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
    }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}
/* #endregion Spinner */

/* #region Banner */
#owl-banner .owl-item, #owl-banner .owl-item .item {
    position: relative;
    height: 100%;
}

    #owl-banner .owl-item .item .detail label, #owl-banner .owl-item .item .detail h4 {
        color: #ffffff;
    }

    #owl-banner .owl-item .item .detail label {
        font-size: 30px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-inline-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-style: italic;
    }

    #owl-banner .owl-item .item .detail h4 {
        font-size: 44px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-inline-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

#owl-banner .owl-dots .owl-dot:hover span {
    border: 2px solid var(--primary);
    background: var(--primary);
}

#owl-banner .owl-dots .owl-dot span {
    border: 2px solid var(--white);
    background: var(--white);
    width: 12px;
    height: 12px;
    -webkit-box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.5);
    box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.5);
}

#owl-banner .owl-dots .owl-dot.active span {
    background: var(--primary);
}

#owl-banner .bg-text {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 5px 10px 5px 10px;
    margin-top: 5px;
}

#owl-banner .wrapper {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
}
/* #endregion Banner */

#content-page .pb-date {
    color: #dee2e6;
    font-family: Sarabun;
    font-size: 16px;
}

#content-page .btn-back {
    border: 1px solid #E5EBEB;
    border-radius: 20px;
    font-weight: normal !important;
    font-family: Kanit, Roboto, sans-serif !important;
    font-size: 16px;
    color: #7A8688 !important;
}

    #content-page .btn-back:hover {
        color: #212529 !important;
        background-color: #e2e6ea !important;
        border-color: #dae0e5 !important;
    }


#content-page .detail {
    padding: 0px 25px 0px 25px;
}

#content-page .publish-date {
    background-color: #fef2e7;
    color: #F99843;
    border-radius: 20px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 13px;
    margin-left: 20px;
}

/* #region Card */
.card-fill {
    border-left: none;
    border-right: none;
    /*border-top: none;*/
    border-radius: 0;
}

.card-header:not(.origin) {
    background-color: #ffffff !important;
    padding: 1.25rem 1.25rem;
    margin-bottom: 0 !important;
    border-bottom: 0px;
}

.card-fill .card-body {
    padding-top: 0 !important;
}

.card-title:not(.origin) {
    margin-bottom: 0px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-footer {
    background-color: #ffffff !important;
    border-top: none;
    padding: 1.25rem 1.25rem;
}
/* #endregion Card */

/* #region News Page */
.news-section-show-on {
    max-width: 1175px;
    margin-left: auto;
    margin-right: auto;
}

    .news-section-show-on h5 {
        margin-bottom: 20px;
        font-size: 32px;
    }

    .news-section-show-on .card {
        border: 1px solid #E5EBEB;
        margin-bottom: 20px;
        box-shadow: 2px 2px 2px #E5EBEB;
    }

        .news-section-show-on .card .card-body span {
            background-color: #fef2e7;
            color: #F99843;
            border-radius: 20px;
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 2px;
            padding-bottom: 2px;
            font-size: 13px;
        }


        .news-section-show-on .card .card-body .card-text {
            margin-top: 10px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-inline-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }

    .news-section-show-on .more button {
        border: 1px solid #E5EBEB;
        border-radius: 20px;
        font-weight: normal !important;
        font-family: Kanit, Roboto, sans-serif !important;
    }

    .news-section-show-on span.link {
        visibility: hidden;
        position: absolute;
        z-index: 999;
        margin: 0 auto;
        left: 0;
        right: 0;
        text-align: center;
        top: 27%;
        color: #ffffff;
    }

    .news-section-show-on div.content:hover span.link {
        visibility: visible;
        transition: all .2s ease;
        color: #ffffff;
        font-size: 22px;
    }

    .news-section-show-on div.content:hover {
        background: linear-gradient(270deg, rgba(59,207,162,1) 0%, rgba(129,255,232,1) 69%, rgba(0,96,78,1) 100%) !important;
        width: auto;
        height: auto;
        transition: all .2s ease;
        cursor: pointer;
    }

        .news-section-show-on div.content:hover img.card-img-top {
            opacity: 0.1;
        }

    .news-section-show-on .news-detail .content {
        cursor: pointer;
        border-top-left-radius: .25rem !important;
        border-top-right-radius: .25rem !important;
    }

        .news-section-show-on .news-detail .content .content-item {
            width: 100%;
            height: 100%;
        }

    .news-section-show-on button.btn-light {
        background-color: #FFFFFF;
        font-size: 16px;
        color: #7A8688;
    }
/* #endregion End News Page */

/* #region Pagination */
.pagination {
    font-size: 14px;
    border-width: 0px !important;
    border-color: transparent !important;
}

.page-link {
    color: #7A8688 !important;
}

.pagination a {
    color: #000;
}

.paging {
    color: #7A8688;
    font-size: 14px;
}

.pagination li {
    /*    width: 32px;
    height: 32px;
    padding: 0;*/
    /* min-width: 28px;
    min-height: 28px;
    line-height: 28px;*/
    /*text-align: center;*/
    margin-left: 5px;
    margin-right: 5px;
}

    .pagination li.active {
        border-radius: 50%;
        border: 1px solid var(--primary);
        border-color: transparent !important;
    }

    .pagination li a {
        color: #5056da;
        font-weight: bold;
        border-radius: 50% !important;
        width: 32px;
        height: 32px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .pagination li a:last-child {
            border-width: 0px !important;
        }

.pagination .page-selector {
    padding: 0px 10px;
}

.page-item:first-child .page-link {
    margin-left: 0;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff !important;
    background-color: var(--primary);
    border-color: transparent;
    border-radius: 50% !important;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: transparent;
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem var(--primary-50);
}
/* #endregion Pagination */


.btn-primary {
    min-width: 150px !important;
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn:focus, .btn.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem var(--primary-50);
}

.btn.auto {
    min-width: unset !important;
}

.btn.disabled, .btn:disabled {
    cursor: not-allowed;
}

.btn-primary:hover {
    background-color: var(--primary-darken);
    border-color: var(--primary-darken);
}

.btn-primary:focus, .btn-primary.focus {
    background-color: var(--primary-darken);
    border-color: var(--primary-darken);
    box-shadow: 0 0 0 0.2rem var(--primary-50);
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--primary-darken);
    border-color: var(--primary-darken);
}

    .btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
    .show > .btn-primary.dropdown-toggle:focus {
        box-shadow: 0 0 0 0.2rem var(--primary-50);
    }

.btn-primary.disabled, .btn-primary:disabled {
    background-color: var(--primary);
    border-color: var(--primary);
}