/*=========================================================
    HEADER CSS
    Department of Science, Technology & Innovation
=========================================================*/

/*=========================================================
    ROOT VARIABLES
=========================================================*/

:root {

    --primary-color: #0b2e6d;
    --secondary-color: #ffc107;
    --white: #ffffff;
    --black: #000000;
    --border-color: #e5e5e5;
    --transition: all .3s ease;

}

/*=========================================================
    GLOBAL
=========================================================*/

body{
    font-family: "Segoe UI", Arial, sans-serif;
    color:#333;
    margin:0;
    padding:0;
}

img{
    max-width:100%;
    height:auto;
}

/*=========================================================
    TOP HEADER
=========================================================*/

.top-header{

    background:var(--primary-color);
    height:40px;
    display:flex;
    align-items:center;
}

.top-header .container{

    display:flex;
    justify-content:flex-end;
    align-items:center;
}

.top-header-right{

    display:flex;
    align-items:center;
    gap:10px;
}

/*=========================================================
    SKIP TO MAIN CONTENT
=========================================================*/

.skip-link{

    display:flex;
    align-items:center;
    gap:6px;

    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:500;

    transition:var(--transition);
}

.skip-link i{

    font-size:18px;
}

.skip-link:hover{

    color:var(--secondary-color);

}

/*=========================================================
    FONT CONTROLS
=========================================================*/

.font-controls{

    display:flex;
    gap:3px;
}

.font-btn{

    width:38px;
    height:30px;

    border:none;

    background:rgba(255,255,255,.12);

    color:#fff;

    border-radius:3px;

    cursor:pointer;

    font-size:13px;

    font-weight:600;

    transition:var(--transition);
}

.font-btn:hover{

    background:var(--secondary-color);

    color:#000;
}

/*=========================================================
    TOP ICONS
=========================================================*/

.top-icon{

    color:#fff;

    text-decoration:none;

    font-size:18px;

    transition:var(--transition);

}

.top-icon:hover{

    color:var(--secondary-color);

}

/*=========================================================
    LANGUAGE BUTTON
=========================================================*/

.language-btn{

    background:var(--secondary-color);

    color:#000;

    border:none;

    padding:5px 12px;

    font-size:13px;

    font-weight:500;

    border-radius:4px;

    min-width:85px;
}

.language-btn:hover{

    background:#ffb300;

    color:#000;
}

/* Dropdown */

.dropdown-menu{

    font-size:13px;

    min-width:140px;

    border-radius:4px;

    border:1px solid #ddd;

}

.dropdown-item{

    padding:8px 14px;

}

.dropdown-item:hover{

    background:#f3f3f3;

}

/*=========================================================
    MAIN HEADER
=========================================================*/

.main-header{

    background:#fff;

    padding:18px 0;

    border-bottom:1px solid var(--border-color);

}

/*=========================================================
    LEFT SECTION
=========================================================*/

.header-logo img{

    width:95px;

}

.header-title{

    margin-left:20px;
}

.header-title h2{

    font-size:34px;

    font-weight:700;

    color:#111;

    margin-bottom:5px;

    line-height:1.2;

}

.header-title h5{

    font-size:20px;

    font-weight:600;

    color:#222;

    margin-bottom:0;

}

/*=========================================================
    RIGHT SECTION
=========================================================*/

.header-right{

    display:flex;

    justify-content:flex-end;

    align-items:center;

    gap:25px;

}

.header-flag{

    width:120px;

}

.header-side-logo{

    width:90px;

}

/*=========================================================
    IMAGE HOVER
=========================================================*/

.header-logo img,
.header-flag,
.header-side-logo{

    transition:var(--transition);

}

.header-logo img:hover,
.header-flag:hover,
.header-side-logo:hover{

    transform:scale(1.05);

}

/*=========================================================
    FOCUS
=========================================================*/

.skip-link:focus,
.language-btn:focus,
.font-btn:focus{

    outline:2px solid var(--secondary-color);

    outline-offset:2px;

}

/*=========================================================
    RESPONSIVE
=========================================================*/

@media(max-width:992px){

    .main-header{

        text-align:center;

    }

    .header-logo{

        margin-bottom:15px;

    }

    .header-title{

        margin-left:15px;

    }

    .header-title h2{

        font-size:26px;

    }

    .header-title h5{

        font-size:17px;

    }

    .header-right{

        justify-content:center;

        margin-top:20px;

    }

    .header-flag{

        width:90px;

    }

    .header-side-logo{

        width:80px;

    }

}

@media(max-width:768px){

    .top-header{

        height:auto;

        padding:8px 0;

    }

    .top-header .container{

        justify-content:center;

    }

    .top-header-right{

        flex-wrap:wrap;

        justify-content:center;

        gap:8px;

    }

    .skip-link{

        font-size:12px;

    }

    .font-btn{

        width:34px;

        height:28px;

        font-size:12px;

    }

    .language-btn{

        font-size:12px;

        padding:4px 10px;

    }

    .header-logo img{

        width:70px;

    }

    .header-title h2{

        font-size:20px;

    }

    .header-title h5{

        font-size:15px;

    }

    .header-right{

        gap:15px;

    }

}

@media(max-width:576px){

    .header-title h2{

        font-size:17px;

    }

    .header-title h5{

        font-size:13px;

    }

    .header-right{

        flex-wrap:wrap;

    }

    .header-flag{

        width:75px;

    }

    .header-side-logo{

        width:65px;

    }

}