/*When hover nav icon name pop up*/
@media (min-width:1000px) {
    .nav_hide {
        position: absolute;
        margin-left: auto;
        margin-right: auto;
        bottom: -3em;
        left: 0;
        right: 0;
        text-align: center;
    }

    #navigation .nav_item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
    }
}

/*-----------------------------------------*/
@media (min-width: 553px) {
    .org_nep_slo {
        font-size: clamp(8pt, 1.5vw, 20pt);
        /*clamp(8pt, 1.5vw, 20pt)*/
    }

    .org_nep {
        font-size: clamp(15.5pt, 3.5vw, 60pt);
    }

    .org_eng {
        font-size: clamp(10.4pt, 2.3vw, 29.9pt);
    }

    .org_yak {
        font-size: clamp(15pt, 3.4vw, 45pt);
    }

    .org_nep_add {
        font-size: clamp(11pt, 2vw, 30pt);
    }
}

/*Resizing the right side box by sifting the post of person to not overflow into personal info*/
@media (min-width: 769px) and (max-width: 1219px) {
    .homepage_right_side_post {
        bottom: 0;
        right: .5em;
        font-size: 11.1pt;

    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .homepage_news {
        width: 100% !important;
    }
}

/*--------------------------------------------*/

/*Changing the homepage news portal news layout*/
@media (min-width: 769px)and (max-width:960px) {
    #notice_board .notice_board_content .right_side_box {
        min-height: 5.9em;
    }
}

@media (min-width: 961px)and (max-width:1024px) {
    #notice_board .notice_board_content .right_side_box {
        min-height: 6.2em;
    }
}

@media (min-width: 769px)and (max-width:1024px) {
    #notice_board .notice_board_content .right_side_box {
        position: relative;
        max-width: 100%;
    }

    #notice_board .notice_board_content .right_side_box .notice_board_description span:first-child {
        top: .4em;
        left: .8em;
        font-weight: 600;
        line-height: 1.3em;
    }

    #notice_board .notice_board_content .right_side_box .notice_board_image {
        
        top: 2.5em;
        left: .8em;
    }

    #notice_board .notice_board_content .right_side_box .notice_board_description span:nth-child(2) {
        position: absolute;
        text-align: justify;
        line-height: 1.3em;
    }

    #notice_board .notice_board_content .right_side_box .notice_board_description span:nth-child(3) {
        position: absolute;
        text-align: right;
        line-height: 1.4em;
    }
}

/* for the border bottom right officials box for tab to desktop view*/
@media (min-width:429px) {
    .right_officials {
        border-bottom: 2px solid gray;
    }
}

@media (min-width: 718px)and (max-width:1219px) {
    .more_member_box p:last-child {
        display: none;
    }
}

@media (min-width:769px) and (max-width:3440px) {

    .nav_menu_close,
    .nav_menu_open {
        display: none !important;
    }
}

/*Homepage bangsa naksa*/
@media (max-width:1353px) and (min-width:429px) {
    .bansa_icons hr:nth-child(4) {
        border: 1.4px solid #047821;
        width: 1.4px;
        height: 22em;
        margin-left: auto;
        margin-right: auto;
        margin-top: .5em;
        margin-bottom: -.3em;
    }
}

@media (max-width:1353px) {
    .parents_p1_r1 {
        order: 1;
    }

    .parents_p1_r2 {
        order: 2;
    }

    .parents_p1_r3 {
        order: 3;
    }

    .parents_p1_r4 {
        order: 6;
    }

    .parents_p1_r5 {
        order: 4;
    }

    .parents_p1_r6 {
        order: 5;
    }



    .bansa_icons .parents_p1:nth-child(5) {
        margin-top: -22em;
        width: 53%;
        gap: 1.9em;
        position: relative;
        display: flex;
        flex-wrap: wrap;
    }

    .parents_p1:nth-child(5) .parents_p_odd::before {
        content: '';
        height: 2px;
        width: 1em;
        background: #047821;
        position: absolute;
        top: 50%;
        left: 100%;
    }

    .parents_p1:nth-child(5) .parents_p_odd:nth-child(6):before {
        width: .8em;
    }

    .parents_p1:nth-child(5) .parents_p_even::before {
        content: '';
        height: 2px;
        width: 1em;
        background: #047821;
        position: absolute;
        top: 60%;
        left: -1em;
    }

    .parents_p1:nth-child(5) .parents_p_even:nth-child(4):before {
        left: -1.3em;
        width: 1.3em;
    }
}

@media (min-width:927px) and (max-width:963px) {
    .bansa_icons .parents_p1:nth-child(5) {
        width: 60% !important;
    }
}

@media (min-width:769px) and (max-width:927px) {
    .bansa_icons .parents_p1:nth-child(5) {
        width: 83% !important;
    }
}

@media (min-width:676px) and (max-width:702px) {
    .bansa_icons .parents_p1:nth-child(5) {
        width: 70% !important;
    }
}

@media (max-width:961px) {
    .half_hr {
        width: 90% !important;
    }
}

