/* ===================================
   FRONTEND GLOBAL STYLES
   Shared components across frontend pages
   =================================== */

/* global styles */
:root {
    --primary-color: #165D31;
    --secondary-color: #EEFFF4;
    --card-bg: #ffffff;
    --card-border: #4db8e8;
    --card-border-stripe: #e84dbd;
    --content-bg: linear-gradient(135deg, #fffde7 0%, #e8f5e9 50%, #b2dfdb 100%);
    --primary-color: #1b5e3f;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 32px;
}

/* Import Alexandria font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Alexandria', sans-serif;
}


.app-main {
    padding-inline: 24px !important;
}

.custom_btn {
    width: 204px;
    height: 44px;
    padding: 11px 16px;
    border-radius: 100px;
}

/* Tab Switcher Component */
.tab-switcher-container {
    width: fit-content;
    padding: 4px;
    background: white;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tab-switcher-item {
    min-width: 120px;
    padding: 5px 16px;
    border-radius: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-switcher-item-text {
    text-align: center;
    color: var(--Gray-600, #525252);
    font-size: 14px;
    font-family: Alexandria, sans-serif;
    font-weight: 300;
    line-height: 22px;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

.tab-switcher-item.active {
    background: var(--Primary-600, #165D31);
}

.tab-switcher-item.active .tab-switcher-item-text {
    color: white;
    font-weight: 400;
}

.tab-switcher-item:hover:not(.active) {
    background: var(--Gray-50, #FAFAFA);
}

/* Search Bar Component */
.search-bar-container {
    width: 100%;
    padding: 9px 16px;
    background: white;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    /* border: 1px solid var(--Gray-200, #E5E5E5); */
}

.search-bar-input {
    border: none;
    outline: none;
    background: transparent;
    text-align: right;
    color: var(--Gray-900, #1F1F1F);
    font-size: 14px;
    font-family: Alexandria, sans-serif;
    font-weight: 300;
    line-height: 22px;
    width: 100%;
}

.search-bar-input::placeholder {
    text-align: right;
    color: var(--Gray-500, #737373);
    font-size: 14px;
    font-family: Alexandria, sans-serif;
    font-weight: 300;
    line-height: 22px;
}

.search-bar-icon {
    width: 20px;
    height: 20px;
    color: var(--Gray-400, #A3A3A3);
    flex-shrink: 0;
}

/* Meeting Card Component - Matching Dashboard Cards */
.meeting-card-container {
    padding: 16px;
    background: white;
    border-radius: 20px;
    /* border: 0.5px solid var(--Gray-200, #E5E5E5); */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.meeting-card-container:hover {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.meeting-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meeting-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.meeting-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meeting-card-instructor-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meeting-card-instructor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    object-fit: cover;
}

.meeting-card-meta-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.meeting-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meeting-card-meta-icon {
    width: 16px;
    height: 16px;
}

.meeting-card-meta-divider {
    width: 1px;
    height: 16px;
    background: var(--Gray-200, #E5E5E5);
}

.meeting-card-divider {
    width: 100%;
    height: 0.5px;
    background: var(--Gray-200, #E5E5E5);
}

.meeting-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.meeting-card-participants-wrapper {
    display: flex;
    flex-direction: column;
}


.meeting-card-button-booked {
    padding: 9px 24px;
    background: var(--Gray-100, #F5F5F5);
    border-radius: 100px;
    border: none;
    cursor: default;
}


.meeting-countdown-booking {
    text-align: center;
    color: var(--Primary-600, #165D31);
    font-size: 20px;
    font-family: Alexandria;
    font-weight: 400;
    line-height: 32px;
    word-wrap: break-word;
}


.meeting-card-button-text {
    color: white;
    font-size: 14px;
    font-family: Alexandria, sans-serif;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
}

.meeting-card-button-text-booked {
    color: var(--Gray-600, #525252);
    font-size: 14px;
    font-family: Alexandria, sans-serif;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
}


.meeting-card-participants-avatars {
    display: flex;
    margin: 0 8px;
}

.meeting-card-participant-avatar {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    border: 1px white solid;
    margin-right: -8px;
    object-fit: cover;
}

.meeting-card-participant-avatar:last-child {
    margin-right: 0;
}

.meeting-card-participants-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meeting-card-button {
    padding: 12px 24px;
    background: var(--Primary-600, #165D31);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.meeting-card-button:hover {
    background: var(--Primary-700, #134a26);
}

/* Badge Component */
.meeting-badge {
    padding: 6px 12px;
    border-radius: 100px;
}

.meeting-badge-free {
    background: var(--Success-50, #ECFDF5);
}

.meeting-badge-paid {
    background: var(--Yellow-Shades-25, #FFFBEB);
}

/* Pagination Component */
.pagination-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
}

.pagination-item {
    width: 48px;
    height: 48px;
    padding: 10px;
    background: white;
    border-radius: 32px;
    border: 0.5px solid var(--Gray-200, #E5E5E5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-item:hover:not(.active):not(.disabled) {
    background: var(--Gray-50, #FAFAFA);
    border-color: var(--Primary-600, #165D31);
}

.pagination-item.active {
    background: var(--Primary-600, #165D31);
    border: none;
}

.pagination-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-item-text {
    color: var(--Gray-400, #A3A3A3);
    font-size: 14px;
    font-family: Alexandria, sans-serif;
    font-weight: 400;
    line-height: 22px;
}

.pagination-item.active .pagination-item-text {
    color: white;
}

.pagination-dots {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--Gray-400, #A3A3A3);
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.pagination-arrow-icon {
    width: 20px;
    height: 20px;
    color: var(--Gray-500, #737373);
}

/* Mobile Course Tabs */
.mobile-tabs-container {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-course-tabs {
    border-bottom: 2px solid #F0F0F0;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
}

.mobile-course-tabs .nav-item {
    flex: 1;
    text-align: center;
}

.mobile-course-tabs .nav-link {
    border: none;
    background: transparent;
    color: #999999;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 0;
}

.mobile-course-tabs .nav-link:hover {
    color: #165D31;
    background: transparent;
}

.mobile-course-tabs .nav-link.active {
    color: #165D31;
    border-bottom-color: #165D31;
    background: transparent;
    font-weight: 600;
}

.mobile-course-tab-content {
    padding: 20px;
}

.mobile-course-tab-content .tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.mobile-course-tab-content .overview-section,
.mobile-course-tab-content .custom_accordion,
.mobile-course-tab-content .teacher-card {
    box-shadow: none;
    padding: 0;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .app-main {
        padding-inline: 20px;
    }

    .meeting-countdown-booking {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .tab-switcher-item {
        min-width: 80px;
        padding: 5px 8px;
    }

    .tab-switcher-item-text {
        font-size: 12px;
        line-height: 18px;
    }

    .meeting-card {
        padding: 12px;
        gap: 12px;
    }

    .meeting-card-title {
        font-size: 14px;
        line-height: 22px;
    }

    .meeting-card-description {
        font-size: 13px;
        line-height: 20px;
    }

    .meeting-card-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .meeting-card-button {
        width: 100%;
    }

    .pagination-item {
        width: 40px;
        height: 40px;
    }

    .pagination-container {
        gap: 8px;
    }

    .mobile-course-tabs .nav-link {
        font-size: 13px;
        padding: 14px 8px;
    }

        .meeting-countdown-booking {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .tab-switcher-container {
        padding: 6px;
        gap: 2px;
    }

    .tab-switcher-item {
        min-width: 70px;
        padding: 4px 6px;
    }

    .tab-switcher-item-text {
        font-size: 11px;
        line-height: 16px;
    }

    .search-bar-container {
        padding: 8px 12px;
    }

    .search-bar-input,
    .search-bar-input::placeholder {
        font-size: 13px;
    }

    .meeting-card-meta {
        flex-direction: column;
        align-items: flex-end;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-course-tabs .nav-link {
        font-size: 12px;
        padding: 12px 6px;
    }

    .mobile-course-tab-content {
        padding: 16px;
    }
}

/* Empty State */
.empty-state {
    width: 100%;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    color: var(--Gray-300, #D4D4D8);
}

.empty-state-text {
    text-align: center;
    color: var(--Gray-500, #737373);
    font-size: 16px;
    font-family: Alexandria, sans-serif;
    font-weight: 400;
    line-height: 24px;
}

.main_bg_color {
    background-color: var(--primary-color);
}

.main_color {
    color: var(--primary-color);
}

.shared_title {
    font-size: 18px;
    color: var(--primary-color);
    line-height: 28px;
}

.shared_subtitle {
    color: #1F1F1F;
    font-weight: 500;
    font-size: 40px;
    line-height: 56px;
}

.special_word {
    display: inline-block;
    width: fit-content;
    position: relative;
}

.special_word::after {
    content: url('/assets/figma_assets/landing_assets/special_line.svg');
    display: inline-block;
    width: 100%;
    height: 24px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.course_card_item {
    position: relative;
    border-radius: 20px;
    border: 1px solid #E5E5E5;
    padding: 4px 4px 16px 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course_card_image {
    width: 100%;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
}

.course_card_image img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.course_content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px;
    flex-grow: 1;
}

.course_title {
    color: #292929;
    font-size: 18px;
    margin-bottom: 0;
}

.discover_btn {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 12px 16px;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 auto;
    width: fit-content;
}

.discover_btn:hover {
    background-color: #114927;
    transition: 0.2s;
    color: white;
}

/* testimonial */
.testimonial_card_item {
    width: 100%;
    max-width: 350px;
    background-color: white;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E5E5;
}

.testimonial_text {
    font-size: 16px;
    line-height: 24px;
    color: #1F1F1F;
    margin-bottom: 0;
}

.student_info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.student_image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.student_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student_info_text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.student_name {
    font-size: 16px;
    font-weight: 600;
    color: #1F1F1F;
    line-height: 22px;
    margin-bottom: 0;
}

.student_title {
    font-size: 14px;
    line-height: 20px;
    color: #525252;
}

/* Testimonial Swiper Styles */
.testimonial-swiper {
    padding: 20px 0 40px;
}

.testimonial-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.testimonial-swiper .rbt-swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 30px;
}

.testimonial-swiper .rbt-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #D1D1D1;
    opacity: 1;
    margin: 0 5px;
}

.testimonial-swiper .rbt-swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Additional global utility classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-muted {
    color: #737373 !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--background-color) !important;
}

/* Spacing utilities */
.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

/* Flexbox utilities */
.d-flex {
    display: flex !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

/* Padding utilities */
.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Border utilities */
.rounded {
    border-radius: 0.375rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.border {
    border: 1px solid var(--border-color) !important;
}

/* Text alignment */
.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

/* Responsive helpers */
.hidden-xs {
    display: none !important;
}

@media (min-width: 768px) {
    .hidden-xs {
        display: block !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Course carousel styles */
.swiper.course-activation {
    padding: 20px 0;
}

.swiper.course-activation .swiper-slide {
    height: auto;
}

@media (max-width: 767px) {
    .course_image {
        height: 200px;
    }

    .shared_subtitle {
        font-size: 24px;
        line-height: 32px;
    }

    .testimonial_card_item {
        max-width: 100%;
        padding: 20px;
    }

    .testimonial_text {
        font-size: 14px;
        line-height: 22px;
    }

    .student_name {
        font-size: 14px;
    }

    .student_title {
        font-size: 12px;
    }
}

.custom_accordion {
    background-color: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.custom_accordion h5 {
    margin-bottom: 0;
    color: #1F1F1F;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    padding: 16px 20px;
}

/* تصميم عنصر الأكورديون */
.accordion-item {
    border-bottom: 1px solid #F5F5F5;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    text-align: right;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #F9F9F9;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-number {
    color: #1F1F1F;
    font-size: 16px;
    font-weight: 600;
}

.lesson-name {
    color: #1F1F1F;
    font-size: 16px;
    font-weight: 500;
}

.accordion-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lesson-count {
    color: #666666;
    font-size: 14px;
}

.arrow-icon {
    color: #999999;
    font-size: 12px;
    transition: transform 0.3s;
}

.accordion-header.active .arrow-icon {
    transform: rotate(180deg);
}

/* محتوى الأكورديون */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 1000px;
    /* Increased to accommodate more content */
}

/* Ensure smooth transition for accordion items */
.accordion-content ul {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.accordion-content.active ul {
    opacity: 1;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

/* عناصر الدروس */
.lesson-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background-color: #FAFAFA;
    margin: 0 16px 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lesson-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.lesson-item:hover {
    background-color: #F0F0F0;
}

.lesson-item-inner {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lesson-item:last-child {
    margin-bottom: 16px;
}

.play-icon {
    color: #4CAF50;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E8F5E9;
    border-radius: 50%;
    padding-right: 2px;
}

.quiz-icon {
    color: #FF9800;
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-text {
    flex: 1;
    color: #1F1F1F;
    font-size: 14px;
    text-align: right;
}

.lesson-duration {
    color: #999999;
    font-size: 13px;
}

.quiz-item {
    background-color: #FFF8F0;
}

.quiz-item:hover {
    background-color: #FFF0E0;
}


/* بطاقة المعلم */
.teacher-card {
    background-color: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.teacher-card .card-title {
    margin-bottom: 0;
    color: #1F1F1F;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    padding: 16px 20px;
    border-bottom: 1px solid #E5E5E5;
}

.teacher-info {
    padding: 24px 20px;
    text-align: center;
}

/* صورة المعلم */
.teacher-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* اسم المعلم */
.teacher-name {
    color: #1F1F1F;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.teacher-role {
    color: #666666;
    font-size: 14px;
    margin: 0 0 16px 0;
}

/* إحصائيات المعلم */
.teacher-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F5F5F5;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666666;
    font-size: 14px;
}

.stat-icon {
    font-size: 16px;
    color: #999999;
}

/* نبذة عن المعلم */
.teacher-bio {
    color: #666666;
    font-size: 14px;
    line-height: 22px;
    text-align: right;
    margin: 0;
    direction: rtl;
}

.read-more {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.read-more:hover {
    text-decoration: underline;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .teacher-card {
        border-radius: 16px;
    }

    .teacher-avatar {
        width: 70px;
        height: 70px;
    }

    .teacher-name {
        font-size: 16px;
    }

    .teacher-stats {
        gap: 16px;
    }
}


/*  */

/* قسم نظرة عامة */
.overview-section {
    background-color: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.section-title {
    color: #1F1F1F;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-align: right;
}

.overview-description {
    color: #666666;
    font-size: 14px;
    line-height: 24px;
    text-align: right;
    margin: 0 0 24px 0;
    direction: rtl;
}

/* شبكة معلومات الدورة */
.course-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F0F0F0;
}

.meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background-color: #FAFAFA;
    border-radius: 12px;
}

.meta-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    align-items: center;
    gap: 5px;
    text-align: right;
    flex: 1;
}

.meta-label {
    color: #999999;
    font-size: 13px;
}

.meta-value {
    color: #1F1F1F;
    font-size: 15px;
    font-weight: 500;
}

/* مميزات الدورة */
.features-title {
    color: #1F1F1F;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-align: right;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    text-align: right;
    direction: rtl;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: #4CAF50;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E8F5E9;
    border-radius: 50%;
}

.feature-item span {
    color: #666666;
    font-size: 14px;
    line-height: 22px;
    flex: 1;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .overview-section {
        padding: 20px;
        border-radius: 16px;
    }

    .course-meta-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .meta-item {
        padding: 10px;
    }

    .section-title {
        font-size: 16px;
    }

    .overview-description {
        font-size: 13px;
        line-height: 22px;
    }

    .feature-item span {
        font-size: 13px;
        line-height: 20px;
    }
}

@media (max-width: 576px) {
    .meta-icon {
        font-size: 20px;
    }

    .meta-label {
        font-size: 12px;
    }

    .meta-value {
        font-size: 14px;
    }
}
/* course card */
.course-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  border: 4px dashed var(--card-border);
}

/* 3D Visual Section */
.card-visual {
  background: var(--content-bg);
  padding: var(--spacing-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  min-height: 200px;
  position: relative;
}

.shape-3d {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.shape-3d:hover {
  transform: translateY(-8px);
}

/* Content Section */
.card-content {
  background: #f8f5f8;
  padding: var(--spacing-md);
  border-top: 3px dashed var(--card-border-stripe);
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md);
  text-align: right;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  line-height: 1.4;
}

/* Metadata */
.card-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Primary Button */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(27, 94, 63, 0.3);
  font-family: inherit;
}

.btn-primary:hover {
  background: #155030;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 94, 63, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(27, 94, 63, 0.3);
}

/* Corner Markers */
.corner-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--card-border);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  z-index: 10;
}

.corner-marker.top-left {
  top: 8px;
  left: 8px;
}

.corner-marker.bottom-left {
  bottom: 8px;
  left: 8px;
}

.corner-marker.bottom-right {
  bottom: 8px;
  right: 8px;
}

/* Responsive Design */
@media (max-width: 576px) {
  .course-card {
    max-width: 100%;
    border-width: 3px;
  }
  
  .card-visual {
    padding: var(--spacing-md);
    min-height: 160px;
  }
  
  .shape-3d {
    width: 60px;
    height: 60px;
  }
  
  .card-title {
    font-size: 20px;
  }
  
  .btn-primary {
    font-size: 16px;
    padding: 14px 20px;
  }

      .menu {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
}