/* ==========================================================================
   Site locale, loading UX, sliders, and product gallery overrides
   ========================================================================== */

/* --- RTL (scoped to main content) --- */
main.edu-content-ar,
main.edu-content-ar .page,
main.edu-content-ar .user-content {
    direction: rtl;
    text-align: right;
}

main.edu-content-ar .user-sidebar {
    direction: rtl;
    text-align: center;
}

main.edu-content-ar .user-sidebar ul {
    text-align: center;
}

main.edu-content-ar .user-sidebar ul li a {
    direction: rtl;
}

main.edu-content-ar .panel-title,
main.edu-content-ar .panel-body,
main.edu-content-ar .form-group label {
    text-align: right;
}

main.edu-content-ar .table-responsive table {
    direction: rtl;
}

main.edu-content-ar h3.special,
main.edu-content-ar .text-center,
main.edu-content-ar .special.text-center {
    text-align: center !important;
}

/* Category sidebar (الفئات) — tree-menu.css defaults to LTR */
main.edu-content-ar .edu-category-sidebar,
main.edu-content-ar .edu-category-sidebar h3,
main.edu-content-ar #categories-container {
    direction: rtl;
    text-align: right;
}

main.edu-content-ar .edu-category-sidebar {
    width: 100%;
}

main.edu-content-ar .edu-category-sidebar form {
    width: 100%;
    margin: 0;
}

main.edu-content-ar #left,
main.edu-content-ar #left.span3 {
    width: 100%;
    float: none;
    margin: 0;
}

main.edu-content-ar #left ul.nav {
    direction: rtl;
    text-align: right;
    width: 100%;
}

main.edu-content-ar #left ul.nav li a,
main.edu-content-ar #left ul.nav > li.parent > a,
main.edu-content-ar #left ul.nav li.parent ul li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

main.edu-content-ar #left ul.nav li .sign {
    order: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    width: auto;
}

main.edu-content-ar #left ul.nav li .lbl,
main.edu-content-ar #left ul.nav li .lbl1 {
    order: 1;
    flex: 1 1 auto;
    display: block;
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

main.edu-content-ar #left ul.nav ul.children {
    padding-left: 0 !important;
    padding-right: 14px !important;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
}

main.edu-content-ar #left ul.nav ul.children li {
    margin-left: 0;
    margin-right: 0;
}

main.edu-content-ar #left ul.nav li.parent ul li a {
    padding-left: 0;
    padding-right: 8px;
}

main.edu-content-ar #left ul.nav li.deeper.parent,
main.edu-content-ar #left ul.nav li[class*="item-"],
main.edu-content-ar #left ul.nav li.edu-cat-tree-nested {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Sidebar on the right, products on the left (Arabic) */
main.edu-content-ar .edu-product-cat-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    direction: ltr;
}

main.edu-content-ar .edu-product-cat-row::before,
main.edu-content-ar .edu-product-cat-row::after {
    content: none;
    display: none;
}

main.edu-content-ar .edu-product-cat-row > .edu-product-cat-sidebar-col {
    order: 2;
}

main.edu-content-ar .edu-product-cat-row > .col-md-9 {
    order: 1;
}

main.edu-content-ar .edu-product-cat-row > .edu-product-cat-sidebar-col,
main.edu-content-ar .edu-product-cat-row > .col-md-3,
main.edu-content-ar .edu-product-cat-row > .col-md-9 {
    float: none;
    max-width: 100%;
}

main.edu-content-ar .product.product-cat #products-container {
    direction: rtl;
}

main.edu-content-ar .product.product-cat #products-container .item-product-cat {
    float: right;
}

main.edu-content-ar .product.product-cat #products-container .item-product-cat:nth-of-type(3n+1) {
    clear: right;
}

@media (min-width: 992px) {
    main.edu-content-ar .edu-product-cat-row > .edu-product-cat-sidebar-col,
    main.edu-content-ar .edu-product-cat-row > .col-md-3 {
        width: 25%;
    }

    main.edu-content-ar .edu-product-cat-row > .col-md-9 {
        width: 75%;
    }
}

@media (max-width: 991px) {
    main.edu-content-ar .edu-product-cat-row {
        flex-direction: column;
    }

    main.edu-content-ar .edu-product-cat-row > .edu-product-cat-sidebar-col {
        order: 1;
    }

    main.edu-content-ar .edu-product-cat-row > .col-md-9 {
        order: 2;
    }

    main.edu-content-ar .edu-product-cat-row > .edu-product-cat-sidebar-col,
    main.edu-content-ar .edu-product-cat-row > .col-md-3,
    main.edu-content-ar .edu-product-cat-row > .col-md-9 {
        width: 100%;
        max-width: 100%;
    }
}

