*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --primary:lightgreen;
    --primary-dark:#2e8b57;
    --primary-hover:#228b22;
    --bg:#f4fff4;
    --card:#ffffff;
    --text:#222;
    --border:#dcdcdc;
}

body{
    direction: rtl;
    font-family: "Vazirmatn", "B Yekan", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.8;
    text-align: center;

}

h1{
    text-align:center;
    color:var(--primary-dark);
    margin-bottom:20px;
}

h2{
    color:var(--primary-dark);
    margin-bottom:12px;
}

h3{
    color:var(--primary-dark);
}

a{
    color:var(--primary-dark);
}

a:hover{
    opacity:.85;
}

section,
div{
    border-radius:12px;
}

body > div,
section{
    background:var(--card);
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

form{
    margin-top:10px;
    max-width:700px;
}

body > form{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

input:not([type="radio"]):not([type="checkbox"]),
select,
textarea{
    width:100%;
    padding:12px;
    border:1px solid var(--border);
    border-radius:8px;
    margin-top:6px;
    margin-bottom:12px;
    font-size:15px;
    direction:ltr;
}

input[type="radio"]{
    width:auto;
    margin:0 0 0 8px;
    padding:0;
    border:none;
    vertical-align:middle;
}

textarea{
    resize:vertical;
    min-height:120px;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:var(--primary-dark);
}

button,
input[type="submit"],
input[type="button"]{
    width:auto;
    background:var(--primary);
    color:#222;
    border:none;
    padding:12px 18px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

input {
    direction: auto;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover{
    background:var(--primary-dark);
    color:white;
}

table{
    width:100%;
    border-collapse:collapse;
    background:white;
    margin-top:15px;
}

table th{
    background:var(--primary-dark);
    color:white;
}

table th,
table td{
    border:1px solid var(--border);
    padding:12px;
    text-align:center;
}

table tr:nth-child(even){
    background:#f8fff8;
}

.t{
    background:#5bd75b !important;
    color:black;
    font-weight:bold;
}

.f{
    background:#d61f1f !important;
    color:white;
    font-weight:bold;
}

hr{
    margin:15px 0;
    border:none;
    border-top:2px solid #ddd;
}

.success{
    background:#dfffe0;
    color:#0d5f1d;
    padding:12px;
    border-radius:8px;
    margin-bottom:10px;
}

.error{
    background:#ffe0e0;
    color:#9b1111;
    padding:12px;
    border-radius:8px;
    margin-bottom:10px;
}

.warning{
    background:#fff5d9;
    color:#8a6d00;
    padding:12px;
    border-radius:8px;
    margin-bottom:10px;
}

@media(max-width:768px){

    body{
        padding:10px;
    }

    nav{
        flex-direction:column;
    }

    nav a{
        width:100%;
        text-align:center;
    }

    table{
        display:block;
        overflow-x:auto;
    }

    button,
    input[type="submit"]{
        width:100%;
    }

    table td input[type="submit"]{
        width:auto;
    }
}

body > div,
section,
form,
body > form{
    margin-left:auto;
    margin-right:auto;
}

h1,
h2,
h3,
p,
label{
    text-align:center;
}

table th,
table td{
    text-align:center;
}

button,
input[type="submit"],
input[type="button"]{
    display:block;
    margin:15px auto 0;
}
a.red-button,
a.blue-button,
a.green-button,
input[type="submit"].red-button,
input[type="submit"].blue-button,
input[type="submit"].green-button{
    display:inline-block;
    text-decoration:none;
    padding:10px 18px;
    border-radius:6px;
    color:white;
    font-weight:500;
    transition:.2s;
    border:1px solid transparent;
    cursor:pointer;
}

a.red-button,
input[type="submit"].red-button{
    background:#dc3545;
    border-color:#dc3545;
}

a.red-button:hover,
input[type="submit"].red-button:hover{
    background:#bb2d3b;
    border-color:#b02a37;
    color:white;
}

a.blue-button,
input[type="submit"].blue-button{
    background:#0d6efd;
    border-color:#0d6efd;
}

a.blue-button:hover,
input[type="submit"].blue-button:hover{
    background:#0b5ed7;
    border-color:#0a58ca;
    color:white;
}

a.green-button,
input[type="submit"].green-button{
    background:#198754;
    border-color:#198754;
}

a.green-button:hover,
input[type="submit"].green-button:hover{
    background:#157347;
    border-color:#146c43;
    color:white;
}

table td:last-child{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex-wrap:nowrap;
}

table td:last-child form{
    display:inline;
    margin:0;
    max-width:none;
}

table td:last-child a,
table td:last-child input[type="submit"]{
    margin:0;
    width:auto;
    white-space:nowrap;
    display:inline-block;
}

table td input[type="submit"]{
    display:inline-block;
    margin:0;
}

section div{
    margin-bottom:15px;
    border-right:5px solid var(--primary);
}

.actions{
    display:block;
    width:fit-content;
    margin:20px auto;
    background:white;
    border:none !important;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    border-radius:12px;
}

#preview {
    max-width: 100%;
    height: auto;
    border: 2px solid black;
    display: none;
}

#azmoon-navbar{
    position: sticky;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background: var(--primary);

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

    padding: 14px 28px;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
#azmoon-logo{
    color:#222;
    font-size:22px;
    font-weight:bold;
}

#azmoon-menu{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

#azmoon-menu span{
    width:28px;
    height:3px;
    background:#222;
    border-radius:10px;
    transition:.35s;
}

#azmoon-nav{
    display:flex;
    list-style:none;
    gap:18px;
    margin:0;
    padding:0;
}

