/* @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Siemreap&display=swap');
h1,h2,h3,h4,h5,h6,p,label,span,ul,li,a,input,textarea,select,small, div, section, select, table ,th, td{
    font-family: 'Poppins', "Siemreap", sans-serif !important;
} */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: 'Kantumruy';
    src: url('/fonts/KantumruyPro-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Kantumruy-normal';
    src: url('/fonts/Kantumruy.ttf') format('truetype');
}

body {
    font-family: "Poppins", "Kantumruy-normal", sans-serif;
    overflow-x: hidden;
    background-color: #f5f5f5;
}

#snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    user-select: none;
    pointer-events: none;
    font-size: 1em;
    opacity: 0.9;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
    }

    100% {
        transform: translateY(110vh) translateX(var(--drift)) rotate(360deg);
    }
}

.navbar {
    background: transparent;
    /* Initial state */
    display: flex;
    flex-wrap: wrap;
    transition: background 0.3s ease;
    /* Smooth transition */
}

.navbar-scrolled {
    /* background: linear-gradient(90deg, rgba(89, 176, 242, 0.47) 0%, rgba(217, 36, 40, 1) 100%); */
    background: rgba(26, 106, 168, 1);
}

.nav-item a {
    font-size: 20px;
}

.nav-item-en a {
    margin: 0 15px;
}

.navbar-nav .nav-item {
    margin: 0 15px;
}

.navbar-brand {
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: #1B6BA8;
}

/* When scrolled – override to white */
body.navbar-colored .navbar-nav .nav-link.active,
body.navbar-colored .navbar-nav .nav-link.show,
body.navbar-colored .nav-link {
    color: #ffffff !important;
}

.logo-scrolled {
    display: none;
}

body.navbar-colored .logo-default {
    display: none;
}

body.navbar-colored .logo-scrolled {
    display: inline;
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: #1B6BA8;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    display: inline-block;
    /* Ensures the element respects its content width */
}

.nav-link:hover {
    color: #1B6BA8;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 10px;
    bottom: -5px;
    left: 50%;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'><path d='M0 5 Q 5 0, 10 5 T 20 5 T 30 5 T 40 5 T 50 5 T 60 5' stroke='%231B6BA8' stroke-width='3' fill='none'/></svg>") repeat-x;
    background-size: 45px 10px;
    transform: translateX(-50%);
    transition: background 0.3s ease;
}

/* When scrolled – white stroke */
body.navbar-colored .nav-link::after {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'><path d='M0 5 Q 5 0, 10 5 T 20 5 T 30 5 T 40 5 T 50 5 T 60 5' stroke='white' stroke-width='3' fill='none'/></svg>") repeat-x;
    background-size: 45px 10px;
}

.nav-link:hover::after {
    width: calc(100% - 1rem);
    /* Subtract the padding (1rem left + 1rem right) to match the text width */
    animation: wave 3s linear infinite;
    /* Apply the wave animation */
}

.nav-link.active::after {
    width: calc(100% - 1rem);
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 75px;
    }
}

.nav-link.active {
    color: #1B6BA8;
}

.language-switcher {
    color: white;
    display: flex;
    align-items: center;
}

.language-switcher img {
    height: 20px;
    margin-right: 5px;
}

.label-language small {
    color: #1B6BA8;
    transition: color 0.3s ease;
}

body.navbar-colored .label-language small {
    color: #ffffff;
}

/* Footer Styles */
/* .footer {
            background: linear-gradient(to bottom, #e0f7fa, #ffffff);
            color: #333;
            padding: 40px 0;
            border-top: 1px solid #8dc6f162;
        } */
.footer {
    position: relative;
    /* For overlay positioning */
    background: linear-gradient(to bottom, #e0f7fa, #ffffff);


    /* Path to your image */
    background-size: cover;
    /* Ensure the image covers the entire footer */
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Prevent tiling */
    color: #fff;
    /* Change text color to white for better contrast */
    padding: 40px 0;
    border-top: 1px solid #8dc6f162;
}

/* Add a semi-transparent overlay to improve text readability */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.438);
    /* Dark overlay with 50% opacity */
    z-index: 1;
}

/* Ensure footer content is above the overlay */
.footer .container {
    position: relative;
    z-index: 2;
}

.footer a {
    /* color: #333; */
    color: #000000;
    text-decoration: none;
}