html[dir="rtl"] body.edu-site-rtl .nav .menu > ul {
    direction: rtl;
}

main.edu-content-en .user-content {
    text-align: left;
}

/* --- Loading states --- */
.edu-announcement-marquee-wrap {
    overflow: hidden;
    width: 100%;
    margin: 8px 0 16px;
}

.edu-announcement-marquee {
    display: inline-block;
    color: red;
    font-size: 25px;
    white-space: nowrap;
    padding-left: 100%;
    animation: edu-marquee-scroll 22s linear infinite;
}

.edu-announcement-marquee.edu-ltr {
    animation-name: edu-marquee-scroll-ltr;
}

@keyframes edu-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes edu-marquee-scroll-ltr {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.edu-content-pagination {
    overflow: hidden;
    margin-top: 12px;
    text-align: center;
}

.edu-content-pagination a,
.edu-content-pagination span.current {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
}

.edu-content-pagination span.current {
    background: #0d1452;
    color: #fff;
    border-color: #0d1452;
}

.edu-page-loading-banner {
    text-align: center;
    padding: 24px 16px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    pointer-events: none;
}

.edu-section-loading {
    opacity: 0.55;
    pointer-events: none;
}

.edu-section-loading::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0d1452, transparent);
    animation: edu-pulse 1.2s ease-in-out infinite;
    margin-top: 8px;
}

@keyframes edu-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --- LTR sliders inside RTL main --- */
#product-slider-container,
#instructors-slider {
    direction: ltr;
}

#instructors-slider .slider-container > li {
    min-width: 100%;
}

/* --- Product gallery --- */
ul.prod-slider {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-gallery-slide {
    display: none;
    height: 450px;
    overflow: hidden;
}

.product-gallery-slide.is-active {
    display: block;
}

.product-gallery-slide iframe,
.product-gallery-slide video {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

.product-gallery-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

#prod-pager a.is-active .prod-pager-thumb {
    outline: 3px solid #0d1452;
}

#prod-pager a {
    cursor: pointer;
}

ul.prod-slider li a.popup {
    cursor: zoom-in;
    display: block;
    line-height: 0;
}

.edu-request-status {
    font-size: 12px;
    color: #6962AD;
}

/* --- Request marketplace UI --- */
.edu-request-page .edu-request-wrap {
    background: #fff;
    padding: 20px 24px 30px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 30px;
}

.edu-request-page .user-content.edu-request-wrap {
    direction: inherit;
    text-align: inherit;
}

.edu-request-detail-loading {
    padding: 48px 16px;
    color: #6962AD;
}

.edu-request-head {
    margin-bottom: 8px;
}

.edu-request-head-actions {
    margin-top: 10px;
    margin-bottom: 16px;
}

.edu-request-add-btn {
    border-radius: 25px;
    padding: 8px 22px;
    background-color: #83C0C1;
    border-color: #83C0C1;
}

.edu-request-add-btn:hover {
    background-color: #6fafb0;
    border-color: #6fafb0;
}

.edu-request-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 24px;
    padding: 0;
    background: #444;
    border-radius: 4px;
    overflow: hidden;
}

main.edu-content-ar .edu-request-tab-bar {
    direction: rtl;
}

.edu-request-tab {
    flex: 1 1 0;
    min-width: 140px;
    border: none;
    background: #444;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
}

main.edu-content-en .edu-request-tab + .edu-request-tab {
    border-left: 1px solid #555;
}

main.edu-content-ar .edu-request-tab + .edu-request-tab {
    border-right: 1px solid #555;
}

.edu-request-tab:hover,
.edu-request-tab.is-active {
    background: #0d1452;
}

.edu-request-tab.is-active {
    font-weight: 700;
}

.edu-request-flash-wrap .edu-request-flash {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.edu-request-flash-wrap .edu-request-flash--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.edu-request-flash-wrap .edu-request-flash--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.edu-request-loading {
    padding: 40px 16px;
    color: #6962AD;
}

.edu-request-grid-wrap {
    min-height: 120px;
}

.edu-request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.edu-request-grid-full,
.edu-request-grid > .edu-request-loading {
    grid-column: 1 / -1;
}

.edu-request-card-wrap {
    min-width: 0;
}

.edu-request-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 18px 16px 14px;
    margin-bottom: 24px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.edu-request-card:hover {
    box-shadow: 0 6px 16px rgba(105, 98, 173, 0.12);
    transform: translateY(-2px);
}

.edu-request-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

main.edu-content-ar .edu-request-card__head {
    direction: rtl;
}

.edu-request-card__type {
    font-size: 12px;
    color: #83C0C1;
    font-weight: 600;
}

.edu-request-card__title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #0d1452;
    font-weight: 700;
}

