@import url('https://fonts.googleapis.com/css2?family=Moul&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
/*@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Khmer:wght@100..900&display=swap');*/

body {
    background-color: #f0f4f8;
    color: #333;
}

.moul-khmer1{
    font-family: "Moul", serif;
    font-weight: 400;
    font-style: normal;
}
.serif-khmer{
    font-style: normal;
    font-family: "Noto Serif Khmer", serif;
}
.content {
    display: -webkit-box;
    /*-webkit-line-clamp: 3; !* Number of lines you want to show *!*/
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.content img{
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Navbar Styling */
.navbar-custom-bg {
    /*background-color: #1e3a8a !important; !* Dark blue *!*/
    background-color: #e9ecef !important;
}

.navbar-custom-bg-menu {
    /*background-color: #e9ecef !important; !* Dark blue *!*/
    /*color: #1e3a8a !important;*/
    background-color: #1e3a8a !important; /* Dark blue */
    color: #e9ecef !important;
}

.active-menu{
    background-color: #1e3a8a !important; /* Dark blue */
    color: #e9ecef !important;
}

.title-navbar-custom{
    /*color: #1e3a8a  !important;*/
    margin-top: 15px;
    color: #e9ecef !important;
    font-family: "Noto Serif Khmer", serif;

}

.title-navbar-custom2{
    color: #1e3a8a !important;
    font-family: "Noto Serif Khmer", serif;
}
/* Dropdown background and text color */
.dropdown-menu {
    background-color: #1e3a8a !important; /* Dark blue */
    color: #e9ecef !important;
}

/* Hover effect on dropdown items */
.dropdown-item:hover .title-navbar-custom {
    color: #1e3a8a !important;
}

/* Additional hover effect on the text within dropdown items */
.dropdown-item .title-navbar-custom:hover {
    color: #1e3a8a !important;
}


/*.dropdown-menu2{*/
/*    background-color: #e9ecef !important; !* Dark blue *!*/
/*    color: #1e3a8a !important;*/
/*}*/

/*.dropdown-menu*/

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

.navbar .nav-link:hover {
    color: #d0e7ff !important; /* Light blue on hover */
}

.navbar-brand img {
    max-height: 80px;
}

/* Carousel Styling */
.carousel-item {
    height: 50vh;
    min-height: 300px;
    background: #1e3a8a; /* Dark blue background */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; /* Positioning required for absolute elements inside */
}

.overlay {
    position: absolute;
    bottom: 0; /* Position at the bottom */
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.7); /* Semi-transparent dark blue */
    color: white; /* Caption text color */
    padding: 1rem; /* Padding around text */
    text-align: center; /* Centered text */
}
.carousel-item img {
    object-fit: cover;
    height: 100%; /* Full height for larger screens */
}

/* Styling for the caption overlay */
.carousel-caption .overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Transparent dark overlay */
    padding: 1em;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .overlay {
        padding: 0.5rem; /* Reduce padding for smaller screens */
    }
}

/* Footer Styling */
.footer {
    background-color: #1e3a8a; /* Dark blue */
    color: white;
}

.footer a {
    text-decoration: none;
    color: #a5d7ff; /* Light blue links */
}

.footer a:hover {
    color: #d0e7ff;
    text-decoration: underline;
}

.footer h5 {
    color: #ffffff;
}

.footer address {
    font-style: normal;
}

/* Social Media Icons */
.facebook-icon {
    color: #3b5998;
}
.twitter-icon {
    color: #1da1f2;
}
.linkedin-icon {
    color: #0077b5;
}
.instagram-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.youtube-icon {
    color: #ff0000;
}
.tiktok-icon {
    color: #69c9ef;
}

/* Hover Effects */
a:hover .facebook-icon { color: #2d4373; }
a:hover .twitter-icon { color: #1a8cd8; }
a:hover .linkedin-icon { color: #005582; }
a:hover .instagram-icon { opacity: 0.8; }
a:hover .youtube-icon { color: #e60000; }
a:hover .tiktok-icon { color: #57a5f0; }

/* Additional Custom Styles */
.carousel-caption {
    bottom: 20px;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1rem;
}


.border-header{
    border-bottom: 1px solid rgba(30, 58, 138, 0.79);
}

.border-footer{
    border-top: 1px solid #adb5bd;
}
#cardRow::-webkit-scrollbar {
    display: none;
}

#cardRow {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.overflow-auto {
    overflow-x: hidden;
    position: relative;
}

.row.flex-nowrap {
    display: flex;
    transition: transform 0.5s ease;
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#scrollContainer {
    overflow: hidden;
    position: relative;
}

#scrollContainer .overflow-auto {
    overflow-x: auto;
    overflow-y: hidden;
}

#scrollContainer::-webkit-scrollbar {
    display: none;
}

#scrollContainer {
    scrollbar-width: none;
}

.btn-news{
    display: inline-block;
    padding: 8px 10px;
    background-color: #ffffff;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
}

.line-down{
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.card-1{
    background: #fff;
    height: 250px;
    width: 100%;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.card-img-1 {
    width: 25%;
    overflow: hidden;
}

.card-img-1 img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.card-info-1{
    width: 75%;
    padding: 10px;
}

.title-item{
    font-size: 18px;
}

.title-item a, .c-title{
    text-decoration: none;
    list-style: none;
    color: black;
    cursor: pointer;
}

.title-item a:hover, .c-title:hover{
    color: #1e3a8a;
}

.card-notices{
    border: 1px solid #ffffff;
    /*display: flex;*/
    /*justify-content: space-between;*/
    /*align-items: center;*/
}
.notification-card {
    background: #fff;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.notification-icon {
    padding: 10px;
    width: 30%;
    height: 70px;
    background: rgba(11, 64, 171, 0.65);
    border-radius: 3px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Center align text */
}

.date-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.notification-text {
    width: 70%;
    padding-left: 10px;
}

.notification-link {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.notification-link:hover {
    text-decoration: none;
    color: #08307B;
}

.map-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.coming-soon-container {
    text-align: center;
    padding: 2rem;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coming-soon-title {
    font-size: 2.5rem;
    font-weight: bold;
}

.social-icons a {
    color: rgba(0, 0, 0, 0.94);
    margin: 0 10px;
    font-size: 1.2rem;
    text-decoration: none;
}
.social-icons a:hover {
    color: #ffd700;
}

.social-mobile-icons{
    display: none;
}

.social-mobile-icons a {
    color: rgba(0, 0, 0, 0.94);
    margin: 0 10px;
    font-size: 1.2rem;
    text-decoration: none;
}
.social-mobile-icons a:hover {
    color: #ffd700;
}


.title-social{
    color: rgba(0, 0, 0, 0.94);
    font-size: 18px;
}

.title-social:hover{
    color: #08307B;
}

.menu-mobile{
    display: none;
}

#scrollTopButton {
    position: fixed;
    bottom: 70px;
    right: 20px;
    display: none;
    z-index: 1000;
    background-color: #0b40ab;
    color: white;
    border-radius: 50%;
    /*padding: 10px 15px;*/
    font-size: 20px;
    height: 45px;
    width: 45px;
    border: none;
}
#scrollTopButton:hover {
    background-color: #1e3a8a;
}

.menu-container {
    background-color: #f4f9fb;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    font-family: "Noto Serif Khmer", serif;
}

.menu-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.menu-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.menu-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    color: #333;
    cursor: pointer;
}

.menu-item i {
    margin-right: 8px;
    color: #666;
}
.menu-link:hover, .menu-item:hover .menu-link {
    color: #3366cc;
    font-weight: bold;
}

.menu-item.active .menu-link {
    color: #3366cc;
    font-weight: bold;
}

.menu-item span {
    color: #333;
}

.menu-item.active span {
    color: #3366cc;
    font-weight: bold;
}

.menu-item:hover span {
    color: #3366cc;
    font-weight: bold;
}

.content-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-family: 'Khmer OS', sans-serif;
    color: #333;
}

.image-container {
    width: 40%;
    /*flex: 1;*/
    /*margin-right: 20px;*/
}

.image-container img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    border-radius: 8px;
}