.footer a:hover {
    color: #1a6aa8;
    text-decoration: none;
}

.footer h5 {
    /* color: #1a6aa8; */
    color: #000000;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 15px;
}

.footer p,
.footer ul {
    font-size: 14px;
    line-height: 1.8;
    color: #000000;
}

.footer .list-unstyled li {
    margin-bottom: 5px;
}

.footer .social-icons a {
    margin-right: 15px;
    font-size: 24px;
    color: #333;
}

.footer .social-icons a:hover {
    color: #1a6aa8;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    width: 150px;
}

.footer-copyright {
    color: #666;
    font-size: 14px;
    margin-top: 30px;
}

.waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 100'%3E%3Cpath d='M0 50C100 80 200 20 300 50S400 80 500 50 600 20 700 50 800 80 800 50V100H0Z' fill='rgba(29, 162, 216, 0.3)'/%3E%3C/svg%3E");
    background-size: 800px 100px;
    animation: waves 10s linear infinite;
    z-index: 0;
}

.waves:nth-child(2) {
    height: 80px;
    opacity: 0.5;
    animation-duration: 9s;
    animation-direction: reverse;
    background-position: 200px 0;
}

.waves:nth-child(3) {
    height: 60px;
    opacity: 0.7;
    animation-duration: 5s;
    background-position: 400px 0;
}

@keyframes waves {
    0% {
        transform: translateX(0);
    }

    100% {
        background-position-x: -700px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: transparent;
    border: 2px solid #333;
    color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #145a8c;
    color: white;
    border-color: #145a8c;
    transform: translateY(-5px);
}

hr {
    color: #053fe0;
    margin-top: 8%;
}

.decorative-banner-left,
.decorative-banner-center,
.decorative-banner-right {
    position: fixed;
    width: 350px;
    /* Fixed width */
    height: auto;
    /* Maintain aspect ratio */
    max-height: 100vh;
    /* Don't exceed viewport height */
    object-fit: contain;
    /* Maintain aspect ratio without distortion */
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
    /* Allow clicking through if needed */
}

.decorative-banner-left {
    left: 0;
    top: 0;
}

.decorative-banner-center {
    left: 50%;
    top: 50%;
    /* Center vertically */
    transform: translate(-50%, -50%);
    opacity: 0;
}

.decorative-banner-right {
    right: 0;
    top: 0;
    transform: scaleX(-1);
}

.decorative-banner-center.visible {
    top: 50%;
    /* Center vertically in viewport */
    transform: translateX(-50%) translateY(-50%);
    /* Center both horizontally and vertically */
    opacity: 1;
}

@media (max-width: 1024px) {
    .nav-item a {
        font-size: 17px !important;
    }
}

@media (max-width: 992px) {

    .decorative-banner-left,
    .decorative-banner-center,
    .decorative-banner-right {
        width: 150px;
    }

    .footer-logo img {
        width: 100px;
    }

    .text-reset {
        margin-left: 350px;
    }

    .nav-item a {
        font-size: 18px;
    }

    .navbar-nav .nav-item {
        margin: auto;
    }
}

@media (max-width: 853px) {

    .text-reset {
        margin-left: auto;
    }

    .nav-item a {
        font-size: 13.6px !important;
    }

    .nav-item-en a {
        font-size: 13px !important;
    }

    .navbar-nav .nav-item {
        margin: auto;
    }
}

@media (max-width: 820px) {
    .nav-item-en a {
        font-size: 13px !important;
        margin: 0 4px;
    }
}

@media (max-width: 768px) {

    .decorative-banner-left,
    .decorative-banner-center,
    .decorative-banner-right {
        width: 120px;
    }

    hr {
        display: none;
    }

    .text-reset {
        margin-left: 350px;
    }

    .nav-item a {
        font-size: 14px !important;
    }

    .nav-item-en a {
        font-size: 12px !important;
        margin: 0 4px;
    }

    .navbar-nav .nav-item {
        margin: auto;
    }
}

@media (max-width: 576px) {

    .decorative-banner-left,
    .decorative-banner-right {
        display: none;
    }

    .decorative-banner-center {
        width: 100px;
    }

    hr {
        display: none;
    }

    .text-reset {
        margin-left: auto;
    }

    .navbar-toggler {
        line-height: 0;
    }

    .navbar-toggler span {
        font-size: 15px;
        padding: 0;
    }
}

@media (max-width: 430px) {

    .decorative-banner-left,
    .decorative-banner-right {
        display: block;
    }

    .nav-item a {
        font-size: 18px;
    }
}

@media (max-width: 414px) {

    .decorative-banner-left,
    .decorative-banner-right {
        display: block;
    }

    .nav-item a {
        font-size: 18px;
    }
}

.dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 4px 0;
    min-width: 150px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    /* font-family: 'Roboto', sans-serif; */
    font-size: 14px;
    color: #333333;
    transition: background-color 0.3s ease;
}



