.header-top-section {
    padding: 3px 100px;

    border-bottom: 1px solid var(--border-color-3);
    background: var(--primary);
    background: var(--accent-1);
    background: var(--bg-section);
    background: var(--background-color-2);
}

.header-top-section-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-section-content {
    /* border-bottom: 1px solid var(--border-color-2); */
}

.header-dt {
    display: flex;
    align-items: center;
}

.header-dt h5 {

    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.header-top-links {
    display: flex;
}

.header-top-links>ul {
    display: flex;
}

.top-lang-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-radius: 4px;
    /* background: var(--accent-2); */
    /* padding: 5px 2px; */
    border: 1px solid var(--primary-soft);
}

.language-switcher select {
    padding: 2px 5px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.header-top-links>ul>li {
    display: flex;
    font-size: 0.8rem;
    margin: 0px 10px;
    align-items: center;
}

.header-top-links>ul>li>a {
    color: var(--text-color-black);
    cursor: pointer;
    font-weight: 500;
}

.header-top-links>ul>li>a:hover {
    color: var(--text-color-bg-blue);
    transition: 0.3s;
}

.header-top-links>ul>li>a:focus {
    outline: 2px solid var(--text-color-bg-blue) !important;
    outline-offset: 1px;
}

.social-icons-top {
    display: flex;
}

.social-icons-top li {
    padding: 5px;
}

.header-top-links>ul>li>a>.bx-sitemap,
.header-top-links>ul>li>a>.bx-handicap {
    font-size: 20px;
}

.header-dt .social-icons-top li i {
    font-size: 1.3rem;
    color: var(--text-2);
    color: var(--accent-1);
    margin: 0px 5px;
    color: var(--primary-soft);
    color: var(--primary);
}

.icon-label {
    display: none;
}

.header-top-links .other-icons-top li i {
    font-size: 1.5rem;
}

.header-dt .social-icons-top li i.fa-facebook,
.header-dt .social-icons-top li i.fa-facebook-f {

    color: var(--primary);
}

.header-dt .social-icons-top li i.fa-instagram {
    color: var(--social-media-insta);
    color: var(--text-2);
    color: var(--accent-1);
    color: var(--primary-soft);
    color: var(--primary);
}

.header-dt .social-icons-top li i.fa-youtube {


    color: var(--social-media-utube);
    color: var(--text-2);
    color: var(--accent-1);
    color: var(--primary-soft);
    color: var(--primary);
}

.header-section {
    background: var(--bg-color-white-1);
    max-width: 1200px;
    margin: auto;
    padding: 10px 0px;
}

.logo-name {
    display: flex;
    padding: 0px 10px;
    align-items: center;
    justify-content: start;
    position: relative;
}

.icfre-logo img,
.moefcc-logo img {
    width: 95px;
    margin-right: 10px;
}

.moefcc-logo {
    padding: 0px 10px;
}

.hq-logo img {

    margin-left: 10px;
}

.icfre-others-header-logo {

    /* position: relative; */
    right: 0;
    position: absolute;
    /* margin-right: 10px; */
    top: 0;
}

.icfre-others-header-logo a {
    color: var(--text-color-black-2);
    font-size: 0.7rem;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border-bottom: 1px solid var(--border-color-1);
    border-right: 1px solid var(--border-color-1);
    border-left: 1px solid var(--border-color-1);
    padding: 5px 10px;
}

.icfre-others-header-logo a>i {
    font-size: 1rem;
    vertical-align: middle;
    color: var(--bg-color-icfre-blue-contrast-bg);
}

.icfre-name h3 {
    font-weight: 500;
    font-size: 1.35rem;
    margin-left: 10px;
    color: var(--primary);
    font-family: myriad pro;
    font-weight: bold;
}

.icfre-name h4 {
    font-size: 0.6rem;
    font-weight: 500;
}

.icfre-name .auton-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color-2);
    margin-left: 10px;
    margin-top: 5px;

}

.bx-skip-next-circle {
    font-size: 1rem;
}

.accessibility-tools-link:hover>.accessibility-tools-section {
    display: block;
}

.accessibility-tools-link {
    position: relative;
}

.accessibility-tools-link:hover>.accessibility-tools-section {
    display: block;
}

