
/* Tawjihi Jo Teachers Frontend v1.1.0 */

.tjteach-container{
    width:min(1200px, calc(100% - 32px));
    margin:0 auto;
}

.tjteach-listing{
    width:100%;
    padding:40px 0;
    direction:rtl;
}

.tjteach-listing__head{
    text-align:center;
    margin-bottom:28px;
}

.tjteach-listing__head h2,
.tjteach-products-title h2{
    margin:0;
    color:#11192C;
    font-size:28px;
    font-weight:800;
}

.tjteach-listing__head p{
    margin:7px 0 0;
    color:#667085;
}

.tjteach-listing__head span,
.tjteach-products-title span{
    display:block;
    width:55px;
    height:4px;
    margin:10px auto 0;
    border-radius:20px;
    background:#0CB182;
}

.tjteach-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
}

.tjteach-card{
    background:#fff;
    border:1px solid #E3E7EC;
    border-radius:16px;
    overflow:hidden;
    transition:.2s ease;
}

.tjteach-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 28px rgba(17,25,44,.08);
}

.tjteach-card__image{
    display:block;
    aspect-ratio:1/1;
    background:#F8FAF9;
    overflow:hidden;
}

.tjteach-card__image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.tjteach-card__placeholder,
.tjteach-profile__placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#E7F7F2;
    color:#087C5B;
    font-size:52px;
    font-weight:800;
}

.tjteach-card__body{
    padding:16px;
}

.tjteach-card__body h3{
    margin:0 0 10px;
    font-size:18px;
    font-weight:800;
}

.tjteach-card__body h3 a{
    color:#11192C;
    text-decoration:none;
}

.tjteach-card__meta{
    margin:5px 0;
    color:#667085;
    font-size:13px;
    line-height:1.6;
}

.tjteach-card__button{
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:14px;
    min-height:40px;
    padding:8px 12px;
    border-radius:9px;
    background:#087C5B;
    color:#fff !important;
    text-decoration:none !important;
    font-weight:700;
}

.tjteach-card__button:hover{
    background:#076148;
}

.tjteach-teacher-page{
    padding-bottom:50px;
}

.tjteach-teacher-banner{
    width:100%;
    background:#F8FAF9;
    overflow:hidden;
}

.tjteach-teacher-banner img{
    width:100%;
    max-height:420px;
    object-fit:cover;
    display:block;
}

.tjteach-profile{
    display:grid;
    grid-template-columns:220px minmax(0,1fr);
    gap:28px;
    align-items:center;
    margin:38px 0 48px;
    padding:24px;
    background:#fff;
    border:1px solid #E3E7EC;
    border-radius:18px;
}

.tjteach-profile__photo{
    width:220px;
    height:220px;
    border-radius:18px;
    overflow:hidden;
    background:#F8FAF9;
}

.tjteach-profile__photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.tjteach-profile__content h1{
    margin:0 0 12px;
    color:#11192C;
    font-size:32px;
    font-weight:800;
}

.tjteach-profile__badges{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:16px;
}

.tjteach-profile__badges span{
    padding:6px 10px;
    border-radius:999px;
    background:#E7F7F2;
    color:#087C5B;
    font-size:13px;
    font-weight:700;
}

.tjteach-profile__bio{
    color:#2B3242;
    line-height:1.9;
    font-size:15px;
}

.tjteach-products-title{
    margin-bottom:22px;
}

.tjteach-products-title span{
    margin-right:0;
    margin-left:0;
}

.tjteach-empty{
    padding:18px;
    border-radius:12px;
    background:#F8FAF9;
    color:#667085;
    text-align:center;
}

.tjteach-pagination{
    margin-top:34px;
    display:flex;
    justify-content:center;
}

.tjteach-pagination ul.page-numbers{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    list-style:none;
    margin:0;
    padding:0;
}

.tjteach-pagination .page-numbers a,
.tjteach-pagination .page-numbers span{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    height:40px;
    padding:0 12px;
    border:1px solid #E3E7EC;
    border-radius:8px;
    background:#fff;
    color:#2B3242;
    text-decoration:none;
    font-weight:700;
}

.tjteach-pagination .page-numbers .current{
    background:#0CB182;
    border-color:#0CB182;
    color:#fff;
}

@media(max-width:1024px){
    .tjteach-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .tjteach-profile{
        grid-template-columns:180px minmax(0,1fr);
    }

    .tjteach-profile__photo{
        width:180px;
        height:180px;
    }
}

