


@import url('https://fonts.googleapis.com/css2?family=Hanuman:wght@100;300;400;700;900&family=Moul&family=Moulpali&family=Noto+Sans+Khmer:wght@100..900&display=swap');


*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --main-font-logo: "Moulpali", sans-serif;
    --main-font-menu: "Moul", sans-serif;
    --main-font-text: "Hanuman", serif;
    --main-font-title: "Moul", sans-serif;
    --header-background: #94a73c;
    --navbar-background: #7c8b39;
    /* --navbar-background: #e5ff72; */
}

/* header */
.header {
    background-color: var(--header-background);
    /* background-image: url('../images/banner_parterm.png'); */
    background-repeat: repeat;
    background-size: 3px 3px;
    width: 100%;
    height: 150px;
    padding: 10px 0;
    align-content: center;
}


.logo img {
    width: 100px;
    height: auto;
}

.brand-name h1 {
    font-family: var(--main-font-title);
    font-weight: 400;
    font-style: normal;
    color: #d15723;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

.brand-name p{
    letter-spacing:3px;
    font-weight: bold;
    font-size: 0.7rem;
    color: #4f4f4f;
}

/* navbar version 2 */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
}

.my-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #7c8b39;
    z-index: 1000;
    /* Ensure the header is above other content */
}
.nav-bar{
    background-color:var(--navbar-background);
    padding-top: 10px;
    padding-bottom: 10px;
}
.my-nav__logo,
.my-nav__burger,
.my-nav__close {
    color: white;
}