.edu-request-card__title a {
    color: inherit;
}

.edu-request-card__price {
    font-size: 15px;
    color: #6962AD;
    margin: 0 0 6px;
    font-weight: 600;
}

.edu-request-card__meta {
    font-size: 13px;
    color: #777;
    margin: 0 0 12px;
}

.edu-request-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.edu-request-card__actions a {
    font-size: 13px;
    color: #0d1452;
}

.edu-request-card__actions .btn-view {
    background: #A5A1CE;
    color: #fff;
    border-radius: 20px;
    padding: 6px 16px;
    border: none;
}

.edu-request-card__actions .btn-view:hover {
    background: #6962AD;
    color: #fff;
    text-decoration: none;
}

.edu-request-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f4fc;
    color: #0d1452;
}

.edu-request-badge--open {
    background: #e8f4fc;
    color: #0d1452;
}

.edu-request-badge--awarded,
.edu-request-badge--in_progress {
    background: #fff3cd;
    color: #856404;
}

.edu-request-badge--completed {
    background: #d4edda;
    color: #155724;
}

.edu-request-badge--info {
    background: #83C0C1;
    color: #fff;
}

.edu-request-empty {
    text-align: center;
    padding: 48px 20px;
    color: #6962AD;
    background: #f9f9fb;
    border-radius: 8px;
    border: 1px dashed #d0d0d0;
}

.edu-request-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #83C0C1;
}

main.edu-content-ar .edu-request-detail-header {
    direction: rtl;
}

.edu-request-detail-header .special {
    margin: 0;
    text-align: left;
}

main.edu-content-ar .edu-request-detail-header .special {
    text-align: right;
}

.edu-request-detail-sub {
    margin: 6px 0 0;
    color: #83C0C1;
    font-size: 14px;
}

.edu-request-detail-body {
    display: block;
    width: 100%;
}

.edu-request-detail-main,
.edu-request-detail-aside {
    min-width: 0;
    width: 100%;
}

.edu-request-detail-body.has-chat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 20px;
    align-items: start;
}

main.edu-content-ar .edu-request-detail-body.has-chat {
    direction: rtl;
}

.edu-request-panel {
    margin-bottom: 20px;
    padding: 18px 20px;
    background: #fafbfc;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
}

.edu-request-panel__title {
    margin: 0 0 16px;
    font-size: 16px;
    color: #0d1452;
    font-weight: 700;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 10px;
}

.edu-request-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

main.edu-content-ar .edu-request-info-grid,
main.edu-content-ar .edu-request-panel,
main.edu-content-ar .edu-request-bid-card,
main.edu-content-ar .edu-request-phase-card {
    direction: rtl;
    text-align: right;
}

main.edu-content-ar .edu-request-panel__title {
    text-align: right;
}

.edu-request-info-item--full {
    grid-column: 1 / -1;
}

.edu-request-info-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 600;
}

.edu-request-info-value {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.edu-request-form .form-group label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.edu-request-btn-primary {
    border-radius: 25px;
    padding: 8px 22px;
    background-color: #A5A1CE;
    border-color: #A5A1CE;
}

.edu-request-btn-primary:hover,
.edu-request-btn-primary:focus {
    background-color: #6962AD;
    border-color: #6962AD;
}

.edu-request-bid-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.edu-request-bid-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.edu-request-bid-card__name {
    font-weight: 700;
    color: #0d1452;
}

.edu-request-bid-card__price {
    font-weight: 700;
    color: #6962AD;
}

.edu-request-bid-card__message {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.edu-request-phase-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.edu-request-phase-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.edu-request-phase-card__status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #eee;
    color: #555;
}

.edu-request-phase-card__status--paid {
    background: #d4edda;
    color: #155724;
}

.edu-request-phase-card__status--submitted {
    background: #fff3cd;
    color: #856404;
}

.edu-request-phase-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.edu-request-pay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edu-request-phase-card__pay-row .edu-request-phase-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.edu-request-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 10px;
    width: auto;
    max-width: none;
}

.edu-request-pay-btn img {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

/* Award modal — payment phases */
.edu-award-phases {
    margin-top: 12px;
}

.edu-award-phases__label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0d1452;
}

