/*=========================================================
        IIT HYDERABAD RESEARCH PORTAL
                layout.css

        PAGE LAYOUT + FOOTER
=========================================================*/


/*=========================================================
                    MAIN LAYOUT
=========================================================*/

html{

    scroll-behavior:smooth;

}

body{

    display:flex;

    flex-direction:column;

    min-height:100vh;

    background:#f5f7fb;

}

main{

    flex:1;

}

.container{

    width:92%;

    max-width:1400px;

    margin:auto;

}

.section{

    padding:20px 0;

}

.section-light{

    background:#ffffff;

}

.section-gray{

    background:#f5f7fb;

}

.section-dark{

    background:#0b233f;

    color:#fff;

}



/*=========================================================
                PAGE BANNER
=========================================================*/

.page-banner{

    position:relative;

    padding:80px 20px;

    text-align:center;

    color:#fff;

    background:linear-gradient(
        rgba(5,35,70,.75),
        rgba(5,35,70,.75)
    ),
    url("../images/banner.jpg") center center/cover no-repeat;

}

.page-banner h1{

    font-size:3rem;

    margin-bottom:15px;

}

.page-banner p{

    font-size:1.1rem;

    opacity:.95;

}



/*=========================================================
                    BREADCRUMB
=========================================================*/

.breadcrumb{

    display:flex;

    justify-content:center;

    gap:8px;

    margin-top:20px;

    flex-wrap:wrap;

}

.breadcrumb a{

    color:#ffffff;

    text-decoration:none;

}

.breadcrumb span{

    color:#dcdcdc;

}



/*=========================================================
                SECTION TITLE
=========================================================*/

.section-title{

    text-align:center;

    margin-bottom:30px;

}

.section-title h2{

    font-size:2rem;

    color:#0B4F8C;

    margin-bottom:15px;

}

.section-title p{

    max-width:800px;

    margin:auto;

    color:#666;

    line-height:1.8;

}

.section-title::after{

    content:"";

    width:90px;

    height:4px;

    background:#F4B400;

    display:block;

    margin:20px auto 0;

    border-radius:4px;

}



/*=========================================================
                TWO COLUMN
=========================================================*/

.two-column{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

}



/*=========================================================
                THREE COLUMN
=========================================================*/

.three-column{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}



/*=========================================================
                FOUR COLUMN
=========================================================*/

.four-column{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}



/*=========================================================
                PAGE WRAPPER
=========================================================*/

.page-wrapper{

    background:#fff;

    padding:45px;

    border-radius:18px;

    box-shadow:0 12px 35px rgba(0,0,0,.06);

}



/*=========================================================
            CONTENT WITH SIDEBAR
=========================================================*/

.content-layout{

    display:grid;

    grid-template-columns:3fr 1fr;

    gap:40px;

}

.sidebar{

    background:#fff;

    padding:30px;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

}



/*=========================================================
                PAGE IMAGE
=========================================================*/

.page-image{

    width:100%;

    border-radius:16px;

    overflow:hidden;

}

.page-image img{

    width:100%;

    display:block;

}



/*=========================================================
                    FOOTER
=========================================================*/

.footer{

    background:#07213D;

    color:#ddd;

    margin-top:80px;

}

.footer-top{

    padding:70px 0;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1fr;

    gap:40px;

}

.footer-logo{

    display:flex;

    align-items:center;

    gap:18px;

    margin-bottom:20px;

}

.footer-logo img{

    width:65px;

}

.footer h3{

    color:#fff;

    margin-bottom:20px;

}

.footer p{

    line-height:1.8;

}

.footer ul{

    list-style:none;

}

.footer ul li{

    margin-bottom:12px;

}

.footer ul li a{

    color:#d6d6d6;

    text-decoration:none;

    transition:.3s;

}

.footer ul li a:hover{

    color:#ffffff;

    padding-left:6px;

}



/*=========================================================
            CONTACT DETAILS
=========================================================*/

.footer-contact{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.footer-contact div{

    display:flex;

    gap:12px;

    align-items:flex-start;

}



/*=========================================================
            FOOTER BOTTOM
=========================================================*/

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.08);

    padding:20px 0;

}

.footer-bottom-content{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:15px;

}

.footer-bottom a{

    color:#ddd;

    text-decoration:none;

}

.footer-bottom a:hover{

    color:#fff;

}



/*=========================================================
                SOCIAL ICONS
=========================================================*/

.footer-social{

    display:flex;

    gap:12px;

}

.footer-social a{

    width:40px;

    height:40px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:#fff;

    transition:.3s;

}

.footer-social a:hover{

    background:#F4B400;

    color:#07213D;

}



/*=========================================================
                BACK TO TOP
=========================================================*/

#backToTop{

    position:fixed;

    right:25px;

    bottom:25px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:#0B4F8C;

    color:#fff;

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    box-shadow:0 10px 25px rgba(0,0,0,.2);

    z-index:999;

}

#backToTop:hover{

    background:#08345E;

}



/*=========================================================
                RESPONSIVE
=========================================================*/

@media(max-width:1100px){

.footer-grid{

    grid-template-columns:repeat(2,1fr);

}

.content-layout{

    grid-template-columns:1fr;

}

.two-column{

    grid-template-columns:1fr;

}

.four-column{

    grid-template-columns:repeat(2,1fr);

}

}



@media(max-width:768px){

.page-banner{

    padding:80px 20px;

}

.page-banner h1{

    font-size:2.2rem;

}

.footer-grid{

    grid-template-columns:1fr;

}

.footer-bottom-content{

    flex-direction:column;

    text-align:center;

}

.three-column,

.four-column{

    grid-template-columns:1fr;

}

.page-wrapper{

    padding:25px;

}

}



@media(max-width:480px){

.section{

    padding:55px 0;

}

.page-banner h1{

    font-size:1.8rem;

}

.section-title h2{

    font-size:1.8rem;

}

}