.my-nav__data {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-nav__logo {
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
}

.my-nav__logo i {
    font-weight: initial;
    font-size: 1.25rem;
}

.my-nav__toggle {
    position: relative;
    width: 32px;
    height: 32px;
}

.my-nav__burger,
.my-nav__close {
    position: absolute;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
}

.my-nav__close {
    opacity: 0;
}

@media screen and (max-width: 1118px) {

    .my-nav__menu {
        position: fixed;
        left: -100%;
        top: 1.5%;
        width: 80%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        transition: left .4s;
        overflow: auto;
        margin-top: 4.3rem;
        z-index: 999;
    }

    .my-nav__list {
        background-color:#7c8b39;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .logo-for-mobile p{
        margin-top: 10px;
        font-family: "Moul", sans-serif;
        text-shadow: 0.5px 1px #cacaca;
    }

    .header{
        display: none;
    }

    .my-nav__list a{
        font-size: 1.3rem;
        font-family: var(--main-font-text);
    }

    .my-dropdown__items{
        font-size: 1.3rem;
        font-family: var(--main-font-text);
    }
    .logo-for-mobile{
        display: flex;
        justify-content: space-between;
        display: block;
    }
    .my-dropdown__menu li a{
       color: white;
       font-size: 1.3rem;
    }



}
.logo-for-mobile{
    display: flex;
}
.my-nav__link {
    color:#fff;;
    padding: .5rem;
    display: flex;
    text-shadow: 0 1px 0 rgba(178, 90, 77, 0.6);
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s;
}



.show-menu {
    left: 0;
}

.show-icon .my-nav__burger {
    opacity: 0;
    transform: rotate(90deg);
}

.show-icon .my-nav__close {
    opacity: 1;
    transform: rotate(90deg);
}

/* ------------------ dropdown-------------------- */
.my-dropdown__items {
    cursor: pointer;
}

.my-dropdown__arrow {
    font-size: 1.25rem;
    font-weight: initial;
    transition: transform .4s;
}

.my-dropdown__link {
    color: rgb(0, 0, 0);
    display: flex;
    align-items: center;
    column-gap: .5rem;
    justify-content: start;
    transition: background-color .3s;
    text-align: left;
    padding: 10px;

}


.my-dropdown__link i {
    font-size: 1.25rem;
    font-weight: initial;
}

.my-dropdown__link:hover {
    background-color: rgb(235, 232, 232);

}

.my-dropdown__menu {
    justify-content: start;
    max-height: 0;
    overflow: hidden;
    z-index: 1000000;
    transition: max-height .4s ease-out;

}
.my-dropdown__items:hover .my-dropdown__menu {
    max-height: 1000px;
    transition: max-height .4s ease-in;
}

.rotate {
    transform: rotate(180deg);
}

/* for small devices */
@media screen and (max-width: 340px) {
    .my-container {
      margin-inline: 1rem;
    }

    .my-nav__link {
      padding-inline: 1rem;
    }

    .my-dropdown__menu {
      justify-content: start;
      max-height: 0;
      background-color: rgb(255, 255, 255);
      overflow: hidden;
      transition: max-height .4s ease-out;
      width: 100%;
      overflow-y: auto; /* Add this line for scrolling */
    }

  }

/* for large devices */
@media screen and (min-width: 1118px) {
    .logo-for-mobile{
        display: none;
    }
    .my-container {
        margin-inline: auto;
    }

    .my-dropdown__menu {
        position: absolute;
        justify-content: start;
        max-height: 0;
        margin-top: 10px;
        background-color: rgb(255, 255, 255);
        overflow: hidden;
        border-left:  1px solid rgb(225, 225, 225);
        border-right:  1px solid rgb(225, 225, 225);
        transition: max-height .4s ease-out;
        width: 250px;
        border-radius: 5px;
    }

    .my-nav {
        height: 2rem;
        display: flex;
        justify-content: start;
    }

    .my-nav__toggle {
        display: none;
    }

    .my-nav__list {
        padding: 0;
        height: 100%;
        display: flex;
        column-gap: 1.5rem;
    }

    .my-nav__link {
        height: 100%;
        padding: 0;
        justify-content: initial;
    }

    /* show dropdown menu */
    .my-dropdown__items:hover .my-dropdown__menu {
        max-height: 1000px;
        transition: max-height .4s ease-in;
    }
    .my-nav__list a{
        font-size: 0.9rem;
        font-family: "Moul", sans-serif;
    }

    .my-dropdown__items{
        font-size: 0.9rem;
        font-family: "Moul", sans-serif;
    }
    .my-dropdown__menu li a{
        font-size: 1rem;
        font-family: var(--main-font-text);
    }
}

/* -----------------------------------------------importance news */
.content-title h2{
    font-family: var(--main-font-title);
    display: inline-block;
    font-size: 18px;
    line-height: 32px;
    text-transform: uppercase;
    color: #a83526;
    margin-bottom: -2.5px;
    border-bottom: 3px solid #a83526;

}
.card-title-message{
    text-align: center;
}
.card-title-message h5{
    color: red;
    font-family: var(--main-font-title);
    font-weight: bold;
}
.card-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.content-title{
    font-weight: bold;
    border-bottom: 2px solid #7c8b39;
    margin: 40px 0 30px;
}
.content-title h5{
    color: #ffffff;
    font-family: var(--main-font-title);
    font-size: 1rem;
}
.importain-news-block-content{
    display: flex;
    gap: .2rem;
}
.importain-news-block-left{
    height: auto;
    width: 100%;
    background-color: black;
}
.importain-news-block-left-image{
    position: relative;
}
.description-importain-news-block{
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    background-color: black;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    font-family: var(--main-font-text);
    box-shadow: 3px 3px 9px rgba(0, 0, 0, 0.5);

}
.importain-news-block-left-image img{
    width: 100%;
    height: 430px;
    object-fit: cover;
}
.importaince-news-block-right{
    height: 430px;
    width: 100%;

}
.description-importain-news-block-right{
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    background-color: black;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    font-family: var(--main-font-text);
    box-shadow: 3px 3px 9px rgba(0, 0, 0, 0.5);

}
.importaince-news-block-right-content{
    width: 100%;
    overflow: hidden;
    height: auto;
}
.importain-news-block-right-image img{
    width: 100%;
    height: 250px;
}
.importain-news-block-right-image{
    position: relative;
}

.importaince-news-block-items{
    display: flex;
    gap: .2rem;
    margin-top: .2rem;

}
.importaince-news-block-items-left{
    width: 50%;
    height: auto;
    background-color: #8e9b50;
    overflow: hidden;

}
.importain-news-block-items-left-image img{
    width: 100%;
    height: 177px;


}
.importain-news-block-items-left-image{
    position: relative;
}
.description-importaince-news-block-item-left{
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    background-color: black;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    font-family: var(--main-font-text);
    box-shadow: 3px 3px 9px rgba(0, 0, 0, 0.5);
}
.importaince-news-block-items-right{
    width: 50%;
    overflow: hidden;
    height: auto;

}
.importain-news-block-items-right-image img{
    width: 100%;
    height: 177px;
}
.importain-news-block-items-right-image{
    position: relative;
}



/* ---------------------------------------------------content beaking new */

.breaking-news-content{
    width: 100%;
    height: auto;
    margin-bottom: 100px;

}
.breaking-news-image {
    background-color: blue;
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    position: relative;
}

.breaking-news-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.breaking-new-description p{
    font-size: 1.1rem;
    font-family: var(--main-font-text);
}
.breaking-new-sub-image{
    width: 200px;
    height: 140px;
    overflow: hidden;
    flex: 0 0 auto;
    position: relative;
}

.breaking-new-sub-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;

}
.breaking-new-sub-description p{
    font-family: var(--main-font-text);
}
/* ------------------------------------------------------------------annountment */
.click_view{
    font-family: var(--main-font-text);
    font-size: 0.7rem;
}
.announcement-content{
    width: 100%;
    height: auto;
}
.announcement-item {

    /* background-color: red; */
    display: flex;
    align-items: center;
}

