:root{
    --primary:#c40000;
    --primary-dark:#980000;
    --black:#161616;
    --white:#ffffff;
    --light:#f5f5f5;
    --border:#dcdcdc;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Segoe UI",sans-serif;
    background:#f2f4f8;
    color:#222;
}

.wrapper{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */

.sidebar{
    width:260px;
    background:var(--black);
    color:white;
    padding:20px;
}

.logo{
    text-align:center;
    margin-bottom:30px;
}

.logo img{
    max-width:180px;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    margin-bottom:8px;
}

.sidebar a{
    display:block;
    padding:12px;
    background:#222;
    border-radius:10px;
    color:white;
    text-decoration:none;
    transition:0.2s;
}

.sidebar a:hover{
    background:var(--primary);
}

/* MAIN */

.main{
    flex:1;
    padding:25px;
}

.topbar{
    background:white;
    border-radius:15px;
    padding:15px 25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 3px 15px rgba(0,0,0,.05);
}

.user{
    display:flex;
    align-items:center;
    gap:10px;
}

.user img{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
}

.hero{
    margin-top:20px;
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 3px 15px rgba(0,0,0,.05);
}

.hero img{
    width:100%;
    height:300px;
    object-fit:cover;
}

.hero-content{
    padding:30px;
}

.hero h1{
    margin-bottom:15px;
    color:var(--primary);
}

.cards{
    margin-top:25px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.card{
    background:white;
    border-radius:20px;
    padding:25px;
    box-shadow:0 3px 15px rgba(0,0,0,.05);
    display:block;
    text-decoration:none;
    color:inherit;
    transition:0.2s;
}

.card:hover{
    box-shadow:0 6px 20px rgba(0,0,0,.1);
    transform:translateY(-2px);
}

.card h3{
    color:var(--primary);
    margin-bottom:10px;
}

.btn{
    background:var(--primary);
    color:white;
    border:none;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
}

.btn:hover{
    background:var(--primary-dark);
}

/* MOBILE */

@media(max-width:900px){

    .wrapper{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .topbar{
        flex-direction:column;
        gap:15px;
        align-items:flex-start;
    }

}