/* since nested groupes are not supported we have to use
       regular css for the nested dropdowns
    */
li > ul {
    transform: translatex(100%) scale(0);
}
/* for link up */
/* a>ul                 { transform: translatex(100%) scale(0) } */
li:hover > ul {
    transform: translatex(101%) scale(1);
}
/* for link up */
/* a:hover>ul           { transform: translatex(101%) scale(1) } */
li > button svg {
    transform: rotate(-90deg);
}
li:hover > button svg {
    transform: rotate(-270deg);
}

/* Below styles fake what can be achieved with the tailwind config
       you need to add the group-hover variant to scale and define your custom
       min width style.
         See https://codesandbox.io/s/tailwindcss-multilevel-dropdown-y91j7?file=/index.html
         for implementation with config file
    */
.group:hover .group-hover\:scale-100 {
    transform: scale(1);
}
.group:hover .group-hover\:-rotate-180 {
    transform: rotate(180deg);
}
.scale-0 {
    transform: scale(0);
}
.min-w-32 {
    min-width: 8rem;
}
.min-w-mega {
    min-width: 6rem;
}

/* for mega menu */

.mega-menu {
    display: none;
    left: 0;
    position: absolute;
    text-align: left;
    width: 100%;
}

/* #hoverable Class Styles
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
.hoverable {
    position: static;
}

.hoverable > a:after {
    content: "\25BC";
    font-size: 10px;
    padding-left: 6px;
    position: relative;
    top: -1px;
}

.hoverable:hover .mega-menu {
    display: block;
}

/* #toggle Class Styles
  –––––––––––––––––––––––––––––––––––––––––––––––––– */

.toggleable > label:after {
    content: "\25BC";
    font-size: 10px;
    padding-left: 6px;
    position: relative;
    top: -1px;
}

.toggle-input {
    display: none;
}
.toggle-input:not(checked) ~ .mega-menu {
    display: none;
}

.toggle-input:checked ~ .mega-menu {
    display: block;
}

.toggle-input:checked + label {
    color: white;
    background: #2c5282; /*@apply bg-blue-800 */
}

.toggle-input:checked ~ label:after {
    content: "\25B2";
    font-size: 10px;
    padding-left: 6px;
    position: relative;
    top: -1px;
}

.responsive-map {
    overflow: hidden;
    /* padding-bottom:20.25%; */
    position: relative;
    /* height:300px; */
}
.responsive-map iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* for viewing the pdf in a responsive way */
.embed-responsive {
    position: relative;
    display: block;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* for responsive pdf */

#Iframe-Master-CC-and-Rs {
    max-width: 100%;
    max-height: 500px;
    overflow: hidden;
}

/* inner wrapper: make responsive */
.responsive-wrapper {
    position: relative;
    height: 0; /* gets height from padding-bottom */

    /* put following styles (necessary for overflow and scrolling handling on mobile devices) inline in .responsive-wrapper around iframe because not stable in CSS:
    -webkit-overflow-scrolling: touch; overflow: auto; */
}

.responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;
    border: none;
}

/* padding-bottom = h/w as % -- sets aspect ratio */
/* YouTube video aspect ratio */
.responsive-wrapper-wxh-572x612 {
    padding-bottom: 107%;
}