.announcement-file {
    flex: 0 0 auto;
    margin-right: 10px;
}

.announcement-file img {
    max-height: 120px;
    width: auto;
}

.announcement-description {
    flex: 1;
}

.announcement-decription p {
    margin: 0;
    font-family: var(--main-font-text);
    font-size: 1rem;
}



/* ------------------------------------------------------------------------gallary and vdo */
.video-content,
.gallery-content {
    width: 100%;
    height: auto;
}
.image-title{

    font-family: var(--main-font-text);

}
.title-video{
    font-family: var(--main-font-text);

}
.gallery-block {
    position: relative;
    width: 100%;
    height: auto;

}
.gallery-block img{
    width: 100%;
    height: 250px;

}
.description-gallery-block {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: rgba(168, 53, 38, 0.7);
    border: none;
    font-family: var(--main-font-text);
}

.description-gallery-block p {
    margin: 0;
    text-align: center;
}


/* .gallery-item img {

    height: auto;
    width: 100%;
    object-fit: cover;
} */

.gallery-item iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}


/* ------------------------------------------institution and collabration */

.institution-content{
    width: 100%;
    height: auto;
    background-color: rgb(255, 255, 255);
}
.collabration-content{
    width: 100%;
    height: auto;
    background-color: rgb(255, 255, 255);
}
.institution-name p{
    font-family: var(--main-font-text);
}


/* footer  */

.footer-content{
    background-color:#7c8b39;
    width: 100%;
    height: auto;
    padding-bottom: 30px ;
    align-content: center;
}
.menu-navbar li a{
    font-family: var(--main-font-text);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}
.menu-navbar-address {
    font-family: var(--main-font-text);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}
.menu-navbar-address li{
    list-style-type: none;
}
.menu-navbar li{
    list-style-type: none;
    margin-top: 10px;
}
.menu-navbar li a:hover{
    color: red;
    transition: 0.5s;
}
/* copyright */

.copyright{
    margin-top: 150px;
    font-family: var(--main-font-text);
    color: white;
    text-decoration: none;
    font-size: 1rem;
}


.imageI{
    width: 100%;
    height: 115px;
    background-repeat: no-repeat;
    background-size: 731px 115px;
    background: url('../images/backgroundfooter.png') 0 0  repeat-x;
    height: 115px;
    margin-top: 30px;
}

/* institution */
.logo-institution img{
    width: 100px;
    height: auto;
}