.accessibility-tools-section {
    display: none;
    position: absolute;
    width: 240px;
    height: auto;
    background: var(--background-color);
    background: var(--bg-color-white-1);
    /* left: -85px;
    right: -155px; */
    right: 0;
    top: calc(100% + 0px);
    z-index: 1000;
    padding: 10px 15px;
    border: 1px solid var(--border-color-1);
    border-radius: 4px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
}

#decfontsize,
#incfontsize {
    padding: 0px 15px;
    color: var(--text-color-black-2);
    background: var(--bg-color-white-2);
    border: 1px solid var(--border-color-2);
    border-radius: 5px;
    cursor: pointer;
    font-size: 25px;
}




#screen-reader-link i {
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

#screen-reader-link i.bx-reset {
    padding: 0px 10px;
    cursor: pointer;
}

.accessibility-trigger-button {
    background: none;
    border: none;
}

.accessibility-tools-inner {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
}

.acc-tools-heading {
    text-align: left;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color-2);
    /* padding: 5px; */
    margin: 7px 0px;
    color: var(--text-color-black-2);
    font-weight: 500;
}

.color-theme-section,
.text-size-section,
.screen-reader-section {
    text-align: center;
    width: 100%;
}

.text-size-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

#toggle-button1 {
    background-color: white;
}


/* #toggle-button2 {
    background-color: #5A9421;
} */

#theme-toggle-button1 {
    background-color: #0e6d8c;
}

#theme-toggle-button2 {
    background-color: black;
}

#contrast-toggle-button1 {
    background-color: yellow;
}

#contrast-toggle-button2 {
    background-color: #fd60ff;
}

.tri-state-toggle {
    border-radius: 24px;
    overflow: hidden;
    display: inline-flex;
    transition: all 500ms ease;
    padding: 2px 2px;
    border: 1px solid lightgrey;
}

.tri-state-toggle-button {
    border-radius: 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    background-color: transparent;
    border: 1px solid black;
    margin: 2px;
    /*   color: #727C8F; */
    cursor: pointer;
    /*    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition:    all 0.5s ease-in-out;
    -ms-transition:     all 0.5s ease-in-out;
    -o-transition:      all 0.5s ease-in-out; */
    transition: all 0.5s ease;
}

.tri-state-toggle-button.active {
    border: 1px solid rgba(207, 207, 207, 0.6);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
    font-weight: 500;
    transition: all .5s ease-in;
    border: 4px solid grey;
}

.tri-state-toggle-button:focus {
    outline: none;
}

.timestampContent {
    color: var(--text-color-black-2);
}

.visuallyhidden {
    opacity: 0;
}


/* Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Panel */
.search-panel {
    background: var(--bg-color-white-1);
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

/* Active */
.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-overlay.active .search-panel {
    transform: translateY(0);
}

/* Search bar */
.search-bar {
    position: relative;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 14px 48px 14px 14px;
    /* space for close button */
    font-size: 16px;
    border-radius: 40px;
    border: 1px solid var(--border-color-2);
}

.icon-search {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.close-search {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    top: 0;
    right: 14px;
    transform: unset;
}

.close-search>i {
    color: var(--text-color-black);
}

/* Quick Links */
.quick-links {
    margin-top: 20px;
}

.quick-links h4 {
    font-size: 18px;
    text-transform: uppercase;

    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary);
}

.quick-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 columns */
    gap: 10px;
    list-style: none;
    padding: 0;
}

.quick-links a {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--primary);
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-2);
    font-weight: 500;
    border: 1px solid var(--primary);
}

.quick-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* Tablet & Desktop */
@media (max-width: 900px) {
    .mega-col .nav-item-desc {
        padding: 5px;
    }

    .header-top-section {
        padding: 3px 10px;
    }
}

@media (min-width: 768px) {
    .search-bar {
        max-width: 900px;
        margin: 0 auto;
        padding: 20px 0px;
    }

    .search-panel {
        padding: 40px;
    }



    .quick-links {
        max-width: 900px;
        margin: 30px auto 0;
    }

    .quick-links ul {
        grid-template-columns: repeat(4, 1fr);
        /* Desktop: 4 columns */
    }

    .search-bar input {
        padding: 10px 48px 10px 14px;
    }
}



