/*  assets/css/style.css    */

@font-face {
font-family: 'Vazir';
src: url('../fonts/Vazir-FD.woff') format('woff');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Vazir';
src: url('../fonts/Vazir-Bold-FD.woff') format('woff');
font-weight: bold;
font-style: normal;
}

body{
margin:0;
direction:rtl;
background:#1d1a54;
color:#fff;
font-family:'Vazir',Tahoma;
}


.container{
width:90%;
max-width:1200px;
margin:auto;
}

header{
background:#d4af37;
position:relative;
z-index:10;
}


.logo img{
height:60px;
}








section{
padding:60px 0;
text-align:center;
}

.section-title{
font-size:28px;
margin-bottom:20px;
}

.section-text{
max-width:800px;
margin:auto;
line-height:1.8;
}

.card{
background:#262262;
padding:20px;
margin:15px;
border-radius:8px;
}

.cards{
display:flex;
flex-wrap:wrap;
justify-content:center;
}
.section-title{
font-size:28px;
margin-bottom:20px;
font-weight:bold;
}


.mobile-menu ul{

list-style:none;
padding:0;
margin-top:50px;
text-align:right;

}


.mobile-menu li{

margin-bottom:25px;

}


.mobile-menu a{

text-decoration:none;
color:#000;
font-size:18px;
display:block;

}


.close-btn{

font-size:26px;
cursor:pointer;
position:absolute;
top:15px;
left:20px;

}





.topbar{

display:flex;
align-items:center;
justify-content:space-between;

padding:10px 20px;

}


.logo img{

height:55px;

}

.hero{
position:relative;
}


.hero-overlay{

position:absolute;
top:0;
right:0;
left:0;
height:100%;

display:flex;
flex-direction:column;
justify-content:center;
align-items:center;

color:#fff;

}

.hero-logo img{
height:50px;
margin-bottom:5px;
}


.hero-overlay h1{

font-size:20px;
text-align:center;
text-shadow:0 2px 5px rgba(0,0,0,0.5);

}


.menu{

position:absolute;
top:20px;
left:20px;

font-size:28px;
color:white;
cursor:pointer;

}

/* ===== admin panel ===== */

.admin-page{
background:#f4f6fb;
min-height:100vh;
padding:40px 0;
}

.admin-box{
background:#ffffff;
color:#333;
padding:25px;
border-radius:10px;
margin-bottom:30px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.admin-box h3{
margin-top:0;
margin-bottom:20px;
color:#1d1a54;
}

.admin-form{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
gap:10px;
align-items:end;
}

.admin-form label{
font-size:13px;
color:#555;
}

.admin-form input{
width:100%;
padding:8px;
border:1px solid #ddd;
border-radius:6px;
font-family:Vazir;
}

.admin-btn{
background:#d4af37;
color:#000;
border:none;
padding:9px 18px;
border-radius:6px;
cursor:pointer;
font-family:Vazir;
}

.admin-btn:hover{
background:#c49d2e;
}

.admin-table{
width:100%;
border-collapse:collapse;
margin-top:15px;
}

.admin-table th{
background:#1d1a54;
color:#fff;
padding:10px;
font-size:14px;
}

.admin-table td{
background:#fff;
padding:10px;
border-bottom:1px solid #eee;
color:#333;
font-size:14px;
}

.admin-table tr:hover td{
background:#f7f8fc;
}

.admin-actions a{
margin:0 6px;
text-decoration:none;
font-size:13px;
}

.admin-actions .edit{
color:#2980b9;
}

.admin-actions .delete{
color:#c0392b;
}

.admin-login-btn{
position:fixed;
top:20px;
right:20px;
background:#d4af37;
color:#000;
padding:8px 14px;
border-radius:6px;
text-decoration:none;
font-size:13px;
z-index:9999;
}

.admin-login-btn:hover{
background:#c49d2e;
}


.hero{
position:relative;
}

.hero img{
width:100%;
height:220px;
object-fit:cover;
}


.hero-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.35);
color:white;
}

.top-bar{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px;
}

.logo img{
height:60px;
border-radius:6px;
}

.menu-btn{
font-size:28px;
cursor:pointer;
}

.hero-title{
text-align:center;
margin-top:120px;
}

.hero-title h1{
font-size:32px;
font-weight:600;
}

/* منوی موبایل */

.mobile-menu{
position:fixed;
top:0;
right:-320px;
width:260px;
height:100vh;
background:#1d1a54;
transition:0.3s;
z-index:9999;
padding:25px;
overflow-y:auto;
}


.mobile-menu ul{
list-style:none;
padding:0;
}

.mobile-menu li{
margin:20px 0;
}

.mobile-menu a{
color:white;
text-decoration:none;
font-size:18px;
}

.close-btn{
color:white;
font-size:24px;
cursor:pointer;
margin-bottom:30px;
}

.admin-link a{
color:#ffd700;
font-weight:bold;
}

.site-footer{
    margin-top:40px;
    padding:20px 12px;
    font-size:14px;
    border-top:1px solid #ddd;
}

.footer-container{
    max-width:1100px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.footer-left a{
    margin-left:12px;
    color:inherit;
    text-decoration:none;
}

.footer-left a:hover{
    text-decoration:underline;
}