/* ----------------------------------------------page news-------------------------------------------- */
.content-news-block-image {
    width: 100%;
    height: 180px;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;

}
.content-news-block-description p{
    font-family: var(--main-font-text);
}
.content-news-block-description h5{
    font-size: 1.1rem;
    font-family: var(--main-font-text);
}
.content-news-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-news-announcement-image{
    width: 100px;
    height: auto;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}
.page-news-announcement-image img{
    width: 100%;
    height: 100px;


}
.page-news-announcement-description p{
    font-size: 1rem;
    margin-left: 15px;
    text-align: justify;
    font-family: var(--main-font-text);
}
.page-news-announcement-description {
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px;
    height: 130px;
}
/* ---------------------------------------------------- page announcement---------------------------------- */

.content-news-block-image-annoucement{

    flex: 0 0 auto;
    position: relative;

}
.content-news-block-image-annoucement img{
    width: 100px;
    height: auto;

}
/* --------------------------------------------------page news detail------------------------------------ */

.block-news-detail h1{

    font-family: var(--main-font-text);
    font-size: 1.5rem;
}
.block-news-detail h5{

    font-family: var(--main-font-title);
    font-size: 1.5rem;
}
.datePost{
    font-family: var(--main-font-text);
}
.description-block-news-detail p{
    font-family: var(--main-font-text);
}
.description-block-news-detail img{
    width: 100%;
}
/* --------------------------------------------------manager page--------------------------------------- */
.card-body h5 {
    font-family: var(--main-font-text);
}
.card-body p{
    font-family: var(--main-font-text);
}
.manager-title h5{
    font-family: var(--main-font-text);
}
.card-img-fixed {
    height: 300px;
    object-fit: cover;
}



/* --------------------------------------------- manager detail------------------------------------------------ */
.image-show-page-block{
    width: 20rem;
    height: auto;
    background-color: black;
}
.image-show-page-block img{
    height: auto;
    width: 100%;
    object-fit: cover;
}

.information-show-page-block h1{
    font-family: var(--main-font-text);
    font-size: 2rem;
}
.information-show-page-block ul li{
    font-family: var(--main-font-text);
    margin: 1rem;
}
.information-show-page-block p{
    font-family: var(--main-font-text);
}
.description-show-page-block h1{
    font-family: var(--main-font-menu);
    font-size: 1rem;
    font-weight: bold;
    color: #252525;
}




/* ---------------------------------institution page------------------------- */
.logo-institution-page-block{
    width: 90px;
    height: auto;
    overflow: hidden;
    flex: 0 0 auto;
    position: relative;
}
/* ---------------------------------institution page------------------------- */
.logo-institution-page-block img{

    width: 100%;
    height: 90px;
}
.name-insitution-page-block h5{
    font-size: 1rem;
    font-family: var(--main-font-text);
}

/* --------------------------------------contact page---------------------------------------- */
.contact-page-content{
    padding: 30px;
    background-image: url('../images/background_contact.jpg');
    background-repeat: repeat;
    background-color: #ffeedc;
    background-size: 3px 3px;
}
.decription-contact p{
    font-family: var(--main-font-text);
}
.location-icon-description{
    flex: auto 0;
}
/* ---------------------------------------------------------------------research--------------------------- */
.btnText button{
    font-family: var(--main-font-text);
}

.file-research-page-block{
    width: 100px;
    height: 150px;
    overflow: hidden;
    border: 1px solid #a83526;
    margin-bottom: 5px;

}
.research-page-item{
    display: flex;
    gap: 1.2rem;
}
.description-research-page-block{
    flex: 1rem;
}
.description-research-page-block p{
    color: #333;
    font-size: 1rem;
    font-family: var(--main-font-text);
}

.training-content-item{
    width: 100%;
    height: 500px;
    padding-bottom: 5px;
}

.traning-content-image img{
    width: 100%;
    height:auto;
    object-fit: cover;
}
.trainingDetail-block-content h5{
    font-family: var(--main-font-text);
    font-weight: bold;
    font-size: 1.3rem;
}
.traning-content-description p{
    font-family:var(--main-font-text);
}

