html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

p,
a span {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}

p,
a {
    display: block;
    max-width: 100%;
}

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


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

@font-face {
    font-family: "FCVision";
    src: url("../font/FCVision/FCVision-Condensed.otf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "FCVision";
    src: url("../font/FCVision/FCVision-MediumCondensed.otf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "FCVision";
    src: url("../font/FCVision/FCVision-SemiBoldCondensed.otf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "FCVision";
    src: url("../font/FCVision/FCVision-BoldCondensed.otf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "FCVision";
    src: url("../font/FCVision/FCVision-BlackCondensed.otf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

.font-FCVision {
    font-family: "FCVision", 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, 35px);
    --fs-h4: clamp(23px, 1.2vw + 18px, 28px);
    --fs-h5: clamp(18px, 1vw + 16px, 23px);
    --fs-h6: clamp(16px, 0.8vw + 14px, 20px);
    --fs-p: clamp(14px, 0.5vw + 14px, 15px);
    --fs-small: clamp(12px, 0.25vw + 12px, 13px);
}

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

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

    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);
    line-height: 22px;
}

p,
.p {
    font-size: var(--fs-p);
    line-height: 22px;
}

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

.ci-primary {
    color: #fcd266;
}

.ci-gray {
    color: #9e9e9e;
}

/* =========================
   BUTTON
========================== */
.btn {
    width: 220px;
    min-width: 220px;
    height: 60px;
    padding: 5px 20px;
    border: 0px solid transparent;
    font-family: "Kanit", sans-serif;
}

.btn.xxxl {
    width: 620px;
    min-width: 620px;
    height: 80px;
    padding: 20px;
}

.btn.xxl {
    width: 330px;
    min-width: 330px;
    height: 70px;
    padding: 20px;
}

.btn.sm {
    width: 180px;
    min-width: 180px;
    height: 40px;
    padding: 5px 10px;
}

.btn.md {
    width: 210px;
    min-width: 180px;
    height: 50px;
    padding: 5px 10px;
}

.btn.xxs {
    width: 150px;
    min-width: 150px;
    height: 45px;
    padding: 5px 10px;

}


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

    transition: all 0.5s;

    align-items: center;
    justify-content: center;
}

.btn.secondary {
    width: 140px;
    min-width: 140px;
    height: 40px;
    background: linear-gradient(180deg, #f8e07c 5%, #d87300 100%);
    color: #84510a;
    border: 1px solid #75480f;
    border-radius: 50px;
    box-shadow: inset 0px 0px 3px 5px #fffbea59, 0px 1px 2px #000;
    transition: all 0.5s;
}

.btn.secondary span {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 18px;
    letter-spacing: 0px;
    text-shadow:
        2px 2px 0 #a9670f, -2px 2px 0 #a9670f, 2px -2px 0 #a9670f, -2px -2px 0 #a9670f, 2px 0 0 #a9670f, -2px 0 0 #a9670f, 0 2px 0 #a9670f, 0 -2px 0 #a9670f;
    font-family: "FCVision";
}

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

.btn.icon {
    width: 50px;
    min-width: 50px;
    height: 50px;

    background: transparent;
    border: 0px solid transparent;

    font-size: 30px;
}

.btn.modal_close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0px;
    background: #323232;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
}

.btn.primary span {
    color: #fff;
    text-shadow:
        2px 2px 0 #a9670f,
        -2px 2px 0 #a9670f,
        2px -2px 0 #a9670f,
        -2px -2px 0 #a9670f,
        2px 0 0 #a9670f,
        -2px 0 0 #a9670f,
        0 2px 0 #a9670f,
        0 -2px 0 #a9670f;
    font-size: 23px;
    font-weight: 700;
    line-height: 23px;
    letter-spacing: 2px;
}

.btn.xxl span {
    color: #fff;
    text-shadow:
        2px 2px 0 #633f13,
        -2px 2px 0 #633f13,
        2px -2px 0 #633f13,
        -2px -2px 0 #633f13,
        2px 0 0 #633f13,
        -2px 0 0 #633f13,
        0 2px 0 #633f13,
        0 -2px 0 #633f13;
    text-transform: uppercase;
    font-size: 28px;
    font-weight: 800;
    line-height: 28px;
    /* letter-spacing: 5px; */
    font-family: "FCVisionCondensed", sans-serif;
}

.btn.sm span,
.btn.md span {
    color: #fff;
    text-shadow:
        2px 2px 0 #633f13,
        -2px 2px 0 #633f13,
        2px -2px 0 #633f13,
        -2px -2px 0 #633f13,
        2px 0 0 #633f13,
        -2px 0 0 #633f13,
        0 2px 0 #633f13,
        0 -2px 0 #633f13;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 900;
    line-height: 18px;
    letter-spacing: 1px;
    font-family: "FCVision";
}

.btn.xxs span {
    font-size: 18px;
    font-family: "FCVision";
}

/* =========================
   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: 120px;
    height: 120px;
}

@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;
}

/* =========================
   BUTTON - Switc Lang
========================== */
.lang-switcher {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 5px;
}

.lang-dropdown.show {
    display: flex;
    margin-top: 5px;
}

.langMobileBtn.active {
    box-shadow: 0px 0px 10px #ffbb00d8;
}

.soical_menu {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: url("../images/button/nav_soical.png");
    background-position: center;
    background-size: cover;
    border: 0px solid transparent;

    cursor: pointer;
    transition: all 0.5s;
}

.soical_menu img {
    width: 28px;
    height: 28px;

    filter: drop-shadow(0px 0px 0px #633f13) drop-shadow(1px 1px 2px #000000a9);
}

.soical_menu:hover {
    box-shadow: 0px 0px 10px #ffbb00d8;
}