/* general styles */
/* ============== */
.set-border {
    border: 5px inset #4f4f4f;
}
.set-box-shadow {
    -webkit-box-shadow: 4px 4px 14px #4f4f4f;
    -moz-box-shadow: 4px 4px 14px #4f4f4f;
    box-shadow: 4px 4px 14px #4f4f4f;
}
.set-padding {
    padding: 40px;
}
.set-margin {
    margin: 30px;
}
.center-block-horiz {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* for data table */

/* for table */

table {
    /* border-collapse: collapse; */
}

tr {
    border-bottom: 1px solid #d3d3d3;
}

/*for contact page*/

@media only screen and (min-width: 1080px) {
    .mediaAddress,
    .mediaPhone,
    .mediaEmail,
    .mediaFacebook {
        width: 38%;
    }
}

@media screen and (min-width: 908px) and (max-width: 1079px) {
    .mediaAddress,
    .mediaPhone,
    .mediaEmail,
    .mediaFacebook {
        width: 40%;
    }
}

@media screen and (min-width: 768px) and (max-width: 907px) {
    .mediaAddress,
    .mediaPhone,
    .mediaEmail,
    .mediaFacebook {
        width: 50%;
    }
}

@media only screen and (max-width: 767px) {
    .mediaAddress,
    .mediaPhone,
    .mediaEmail,
    .mediaFacebook {
        width: 100%;
    }
}

@media only screen and (min-width: 300px) {
    .mediaFBText,
    .mediaEmailText {
        width: 100%;
    }
}

/*latest news*/
/*mediaLatestNews*/

@media screen and (min-width: 1024px) and (max-width: 1210px) {
    .mediaLatestNews,
    .mediaNoticeDetails {
        width: 50%;
    }
}

@media screen and (min-width: 1211px) {
    .mediaLatestNews,
    .mediaNoticeDetails {
        width: 60%;
    }
}

@media screen and (max-width: 1023px) {
    .mediaLatestNews,
    .mediaNoticeDetails {
        width: 100%;
    }
}
@media screen and (min-width: 1024px) and (max-width: 1210px) {
    .mediaLatestNews,
    .mediateacherlist {
        width: 50%;
    }
}

@media screen and (min-width: 1211px) {
    .mediaLatestNews,
    .mediateacherlist {
        width: 100%;
    }
}

@media screen and (max-width: 1023px) {
    .mediaLatestNews,
    .mediateacherlist {
        width: 100%;
    }
}

/*for the journals*/

@media screen and (min-width: 1200px) {
    .mediaJournalList {
        width: 24rem;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1236px) {
    .mediaTotalJournals {
        column-gap: 1rem;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
    .mediaJournalList {
        width: 20rem;
    }
}

@media screen and (min-width: 1261px) {
    .mediaTotalJournals {
        column-gap: 4rem;
    }
}

@media screen and (min-width: 1199px) and (max-width: 1260px) {
    .mediaTotalJournals {
        column-gap: 3rem;
    }
}

@media screen and (min-width: 1168px) and (max-width: 1198px) {
    .mediaTotalJournals {
        column-gap: 6rem;
    }
}

@media screen and (min-width: 1132px) and (max-width: 1167px) {
    .mediaTotalJournals {
        column-gap: 5rem;
    }
}

@media screen and (min-width: 1070px) and (max-width: 1131px) {
    .mediaTotalJournals {
        column-gap: 3rem;
    }
}

@media screen and (min-width: 1043px) and (max-width: 1069px) {
    .mediaTotalJournals {
        column-gap: 2rem;
    }
}

@media screen and (min-width: 1023px) and (max-width: 1042px) {
    .mediaTotalJournals {
        column-gap: 1.5rem;
    }
}

@media screen and (max-width: 1022px) {
    .mediaTotalJournals {
        column-gap: 1rem;
    }
}

#more {
    display: none;
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px !important;
    }
    .toogle-location {
        right: 1rem;
        top: 1rem;
    }
}

/*find and facts media query*/

@media (min-width: 1230px) {
    .findFactsGrid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1229px) {
    .findFactsGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 280px) and (max-width: 767px) {
    .findFactsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*department & unit chief desc*/

@media (min-width: 1260px) {
    .deptUnitChiefDesc {
        height: 11rem;
    }
}

@media (min-width: 768px) and (max-width: 1259px) {
    .deptUnitChiefDesc {
        height: 16rem;
    }
}

@media (min-width: 280px) and (max-width: 767px) {
    .deptUnitChiefDesc {
        height: 13rem;
    }
}

/*for the left floating director photo*/

/*!* service *!*/
/** {*/
/*    box-sizing: border-box;*/
/*}*/
/*:root {*/
/*    --switches-bg-color: #6fc2f8;*/
/*    --switches-label-color: white;*/
/*    --switch-bg-color: white;*/
/*    --switch-text-color: #33aafa;*/
/*}*/

/*!* container for all of the switch elements*/
/*    - adjust "width" to fit the content accordingly*/
/**!*/
/*.switches-container {*/
/*    width: 5.5rem;*/
/*    position: relative;*/
/*    display: flex;*/
/*    padding: 0;*/
/*    position: relative;*/
/*    background: var(--switches-bg-color);*/
/*    line-height: 2rem;*/
/*    border-radius: 2rem;*/
/*    margin-left: auto;*/
/*    margin-right: 12px;*/
/*    font-weight: bold;*/
/*}*/

/*!* input (radio) for toggling. hidden - use labels for clicking on *!*/
/*.switches-container input {*/
/*    visibility: hidden;*/
/*    position: absolute;*/
/*    top: 0;*/
/*    font-weight: bold;*/
/*}*/

/*!* labels for the input (radio) boxes - something to click on *!*/
/*.switches-container label {*/
/*    width: 60%;*/
/*    padding: 0;*/
/*    margin: 0;*/
/*    text-align: center;*/
/*    cursor: pointer;*/
/*    color: var(--switches-label-color);*/
/*    font-weight: bold;*/
/*}*/

/*!* switch highlighters wrapper (sliding left / right)*/
/*    - need wrapper to enable the even margins around the highlight box*/
/**!*/
/*.switch-wrapper {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    width: 50%;*/
/*    padding: 0.15rem;*/
/*    z-index: 3;*/
/*    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);*/
/*    font-weight: bold;*/
/*    !* transition: transform 1s; *!*/
/*}*/

/*!* switch box highlighter *!*/
/*.switch {*/
/*    border-radius: 1rem;*/
/*    background: var(--switch-bg-color);*/
/*    height: 100%;*/
/*    font-weight: bold;*/
/*}*/

/*!* switch box labels*/
/*    - default setup*/
/*    - toggle afterwards based on radio:checked status*/
/**!*/
/*.switch div {*/
/*    width: 100%;*/
/*    text-align: center;*/
/*    opacity: 0;*/
/*    display: block;*/
/*    color: var(--switch-text-color);*/
/*    transition: opacity 0.2s cubic-bezier(0.77, 0, 0.175, 1) 0.125s;*/
/*    will-change: opacity;*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    font-weight: bold;*/

/*}*/

/*!* slide the switch box from right to left *!*/
/*.switches-container input:nth-of-type(1):checked ~ .switch-wrapper {*/
/*    transform: translateX(0%);*/
/*}*/

/*!* slide the switch box from left to right *!*/
/*.switches-container input:nth-of-type(2):checked ~ .switch-wrapper {*/
/*    transform: translateX(100%);*/
/*}*/

/*!* toggle the switch box labels - first checkbox:checked - show first switch div *!*/
/*.switches-container*/
/*input:nth-of-type(1):checked*/
/*~ .switch-wrapper*/
/*.switch*/
/*div:nth-of-type(1) {*/
/*    opacity: 1;*/
/*}*/

/*!* toggle the switch box labels - second checkbox:checked - show second switch div *!*/
/*.switches-container*/
/*input:nth-of-type(2):checked*/
/*~ .switch-wrapper*/
/*.switch*/
/*div:nth-of-type(2) {*/
/*    opacity: 1;*/
/*}*/

/** BEGIN CSS NEEDED FOR SWITCH **/
.on-off-toggle {
    width: 66px;
    height: 34px;
    position: relative;
    display: inline-block;
}

.on-off-toggle__slider {
    width: 76px;
    height: 34px;
    display: block;
    border-radius: 40px;
    background-color: #d8d8d8;
    transition: background-color 0.4s;
    cursor: pointer;
}

.on-off-toggle__slider:before {
    content: "";
    display: block;
    background-color: #fff;
    box-shadow: 0 0 0 1px #949494;
    bottom: 5px;
    height: 24px;
    left: 7px;
    position: absolute;
    transition: 0.4s;
    width: 28px;
    z-index: 5;
    border-radius: 100%;
}

.on-off-toggle__slider:after {
    display: block;
    line-height: 36px;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: bold;
    content: "BN";
    color: #484848;
    padding-left: 40px;
    transition: all 0.4s;
}

.on-off-toggle__input {
    /*
        This way of hiding the default input is better
        for accessibility than using display: none;
    */

    /* display: none; */
    position: absolute;
    opacity: 0;
}

.on-off-toggle__input:checked + .on-off-toggle__slider {
    background-color: #6fc2f8;
}

.on-off-toggle__input:checked + .on-off-toggle__slider:before {
    transform: translateX(34px);
}

.on-off-toggle__input:checked + .on-off-toggle__slider:after {
    content: "EN";
    color: #ffffff;
    padding-left: 10px;
    font-weight: bold;
    font-size: 15px;
}

/*** END CSS NEEDED FOR SWITCH **/