@media (max-width:530px) {
    .parents_p2_r1 {
        order: 1;
    }

    .parents_p2_r2 {
        order: 3;
    }

    .parents_p2_r3 {
        order: 2;
    }
}

@media (min-width:530px) and (max-width:676px) {
    .bansa_icons .parents_p1:nth-child(5) {
        width: 82% !important;
    }
}

@media (min-width:429px) and (max-width:530px) {

    .half_hr:nth-child(2)::after,
    .half_hr:nth-child(6)::after {
        content: '';
        height: 9em;
        width: 2px;
        background: #047821;
        position: absolute;
        left: 50%;
    }

    .parents_gen_second,
    .parents_gen_fourth {
        gap: 2em;
    }

    .bansa_icons .parents_p1:nth-child(5) {
        width: auto;
    }
}

@media (min-width:539px) and (max-width:429px) {
    .parents_gen_fourth {
        gap: 2em;
    }
}

@media (min-width:270px) and (max-width:428px) {

    .parents_gen_fourth,
    .parents_gen_second {
        gap: 2em;
    }

    .half_hr:nth-child(2)::after,
    .half_hr:nth-child(6)::after {
        content: '';
        height: 9em;
        width: 2px;
        background: #047821;
        position: absolute;
        left: 50%;
    }

    .bansa_icons hr:nth-child(4) {
        border: 1.4px solid #047821;
        width: 1.4px;
        height: 22em;
        margin-top: .5em;
        margin-bottom: -.3em;
    }

    .bansa_icons .parents_p1:nth-child(5) {
        width: 73%;
    }
}

@media (min-width:539px) and (max-width:475px) {
    .half_hr:nth-child(2)::after {
        content: '';
        height: 9em;
        width: 2px;
        background: #047821;
        position: absolute;
        left: 50% !important;
    }
}

@media (min-width:398px) and (max-width:428px) {
    .half_hr:nth-child(2)::after {
        content: '';
        height: 9em;
        width: 2px;
        background: #047821;
        position: absolute;
        left: 50%;
    }

}

@media (max-width:368px) and (min-width:356px) {
    .bansa_icons .parents_p1:nth-child(5) {
        width: 80%;
    }
}

@media (max-width:355px) {
    .bansa_icons .parents_p1:nth-child(5) {
        width: 100%;
    }
}

@media (max-width:497px) and (min-width:400px) {
    .parents_p2_r1 {
        order: 1;
    }

    .parents_p2_r2 {
        order: 2;
    }

    .parents_p2_r3 {
        order: 3;
    }
}

@media only screen and (max-width:1024px) {
    /* Minimum screen width 769px for desktop view */
    /*------------------------------ HEADER ------------------------------*/
    /* Heading organization name adjustment */

    /*.org_nep_slo {
        font-size: 13pt;
        line-height: 2;
    }
    .org_nep {
        font-size: 23pt;
        line-height: 1;
    }
    .org_eng {
        font-size: 11.2pt;
        line-height: 1;
    }
    .org_yak {
        font-size: 21pt;
        margin: .1em 0;
        line-height: 1.3;
    }
    .org_nep_add {
        font-size: 24px;
        line-height: 1;
    }*/
    .logo_discription {
        height: 100%;
        width: 100vw;
    }

    /*.logo_n {
        height: 7em;
        width: 7em;
    }*/
    .nav_hide {
        margin: 0;
    }

    .nav_link img {
        height: 2.5em;
        width: 2.5em;
    }

    /* Body content first box (left) adjustment */
    .left_side_icon {
        height: 1.7em;
        width: 1.7em;
    }


    /* Body content second box (middle) adjustment */
    .right_side {
        width: 28%;
    }

    .homepage_news {
        width: 70%;
    }

    .middle_chobegu_20th_gen {
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .middle_chobegu_20th_gen div {
        padding: 0;
        flex-wrap: wrap;
        width: 50%;
        margin: .8em 0em;
    }

    .middle_side_box {
        padding: .1em .5em;
    }

    .middle_side_box img {
        height: 3.3em;
        width: 3.3em;
    }

    .middle_side_son_person_info {
        margin-left: 0;
    }

    .homepage_scholarship_info {
        display: flex;
    }

    .homepage_scholarship_info img {
        height: 7.5em;
        width: 8em;
        border-radius: 0;
    }

    .homepage_scholarship_head,
    .homepage_scholarship_button {
        font-size: 10pt;
    }

    .homepage_membership_button {
        font-size: 9pt;
        padding: .1em .1em;
        margin: .5em;
    }

    .homepage_build_branch_button {
        text-align: center;
        width: 70%;
    }

    .homepage_cencus_box {
        text-align: justify;
    }

    .homepage_cencus_button {
        width: 70%;
    }

    /* Body content third box (right) adjustment */
    .right_side_box {
        padding: .2em .3em;
        width: auto;
    }

    .right_side_person {
        height: 3em;
        width: 3em;
    }

    .right_side_person_info span {
        font-size: 9pt;
    }

    /* Footer content adjustment */
}