
/* Top Bar */

.topbar{

background:var(--primary);
color:#fff;
font-size:14px;

}

.topbar .container{

display:flex;
justify-content:space-between;
align-items:center;
padding:8px 0;

}

.topbar i{
margin-right:6px;
}

.topbar span{
margin:0 12px;
opacity:.5;
}

.topbar a{
color:#fff;
text-decoration:none;
margin-left:20px;
transition:.3s;
}

.topbar a:hover{
color:#ffd27a;
}

/* Header */

.header{

background:#fff;
box-shadow:0 3px 15px rgba(0,0,0,.08);
position:sticky;
top:0;
z-index:999;

}

.header .container{

display:flex;
align-items:center;
justify-content:space-between;
height:90px;

}

.logo{

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

}

.logo img{

width:70px;
height:70px;
object-fit:contain;

}

.title h1{

font-size:22px;
color:var(--primary);
font-weight:700;

}

.title p{

color:#666;
font-size:13px;
margin-top:4px;

}

/* Navigation */

nav ul{

display:flex;
list-style:none;
justify-content: center;
gap:20px;

}

nav a{

text-decoration:none;
color:#222;
font-weight:600;
position:relative;
transition:.3s;

}

nav a::after{

content:"";
position:absolute;
left:0;
bottom:-8px;
width:0;
height:3px;
background:var(--accent);
transition:.3s;

}

nav a:hover{

color:var(--primary);

}

nav a:hover::after{

width:100%;

}

nav a.active-link {
    color: var(--primary);
}
nav a.active-link::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown > a > .fa-chevron-down {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a > .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    list-style: none;
    min-width: 220px;
    z-index: 1000;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
   /* white-space: nowrap; */
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a::after {
    display: none; /* No underline for dropdown items */
}

.dropdown-menu a:hover {
    background-color: #f5f7fa;
    color: var(--primary);
}

/* Right */

.actions{

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

}

.login-btn{

background:var(--primary);
color:#fff;
padding:12px 22px;
border-radius:6px;
text-decoration:none;
font-weight:600;
transition:.3s;

}

.login-btn:hover{

background:var(--secondary);

}

#menu-btn{

display:none;
background:none;
border:none;
font-size:26px;
cursor:pointer;
color:var(--primary);

}

/* Add an accessible label for the menu button that is only visible to screen readers */
#menu-btn[aria-label] {
    position: relative;
}

/* Responsive */

@media(max-width:1050px){

.title h1{

font-size:19px;

}

nav{

position:fixed;
right:-100%;
top:90px;
width:300px;
height:calc(100vh - 90px);
background:#fff;
transition:.4s;
box-shadow:-10px 0 25px rgba(0,0,0,.08);

}

nav.active{

right:0;

}

nav ul{

flex-direction:column;
padding:40px;
gap:30px;

}

#menu-btn{

display:block;

}

nav ul li{

border-bottom:1px solid var(--border);
padding-bottom:18px;

}

.header .container {
    padding: 0 15px;
}

}

@media(max-width:420px){

    .logo{
        gap: 12px;
    }

    .logo img{
        width: 45px;
        height: 45px;
    }

    .title h1{
        font-size: 14px;
    }

    .title p{
        font-size: 11px;
    }

}

@media(max-width:768px){

.topbar{

display:none;

}

.logo img{

width:55px;
height:55px;

}

.title h1{

font-size:16px;

}

.title p{

font-size:12px;

}

.login-btn{

display:none;

}

.header .container{

height:75px;

}

nav{
width:90% !important;
top:75px;
height:calc(100vh - 75px);

}

}