* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html,
body {
    margin: 0px;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.banner-image {
    width: 100%;
    height: auto;
}
/* a blue color as a generic focus style */
button:focus-visible {
    outline: 2px solid #4a90e2 !important;
    outline: -webkit-focus-ring-color auto 5px !important;
}

/* Layout Page */
.navbar {
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25) !important;
    padding: 0px;
}

.navbar-nav {
    justify-content: space-between;
}

    .navbar-nav > li {
        border-right: 1px solid #E2E2E2;
    }

        .navbar-nav > li:last-child {
            border: none;
        }

.nav-item {
    margin: 0;
    position: relative;
}

.nav-link {
    color: #000;
    font-size: 18px;
    padding: 10px 15px;
    text-align: center;
    white-space: nowrap;
}

    /* Remove hover background if you want cleaner look with borders */
    .nav-link:hover {
        text-decoration: underline;
    }

    .nav-link.active {
        color: #fff !important;
        background-color: #29B6F6;
        font-weight: bold;
    }

/* Main Page CSS */
.main-page {
    background-color: #f8f9fa;
    display: block;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

    .main-page .div {
        background-color: #f8f9fa;
        overflow: hidden;
        width: 1440px;
        height: 1600px;
        position: relative;
    }



    .main-page .overlap-group {
        position: relative;
        width: 1440px;
        height: 120px;
        background-color: #29b6f6;
        box-shadow: 0px -4px 4px #00000040;
    }

    .main-page .element {
        position: absolute;
        top: 21px;
        left: 56px;
        font-family: "Sarabun-SemiBold", Helvetica;
        font-weight: 600;
        color: #ffffff;
        font-size: 20px;
        letter-spacing: 0;
        line-height: normal;
    }

    .main-page .menu-bar {
        position: absolute;
        width: 3888px;
        height: 136px;
        top: 263px;
        left: -388px;
    }

    .main-page .overlap {
        position: relative;
        width: 3878px;
        height: 136px;
    }

    .main-page .scrolling-text {
        position: absolute;
        width: 3878px;
        height: 85px;
        top: 51px;
        left: 0;
        overflow: hidden;
    }

    .main-page .navbar {
        display: inline-flex;
        height: 100px;
        align-items: center;
        gap: 10px;
        position: relative;
        left: -486px;
        background-color: #f8f9fa;
    }

    .main-page .text-wrapper {
        position: relative;
        width: fit-content;
        font-family: "Inter-Regular", Helvetica;
        font-weight: 400;
        color: #ff0000;
        font-size: 18px;
        letter-spacing: 0;
        line-height: normal;
    }

    .main-page .rectangle {
        width: 1440px;
        background-color: #ffffff;
        position: absolute;
        height: 75px;
        top: 0;
        left: 388px;
        box-shadow: 0px 4px 4px #00000040;
    }

    .main-page .line {
        left: 880px;
        position: absolute;
        width: 1px;
        height: 75px;
        top: 0;
        object-fit: cover;
    }

    .main-page .img {
        left: 520px;
        position: absolute;
        width: 1px;
        height: 75px;
        top: 0;
        object-fit: cover;
    }

.home-page .line-2 {
    left: 1264px;
    position: absolute;
    width: 1px;
    height: 75px;
    top: 0;
    object-fit: cover;
}

.main-page .line-3 {
    left: 1684px;
    position: absolute;
    width: 1px;
    height: 75px;
    top: 0;
    object-fit: cover;
}

.main-page .rectangle-2 {
    width: 132px;
    background-color: #29b6f6;
    position: absolute;
    height: 75px;
    top: 0;
    left: 388px;
    box-shadow: 0px 4px 4px #00000040;
}

.main-page .text-wrapper-2 {
    top: 25px;
    left: 417px;
    font-family: "Sarabun-SemiBold", Helvetica;
    font-weight: 600;
    color: #ffffff;
    font-size: 20px;
    text-align: center;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}

.main-page .text-wrapper-3 {
    top: 25px;
    left: 545px;
    font-family: "Sarabun-SemiBold", Helvetica;
    font-weight: 600;
    color: #000000;
    font-size: 20px;
    text-align: center;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}

.main-page .text-wrapper-4 {
    top: 25px;
    left: 1290px;
    font-family: "Sarabun-SemiBold", Helvetica;
    font-weight: 600;
    color: #000000;
    font-size: 20px;
    text-align: center;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}

.main-page .text-wrapper-5 {
    top: 25px;
    left: 1710px;
    font-family: "Sarabun-SemiBold", Helvetica;
    font-weight: 600;
    color: #000000;
    font-size: 20px;
    text-align: center;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}

.main-page .text-wrapper-6 {
    top: 25px;
    left: 905px;
    font-family: "Sarabun-SemiBold", Helvetica;
    font-weight: 600;
    color: #000000;
    font-size: 20px;
    text-align: center;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}

.main-page .image {
    position: absolute;
    width: 1439px;
    height: 263px;
    top: 0;
    left: 0;
    object-fit: cover;
}

.main-page .div-wrapper {
    position: absolute;
    width: 1335px;
    height: 423px;
    top: 400px;
    left: 52px;
    background-image: url(./img/card-3.svg);
    background-size: 100% 100%;
}

.main-page .p {
    top: 33px;
    left: 243px;
    font-family: "Sarabun-SemiBold", Helvetica;
    font-weight: 600;
    color: #d19a3b;
    font-size: 24px;
    text-align: center;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}

.main-page .overlap-2 {
    position: absolute;
    width: 1347px;
    height: 600px;
    top: 846px;
    left: 56px;
}

.main-page .images-list {
    position: absolute;
    width: 1347px;
    height: 600px;
    top: 0;
    left: 0;
}

.main-page .overlap-3 {
    position: relative;
    height: 608px;
    left: -4px;
}

.main-page .select-images-field {
    position: absolute;
    width: 1343px;
    height: 450px;
    top: 53px;
    left: 4px;
}

.main-page .overlap-group-2 {
    position: relative;
    height: 450px;
}

.main-page .images-list-2 {
    position: absolute;
    width: 1219px;
    height: 450px;
    top: 0;
    left: 57px;
    background-color: #ffffff;
    border-top-width: 1px;
    border-top-style: solid;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-color: #c2c2c2;
}

.main-page .chevron-right {
    left: 1242px;
    position: absolute;
    width: 101px;
    height: 101px;
    top: 121px;
}

.main-page .chevron-left {
    left: 0;
    position: absolute;
    width: 101px;
    height: 101px;
    top: 121px;
}

.main-page .card-2 {
    width: 346px;
    top: 25px;
    left: 915px;
    position: absolute;
    height: 406px;
}

.main-page .element-2 {
    position: absolute;
    width: 340px;
    height: 300px;
    top: 22px;
    left: 915px;
}

.main-page .card-3 {
    width: 456px;
    top: 22px;
    left: 450px;
    position: absolute;
    height: 406px;
}

.main-page .element-3 {
    position: absolute;
    width: 450px;
    height: 300px;
    top: 22px;
    left: 450px;
    object-fit: cover;
}

.main-page .card-4 {
    width: 347px;
    top: 22px;
    left: 94px;
    position: absolute;
    height: 406px;
}

.main-page .element-4 {
    position: absolute;
    width: 341px;
    height: 300px;
    top: 22px;
    left: 94px;
}

.main-page .text-wrapper-7 {
    top: 17px;
    left: 544px;
    font-family: "Sarabun-Medium", Helvetica;
    font-weight: 500;
    color: #000000;
    font-size: 16px;
    text-align: center;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}

.main-page .text-wrapper-8 {
    top: 413px;
    left: 101px;
    font-family: "Sarabun-Regular", Helvetica;
    font-weight: 400;
    color: #000000;
    font-size: 12px;
    text-align: right;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}

.main-page .button {
    all: unset;
    box-sizing: border-box;
    display: flex;
    width: 150px;
    height: 43px;
    align-items: center;
    justify-content: center;
    gap: var(--size-space-200);
    padding: var(--size-space-300);
    position: absolute;
    top: 522px;
    left: 1126px;
    background-color: #f2f2f7;
    border-radius: var(--size-radius-200);
    overflow: hidden;
    box-shadow: 0px 4px 4px #00000040;
}

.main-page .button-2 {
    all: unset;
    box-sizing: border-box;
    position: relative;
    width: fit-content;
    font-family: "Sarabun-Regular", Helvetica;
    font-weight: 400;
    color: var(--color-text-default-secondary);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 16px;
    white-space: nowrap;
}

.main-page .text-wrapper-9 {
    top: 399px;
    left: 488px;
    font-family: "Sarabun-Regular", Helvetica;
    font-weight: 400;
    color: #000000;
    font-size: 12px;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}

.main-page .text-wrapper-10 {
    top: 433px;
    left: 488px;
    font-family: "Sarabun-Regular", Helvetica;
    font-weight: 400;
    color: #000000;
    font-size: 12px;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}

.main-page .text-wrapper-11 {
    top: 412px;
    left: 940px;
    font-family: "Sarabun-Regular", Helvetica;
    font-weight: 400;
    color: #000000;
    font-size: 12px;
    position: absolute;
    letter-spacing: 0;
    line-height: normal;
}
/* Skeleton Loading Shimmer Effect */
.skeleton {
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 8px;
    display: inline-block;
}

@keyframes skeleton-shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.skeleton-text { height: 1rem; margin-bottom: 0.5rem; width: 100%; }
.skeleton-title { height: 2rem; margin-bottom: 1rem; width: 60%; margin-inline: auto; }
.skeleton-logo { width: 120px; height: 120px; border-radius: 50%; margin-bottom: 1rem; }
.skeleton-card { height: 350px; width: 100%; border-radius: 12px; }

/* Content visibility states */
.main-content {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.main-content.loaded {
    opacity: 1;
}

.skeleton-wrapper {
    display: block;
    width: 100%;
}

.skeleton-wrapper.hidden {
    display: none;
}