.edu-award-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8f9fb;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
}

main.edu-content-ar .edu-award-summary {
    direction: rtl;
    text-align: right;
}

.edu-award-summary__label {
    font-weight: 700;
    color: #0d1452;
}

.edu-award-summary__name {
    font-weight: 600;
    color: #333;
}

.edu-award-summary__amount {
    font-weight: 700;
    color: #6962AD;
}

.edu-award-summary > span:not(:last-child)::after {
    content: '—';
    margin: 0 8px;
    color: #999;
    font-weight: 400;
}

.edu-award-phases__head,
.edu-award-phase-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 40px;
    gap: 10px;
    align-items: center;
}

.edu-award-phases__head {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 0 4px 8px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 8px;
}

main.edu-content-ar .edu-award-phases__head,
main.edu-content-ar .edu-award-phase-row {
    direction: rtl;
    text-align: right;
}

.edu-award-phase-row {
    margin-bottom: 8px;
}

.edu-award-phases__add {
    margin-top: 10px;
}

.edu-award-phases__total {
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
}

.edu-file-upload {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.edu-file-upload__input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.edu-file-upload__name {
    font-size: 12px;
    color: #666;
}

.edu-request-phase-card__pay-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.edu-request-phase-card__pay-row .edu-request-phase-card__amount {
    font-size: 16px;
    font-weight: 700;
    color: #6962AD;
}

#request-payment-root {
    display: none;
}

.edu-request-chat-panel {
    position: sticky;
    top: 12px;
}

.edu-request-chat {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    margin-bottom: 12px;
}

.edu-request-chat-bubble {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 92%;
    font-size: 13px;
    line-height: 1.45;
}

.edu-request-chat-bubble--out {
    background: #e8f4fc;
    margin-left: auto;
    text-align: right;
}

