:root {
    --swiper-pagination-color: #c42424;
    --theme: #c42424;
}

body {
    font-family: "IBMPlexSansThai";
}

a {
    color: var(--theme);
    text-decoration: none !important;
}

.container {
    max-width: 980px;
}

.navbar-expand-lg {
    font-family: "IBMPlexSansThai";
    font-weight: 600;
}

.navbar-expand-lg .dropdown-toggle:after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    margin-left: 0.35rem;
    font-weight: 900;
    font-size: 0.8rem;
    vertical-align: baseline;
    border: none;
}

.navbar-expand-lg .navbar-nav .nav-link {
    --bs-navbar-nav-link-padding-x: 0.75rem;
    --bs-nav-link-padding-y: 1rem;
    --bs-navbar-active-color: var(--theme);
}

.topic-section h3 {
    font-family: "IBMPlexSansThai";
    font-weight: 600;
}

.topic-section i {
    color: var(--theme);
}

.topic-detail h4,
.topic-detail h4 > a {
    color: var(--theme);
    font-weight: 600;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    --swiper-navigation-size: 16px;
    --swiper-navigation-top-offset: 48%;
    --swiper-pagination-bullet-inactive-color: var(--bs-white);
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 50%;
    border: 1px solid var(--bs-white);
    color: var(--bs-white);
}

.short-text {
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.short-text-1 {
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.short-text-2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.short-text-3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-theme {
    color: var(--theme) !important;
}

.divider-1 {
    height: 140px;
}

#restaurant {
    margin-top: -40px;
}

#restaurant .restaurant-area {
    background-color: #fdf6f6;
    margin-top: -3.5rem;
}

footer {
    background-color: var(--bs-dark);
    color: var(--bs-white);
}

footer a {
    text-decoration: none;
    color: var(--bs-white) !important;
}

footer a:hover {
    text-decoration: underline;
    color: #f25c81 !important;
}

#last_topics a:hover {
    color: var(--theme) !important;
}

#ps_loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 9999999;
    background-color: rgba(var(--bs-light-rgb), 0.5);
}

#ps_loader .ps-loader-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: var(--bs-white);
    padding: 1.25rem;
    border-radius: 0.5rem;
}

.ps-loader {
    margin: 0 auto;
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid var(--bs-primary-bg-subtle);
    border-right-color: var(--bs-primary);
    animation: l2 1s infinite linear;
}

.list-group-item.active {
    z-index: 2;
    color: var(--bs-list-group-active-color);
    background-color: var(--theme);
    border-color: var(--theme);
}

.img-zoom-hover > div > img {
    transition: transform 0.4s;
}

.img-zoom-hover:hover > div > img {
    transform: scale(1.1);
}

.hua {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 75%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s;
}

.img-zoom-hover:hover .hua {
    background-size: 100% 2px;
}

.topic-detail-small > div.img-zoom-hover:hover > div.flex-grow-1 {
    background-color: #fcf6f6 !important;
}

.hua-small {
    background-position: 0% 80%;
    background-size: 0% 1px;
    transition: background-size 0.4s;
}

.img-zoom-hover:hover .hua-small {
    background-size: 100% 1px;
}

.setting-express img {
    max-width: 100%;
}

.interesting .card > .card-body {
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.interesting .card > .card-img-top {
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    padding: 3px;
    padding-bottom: 0;
}

.interesting .card:hover > .card-img-top {
    background-color: var(--theme) !important;
    padding: 3px;
    padding-bottom: 0;
}

.interesting .card:hover > .card-body {
    background-color: var(--theme) !important;
    color: var(--bs-white) !important;
}

.interesting .card:hover > .card-body > .card-text {
    color: var(--bs-white) !important;
}

img.banner {
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

img.banner:hover {
    opacity: 0.65;
}

.text-facebook {
    color: #0865fe;
}

.text-twitter-x {
    color: #0f1418;
}

.text-line {
    color: #07b53b;
}

.share-section a {
    transition: transform 0.4s;
}

.share-section a:hover {
    opacity: .85;
}

.banner img,
.post-content img  {
    max-width: 100%;
    height: auto;
}

.page-link {
    --bs-pagination-color: var(--theme);
    --bs-pagination-hover-color: var(--theme);
}

.active>.page-link, .page-link.active {
    --bs-pagination-active-bg: var(--theme);
    --bs-pagination-active-border-color: var(--theme);
}

@keyframes l2 {
    to {
        transform: rotate(1turn);
    }
}

@media (max-width: 768px) {
    .divider-1 {
        height: 46px !important;
    }

    #restaurant {
        margin-top: 0;
    }

    #restaurant .restaurant-area {
        margin-top: 0;
    }

    .topic-detail-small img {
        max-width: 150px;
        height: 100%;
        object-fit: cover;
    }
}

@font-face {
    font-family: "IBMPlexSansThai";
    src: url("../fonts/IBMPlexSansThai/IBMPlexSansThai-Thin.ttf");
    font-weight: 100;
}

@font-face {
    font-family: "IBMPlexSansThai";
    src: url("../fonts/IBMPlexSansThai/IBMPlexSansThai-ExtraLight.ttf");
    font-weight: 200;
}

@font-face {
    font-family: "IBMPlexSansThai";
    src: url("../fonts/IBMPlexSansThai/IBMPlexSansThai-Light.ttf");
    font-weight: 300;
}

@font-face {
    font-family: "IBMPlexSansThai";
    src: url("../fonts/IBMPlexSansThai/IBMPlexSansThai-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "IBMPlexSansThai";
    src: url("../fonts/IBMPlexSansThai/IBMPlexSansThai-Medium.ttf");
    font-weight: 500;
}

@font-face {
    font-family: "IBMPlexSansThai";
    src: url("../fonts/IBMPlexSansThai/IBMPlexSansThai-SemiBold.ttf");
    font-weight: 600;
}

@font-face {
    font-family: "IBMPlexSansThai";
    src: url("../fonts/IBMPlexSansThai/IBMPlexSansThai-Bold.ttf");
    font-weight: 700;
}
