/* Term Page Styles */
.aladwaa-enrolled-courses {
    display: flex;
    width: 100%;
    flex-direction: column
}

.aladwaa-enrolled-courses h3.aladwaa-enrolled-courses__title {
    color: #001931;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 40px
}

.aladwaa-enrolled-courses__title-wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between
}


.aladwaa-enrolled-courses-separator {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 40px
}

.aladwaa-enrolled-courses-separator__short {
    display: flex;
    flex-shrink: 0;
    width: 50px;
    height: 3px;
    background: #00B5FF;
    margin-right: 10px
}

.aladwaa-enrolled-courses-separator__long {
    display: flex;
    width: 100%;
    height: 2px;
    background: #dbe0e9
}

.aladwaa-instructor_courses__grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px;
    gap: 20px;
}

.aladwaa-instructor_courses__single {
    width: calc(25% - 20px);
}

@media (max-width: 1120px) {
    .aladwaa-instructor_courses__single {
        width: calc(33% - 20px);
        ;
    }
}

@media (max-width: 860px) {

    .subject-block.courses__archive .aladwaa_courses__single,
    .aladwaa-instructor_courses__single {
        width: calc(50% - 20px);
        ;
    }
}

@media (max-width: 530px) {
    .aladwaa-instructor_courses__grid {
        gap: 0;
    }

    .subject-block.courses__archive .aladwaa_courses__single,
    .aladwaa-instructor_courses__single {
        width: 100%;
    }
}

.aladwaa-instructor_courses__single__inner {
    display: flex;
    flex-wrap: wrap;
    /* margin: 0 15px; */
    height: 100%;
    border: 1px solid #e0e0e0;
    align-content: flex-start !important;
}

.aladwaa-instructor_courses__single--image {
    position: relative;
    width: calc(100% + 2px);
    margin: -1px -1px 15px;
}

.aladwaa-instructor_courses__single--image img {
    width: 100%;
    vertical-align: top;
}

.aladwaa-instructor_courses__single--inner {
    width: 100%;
    padding: 0 20px 10px;
    align-self: flex-end;
}

.aladwaa-user-courses .aladwaa-instructor_courses__single--title h5 {
    min-height: 40px;
    margin-bottom: 21px;
    padding: 0;
    border: 0;
    text-align: center;
}

.aladwaa-user-courses .aladwaa-instructor_courses__single--enroll {
    margin: 0 0 13px;
}

/* -------progress-bar----------- */
.progress-container {
    width: 100%;
    overflow: auto;
    margin-bottom: 40px;
    margin-top: 50px;
    padding: 10px;
}

@media (max-width: 768px) {
    .progress-container {
        overflow-x: scroll;
        padding: 0 30px;
    }
}

.course-progress-bar {
    display: flex;
    gap: 15px;
    width: 1170px;
}

.course-progress-bar .progress-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #E6F8FF;
    border-radius: 24px;
    padding: 50px 15px;
    width: 25%;
}

.course-progress-bar .progress-info .icon {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Course Page Styles */


.barcode-header {
    background: #E5F8FF;
    padding: 16px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 36px;
    margin: 60px;
    color: #106F97;
    gap: 10px;
}

.barcode-header-content {
    display: flex;
    /* align-items: center; */
    gap: 15px;
}

.app-icon {
    /* width: 40px;
            height: 40px;
            background: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px; */
}

.header-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #106F97;
    /* margin-bottom: 3px; */
    margin: 0;
}

.header-text p {
    font-size: 14px;
    margin: 0;
}

.header-buttons {
    display: flex;
    gap: 10px;
    border-radius: 20px;
    overflow: hidden;
    align-items: center;
}

.btn {
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    width: 110px;
    text-align: center;
}

.btn-primary {
    background: #00B5FF;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #106F97;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-content {
    display: flex;
    flex: 1;
    position: relative;
}

.sidebar {
    width: 415px;
    /* background: #f8f9fa; */
    overflow-y: auto;
    max-height: 1000px;
    margin-bottom: 50px;
    /* border-left: 1px solid #e0e0e0; */
}

.content-area {
    flex: 1;
    padding: 10px 15px;
    overflow-y: auto;
    background: white;
}

.unit {
    /* border-bottom: 1px solid #e0e0e0; */
}

.unit-header {
    padding: 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
    background: #F3F6F8;
    margin-bottom: 12px;
}

.unit-header:hover {
    background: #f0f0f0;
}

.unit-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    color: #000;
    font-size: 18px;
}

/* .unit-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
        } */
/* 
        .unit-icon.blue { background: #00d4ff; }
        .unit-icon.orange { background: #ff6b35; }
        .unit-icon.green { background: #4ecdc4; } */