/* -----------------------------------vdo page---------------------------------------- */
.vdeo-description{
    font-family: var(--main-font-text);
}
/* ---------------------------------------picture page--------------------------------------- */


/* page message---------------------------------------------------------------------------------- */
.page-message-block{
    width: 100%;
    height: auto;
    /* background-color: red */
}


.page-message-block a{
    text-decoration: none;
}
.message-block-announcement{
    width: 100%;
     height: 500px;
     /* background-color: rgb(0, 255, 55) */
}
.page-message-content-image{
    width: 100%;
    height: 170px;
    overflow: hidden;
    background-color: black;
}
.page-message-content-image img{
    width: 100%;
    height: 170px;
    object-fit:cover;
}
.page-message-content-description{
    width: 100%;
    height: 170px;
    /* background-color: rgb(0, 153, 255); */
}
.page-message-content-description p{
    font-family: var(--main-font-text);
    overflow: hidden;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.message-announcement-title p{
    font-family: var(--main-font-text);
    overflow: hidden;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.message-announcement-content {
    display: flex;
}

.message-announcement-file {
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
}

.message-announcement-text {
    flex: 1;
    padding: 10px;
}

.message-announcement-title {
    /* Your existing styles for the title */
}

.date-time{
    font-family: var(--main-font-text);
}/*
.page-message-image-block {
    width: 100%;
    overflow: hidden;
    height: 100%;
}
.page-message-image-block img{
    width:100%;
    height: 160px;
}
.page-message-title p{
    font-family: var(--main-font-text);
} */
/* responsive size */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .importain-news-block-content{
        flex-direction: column;
        width: 100%;
    }
    .nav-bar{
        top: -2%;
        padding-top: 30px;
        padding-bottom: 20px;
        position: fixed;
        width: 100%;
    }
    .content-slide{
        display: none;
    }
    .importain-news {
        margin-top: 100px !important;
    }
    .vido-content-page{
        margin-top: 100px !important;

    }
    .picture-page{
        margin-top: 100px !important;
    }
    .letter-page{
        margin-top: 100px !important;
    }
    .e_libary-page{
        margin-top: 100px !important;
    }
    .research-page{
        margin-top: 100px !important;
    }
    .print-page{
        margin-top: 100px !important;
    }
    .training-page{
        margin-top: 100px !important;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 768px) {
    .importain-news-block-content{
        flex-direction: column;
        width: 100%;
    }
     .nav-bar{
        top: -2%;
        padding-top: 30px;
        padding-bottom: 20px;
        position: fixed;
        width: 100%;
    }
    .content-slide{
        margin-top: 100px !important;
    }
    .importain-news {
        margin-top: 100px !important;
    }
    .vido-content-page{
        margin-top: 100px !important;

    }
    .picture-page{
        margin-top: 100px !important;
    }
    .letter-page{
        margin-top: 100px !important;
    }
    .e_libary-page{
        margin-top: 100px !important;
    }
    .research-page{
        margin-top: 100px !important;
    }
    .print-page{
        margin-top: 100px !important;
    }
    .training-page{
        margin-top: 100px !important;
    }
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {
    .importain-news-block-content{
        flex-direction: column;
        width: 100%;
    }
    .nav-bar{
        top: -2%;
        padding-top: 30px;
        padding-bottom: 20px;
        position: fixed;
        width: 100%;
    }
    .content-slide{
        margin-top: 100px !important;
    }
    .importain-news {
        margin-top: 100px !important;
    }
    .vido-content-page{
        margin-top: 100px !important;

    }
    .picture-page{
        margin-top: 100px !important;
    }
    .letter-page{
        margin-top: 100px !important;
    }
    .e_libary-page{
        margin-top: 100px !important;
    }
    .research-page{
        margin-top: 100px !important;
    }
    .print-page{
        margin-top: 100px !important;
    }
    .training-page{
        margin-top: 100px !important;
    }
}
