/*
==========================================================
File        : header.css
Project     : Prakruthi Boys & Girls Hostels
Description : Global Header Styles
Author      : Mahesh
==========================================================
*/

/* ==========================================================
   THEME VARIABLES
========================================================== */

:root{

    --color-primary:#0b1f3a;
    --color-primary-light:#16355f;

    --color-secondary:#facc15;
    --color-secondary-dark:#eab308;

    --color-white:#ffffff;
    --color-text:#374151;

    --shadow-sm:0 2px 8px rgba(0,0,0,.08);
    --shadow-md:0 5px 20px rgba(0,0,0,.18);

    --transition:.3s ease;

}

/* ==========================================================
   RESET
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ==========================================================
   BODY
========================================================== */

body{

    font-family:Arial, Helvetica, sans-serif;

    min-height:100vh;

    padding-top:80px;

    background:#fff;

}

/* ==========================================================
   HEADER
========================================================== */

.main-header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    background:var(--color-primary);

    box-shadow:var(--shadow-md);

    z-index:9999;

}

/* ==========================================================
   NAVBAR
========================================================== */

.main-navbar{

    width:100%;

    padding:0 60px;

}

.nav-wrapper{

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

/* ==========================================================
   LOGO
========================================================== */

.brand-box{

    display:flex;

    align-items:center;

    text-decoration:none;

}

.brand-logo{

    height:75px;

    width:auto;

    margin-right:12px;

}

.brand-text{

    display:flex;

    flex-direction:column;

}

.brand-text h6{

    color:#fff;

    font-size:22px;

    font-weight:bold;
    margin-left: 15px;

}

.brand-text small{

    color:var(--color-secondary);

    font-size:12px;

    letter-spacing:1px;

}

/* ==========================================================
   DESKTOP MENU
========================================================== */

.main-menu{

    display:flex;

    align-items:center;

    gap:35px;

    list-style:none;

    margin-left:auto;

}

.main-menu li{

    list-style:none;

}

/* ==========================================================
   MENU LINKS
========================================================== */

.menu-link{

    position:relative;

    color:#fff;

    text-decoration:none;

    font-size:15px;

    font-weight:600;

    transition:var(--transition);

    padding-bottom:5px;

}

.menu-link:hover{

    color:var(--color-secondary);

}

.menu-link::after{

    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    height:2px;

    background:var(--color-secondary);

    transform:scaleX(0);

    transform-origin:left;

    transition:.3s;

}

.menu-link:hover::after,

.menu-link.active::after{

    transform:scaleX(1);

}

.menu-link.active{

    color:var(--color-secondary);

}

/* ==========================================================
   MOBILE BUTTON
========================================================== */

.menu-btn{

    display:none;

    background:none;

    border:none;

    color:#fff;

    font-size:32px;

    cursor:pointer;

    transition:.3s;

}

.menu-btn:hover{

    color:var(--color-secondary);

}

/* ==========================================================
   MOBILE MENU
========================================================== */

.mobile-nav{

    display:none;

    flex-direction:column;

    background:var(--color-primary);

    width:100%;

    overflow:hidden;

}

.mobile-nav.active{

    display:flex;

}

.mobile-nav .menu-link{

    display:block;

    padding:16px 25px;

    border-top:1px solid rgba(255,255,255,.08);

}

.mobile-nav .menu-link:hover{

    background:rgba(255,255,255,.05);

    padding-left:35px;

}

/* ==========================================================
   ADMIN CORNER
========================================================== */

.admin-corner{

    position:absolute;

    justify-content: center;

    align-items: center;

    left:10px;

    width:25px;

    height:25px;

    z-index:10000;

}

.admin-key{

    position:absolute;

    opacity:0;

    text-decoration:none;

    font-size:15px;

    transition:.3s;

}

.admin-corner:hover .admin-key{

    opacity:0;

    color:var(--color-primary);

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:768px){

    body{

        padding-top:70px;

    }

    .main-navbar{

        padding:0 20px;

    }

    .nav-wrapper{

        height:70px;

    }

    .brand-logo{

        height:60px;

        margin-right:10px;

    }

    .brand-text h6{

        font-size:18px;

    }

    .brand-text small{

        font-size:10px;

    }

    /* Hide Desktop */

    .main-menu{

        display:none;

    }

    /* Show Mobile Button */

    .menu-btn{

        display:block;

    }

    /* Mobile Menu */

    .mobile-nav{

        position:absolute;

        top:70px;

        left:0;

        width:100%;

        background:var(--color-primary);

        box-shadow:var(--shadow-sm);

    }

   

}

/* ==========================================================
   LARGE DEVICES
========================================================== */

@media(min-width:769px){

    .mobile-nav{

        display:none !important;

    }

}


/*==========================================================
REGISTRATION BUTTON (DESKTOP)
==========================================================*/

.registration-btn{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    padding:10px 22px;

    border:2px solid #eab308;

    border-radius:10px;

    background:#eab308;

    color:#16355f !important;

    font-weight:700;

    text-decoration:none;

    transition:all .3s ease;

    box-shadow:0 0 22px rgba(234,179,8,.55);

}


.registration-btn:hover{

    background:white;

    color:#16355f !important;

    border-color:#facc15;

    transform:translateY(-2px);

    box-shadow:0 0 28px rgba(234,179,8,.75);

}


/*==========================================================
REGISTRATION BUTTON (MOBILE)
==========================================================*/

.mobile-registration-btn{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    margin:15px;

    padding:14px;

    border:2px solid #eab308;

    border-radius:10px;

    background:#eab308;

    color:#16355f;

    font-weight:700;

    text-decoration:none;

    transition:all .3s ease;

    box-shadow:0 0 22px rgba(234,179,8,.55);

}


.mobile-registration-btn:hover{

    background:white;

    color:#16355f;

    border-color:#facc15;

    transform:translateY(-2px);

    box-shadow:0 0 28px rgba(234,179,8,.75);

}