.unit-arrow {
    transition: transform 0.3s;
    color: #106F97;
}

.unit.active .unit-arrow {
    transform: rotate(90deg);
}

.unit-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    /* background: #fafafa; */
}

.unit.active .unit-content {
    max-height: 100%;
}

.lesson-item {
    padding: 16px 19px;
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border-right: 3px solid transparent;
    background-color: #E6F8FF;
    margin-bottom: 10px;
    border-radius: 20px;
    margin-left: 30px;
}

.lesson-item:hover {
    background: #e8f4ff;
}

.lesson-item.active {
    background: #e8f4ff;
    border-right-color: #0099ff;
}

.lesson-info {
    display: flex;
    /* align-items: center; */
    gap: 12px;
}

.lesson-icon {
    width: 28px;
    height: 28px;
    /* border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px; */
}

/* .lesson-icon.video {
            background: #e8f4ff;
            color: #0099ff;
        }

        .lesson-icon.summary {
            background: #fff4e6;
            color: #ff9500;
        }

        .lesson-icon.quiz {
            background: #e8fff3;
            color: #00c853;
        } */

.lesson-text {
    font-size: 16px;
    color: #000;
    font-weight: 400;
    max-width: 210px;
}

.lesson-arrow {
    /* font-size: 16px;
            width: 20px;
            height: 20px; */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lesson-arrow .lesson-label span {
    border-radius: 35px;
    background-color: #FFE38E;
    color: #704D00;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    display: block;
}

.lesson-arrow .lesson-label img {
    width: 24px;
    height: 24px;
}

.content-header {
    /* margin-bottom: 30px; */
    /* padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0; */
}

.content-title {
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
    font-weight: 700;
}

.content-body {
    line-height: 1.8;
    color: #555;
    font-size: 16px;
}

.content-body p {
    margin-bottom: 20px;
}

.subscribe-message {
    background-color: #E6F8FF;
    /* border: 2px dashed #00B5FF; */
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.subscribe-message h2 {
    color: #106F97;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.subscribe-message p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #4394B6;
}

.subscribe-message .subscribe-button {
    background-color: #00B5FF;
    color: #fff;
    /* padding: 12px 30px; */
    border-radius: 58px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 251px;
    margin: 0 auto;
    display: block;
    height: 47px;
    line-height: 45px;
}

.subscribe-message .subscribe-button:hover {
    background-color: #0099e6;
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 0 0 30px;
    }

    .content-area {
        padding: 50px 0;
    }

    .barcode-header {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 80px;
        left: 0;
        background: #fff;
        width: 100%;
        z-index: 999;
        height: 100%;

    }

}

.sidebar-header {
    background-color: #F3F6F8;
    color: #000;
    position: fixed;
    top: 325px;
    left: -185px;
    width: 414px;
    height: 38px;
    padding: 0 10px;
    display: flex;
    transform: rotate(90deg);
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    align-items: center;

}


.goToMobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #FFE38E;
    color: #704D00;
    z-index: 999;
    border-radius: 30px 30px 0 0;
    padding: 25px 15px;
    justify-content: space-between;
    width: 100%;
    transition: all 1s ease-in-out;
}

.goToMobile.close {
    bottom: -100%;
}

.goToMobile>div {
    display: flex;
    gap: 10px;
    /* width: 50%; */
}

.goToMobile>div.text {
    width: 60%;
}

