
#main {
    padding: 10px 0px 30px;
    border: 1px solid #5e3400;
}

.header {
    padding: 20px 20px 76px;
    margin-bottom: -22px;
    background: #cf7300;
    color: white;
    margin-top: -10px;
    margin-bottom: -80px;
}

.library_page {
    margin-top: 0px !important;
}

.library_page h1 {
    font-size: 48px;
    padding: 20px 0 18px;
    text-transform: uppercase;
    font-family: Tahoma;
}

h2 {
    border: 4px solid #ffb353;
    background: #5e3400;
    padding: 13px 0 13px 44px;
    color: white;
    border-width: 8px 0 8px 0;
}



.shortcut_icon {
    transform: scale(-1, -1) rotate(-32deg);
    display: inline-block;
    margin-left: 3px;
    /* margin-top: -2px; */
    position: relative;
    top: -2px;
    opacity: 0.4;
}

.jump_link {
    font-weight: 200;
    font-size: 17px;

    /* position: relative;
    top: 9px;
    left: 4px; */
}

.jump_link a {
    color: #0063f7;
}


.one_box {
    height: 77px;
    width: 146px;
    word-wrap: break-word;
    margin: 10px 10px 10px 0;
    float: left;
    border-radius: 6px;
    display: flex;
    align-items: center; /* Vertically centers content */
    justify-content: center; /* Horizontally centers content (optional) */
    font-size: 18px;
    line-height: 1.5;
}

.one_box span {
    text-align: center;
}


h2 {
    clear: left;
}

h3 {
    clear: left;
    padding-top: 20px;
    margin: 16px 0 0px 0px;
}

.level2-section {
    overflow: hidden;
    clear: left;
    margin: 0 45px;
}

.level1-section {
    overflow: hidden;
}

.header p {
    text-align: center;
    opacity: 0.6;
    display: block;
}

@media screen and (max-width: 600px) {
    /* h2 {
        margin-top: 22px;
        padding-bottom: 3px;
        margin-bottom: 8px;


        background: #de7c04cf;
        margin-left: -27px;
        width: calc(100% + 28px);
        padding: 13px;
        color: white;
    } */

    #main {
        background-color: white;
        border-radius: 5px;
        margin: 0;
        max-width: unset;
        border: 0;
        margin-top: 100px;
        padding: 0;
    }

    .one_box {
        font-size: 16px;
        height: 70px;
        width: calc(50% - 50px);
    }

    .level2-section {
        margin: 0 20px;
    }

    h2 {
        padding: 13px 13px 13px 17px;
        font-size: 22px;
    }

    /* .level2-section:nth-child(2) {
        margin-top: -10px;
    } */

    .level1-section {
        margin-top: 55px;
    }

    .header {
        margin-bottom: -78px;
    }
}

.level1_img {
    width: 50%;
    text-align: center;
    margin: 62px auto 8px;
    display: block;
}

@media screen and (max-width: 600px) {
    .level1_img {
        width: 80%;
        text-align: center;
        margin: 40px auto 8px;
        display: block;
    }    

}

.subsubtitle {
    margin-top: 20px;
    color: #000000a8;
    font-size: 18px;
    margin-top: 25px;
}

/* Language Toggle Styles */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    background: #5e3400;
    color: white;
    border: 2px solid #ffb353;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.lang-btn:hover {
    background: #ffb353;
    color: #5e3400;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.lang-btn:active {
    transform: translateY(0);
}

/* Hindi Text Styling */
[lang="hi"] {
    font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', 'Devanagari Sangam MN', sans-serif;
    line-height: 1.6;
    font-size: 1.05em; /* Slightly larger for better readability */
}

/* Ensure proper spacing for mixed language content */
.profile_link span[lang="hi"] {
    margin-left: 5px;
}

.button_subtitle[lang="hi"] {
    margin-top: 5px;
}

/* Language visibility control */
/* Default state: Show English, hide Hindi */

[lang="hi"] {
    display: none;
}

/* When hide-english class is applied (Hindi mode) */
.hide-english [lang="eng"] {
    display: none !important;
}

.hide-english [lang="hi"] {
    display: block;
}

/* When hide-hindi class is applied (English mode) */
.hide-hindi [lang="hi"] {
    display: none !important;
}

/* Mobile responsive for language toggle */
@media screen and (max-width: 600px) {
    .language-toggle {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}