:root {
    --color-pink: #ed1e79;
    --color-darkpink: #55092c;
}
body {
    height: 100vh;
    font-family: "Kanit", sans-serif !important;
    background: url("img/background.png");
    color: #fff !important;
    cursor: default !important;
    word-break: break-word;
}
::selection {
    background: #ed1e79;
    color: #fff;
}
a,
p {
    font-size: 1em;
}

.toc-title {
  text-align: center;
  font-weight: 700;
  margin: 0;
  padding: 0;
  visibility: hidden;
  position: relative;
  justify-content: center;
}

.toc-title:after {
  visibility: visible;
  display: flex;
  padding-left: 2em;
  content: "สารบัญ";
  font-size: 2em;
}

.widget-toc {
  display: table;
  background-color: #00000026;
  padding-right: 1rem;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  font-size: 100%;
}
.widget-toc a {
  color: #00eeff;
  text-decoration: underline !important;
}
.widget-toc ol {
  color: #00eeff;
  padding-right: 0px;
  counter-reset: item;
}
.widget-toc ol li {
  display: block;
  position: relative;
}
.widget-toc ol li a:hover {
  color: #d0ff00 !important;
}
.widget-toc ol li:before {
  content: counters(item, ".");
  counter-increment: item;
  position: absolute;
  margin-right: 100%;
  right: 0.5rem;
  inline-size: max-content;
}
/* form mobile */
.bg-form-mobile {
    background-color: var(--btn-red);
    margin: 6px auto;
    color: #fff;
    width: 100%;
}
.on-mobile {
    display: none;
}
.form-control:focus {
    border-color: rgba(100, 100, 100, 1) !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}
.form-user,
.form-pass {
    border: none !important;
    border-radius: 1em !important;
    background: none !important;
    color: #fff !important;
    text-indent: 2em;
    z-index: 1;
}
.form-user::placeholder,
.form-pass::placeholder {
    color: #ed1e79 !important;
}
.icon-user {
    position: absolute;
    top: 0.3em;
    left: 0.7em;
    z-index: 2;
}
.icon-password {
    position: absolute;
    top: 0.2em;
    left: 0.7em;
    z-index: 2;
}
.bg-btn-login {
    background: none !important;
    border-radius: 15px;
    border: none;
    color: #ed1e79 !important;
}
.bg-btn-login:hover {
    color: #fff !important;
    background: linear-gradient(to top, #000 5%, #c1272d, #000 23%, #000 75%, #ff2f2f 89%, #000 98%);
}

.bg-btn-login-mobile {
    background-color: #ed1e79 !important;
    border-radius: 15px;
    border: none;
    color: #fff !important;
}
.bg-btn-login-mobile:hover {
    color: #f1f1f1 !important;
}
.btn-login {
    position: absolute;
    border-radius: 0.5em;
    border: none;
    top: 5%;
    right: 9%;
}
.btn-register {
    color: #ed1e79 !important;
    --x: 50%;
    --y: 50%;
    position: relative;
    appearance: none;
    padding: 1em 2em;
    cursor: pointer;
    outline: none;
    border-radius: 1em;
    border: none !important;
    background: none !important;
}
.btn-register:hover {
    color: #fff !important;
    background: linear-gradient(to top, #000 5%, #c1272d, #000 23%, #000 75%, #ff2f2f 89%, #000 98%);
}
.btn-register-mobile {
    background-color: #000 !important;
    color: #ed1e79 !important;
}
@media (max-width: 800px) {
    .on-mobile {
        display: block;
    }
    .mobile-collap-button {
        flex-direction: column;
        align-content: center;
        text-align: center;
        margin-top: 1em;
    }
    .bg-btn {
        margin-top: 1em;
    }
    .nav-link {
        text-align: center;
    }
    .form-user {
        width: 100% !important;
        background-color: #000 !important;
    }
    .form-pass {
        width: 100% !important;
        background-color: #000 !important;
    }
}

/* navbar */
.nav-bg {
    background-color: #000;
    z-index: 999;
}
.bg-nav-sub {
    background-color: #55092c;
}
.form-search {
    background-color: #ed1e79 !important;
    border: none !important;
    border-radius: 1em !important;
    color: #fff !important;
}
.form-search::placeholder {
    color: #fff !important;
}

.nav-link {
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    z-index: 1;
}
.nav-item .nav-link:hover {
    color: #fff !important;
    background-color: #ed1e79;
}
.nav-item .nav-link:hover:after {
    right: 0;
    left: 0;
    height: 100%;
}
.search .fa-search {
    position: absolute;
    top: 1.5em;
    right: 1.6em;
    background: transparent;
    color: #fff;
}

/* dropdown Columns */
div.dropdown-multicol2 {
    width: 30em;
}
div.dropdown-multicol2 > div.dropdown-col {
    display: inline-grid;
    width: 24%;
}
.dropdown-menu {
    background-color: #680030c9 !important;
}
.dropdown-item {
    color: #fff !important ;
    background-color: #680030c9 !important;
    opacity: 1 !important;
}
.dropdown-item:hover {
    color: #fff !important ;
    background-color: #ed1e79 !important;
}
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
    }
    .navbar .nav-item:hover .dropdown-menu {
        display: block;
    }
    .navbar .nav-item .dropdown-menu {
        margin-top: 0;
    }
}
@media (max-width: 800px) {
    .nav-bg {
        z-index: 0;
    }
}
@media (max-width: 992px) {
    .pos-text {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        bottom: 0 !important;
    }
}
.bg-btn {
    background-color: #fff;
    border-radius: 15px;
    border: none;
    color: #333 !important;
}
.nav-item .nav-link {
    background-size: 6em;
    color: #fff !important;
}
.relative {
    position: relative;
}