.goToMobile h3 {
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.goToMobile p {
    color: inherit;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.goToMobile>div.action {
    width: 35%;
    flex-direction: column;
    align-items: flex-end;
}

.goToMobile>div.action a {
    background-color: #fff;
    color: #704D00;
    width: 111px;
    height: 39px;
    text-align: center;
    border-radius: 50px;
    line-height: 38px;
}


.rateing-block {
    margin-top: 25px;
    margin-bottom: 25px;
    color: #000;
    width: 28%;
}

@media (max-width: 768px) {
    .rateing-block {
        width: 100%;
    }

    .ast-container {
        padding: 30px 10px;
    }
}

.rateing-block h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #000;
    line-height: 1;
}

.rateing-block p {
    color: #949494;
    margin-bottom: 15px;
    font-weight: 400;
    font-size: 12px;
}

.rateing-block .rate-value {
    font-size: 14px;
    font-weight: 400;
    text-align: right;
}

/*.rateing-block .rateing-star{
    display: flex;
    gap: 10px;

}
.rateing-block .rateing-star span {
    display: block;
    background-color: #EDEDED;
    padding: 6px;
    border-radius: 7px;
    line-height: 1;
    cursor: pointer;
}
.rateing-block .rateing-star span svg path {
    fill :#D2D2D2;
}

.rateing-block .rateing-star span:hover {
    background-color: #FFDB2C;
}
.rateing-block .rateing-star span:hover svg path {
    fill : #fff;
} */

/* Hide the default radio buttons */
.rate input {
    display: none;
}

/* Style the container to reverse the stars */
.rate {
    display: flex;
    gap: 6px;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* Style the stars */
.rate:not(:checked)>label {
    font-size: 18px;
    color: #D2D2D2;
    /* Default grey color */
    background-color: #EDEDED;
    padding: 3px 5px 4px 5px;
    border-radius: 7px;
    line-height: 1;
    cursor: pointer;
}

/* Add the star symbol using CSS content */
.rate:not(:checked)>label:before {
    content: '★ ';
    /* color: #D2D2D2; */
}

/* Color the star when checked */
.rate>input:checked~label::before,
.rate>input:checked~label {
    color: #fff;
    ;
    background-color: #FFDB2C;
}

/* Color the stars when hovering */
.rate:not(:checked)>label:hover::before,
.rate:not(:checked)>label:hover,
.rate:not(:checked)>label:hover~label {
    color: #fff;
    ;
    background-color: #FFDB2C;
}

/* Keep the stars colored after selection when hovering over others */
.rate>input:checked+label:hover,
.rate>input:checked+label:hover~label,
.rate>input:checked~label:hover,
.rate>input:checked~label:hover~label,
.rate>label:hover~input:checked~label {
    color: #fff;
    background-color: #FFDB2C;
}

#video-container h3 {
    font-size: 16px;
    color: #000;
    margin-bottom: 30px;
    font-weight: 5500;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-card {
    width: calc(33.3% - 10px);
}

@media (max-width: 768px) {
    .video-card {
        width: calc(50% - 10px);
    }
}

.play-button {
    width: 100%;
    height: 190px;
    border-radius: 15px;
    background-color: #E6F8FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.questions-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.submit,
.page-link {
    padding: 11px 20px;
    border: 1px solid #D9DCE1;
    color: #D9DCE1;
    font-size: 16px;
    font-weight: 500;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.page-link:hover,
.current.page-link {
    border-color: #E6F8FF;
    background-color: #E6F8FF;
    color: #00B5FF;
}

.submit,
.active.page-link {
    color: #fff;
    border-color: #00B5FF;
    background-color: #00B5FF;
}

.solved.page-link {
    color: #16A34A;
    border-color: #E3F6E9;
    background-color: #E3F6E9;
}

.wrong.page-link {
    color: #dd4064;
    border-color: #f8d6e1;
    background-color: #f8d6e1;
}


a.sessionLink {
    padding: 10px 35px;
    color: #fff;
    background: #00b5ff;
    font-size: 18px;
    border-radius: 15px;
}

/* --- 2. تنسيق الكارت --- */
.score-card {
    background-color: var(--score-background-card);
    padding: 30px;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--score-color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

/* --- 3. تفاصيل النصوص (الجانب الأيسر) --- */
.score-details {
    flex: 1;
}

.score-details h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--score-color-primary);
}

.score-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.score-details li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

/* أيقونات القائمة */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--score-color-primary);
}

/* --- 4. الرسم البياني (الجانب الأيمن) --- */
.score-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-left: 40px; */
}

/* الدائرة باستخدام conic-gradient */
.circular-progress {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* التدرج اللوني الذي يصنع نسبة التحميل */
    background: conic-gradient(var(--score-color-primary) calc(var(--percent) * 1%), #ffffff 0);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* الدائرة الداخلية لإخفاء المنتصف (تأثير الدونات) */
.circular-progress::before {
    content: "";
    position: absolute;
    width: 104px;
    /* 120px - (8px border * 2) */
    height: 104px;
    background-color: #fff;
    /* نفس لون خلفية الكارت ليبدو مفرغاً */
    border-radius: 50%;
    z-index: 1;
}

/* النص بالنسبة المئوية */
.percentage {
    position: relative;
    z-index: 2;
    /* فوق الدائرة الداخلية */
    font-size: 32px;
    font-weight: 800;
    color: var(--score-color-primary);
}

/* كلمة Good */
.status {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--score-color-primary);
}

@media (max-width: 768px) {
    .score-card {
        padding: 20px 15px;

    }

    .score-details h2 {
        font-size: 20px;
        font-weight: 500;
        margin-bottom: 15px;
    }

    .score-details li {
        margin-bottom: 5px;
        font-size: 13px;
    }

    .circular-progress {
        width: 80px;
        height: 80px;
    }

    .circular-progress::before {
        width: 65px;
        height: 65px;
    }

    .percentage {
        font-size: 24px;
        font-weight: 700;
    }

    .status {
        font-size: 20px;
        font-weight: 500;
    }
}