.text-container {
    width: 60%;
    flex: none;
    padding: 0 35px 0 20px;
    text-align: justify;
    line-height: 1.6;
}

.footer-container{
    width: 100%;
    flex: none;

    text-align: justify;
    line-height: 1.6;
}

.text-container p {
    flex: none;
    margin: 0 0 10px;
}

#supportButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: white;
    color: #0b40ab;
    border-radius: 50%;
    font-size: 20px;
    height: 45px;
    width: 45px;
    border: none;
}
#supportButton:hover {
    background-color: rgba(255, 255, 255, 0.54);
}

#chatContainer {
    font-family: "Poppins", sans-serif;
    position: fixed;
    bottom: 20px;
    right: 80px;
    width: 400px;
    max-width: 90%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


#chatHeader {
    background-color: #0b40ab;
    color: #fff;
    padding: 15px 15px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Chat messages area */
#chatMessages {
    padding: 10px;
    height: 400px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd; /* Optional: Add bottom border for separation */
}

/* Chat input */
#chatInputContainer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #f1f1f1;
}

#chatInput {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease; /* Smooth border color transition */
}

#chatInput:focus {
    border-color: #007bff;
}

#sendButton {
    background-color: #0b40ab;
    color: #fff;
    border: none;
    padding: 8px 10px;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#sendButton:hover {
    background-color: #0056b3;
}

.btn-close1{
    cursor: pointer;
}

.btn-close1:hover {
    color: #f1f1f1;
}

.chatbox {
    overflow-y: auto;
    height: 510px;
    padding: 30px 20px 100px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
    width: 6px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 25px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 25px;
}

.chatbox .chat {
    display: flex;
    list-style: none;
}

.chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
}

.chatbox .incoming span {
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    background: #0b40ab;
    border-radius: 4px;
    margin: 0 10px 7px 0;
}
.chatbox .incoming span i{
    margin: 0;
    padding: 0;
}

.chatbox .chat p {
    white-space: pre-wrap;
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    max-width: 75%;
    color: #fff;
    font-size: 0.95rem;
    background: #0b40ab;
}

.chatbox .incoming p {
    border-radius: 10px 10px 10px 0;
}

.chatbox .chat p.error {
    color: #721c24;
    background: #f8d7da;
}

.chatbox .incoming p {
    color: #000;
    background: #f2f2f2;
}

@media (max-width: 490px) {
    .content-container {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .image-container {
        width: 100%;
    }

    .text-container {
        width: 100%;
        padding: 0;
    }


    #chatContainer {
        width: 350px;
    }

    #chatMessages {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .card-1 {
        height: 200px;
    }
    .card-img-1 {
        width: 45%;
        overflow: hidden;
    }

    .card-info-1{
        width: 65%;
        padding: 10px;
    }

    .title-item{
        font-size: 16px;
    }

    .container-search{
        width: 100%;
    }

    .social-icons{
        display: none;
    }

    .menu-mobile{
        display: block;
    }

    .menu-mobile, .social-mobile-icons{
        display: block;
    }

    .navbar-custom-bg-menu{
        display: none;
    }

    .menu, .social-mobile-icons{
        display: block;
    }

    .carousel-caption.d-none.d-md-block {
        display: block !important; /* Ensure the caption is shown on small screens */
    }
    .carousel-caption .overlay h5 {
        font-size: 1rem;
    }
    .carousel-caption .overlay p {
        font-size: 0.8rem;
    }

    .carousel-item{
        height: 25vh;
    }

    .content-container {
        /*display: flex;*/
        /*width: 100%;*/
        /*flex-direction: column;*/
    }

    .image-container {
        width: 100%;
    }

    .text-container {
        width: 100%;
        text-align: justify;
        line-height: 1.6;
    }

    #chatContainer {
        width: 370px;
    }

    #chatMessages {
        height: 400px;
    }
}

@media only screen and (min-width: 600px) {
    .card-1 {
        height: 200px;
    }
    .card-img-1 {
        width: 45%;
        overflow: hidden;
    }

    .card-info-1{
        width: 65%;
        padding: 10px;
    }

    .title-item{
        font-size: 16px;
    }

    .container-search{
        width: 100%;
    }

    .menu-mobile, .social-mobile-icons{
        display: block;
    }

    .menu-mobile{
        display: block;
    }

    .navbar-custom-bg-menu{
        display: none;
    }
    .carousel-item{
        height: 25vh;
    }
    .content-container {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .image-container {
        width: 100%;
    }

    .text-container {
        width: 100%;
        padding: 0;
    }
}

@media only screen and (min-width: 768px) {
    .card-1 {
        height: 230px;
    }
    .card-img-1 {
        width: 45%;
        overflow: hidden;
    }

    .card-info-1{
        width: 65%;
        padding: 10px;
    }

    .title-item{
        font-size: 18px;
    }

    .container-search{
        width: 50%;
    }

    .menu-mobile, .social-mobile-icons{
        display: block;
    }

    .navbar-custom-bg-menu {
        display: none;
    }

    .social-mobile-icons{
        display: block;
    }

    .social-icons {
        display: none;
    }

    .carousel-caption .overlay h5 {
        font-size: 1.2rem;
    }
    .carousel-caption .overlay p {
        font-size: 0.9rem;
    }
    .carousel-item{
        height: 30vh;
    }


}

@media only screen and (min-width: 992px) {

    .menu-mobile{
        display: none;
    }
    .container-search{
        width: 50%;
    }
    .menu{
        display: none;
    }

    .navbar-custom-bg-menu{
        display: block;
    }

    .social-icons {
        display: block;
    }
    .social-mobile-icons{
        display: none;
    }

    .container-search{
        width: 70%;
    }

    .carousel-item{
        height: 40vh;
    }

    .content-container {
        display: flex;
        width: 100%;
        flex-direction: row;
    }

    .image-container {
        width: 40%;
    }

    .text-container {
        width: 60%;
        padding: 0 10px 0 20px;
    }
}

@media only screen and (min-width: 1200px) {
    .menu-mobile{
        display: none;
    }

    .navbar-custom-bg-menu{
        display: block;
    }

    .menu, .social-mobile-icons{
        display: none;
    }

    .social-mobile-icons{
        display: none;
    }

    .social-icons {
        display: block;
    }

    .container-search{
        width: 70%;
    }

    .carousel-item{
        height: 50vh;
    }

    .content-container {
        display: flex;
        width: 100%;
        flex-direction: row;
    }

    .image-container {
        width: 40%;
    }

    .text-container {
        width: 60%;
        padding: 0 10px 0 20px;
    }
}