/* content */
.txt-p {
    color: #ed1e79 !important;
}
.bg-content1 {
    background-color: #ed1e785d;
    padding: 0.5em;
}
.verticle-line {
    border-image: linear-gradient(to bottom, #ed1e79, #ed1e79) 0 1 0 0 !important;
    border: 2px solid;
}
.verticle-line2 {
    border-image: linear-gradient(to bottom, #ed1e79, #ed1e79) 0 0 0 1 !important;
    border: 2px solid;
}

.bg-darker {
    background: #000;
}
.text-reder {
    color: #ff0000;
}
.pos-text {
    position: absolute;
    width: 50%;
    bottom: 2em;
    left: 20em;
}

.txt-int {
    text-indent: 1.5em;
}

/* footer */
.footer-dark {
    padding: 50px 0;
    color: #f0f9ff;
    background-color: #1a1a1a;
}
.footer-dark2 {
    color: #f0f9ff;
    background-color: #000;
}

.footer-dark h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 16px;
}

.footer-dark ul {
    padding: 0;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 0;
}

.footer-dark ul a {
    color: inherit;
    text-decoration: none;
    opacity: 0.6;
}

.footer-dark ul a:hover {
    opacity: 0.8;
}

.txt-ft {
    font-weight: 500;
    color: #ed1e79 !important;
}
.ul-c {
    columns: 4;
    -webkit-columns: 4;
    -moz-columns: 4;
}
.ul-c2 {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

@media (max-width: 992px) {
    .ul-c {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }
}
@media (max-width: 767px) {
    .footer-dark .item:not(.social) {
        text-align: center;
        padding-bottom: 20px;
    }
}

.footer-dark .item.text {
    margin-bottom: 36px;
}

@media (max-width: 767px) {
    .footer-dark .item.text {
        margin-bottom: 0;
    }
}

.footer-dark .item.text p {
    opacity: 0.6;
    margin-bottom: 0;
}

.footer-dark .item.social {
    text-align: center;
}

@media (max-width: 991px) {
    .footer-dark .item.social {
        text-align: center;
        margin-top: 20px;
    }
}

.footer-dark .item.social > a {
    font-size: 20px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
    margin: 0 8px;
    color: #fff;
    opacity: 0.75;
}

.footer-dark .item.social > a:hover {
    opacity: 0.9;
}

.footer-dark .copyright {
    text-align: center;
    padding-top: 24px;
    opacity: 0.3;
    font-size: 13px;
    margin-bottom: 0;
}

/* footer nav sticky  */
.nav-footer {
    z-index: 9999;
    display: none;
}
.icon-burgur {
    color: #fff;
}
.fas,
.fab {
    font-size: 2rem;
    color: #fff;
}
.logo-sticky {
    margin-top: -1rem;
    margin-left: -1rem;
}
.img-nav-sticky {
    width: 130%;
}

@media only screen and (max-width: 800px) {
    .nav-footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #ed1e79;
        left: 0;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
        height: 70px;
        box-shadow: 0px -3px 18px 0px #00000096;
        backdrop-filter: blur(5px);
    }
    .nav-footer-col4 {
        width: 25%;
        float: left;
        text-align: center;
    }
    .col4-bottom {
        font-size: 14px;
        color: #fff;
        letter-spacing: 1px;
        font-weight: 300;
    }
    .nav-footer {
        display: block;
    }
}

/* header nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10%;
}

.logo {
    cursor: pointer;
}

.nav__links a,
.cta,
.overlay__content a {
    font-weight: 500;
    color: #edf0f1;
    text-decoration: none;
}

.nav__links {
    list-style: none;
    display: flex;
}

.nav__links li {
    padding: 0px 20px;
}

.nav__links li a {
    transition: color 0.3s ease 0s;
}

.nav__links li a:hover {
    color: #0088a9;
}

.cta {
    /* padding: 9px 25px;
    background-color: rgba(0, 136, 169, 1); */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease 0s;
}