#azmoon-nav li{
    list-style:none;
}

#azmoon-nav li a{
    display:block;
    text-decoration:none;
    color:#222;
    padding:8px 14px;
    border-radius:10px;
    font-weight:bold;
    transition:.3s;
}

#azmoon-nav li a:hover{
    background:rgba(255,255,255,.35);
    color:#222;
}

#azmoon-menu.active span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
}

#azmoon-menu.active span:nth-child(2){
    opacity:0;
}

#azmoon-menu.active span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
}

@media(max-width:1000px){

    #azmoon-menu{
        display:flex;
    }

    #azmoon-nav{
        position:absolute;

        top:70px;
        left:0px;

        width:240px;

        flex-direction:column;
        gap:0;

        background:var(--primary);

        border-radius:12px;

        overflow:hidden;

        box-shadow:0 10px 20px rgba(0,0,0,.18);

        opacity:0;
        visibility:hidden;

        transform:translateY(-20px);

        transition:.35s;
    }

    #azmoon-nav.active{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }

    #azmoon-nav li{
        width:100%;
        text-align:center;
    }

    #azmoon-nav li a{
        display:block;
        width:100%;
        padding:15px;
        border-radius:0;
    }

    #azmoon-navbar{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
    }
}

.hero{

    background:linear-gradient(135deg,#f3fff3,#dff8df);

    border-radius:18px;

    padding:60px 30px;

    margin-bottom:35px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.hero h1{

    font-size:42px;

    margin-bottom:15px;

}

.hero-description{

    font-size:20px;

    max-width:700px;

    margin:auto;

    margin-bottom:40px;

    color:#444;

}

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:25px;

    flex-wrap:wrap;

}

.hero-btn{

    width:320px;

    display:flex;

    align-items:center;

    gap:18px;

    text-decoration:none;

    color:#222;

    background:white;

    padding:22px;

    border-radius:15px;

    transition:.35s;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

}

.hero-btn:hover{

    transform:translateY(-6px);

    box-shadow:0 12px 30px rgba(0,0,0,.16);

}

.hero-btn div{

    border:none;

    margin:0;

    text-align:right;

}

.hero-btn strong{

    display:block;

    font-size:23px;

    margin-bottom:6px;

}

.hero-btn span{

    color:#666;

}

.hero-btn.teacher{

    border-right:6px solid #198754;

}

.hero-btn.student{

    border-right:6px solid #0d6efd;

}

.hero-btn{

    font-size:42px;

}

.features{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:25px;

    margin-top:30px;

}

.feature-card{

    background:white;

    border-radius:18px;

    padding:30px;

    text-align:center;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

    transition:.4s;

    opacity:0;

    transform:translateY(40px);

    animation:showFeature .7s ease forwards;

}

.feature-card:hover{

    transform:translateY(-8px);

    box-shadow:0 15px 30px rgba(0,0,0,.16);

}

.feature-icon{

    font-size:55px;

    margin-bottom:18px;

}

.feature-card h3{

    margin-bottom:15px;

}

.feature-card p{

    color:#555;

    line-height:1.9;

}

.feature-card:nth-child(1){

    animation-delay:0s;

}

.feature-card:nth-child(2){

    animation-delay:2s;

}

.feature-card:nth-child(3){

    animation-delay:4s;

}

.feature-card:nth-child(4){

    animation-delay:6s;

}

@keyframes showFeature{

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.guide{
    max-width:900px;
    margin:auto;
}

.guide h1{
    text-align:center;
    margin-bottom:10px;
}

.guide-description{
    text-align:center;
    color:gray;
    margin-bottom:40px;
}

.guide-timeline{
    position:relative;
    padding-right:28px;
}

.guide-timeline::before{
    content:"";
    position:absolute;
    right:17px;
    top:0;
    bottom:0;
    width:4px;
    background:var(--primary);
    border-radius:10px;
}

.guide-step{
    display:flex;
    align-items:flex-start;
    gap:20px;
    margin-bottom:28px;
    position:relative;
}

.guide-number{
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:50%;
    background:var(--primary);
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:bold;
    z-index:2;
    box-shadow:0 0 10px rgba(0,0,0,.15);
}

.guide-content{
    flex:1;
    background:white;
    border-radius:14px;
    padding:18px 22px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.guide-content h2{
    margin-top:0;
    margin-bottom:10px;
    font-size:1.1rem;
    color:green;
}

.guide-content p{
    margin:0;
    line-height:1.9;
}

.guide-content ul{
    margin:8px 0 0;
    padding-right:20px;
    line-height:2;
}

.guide-note{
    margin-top:18px;
    padding:14px 18px;
    border-radius:10px;
    line-height:1.8;
}

.guide-note.success{
    background:#eaf8ee;
    border-right:5px solid #28a745;
}

.guide-note.warning{
    background:#fff8e6;
    border-right:5px solid #f0ad4e;
}

.guide-green{
    color:#28a745;
    font-weight:bold;
}

.guide-red{
    color:#dc3545;
    font-weight:bold;
}

.guide-orange{
    color:#ff9800;
    font-weight:bold;
}

@media (max-width:700px){

    .guide-timeline{
        padding-right:18px;
    }

    .guide-timeline::before{
        right:13px;
    }

    .guide-step{
        gap:12px;
    }

    .guide-number{
        width:30px;
        height:30px;
        min-width:30px;
        font-size:.9rem;
    }

}

.guide,
.guide *{
    border-right: none !important;
    border-inline-end: none !important;
}
