*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Cairo",sans-serif;
}

body{
    background:#e8f5e9;
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

/* Header */

.header{
    position:fixed;
    top:0;
    right:0;
    left:0;
    height:75px;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 18px;
    box-shadow:0 3px 15px rgba(0,0,0,.1);
    z-index:1000;
}

.logo img{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
}

.title{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    font-size:22px;
    font-weight:bold;
    color:#2e7d32;
}

.menu-btn{
    background:none;
    border:none;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    gap:5px;
}

.menu-btn span{
    width:25px;
    height:3px;
    background:#2e7d32;
    border-radius:5px;
}

/* Sidebar */

.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    display:none;
    z-index:1001;
}

.overlay.show{
    display:block;
}

.sidebar{
    position:fixed;
    top:0;
    left:-280px;
    width:280px;
    height:100%;
    background:#fff;
    transition:.3s;
    z-index:1002;
    padding:20px;
    box-shadow:3px 0 15px rgba(0,0,0,.15);
}

.sidebar.open{
    left:0;
}

.support{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:30px;
}

.support img{
    width:55px;
    height:55px;
    border-radius:50%;
}

.sidebar a{
    display:block;
    text-decoration:none;
    color:#333;
    padding:14px;
    border-radius:10px;
    margin-bottom:10px;
    transition:.3s;
}

.sidebar a:hover{
    background:#e8f5e9;
    color:#2e7d32;
}

/* Content */

.container{
    flex:1;
    padding:110px 20px 40px;
}

.container h1{
    text-align:center;
    color:#2e7d32;
    margin-bottom:35px;
}

.cards{
    display:grid;
    gap:25px;
    max-width:500px;
    margin:auto;
}

.card{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    text-decoration:none;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    transition:.3s;
}

.card:not(.locked):hover{
    transform:translateY(-5px);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.overlay-text{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#fff;
}

.overlay-text h2{
    font-size:30px;
    margin-bottom:10px;
}

.overlay-text p{
    font-size:16px;
}

/* الكارد المقفول */

.card.locked {
    cursor: not-allowed;
    pointer-events: none;
}

.card.locked img {
    filter: grayscale(100%);
    opacity: 0.5;
}

.card.locked .overlay-text {
    background: linear-gradient(
        to top,
        rgba(180, 0, 0, 0.82),
        rgba(0, 0, 0, 0.45)
    );
}

.card.locked .overlay-text p {
    color: #ffcdd2;
    font-weight: bold;
}

/* Footer */

footer{
    background:#1b5e20;
    color:#fff;
    text-align:center;
    padding:20px;
}

footer p{
    margin-bottom:10px;
}

.links{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-bottom:10px;
    flex-wrap:wrap;
}

.links a{
    color:#fff;
    text-decoration:none;
}

.links a:hover{
    text-decoration:underline;
}

@media(max-width:600px){

.card img{
    height:190px;
}

.overlay-text h2{
    font-size:24px;
}

}
