.lughty-teachers-section,
.lughty-availability,
.lughty-teacher-directory,
.lughty-teacher-profile{
 --lughty-primary:#4f3db9;
 --lughty-primary-2:#3378df;
 --lughty-primary-dark:#302176;
 --lughty-ink:#171547;
 --lughty-muted:#67698a;
 --lughty-blue-soft:#dceeff;
 --lughty-purple-soft:#eeeaff;
 --lughty-yellow:#ffc33d;
 --lughty-border:#e2e8f3;
 direction:rtl;
 color:var(--lughty-ink);
 font-family:"Tajawal",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
.lughty-teachers-section *,
.lughty-availability *,
.lughty-teacher-directory *,
.lughty-teacher-profile *{box-sizing:border-box}
.lughty-teachers-section{padding:34px 0 74px;background:#fff;overflow:hidden}
.lughty-teachers-container{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.lughty-teachers-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:30px;align-items:end}
.lughty-teachers-section--no-art .lughty-teachers-layout{grid-template-columns:1fr}
.lughty-teachers-art{align-self:end;justify-self:center}
.lughty-teachers-art img{display:block;width:220px;max-width:100%;height:auto;filter:drop-shadow(0 18px 16px rgba(75,69,166,.12))}
.lughty-teachers-content{min-width:0}
.lughty-teachers-heading{display:flex;align-items:end;justify-content:space-between;gap:22px;margin:0 0 20px;text-align:right}
.lughty-teachers-heading h2{margin:0 0 5px;color:#201a55;font-size:clamp(24px,2.35vw,32px);line-height:1.25;font-weight:900;letter-spacing:-.025em}
.lughty-teachers-heading p{margin:0;color:var(--lughty-muted);font-size:15px;line-height:1.6;font-weight:500}
.lughty-teachers-heading>a{flex:0 0 auto;color:#4f3db9!important;text-decoration:underline!important;text-underline-offset:5px;font-size:13px;line-height:1.4;font-weight:800;transition:color .2s ease}
.lughty-teachers-heading>a:hover{color:#3378df!important}
.lughty-teachers-grid{display:grid;gap:16px;align-items:stretch}
.lughty-teachers-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.lughty-teachers-grid--3{grid-template-columns:repeat(3,minmax(190px,1fr));justify-content:center}
.lughty-teachers-grid--2{grid-template-columns:repeat(2,minmax(220px,290px));justify-content:center}
.lughty-teachers-grid--1{grid-template-columns:minmax(240px,300px);justify-content:center}
.lughty-teacher-card{position:relative;min-width:0;border:1px solid #e2e8f3;border-radius:17px;overflow:hidden;background:#fff;box-shadow:0 9px 22px rgba(58,76,143,.09);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
@media(hover:hover){.lughty-teacher-card:hover{transform:translateY(-5px);border-color:#cad8f1;box-shadow:0 17px 34px rgba(58,76,143,.15)}}
.lughty-teacher-card__link{display:block;height:100%;color:inherit!important;text-decoration:none!important}
.lughty-teacher-card__photo{position:relative;height:120px;overflow:hidden;background:linear-gradient(135deg,#f9f4ff,#eff7ff)}
.lughty-teacher-card__image{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;object-position:center top;transition:transform .35s ease}
@media(hover:hover){.lughty-teacher-card:hover .lughty-teacher-card__image{transform:scale(1.025)}}
.lughty-teacher-card__badge{position:absolute;top:9px;right:9px;max-width:calc(100% - 18px);padding:4px 8px;border-radius:999px;background:rgba(79,61,185,.93);color:#fff;font-size:9px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lughty-teacher-card__available{position:absolute;right:10px;bottom:8px;display:flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.94);color:#16884c;font-size:10px;font-weight:800;box-shadow:0 5px 13px rgba(39,64,123,.12)}
.lughty-teacher-card__available i{width:7px;height:7px;border-radius:50%;background:#20b969;box-shadow:0 0 0 3px rgba(32,185,105,.14)}
.lughty-teacher-card__body{padding:11px;text-align:right}
.lughty-teacher-card__body h3{margin:0 0 6px;color:#171547;font-size:15px;line-height:1.35;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lughty-teacher-card__specialization{margin:-1px 0 8px;color:#666b8a;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lughty-teacher-card__meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#666b8a;font-size:11px;line-height:1.4}
.lughty-teacher-card__meta>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lughty-teacher-rating{display:flex;align-items:center;gap:4px;flex:0 0 auto;direction:ltr}
.lughty-teacher-rating>b{color:#315fc3;font-size:10px}
.lughty-teacher-rating>span[aria-hidden]{color:#ffb82f;font-size:10px;letter-spacing:.5px}
.lughty-teachers-carousel{position:relative;padding:4px 0 31px}
.lughty-teachers-carousel__viewport{width:100%;overflow-x:auto;overflow-y:visible;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-inline:contain;padding:7px 2px 18px}
.lughty-teachers-carousel__viewport::-webkit-scrollbar{display:none}
.lughty-teachers-track{display:flex;gap:16px;direction:rtl;align-items:stretch}
.lughty-teachers-track .lughty-teacher-card{flex:0 0 calc((100% - 48px)/4);scroll-snap-align:start;scroll-snap-stop:always}
.lughty-teachers-carousel__control{display:none;position:absolute;z-index:4;top:46%;width:36px;height:36px;padding:0;border:0;border-radius:50%;place-items:center;background:var(--lughty-primary);color:#fff;box-shadow:0 8px 20px rgba(61,47,159,.25);transform:translateY(-50%);transition:opacity .2s ease,transform .2s ease}
.lughty-teachers-carousel.is-enhanced .lughty-teachers-carousel__control{display:grid}
.lughty-teachers-carousel__control svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lughty-teachers-carousel__control--previous{right:-16px}
.lughty-teachers-carousel__control--previous svg{transform:rotate(180deg)}
.lughty-teachers-carousel__control--next{left:-16px}
.lughty-teachers-carousel__control:disabled{opacity:.25;cursor:not-allowed}
.lughty-teachers-carousel__control:not(:disabled):hover{transform:translateY(-50%) scale(1.06)}
.lughty-teachers-carousel__dots{display:none;position:absolute;right:0;left:0;bottom:0;align-items:center;justify-content:center;gap:7px}
.lughty-teachers-carousel.is-enhanced .lughty-teachers-carousel__dots{display:flex}
.lughty-teachers-carousel__dot{width:8px;height:8px;padding:0;border:0;border-radius:999px;background:#c7d1eb;transition:width .2s ease,background .2s ease}
.lughty-teachers-carousel__dot.is-active{width:24px;background:linear-gradient(90deg,var(--lughty-primary-2),var(--lughty-primary))}
.lughty-teacher-card__link:focus-visible,.lughty-teachers-heading>a:focus-visible,.lughty-teachers-carousel__control:focus-visible,.lughty-teachers-carousel__dot:focus-visible,.lughty-teachers-carousel__viewport:focus-visible{outline:3px solid rgba(255,195,61,.95);outline-offset:3px}
.lughty-teachers-admin-empty{max-width:900px;margin:25px auto;padding:18px 22px;border:1px dashed #7d69d2;border-radius:14px;background:#f8f6ff;color:#302176;font-family:"Tajawal",system-ui,sans-serif;text-align:right}

/* Dynamic available-teachers bar — matches the approved hero bar. */
.lughty-availability{position:relative;z-index:3;width:min(1180px,calc(100% - 40px));margin:-28px auto 30px}
.lughty-availability__card{display:grid;grid-template-columns:minmax(245px,1fr) minmax(390px,1.6fr) auto;align-items:center;gap:20px;min-height:82px;padding:12px 24px;border:1px solid #e3e9f5;border-radius:28px;background:rgba(255,255,255,.98);box-shadow:0 13px 28px rgba(54,74,148,.15)}
.lughty-availability__copy{display:flex;align-items:center;gap:12px}
.lughty-availability__copy>i{width:9px;height:9px;border-radius:50%;background:#20b969;box-shadow:0 0 0 4px rgba(32,185,105,.12)}
.lughty-availability__copy strong{display:block;color:#171547;font-size:17px;line-height:1.35;font-weight:900}
.lughty-availability__copy small{display:block;margin-top:3px;color:#7a7e99;font-size:11px;line-height:1.4}
.lughty-availability__avatars{display:flex;align-items:center;justify-content:center;gap:24px;min-width:0}
.lughty-availability__avatar{display:flex;flex-direction:column;align-items:center;gap:3px;color:#3d4164!important;text-decoration:none!important;font-size:10px;font-weight:700}
.lughty-availability__avatar>span{position:relative;width:44px;height:44px;border:3px solid #fff;border-radius:50%;box-shadow:0 3px 12px rgba(44,65,135,.17)}
.lughty-availability__image{display:block;width:100%!important;height:100%!important;border-radius:50%;object-fit:cover;object-position:center top}
.lughty-availability__avatar>span>i{position:absolute;right:-1px;bottom:1px;width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#20b969}
.lughty-availability__avatar:hover{color:#4f3db9!important}
.lughty-availability__link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 20px;border:1px solid #8a92e2;border-radius:999px;color:#4f3db9!important;text-decoration:none!important;font-size:12px;font-weight:800;white-space:nowrap;background:#fff;transition:.2s}
.lughty-availability__link:hover{background:#f4f1ff;transform:translateY(-1px)}

/* Directory */
.lughty-teachers-template-main{background:#fff}
.lughty-teacher-directory{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:95px 0 80px}
.lughty-teacher-directory__hero{max-width:760px;margin:0 auto 35px;text-align:center}
.lughty-teacher-directory__hero>span{display:inline-block;margin-bottom:10px;padding:6px 12px;border-radius:999px;background:#eeeaff;color:#4f3db9;font-size:12px;font-weight:800}
.lughty-teacher-directory__hero h1{margin:0 0 10px;color:#171547;font-size:clamp(31px,5vw,52px);line-height:1.2;font-weight:900;letter-spacing:-.035em}
.lughty-teacher-directory__hero p{max-width:670px;margin:0 auto;color:#67698a;font-size:17px;line-height:1.8}
.lughty-teacher-filters{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) auto auto;align-items:center;gap:12px;margin:0 0 28px;padding:15px;border:1px solid #e1e8f5;border-radius:20px;background:#f9fbff;box-shadow:0 8px 24px rgba(58,76,143,.07)}
.lughty-teacher-filters input[type=search],.lughty-teacher-filters select{width:100%;height:46px;padding:0 14px;border:1px solid #d8e1f2;border-radius:13px;background:#fff;color:#171547;font:inherit;outline:none}
.lughty-teacher-filters input:focus,.lughty-teacher-filters select:focus{border-color:#6a55cf;box-shadow:0 0 0 3px rgba(106,85,207,.12)}
.lughty-teacher-filters__available{display:flex;align-items:center;gap:7px;color:#4d5273;font-size:13px;font-weight:700;white-space:nowrap}
.lughty-teacher-filters button{height:46px;padding:0 24px;border:0;border-radius:999px;background:linear-gradient(135deg,#438af0,#5632bb);color:#fff;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(68,82,190,.18)}
.lughty-teacher-directory__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.lughty-teacher-card--directory .lughty-teacher-card__photo{height:220px}
.lughty-teacher-card--directory .lughty-teacher-card__body{padding:15px}
.lughty-teacher-card--directory .lughty-teacher-card__body h3{font-size:18px}
.lughty-teacher-card--directory .lughty-teacher-card__meta{margin-top:10px}
.lughty-teacher-directory__empty{padding:55px 20px;border:1px dashed #9b8dde;border-radius:20px;background:#faf8ff;text-align:center}
.lughty-teacher-directory__empty h2{margin:0 0 7px;font-size:25px}
.lughty-teacher-directory__empty p{margin:0;color:#67698a}
.lughty-teacher-pagination{margin-top:34px}
.lughty-teacher-pagination .page-numbers{display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;margin:0;padding:0}
.lughty-teacher-pagination a,.lughty-teacher-pagination span{display:grid;place-items:center;min-width:40px;height:40px;padding:0 10px;border:1px solid #dce4f3;border-radius:11px;background:#fff;color:#4f3db9;text-decoration:none;font-weight:800}
.lughty-teacher-pagination .current{border-color:#4f3db9;background:#4f3db9;color:#fff}

/* Teacher profile */
.lughty-teacher-profile{width:min(1050px,calc(100% - 40px));margin:0 auto;padding:105px 0 80px}
.lughty-teacher-profile__hero{display:grid;grid-template-columns:350px minmax(0,1fr);gap:42px;align-items:center;padding:28px;border:1px solid #dfe7f4;border-radius:30px;background:linear-gradient(135deg,#f9f5ff 0%,#f1f8ff 100%);box-shadow:0 18px 45px rgba(55,74,153,.12)}
.lughty-teacher-profile__photo{position:relative;height:360px;overflow:hidden;border:7px solid #fff;border-radius:24px;background:#fff;box-shadow:0 12px 28px rgba(52,72,144,.14)}
.lughty-teacher-profile__image{display:block;width:100%!important;height:100%!important;object-fit:cover;object-position:center top}
.lughty-teacher-profile__photo>span{position:absolute;right:15px;bottom:15px;display:flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;background:#fff;color:#16884c;font-size:12px;font-weight:800;box-shadow:0 7px 18px rgba(38,60,120,.15)}
.lughty-teacher-profile__photo>span i,.lughty-teacher-profile__availability i{width:8px;height:8px;border-radius:50%;background:#20b969;box-shadow:0 0 0 3px rgba(32,185,105,.15)}
.lughty-teacher-profile__badge{display:inline-flex;padding:6px 12px;border-radius:999px;background:#4f3db9;color:#fff;font-size:11px;font-weight:800}
.lughty-teacher-profile__intro h1{margin:12px 0 5px;color:#171547;font-size:clamp(33px,4vw,50px);line-height:1.2;font-weight:900;letter-spacing:-.04em}
.lughty-teacher-profile__specialization{margin:0 0 12px;color:#3378df;font-size:18px;font-weight:800}
.lughty-teacher-profile__rating{display:flex;align-items:center;gap:8px;margin-bottom:20px}
.lughty-teacher-profile__rating>span{color:#ffb82f;letter-spacing:1px}
.lughty-teacher-profile__rating strong{color:#315fc3}.lughty-teacher-profile__rating small{color:#787c97}
.lughty-teacher-profile__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:17px}
.lughty-teacher-profile__facts>div{padding:12px;border:1px solid rgba(194,209,237,.8);border-radius:13px;background:rgba(255,255,255,.78)}
.lughty-teacher-profile__facts strong,.lughty-teacher-profile__facts span{display:block}
.lughty-teacher-profile__facts strong{margin-bottom:4px;color:#302176;font-size:12px}.lughty-teacher-profile__facts span{color:#606580;font-size:12px;line-height:1.5}
.lughty-teacher-profile__availability{display:flex;align-items:center;gap:8px;margin:0 0 17px;color:#367354;font-size:13px;font-weight:700}
.lughty-teacher-profile__button{display:inline-flex;align-items:center;justify-content:center;min-width:170px;min-height:46px;padding:11px 24px;border-radius:999px;background:linear-gradient(135deg,#438af0,#5632bb);color:#fff!important;text-decoration:none!important;font-weight:800;box-shadow:0 9px 20px rgba(64,75,186,.22)}
.lughty-teacher-profile__content{max-width:820px;margin:35px auto 0;padding:28px;border:1px solid #e0e7f4;border-radius:24px;background:#fff;box-shadow:0 10px 28px rgba(57,73,143,.08)}
.lughty-teacher-profile__content h2{margin:0 0 14px;font-size:25px}.lughty-teacher-profile__content p{color:#555a78;font-size:16px;line-height:1.95}

@media(max-width:1100px){
 .lughty-teachers-layout{grid-template-columns:180px minmax(0,1fr);gap:23px}
 .lughty-teachers-art img{width:180px}
 .lughty-teacher-directory__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .lughty-availability__card{grid-template-columns:minmax(215px,1fr) minmax(310px,1.45fr) auto;gap:14px;padding-inline:18px}
 .lughty-availability__avatars{gap:15px}
}
@media(max-width:900px){
 .lughty-teachers-section{padding:52px 0 62px}
 .lughty-teachers-layout{grid-template-columns:1fr;gap:14px}
 .lughty-teachers-art{order:2}.lughty-teachers-content{order:1}
 .lughty-teachers-art img{width:190px;margin:auto}
 .lughty-teachers-heading{align-items:center}
 .lughty-teachers-grid--4,.lughty-teachers-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
 .lughty-teachers-track .lughty-teacher-card{flex-basis:calc((100% - 16px)/2)}
 .lughty-availability{margin-top:-20px}
 .lughty-availability__card{grid-template-columns:1fr auto}.lughty-availability__avatars{order:3;grid-column:1/-1;justify-content:flex-start;overflow-x:auto;padding:2px 3px 6px}
 .lughty-teacher-directory__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .lughty-teacher-filters{grid-template-columns:1fr 1fr}.lughty-teacher-filters__available{justify-content:center}
 .lughty-teacher-profile__hero{grid-template-columns:280px minmax(0,1fr);gap:25px}.lughty-teacher-profile__photo{height:310px}.lughty-teacher-profile__facts{grid-template-columns:1fr}
}
@media(max-width:650px){
 .lughty-teachers-container,.lughty-availability,.lughty-teacher-directory,.lughty-teacher-profile{width:min(100% - 24px,1180px)}
 .lughty-teachers-heading{align-items:flex-start}.lughty-teachers-heading h2{font-size:25px}.lughty-teachers-heading p{font-size:14px}.lughty-teachers-heading>a{font-size:11px}
 .lughty-teachers-grid--4,.lughty-teachers-grid--3,.lughty-teachers-grid--2{grid-template-columns:1fr}
 .lughty-teachers-track .lughty-teacher-card{flex-basis:88%;max-width:330px}
 .lughty-teachers-carousel{padding-bottom:47px}.lughty-teachers-carousel__control{top:auto;bottom:0;transform:none}.lughty-teachers-carousel__control:not(:disabled):hover{transform:scale(1.04)}.lughty-teachers-carousel__control--previous{right:calc(50% + 54px)}.lughty-teachers-carousel__control--next{left:calc(50% + 54px)}.lughty-teachers-carousel__dots{bottom:11px}
 .lughty-availability__card{grid-template-columns:1fr;padding:16px}.lughty-availability__copy{justify-content:center;text-align:center}.lughty-availability__link{width:100%}.lughty-availability__avatars{order:2;grid-column:auto;justify-content:flex-start}
 .lughty-teacher-directory{padding-top:65px}.lughty-teacher-directory__hero p{font-size:15px}.lughty-teacher-filters{grid-template-columns:1fr}.lughty-teacher-directory__grid{grid-template-columns:1fr}.lughty-teacher-card--directory .lughty-teacher-card__photo{height:260px}
 .lughty-teacher-profile{padding-top:70px}.lughty-teacher-profile__hero{grid-template-columns:1fr;padding:17px}.lughty-teacher-profile__photo{height:380px}.lughty-teacher-profile__intro{text-align:center}.lughty-teacher-profile__rating,.lughty-teacher-profile__availability{justify-content:center}.lughty-teacher-profile__button{width:100%}.lughty-teacher-profile__content{padding:20px}
}
@media(max-width:390px){.lughty-teacher-profile__photo{height:330px}.lughty-availability__avatars{gap:12px}.lughty-availability__avatar>span{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.lughty-teacher-card,.lughty-teacher-card__image,.lughty-teachers-carousel__control,.lughty-teachers-carousel__dot,.lughty-availability__link{transition:none!important}.lughty-teachers-carousel__viewport{scroll-behavior:auto!important}}

/* v5.1.1 — Woodmart/theme compatibility for carousel controls. */
.lughty-teachers-carousel__control{
 -webkit-appearance:none!important;appearance:none!important;position:absolute!important;
 min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important;
 width:36px!important;height:36px!important;margin:0!important;padding:0!important;border:0!important;
 border-radius:50%!important;background:var(--lughty-primary)!important;background-image:none!important;
 color:#fff!important;line-height:1!important;text-indent:0!important;box-shadow:0 8px 20px rgba(61,47,159,.25)!important;
 top:46%!important;bottom:auto!important;transform:translateY(-50%)!important;
}
.lughty-teachers-carousel.is-enhanced .lughty-teachers-carousel__control{display:grid!important}
.lughty-teachers-carousel__control--previous{right:-16px!important;left:auto!important}
.lughty-teachers-carousel__control--next{left:-16px!important;right:auto!important}
.lughty-teachers-carousel__control--previous svg{transform:rotate(180deg)!important}
.lughty-teachers-carousel__dot{
 -webkit-appearance:none!important;appearance:none!important;min-width:8px!important;max-width:8px!important;
 min-height:8px!important;max-height:8px!important;width:8px!important;height:8px!important;margin:0!important;
 padding:0!important;border:0!important;border-radius:999px!important;background:#c7d1eb!important;
 background-image:none!important;box-shadow:none!important;line-height:0!important;transform:none!important;
}
.lughty-teachers-carousel__dot.is-active{min-width:24px!important;max-width:24px!important;width:24px!important;background:linear-gradient(90deg,var(--lughty-primary-2),var(--lughty-primary))!important}
@media(max-width:650px){
 .lughty-teachers-carousel__control{top:auto!important;bottom:0!important;transform:none!important}
 .lughty-teachers-carousel__control--previous{right:calc(50% + 54px)!important;left:auto!important}
 .lughty-teachers-carousel__control--next{left:calc(50% + 54px)!important;right:auto!important}
}

/* v5.1.2 — Desktop RTL arrow direction correction.
 * On desktop the control placed on the right advances visually to the right,
 * while the control placed on the left advances visually to the left.
 * Mobile keeps the approved existing directions.
 */
@media (min-width:651px){
 .lughty-teachers-carousel__control--previous svg{transform:none!important}
 .lughty-teachers-carousel__control--next svg{transform:rotate(180deg)!important}
}