@media(max-width:767px){
    .tjteach-container{
        width:min(100% - 24px,1200px);
    }

    .tjteach-listing{
        padding:30px 0;
    }

    .tjteach-listing__head h2,
    .tjteach-products-title h2{
        font-size:22px;
    }

    .tjteach-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px;
    }

    .tjteach-card__body{
        padding:12px;
    }

    .tjteach-card__body h3{
        font-size:15px;
    }

    .tjteach-card__meta{
        font-size:12px;
    }

    .tjteach-card__button{
        font-size:13px;
    }

    .tjteach-teacher-banner img{
        max-height:240px;
    }

    .tjteach-profile{
        grid-template-columns:1fr;
        gap:18px;
        margin:22px 0 34px;
        padding:16px;
        text-align:center;
    }

    .tjteach-profile__photo{
        width:150px;
        height:150px;
        margin:0 auto;
        border-radius:50%;
    }

    .tjteach-profile__content h1{
        font-size:25px;
    }

    .tjteach-profile__badges{
        justify-content:center;
    }

    .tjteach-profile__bio{
        text-align:right;
        font-size:14px;
    }
}


/* =======================================
   Teachers Filter Widget - v1.2.0
======================================= */

.tjteach-listing-layout{
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:26px;
    align-items:start;
}

.tjteach-listing-results{
    min-width:0;
}

.tjteach-filter-widget{
    position:sticky;
    top:20px;
    padding:18px;
    background:#fff;
    border:1px solid #E3E7EC;
    border-radius:16px;
    box-shadow:0 5px 20px rgba(17,25,44,.04);
}

.tjteach-filter-widget__title{
    margin-bottom:17px;
    padding-bottom:12px;
    border-bottom:1px solid #E3E7EC;
    color:#11192C;
    font-size:18px;
    font-weight:800;
}

.tjteach-filter-field{
    margin-bottom:15px;
}

.tjteach-filter-field label{
    display:block;
    margin-bottom:6px;
    color:#2B3242;
    font-size:14px;
    font-weight:700;
}

.tjteach-filter-field select{
    width:100%;
    min-height:42px;
    padding:7px 10px;
    border:1px solid #D8DDE4;
    border-radius:9px;
    background:#fff;
    color:#2B3242;
    font-family:inherit;
}

.tjteach-filter-field select:focus{
    border-color:#0CB182;
    outline:none;
    box-shadow:0 0 0 2px rgba(12,177,130,.12);
}

.tjteach-filter-submit{
    width:100%;
    min-height:42px;
    border:0;
    border-radius:9px;
    background:#087C5B;
    color:#fff;
    font-family:inherit;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
}

.tjteach-filter-submit:hover{
    background:#076148;
}

.tjteach-filter-reset{
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:9px;
    min-height:38px;
    border:1px solid #E3E7EC;
    border-radius:9px;
    background:#fff;
    color:#667085 !important;
    text-decoration:none !important;
    font-size:13px;
    font-weight:700;
}

.tjteach-filter-reset:hover{
    border-color:#0CB182;
    color:#087C5B !important;
}

.tjteach-filter-summary{
    margin-bottom:16px;
    padding:11px 14px;
    border-radius:10px;
    background:#E7F7F2;
    color:#2B3242;
    font-size:14px;
}

.tjteach-filter-summary strong{
    color:#087C5B;
}

.tjteach-listing-layout .tjteach-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

@media(max-width:1024px){
    .tjteach-listing-layout{
        grid-template-columns:220px minmax(0,1fr);
        gap:18px;
    }

    .tjteach-listing-layout .tjteach-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:767px){
    .tjteach-listing-layout{
        display:block;
    }

    .tjteach-filter-widget{
        position:static;
        margin-bottom:20px;
        padding:15px;
        border-radius:14px;
    }

    .tjteach-filter-widget form{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .tjteach-filter-widget__title{
        margin-bottom:13px;
    }

    .tjteach-filter-field{
        margin:0;
    }

    .tjteach-filter-submit,
    .tjteach-filter-reset{
        margin:0;
        width:100%;
    }

    .tjteach-listing-layout .tjteach-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px;
    }
}

@media(max-width:480px){
    .tjteach-filter-widget form{
        grid-template-columns:1fr;
    }
}