.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #E0E0E0;
    margin-right: 6px;
}

.dropdown-toggle::after {
    color: #1B6BA8;
}

body.navbar-colored .dropdown-toggle::after {
    color: #ffffff
}

.dropdown-item:hover {
    background-color: #E6F0FA;
}

.dropdown-item:focus {
    outline: 2px solid #007BFF;
    outline-offset: 1px;
}

.text-reset {
    border: 1px solid #1B6BA8;
    border-radius: 15px;
    padding: 0 9px 0 2px;
    width: 90px;
}

body.navbar-colored .text-reset {
    border: 1px solid #ffffff;
    border-radius: 15px;
    padding: 0 9px 0 2px;
    width: 90px;
}

.text-reset a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

/* Ensure the language dropdown is visible and properly positioned */
.language {
    display: flex !important;
    align-items: center;
}

/* Custom CSS for iPad Mini, iPad Air, and iPad Pro */
@media only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) {
    .navbar {
        flex-wrap: nowrap;
        padding: 0.5rem 1rem;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .navbar-brand img {
        height: 40px;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        margin: 0;
        flex-grow: 1;
        justify-content: center;
    }

    .nav-link {
        font-size: 14.5px;
        padding: 0.5rem 0.6rem;
    }

    .navbar-collapse {
        display: block !important;
        flex-grow: 0;
    }

    .language {
        margin-left: auto;
        margin-right: 10px;
        display: flex !important;
    }

    .text-reset {
        margin-left: 0;
    }

    .navbar-toggler {
        display: none !important;
    }

    .nav-item a {
        font-size: 13.81px;
    }

    /* .nav-item-en a{
                font-size: ;
            } */
}

/* Default behavior for other devices (mobile) */
@media (max-width: 767.98px) {

    .decorative-banner-left,
    .decorative-banner-right {
        display: block;
        margin-top: 75px
    }

    .navbar {
        flex-direction: row;
        align-items: center;
    }

    .language {
        margin-right: 10px;
        display: flex !important;
    }

    .navbar {
        background: linear-gradient(90deg, #1B6BA8, #1B6BA8, #1B6BA8) !important;
        /* !important ensures precedence */
    }

    .navbar-collapse {
        background: linear-gradient(90deg, #1B6BA8, #1B6BA8, #1B6BA8);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 10px 0;
    }

    /* Show scrolled logo by default on mobile */
    .nav-link::after {
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'><path d='M0 5 Q 5 0, 10 5 T 20 5 T 30 5 T 40 5 T 50 5 T 60 5' stroke='white' stroke-width='3' fill='none'/></svg>") repeat-x;
        background-size: 45px 10px;
    }

    .logo-default {
        display: none;
    }

    .logo-scrolled {
        display: inline;
    }

    .nav-link {
        color: #ffffff !important;
    }

    .label-language small {
        color: #ffffff;
    }

    .text-reset {
        border: 1px solid #ffffff;
        border-radius: 15px;
        padding: 0 9px 0 2px;
        width: 90px;
    }

    .dropdown-toggle::after {
        color: #ffffff
    }

    .nav-link:hover::after {
        width: calc(100% - 2rem);
        /* Subtract the padding (1rem left + 1rem right) to match the text width */
        animation: wave 3s linear infinite;
        /* Apply the wave animation */
    }

    .nav-link.active::after {
        width: calc(100% - 2rem);
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }
}

/* Default behavior for larger screens (desktops) */
@media (min-width: 1367px) {
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
    }

    .nav-link {
        font-size: 16px;
        padding: 0.5rem 1rem;
    }

    .navbar-collapse {
        display: block !important;
    }

    .language {
        margin-left: auto;
        display: flex !important;
        /* Ensure the dropdown is visible on desktop */
    }
}

@media (max-width: 344px) {
    .container img {
        height: 40px;
        object-fit: cover;
        width: 40px;
    }
}