a {
    text-decoration: none;
}

/* ==== Font ===== */
@font-face {
    font-family: "GoboldLowplus";
    src: url("../font/GoboldLowplus.otf") format("truetype");
    font-weight: 500;
    /* normal */
    font-style: normal;
}

.font-GoboldLowplus {
    font-family: "GoboldLowplus", sans-serif;
}

@font-face {
    font-family: "DBHelvethaicaMonX";
    src: url("../font/DBHelvethaicaMonX.ttf") format("truetype");
    font-weight: 300;
    /* Light */
    font-style: normal;
}

.font-DBHelvethaicaMonX {
    font-family: "DBHelvethaicaMonX", sans-serif;
}

:root {
    --fs-h1: clamp(36px, 2.5vw + 24px, 80px);
    --fs-h2: clamp(30px, 2vw + 20px, 64px);
    --fs-h3: clamp(26px, 1.5vw + 20px, 52px);
    --fs-h4: clamp(23px, 1.2vw + 18px, 35px);
    --fs-h5: clamp(18px, 1vw + 16px, 30px);
    --fs-h6: clamp(16px, 0.8vw + 14px, 25px);
    --fs-p: clamp(14px, 0.5vw + 14px, 17px);
    --fs-small: clamp(12px, 0.25vw + 12px, 14px);
}

html,
body {
    overflow-x: hidden !important;
}

body {
    position: relative;
    font-family: "Kanit", sans-serif;
    background: url("../images/bg_main.png");
    background-position: top;
    background-size: cover;
    color: #fff;

    width: 100%;
    min-height: 100dvh;
}

/* ==== font ==== */

h1,
.h1 {
    font-size: var(--fs-h1);
}

h2,
.h2 {
    font-size: var(--fs-h2);
}

h3,
.h3 {
    font-size: var(--fs-h3);
}

h4,
.h4 {
    font-size: var(--fs-h4);
}

h5,
.h5 {
    font-size: var(--fs-h5);
}

h6,
.h6 {
    font-size: var(--fs-h6);
}

p,
.p {
    font-size: var(--fs-p);
}

small,
.small {
    font-size: var(--fs-small);
}

.ci-primary {
    color: #ffe8b0;
}

.ci-primary-800 {
    color: #fc9f26;
}

/* ==== navbar ==== */
.navbar_mainLayout {
    width: 100%;
    min-height: 75px;
    padding: 5px 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: url("../images/navbar/bg.png");
    background-position: bottom;
    background-size: cover;

}

.nav-item {
    display: block;
    min-width: 100px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-size: 16px;
    font-weight: 600;
    color: #401908;
    opacity: 1;
}

.nav-link {
    color: #401908;
    line-height: 20px;
}

.navbar_hr {
    width: 1px;
    height: 25px;
    background: #86602f;
    border-radius: 1px;
}

.navSelect {
    border: 1px solid transparent;
    background: transparent;
    height: 40px;
    font-size: 16px;
    font-weight: 800;
    color: #431400;
}

/* ==== button ==== */
.btn {
    width: 260px;
    height: 90px;
    padding: 5px 35px;
    border: 0px solid transparent;
}

.btn.primary {
    background: url("../images/btn.png");
    background-position: center;
    background-size: cover;
    filter: drop-shadow(1px 3px 1px #000000e1);
    color: #84510a;
    border: 0px solid;

    transition: all .5s;
}

.btn.primary:hover {
    filter: drop-shadow(1px 2px 10px #ffc354);
}


/* ==== Loading Overlay Styles ==== */

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.733);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transform: scale(1);
}

#loadingOverlay.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

.loading-container {
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 6px solid #a09e1775;
    border-top: 6px solid #ffd412;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading {
    width: 100%;
    height: 30px;
    background: linear-gradient(0deg, #1b1615ab 10%, #702500a6 90%);
    border: 1px solid #f4c463a3;
    border-radius: 5px;
}


#loadingDownload {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.733);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transform: scale(1);
}

#loadingDownload.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

/* ป้องกัน content กระโดดเวลาปิด/เปิด modal */
body.modal-open {
    padding-right: 0 !important;
}


.nav-link.active {
    color: #ff8d23 !important;
    font-weight: bold;
    position: relative;
    transition: all .5s;
}