@media only screen and (max-width: 600px) {
    .accessibility-tools-section {
        transform: translate(-50%, 0%);

        left: 50%;
    }

    .header-top-section {
        padding: 10px;
    }

    .header-top-section-content,
    .header-top-links {
        width: 100%;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;
    }

    .header-section-content {
        align-items: center;
    }

    .header-dt>ul.social-icons-top {
        padding: 5px 0px;
        justify-content: space-between;
        width: 100%;
    }

    .logo-name {
        padding: 5px;
    }

    .icfre-name h3 {
        font-size: 0.8rem;
        margin-left: 0px;
    }

    .footer-column {
        padding: 10px 0px;
    }



    .icfre-logo img,
    .moefcc-logo img {
        width: 60px;
        margin-right: 5px;
    }

    .header-dt {
        margin-bottom: 7px;
        flex-direction: column;
    }

    .icfre-others-header-logo a {
        padding: 2px 5px;
        border-bottom-left-radius: unset;
        border-bottom-right-radius: unset;
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
        border-top: 1px solid var(--border-color-1);
        border-bottom: unset;
        font-size: 0.5rem;
    }

    .icfre-others-header-logo {
        bottom: 0;
        top: unset;
    }

}

@media only screen and (max-width: 480px) {
    .icfre-name .auton-tag {
        display: none;
    }

    .icfre-name {
        margin-left: 10px;
    }
}

.header-section {
    background: #ffffff;
    border-bottom: 1px solid #e7eef2;

}

.header-section-content {
    max-width: 1380px;
    margin: auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* =========================
   LEFT BRAND AREA
========================= */

.brand-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo img {
    width: 130px;
    height: 130px;
    object-fit: contain;




    padding: 8px;


}

.brand-text {
    color: #163844;
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--text-color-5);
    padding: 7px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
}

.brand-text h1 {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;

    color: var(--primary);
}

.brand-text h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2f5563;

}

.brand-text p {
    max-width: 780px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #5c7480;
}

/* =========================
   RIGHT CARD
========================= */

.header-right {
    flex-shrink: 0;
}

.ministry-card {
    display: flex;
    align-items: center;
    gap: 16px;





    padding: 16px 20px;

    border-radius: 18px;




}

.ministry-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;



}

.ministry-text span {
    display: block;
    font-size: 13px;
    color: #6d8792;
    margin-bottom: 6px;
}

.ministry-text h4 {
    color: #163844;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .header-section-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
    }

    .ministry-card {
        width: 100%;
    }

}



@media (max-width: 768px) {

    .header-section {
        padding: 14px 0;
    }

    .header-section-content {
        padding: 0 16px;
        gap: 18px;
    }

    .brand-area {
        align-items: flex-start;
        gap: 14px;
    }

    .brand-logo img {
        width: 78px;
        height: 78px;
    }

    .brand-text h1 {
        font-size: 24px;
    }

    .brand-text h3 {
        font-size: 15px;
    }

    .brand-text p {
        font-size: 12px;
    }

    .ministry-card {
        padding: 14px;
    }

}



@media (max-width: 576px) {

    .header-section-content {
        padding: 0 10px;
    }

    .brand-area {
        /*   flex-direction: column; */
        align-items: center;
        text-align: center;
    }

    .brand-text {
        text-align: center;
    }

    .brand-logo img {
        width: 72px;
        height: 72px;
    }

    .brand-tag {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 5px;
    }

    .brand-text h1 {
        font-size: 20px;
        line-height: 1.4;
    }

    .brand-text h3 {
        font-size: 14px;
        line-height: 1.5;
    }

    .brand-text p {
        font-size: 12px;
        line-height: 1.6;
        display: none;
    }

    .ministry-card {
        flex-direction: column;
        text-align: center;
        min-width: 100%;

        gap: 10px;
    }

    .ministry-logo img {
        width: 54px;
        height: 54px;
    }

    .ministry-text h4 {
        font-size: 13px;
    }

}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 380px) {
    .header-section-content {
        padding: 0 5px;
    }

    .brand-text h1 {
        font-size: 0.9rem;
    }

    .brand-text h2 {
        font-size: 0.8rem;
    }

    .brand-text h3 {
        font-size: 13px;
    }

    .brand-text p {
        font-size: 11px;
    }

}

=========================*/