main.edu-content-en .edu-request-chat-bubble--out {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.edu-request-chat-bubble--in {
    background: #f3f3f3;
    margin-right: auto;
}

.edu-request-chat-bubble time {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.edu-request-chat-form textarea {
    margin-bottom: 8px;
}

.edu-request-chat-file {
    margin-bottom: 8px;
}

.edu-request-detail-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

main.edu-content-ar .edu-request-detail-footer {
    direction: rtl;
}

@media (max-width: 767px) {
    .edu-request-info-grid {
        grid-template-columns: 1fr;
    }

    .edu-request-tab {
        flex: 1 1 auto;
        min-width: 120px;
    }

    .edu-request-detail-body.has-chat {
        grid-template-columns: 1fr;
    }

    .edu-request-chat-panel {
        position: static;
    }

    .edu-request-grid {
        grid-template-columns: 1fr;
    }

    .edu-award-phases__head,
    .edu-award-phase-row {
        grid-template-columns: 1fr 1fr;
    }

    .edu-award-phases__head span:last-child,
    .edu-award-phase-row button {
        grid-column: 2;
        justify-self: end;
    }
}

/* In-app notifications */
.edu-notification-wrap {
    position: relative;
}

.edu-notification-bell {
    position: relative;
    display: inline-block;
    padding: 4px 8px;
}

.edu-notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    font-size: 10px;
    min-width: 16px;
}

.edu-notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
    width: 320px;
    max-height: 400px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.edu-notification-dropdown__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.edu-notification-dropdown__list {
    max-height: 340px;
    overflow-y: auto;
}

.edu-notification-item {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
}

.edu-notification-item:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.edu-notification-item.is-unread {
    background: #fff8e6;
}

.edu-notification-item strong {
    display: block;
    font-size: 13px;
}

.edu-notification-item span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.edu-notification-item small {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.edu-notification-empty {
    padding: 16px;
    text-align: center;
    color: #888;
    margin: 0;
}

/* Request review */
.edu-review-stars {
    display: flex;
    gap: 4px;
}

.edu-review-star {
    background: none;
    border: none;
    padding: 0;
    font-size: 22px;
    color: #f0ad4e;
    cursor: pointer;
}

.edu-request-review-display .rating {
    color: #f0ad4e;
    margin-bottom: 8px;
}

.edu-instructor-rating {
    color: #f0ad4e;
    font-size: 12px;
    margin-left: 8px;
}

main.edu-content-ar .edu-instructor-rating {
    margin-left: 0;
    margin-right: 8px;
}

.edu-search-filters {
    padding: 16px 20px;
    margin-bottom: 24px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.edu-search-filters__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.edu-search-filters__form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.edu-search-filters__submit .btn {
    min-height: 38px;
}

.edu-search-empty {
    padding: 24px 0;
    text-align: center;
    color: #666;
}

.edu-search-pagination {
    margin: 24px 0 8px;
}

.edu-search-pagination .pagination {
    margin: 0;
}

.edu-profile-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.edu-profile-page-title {
    margin-bottom: 24px;
    font-weight: 600;
}

.edu-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.edu-profile-card__avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
    margin-bottom: 16px;
}

.edu-profile-card__name {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #6b4c9a;
}

.edu-profile-card__meta {
    margin: 0 0 12px;
    font-size: 15px;
    color: #666;
}

.edu-profile-card__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.edu-profile-stars.rating {
    color: #f0ad4e;
    font-size: 18px;
    line-height: 1;
}

.edu-profile-rating-text {
    font-size: 14px;
    color: #555;
}

.edu-profile-card__joined {
    margin: 0 0 20px;
    font-size: 13px;
    color: #999;
}

.edu-profile-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.edu-profile-btn {
    min-width: 140px;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
}

.edu-profile-reviews-grid {
    max-width: 960px;
    margin: 0 auto;
}

.edu-profile-reviews-heading {
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.edu-profile-reviews-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.edu-profile-reviews-empty {
    font-size: 14px;
}

.edu-profile-rating-summary .rating {
    color: #f0ad4e;
    font-size: 18px;
}

.edu-profile-review-card {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.edu-profile-review-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.edu-profile-review-card__head strong {
    font-size: 14px;
    color: #333;
}

.edu-profile-review-card__meta {
    margin: 0 0 6px;
    font-size: 13px;
    color: #6b4c9a;
}

.edu-profile-review-card__body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.edu-profile-review-card .rating {
    color: #f0ad4e;
    font-size: 13px;
    flex-shrink: 0;
}

main.edu-content-ar .edu-profile-review-card__head {
    flex-direction: row-reverse;
}

main.edu-content-ar .edu-profile-card__actions {
    flex-direction: row-reverse;
}

/* --- Site header/nav: keep original layout (logo left, actions right) in all languages --- */
.header,
.header .inner,
.nav,
.nav .row,
.top {
    direction: ltr;
    text-align: left;
}

.header .logo {
    text-align: left;
}

.header .right ul {
    float: right;
    direction: ltr;
}

.header .right ul li {
    float: left;
    margin-left: 14px;
    margin-right: 0;
}

.nav .input-icons {
    position: relative;
}

.nav .input-icons .icon {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    pointer-events: none;
}

.nav .search-area .input-field {
    text-align: center;
    padding: 10px 10px 10px 40px;
}

html[dir="rtl"] body.edu-site-rtl .edu-notification-dropdown {
    right: 0;
    left: auto;
}

/* Footer stays RTL in Arabic */
html[dir="rtl"] body.edu-site-rtl .footer {
    direction: rtl;
    text-align: right;
}

/* Customer area nav pills — centered in RTL and LTR */
.user-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0 0 16px;
    list-style: none;
    text-align: center;
}

.user-sidebar ul li {
    display: block;
    margin: 0;
    border-bottom: none;
    float: none;
}

.user-sidebar ul li a {
    display: inline-block;
    border-radius: 2px;
}

.edu-telegram-connect {
    text-align: center;
}

main.edu-content-ar .edu-telegram-connect {
    direction: rtl;
    text-align: center;
}

/* --- Mobile: checkout, chat, course cards --- */
@media (max-width: 767px) {
    .cart.table-responsive table,
    .cart.table-responsive thead,
    .cart.table-responsive tbody,
    .cart.table-responsive th,
    .cart.table-responsive td,
    .cart.table-responsive tr {
        display: block;
    }

    .cart.table-responsive thead tr {
        position: absolute;
        left: -9999px;
        top: -9999px;
    }

    .cart.table-responsive tr {
        border: 1px solid #eee;
        margin-bottom: 12px;
        padding: 8px;
        border-radius: 6px;
    }

    .cart.table-responsive td {
        border: none;
        padding: 4px 8px;
        text-align: right;
    }

    html[dir="rtl"] .cart.table-responsive td {
        text-align: right;
    }

    .product .item,
    .product .text {
        margin-bottom: 16px;
    }

    .product .swiffy-slider .slider-container > li {
        min-width: 85%;
    }

    .users .users-list,
    .chat-area .chat-box {
        max-height: 55vh;
    }

    .wrapper section.users {
        padding: 0;
    }

    .edu-telegram-connect .btn {
        display: block;
        width: 100%;
        margin-top: 8px;
    }
}

