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

body{
    direction:rtl;
    background:#f4f6f9;
}

.container{
    width:95%;
    max-width:1250px;
    margin:40px auto;
}

/* Back Button */

.back-btn{
    display:inline-block;
    text-decoration:none;
    background:#053734;
    color:#fff;
    padding:12px 22px;
    border-radius:8px;
    transition:.3s;
}

.back-btn:hover{
    background:#086058;
}

/* Titles */

h1{
    text-align:center;
    color:#053734;
    margin:25px 0 10px;
    font-size:42px;
}

.subtitle{
    text-align:center;
    color:#777;
    margin-bottom:35px;
}

/* Selector */

.selector{
    background:#fff;
    border-radius:15px;
    padding:30px;
    margin-bottom:40px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.selector form{
    display:flex;
    align-items:flex-end;
    gap:20px;
    flex-wrap:wrap;
}

.selector label{
    display:block;
    margin-bottom:8px;
    color:#053734;
    font-weight:bold;
}

.selector select{
    flex:1;
    min-width:280px;
    padding:14px;
    border-radius:8px;
    border:1px solid #ccc;
    outline:none;
    font-size:16px;
    transition:.3s;
}

.selector select:focus{
    border-color:#20bf6b;
}

.selector button{
    width:180px;
    padding:14px;
    border:none;
    border-radius:8px;
    background:#053734;
    color:#fff;
    font-size:17px;
    cursor:pointer;
    transition:.3s;
}

.selector button:hover{
    background:#086058;
}

/* Schedule Box */

.schedule-box{
    background:#fff;
    border-radius:15px;
    padding:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    animation:fade .4s ease;
}

.schedule-box h2{
    text-align:center;
    color:#053734;
    margin-bottom:20px;
}

/* Table */

.table-container{
    overflow-x:auto;
    border-radius:12px;
    -webkit-overflow-scrolling:touch;
}

table{
    width:100%;
    min-width:900px;
    border-collapse:collapse;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

thead{
    background:#053734;
    color:#fff;
}

th{
    padding:16px;
    white-space:nowrap;
    font-size:17px;
}

td{
    padding:15px;
    text-align:center;
    border-bottom:1px solid #eee;
    white-space:nowrap;
    transition:.25s;
}

tbody tr:nth-child(even){
    background:#fafafa;
}

tbody tr:hover td:not(.day){
    background:#dff7ef;
}

.day{
    background:#D4AF37;
    color:#fff;
    font-weight:bold;
}

.lesson{

    display:flex;

    flex-direction:column;

    gap:6px;

    text-align:center;

}

.lesson strong{

    color:#0a5c4a;

    font-size:15px;

}

.lesson span{

    color:#666;

    font-size:13px;

}


/* Animation */

@keyframes fade{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* Tablet */

@media (max-width:992px){

    h1{
        font-size:34px;
    }

    table{
        min-width:800px;
    }

}

/* Mobile */

@media (max-width:768px){

    .container{
        width:98%;
        margin:20px auto;
    }

    .back-btn{
        width:100%;
        text-align:center;
        margin-bottom:20px;
    }

    h1{
        font-size:28px;
    }

    .subtitle{
        font-size:15px;
        margin-bottom:25px;
    }

    .selector{
        padding:18px;
    }

    .selector form{
        flex-direction:column;
        align-items:stretch;
    }

    .selector select{
        width:100%;
        min-width:100%;
    }

    .selector button{
        width:100%;
    }

    .schedule-box{
        padding:15px;
    }

    table{
        min-width:700px;
    }

    th,
    td{
        padding:10px;
        font-size:13px;
    }

}

/* Small Phones */

@media (max-width:480px){

    h1{
        font-size:24px;
    }

    .subtitle{
        font-size:14px;
    }

    .selector{
        padding:15px;
    }

    table{
        min-width:650px;
    }

    th,
    td{
        font-size:12px;
        padding:8px;
    }

}