.cta:hover {
    background-color: #3ab2be;
}

/* Mobile Nav */
.menu {
    display: none;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    background-color: #24252abd;
    overflow-x: hidden;
    transition: width 0.5s ease 0s;
}

.overlay--active {
    width: 100%;
}

.overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay a {
    padding: 15px;
    font-size: 18px;
    display: block;
    transition: color 0.3s ease 0s;
}

.overlay a:hover,
.overlay a:focus {
    color: #0088a9;
}
.overlay .close {
    position: absolute;
    top: -20px;
    right: 13px;
    font-size: 30px;
    color: #edf0f1 !important;
}

@media screen and (max-height: 450px) {
    .overlay a {
        font-size: 20px;
    }
    .overlay .close {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

@media only screen and (max-width: 800px) {
    .nav__links,
    .cta {
        display: none;
    }
    .menu {
        display: initial;
    }
    .nav-item .nav-link {
        background: #000 !important;
    }
}
/* viewall */
.bg-article {
    background-image: linear-gradient(to right, rgba(255, 0, 0, 0), #55092c, rgba(255, 0, 0, 0));
}
.main-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    /* width: clamp(20rem, calc(20rem + 2vw), 22rem); */
    overflow: hidden;
    box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: 1s box-shadow;
}
.main-card img {
    -webkit-transition: 0.4s ease;
    transition: 0.4s ease;
}
.main-card:hover img {
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}
.box-article {
    background-color: #000;
    padding: 3em;
}
.color-size a {
    font-size: 2em;
    color: #fff !important;
    text-decoration: none !important;
}
.color-size a:hover {
    color: #ed1e79 !important;
}
.news-articles-h4 {
    text-decoration: none !important;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 23px;
    color: #00d2f4;
    margin-bottom: 10px;
}
.bg-art {
    text-align: center;
    border: 4px solid;
    border-radius: 0.5em;
    border-image: linear-gradient(to bottom, #ed1e79, rgb(255, 103, 235)) 1;
}
.box-articles {
    color: whitesmoke;
}

.container-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* max-width: 1200px; */
    margin-block: 2rem;
    gap: 2rem;
}

.cards {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: clamp(20rem, calc(20rem + 2vw), 22rem);
    overflow: hidden;
    box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 1em;
    background: #fff;
    transition: 1s box-shadow;
}

.cards img {
    -webkit-transition: 0.4s ease;
    transition: 0.4s ease;
}

.cards:hover img {
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}

a.cards {
    color: #666 !important;
}

a.cards:hover {
    cursor: pointer;
    text-decoration: none !important;
}

.card__image {
    height: 220px !important;
    object-fit: cover;
}

.card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag {
    align-self: flex-start;
    padding: 0.25em 0.75em;
    border-radius: 1em;
    font-size: 0.75rem;
}

.tag + .tag {
    margin-left: 0.5em;
}

.tag-blue {
    background: #56ccf2;
    background: linear-gradient(to bottom, #2f80ed, #56ccf2);
    color: #fafafa;
}

.tag-brown {
    background: #d1913c;
    background: linear-gradient(to bottom, #ffd194, #d1913c);
    color: #fafafa;
}

.tag-red {
    background: #cb2d3e;
    background: linear-gradient(to bottom, #ef473a, #cb2d3e);
    color: #fafafa;
}

.card__body h4 {
    font-size: 1.5rem;
    text-transform: capitalize;
}

.card__footer {
    display: flex;
    padding: 1rem;
    margin-top: auto;
}

.user {
    display: flex;
    gap: 0.5rem;
}

.user__image {
    border-radius: 50%;
}

.user__info > small {
    color: #666;
}
/* view */
