/*  - Professional Course Page Design */

/* Course Header Section */
.course-header-section {
    padding: 0;
    margin-bottom: 1.5rem;
}

.course-hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg, #fff);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.course-hero-image {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.course-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.course-hero-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-hero-badge.featured {
    background: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.course-hero-content {
    padding: 2rem;
}

.course-hero-content.has-image {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
}

.course-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.course-hero-content.has-image .course-breadcrumb {
    color: rgba(255, 255, 255, 0.9);
}

.course-hero-content:not(.has-image) .course-breadcrumb {
    color: var(--text-light);
}

.course-breadcrumb a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.course-hero-content.has-image .course-breadcrumb a {
    color: white;
}

.course-hero-content:not(.has-image) .course-breadcrumb a {
    color: var(--primary);
}

.course-breadcrumb a:hover {
    opacity: 0.8;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.course-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.course-hero-content.has-image .quick-info-item {
    opacity: 0.95;
}

.course-hero-content:not(.has-image) .quick-info-item {
    color: var(--text);
}

.quick-info-item i {
    font-size: 1.1rem;
}

/* Main Content Section */
.course-content-section {
    padding: 2rem 0 4rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

/* Content Boxes */
.content-box {
    background: var(--bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.box-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.box-title i {
    color: var(--primary);
    font-size: 1.4rem;
}

/*  */
.box-content {
    color: var(--text);
    line-height: 1.8;
}

.content-box:has(.modules-accordion) .box-content {
    padding: 0.75rem;
    /* background: #f8f9fa; */
}

/* Requirements & Outcomes Lists */
.requirements-list,
.outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li,
.outcomes-list li {
    display: flex;
    align-items: start;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.requirements-list li:last-child,
.outcomes-list li:last-child {
    border-bottom: none;
}

.requirements-list i,
.outcomes-list i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Attachments Grid */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.attachment-item {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.attachment-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attachment-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.attachment-details h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.attachment-details p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.attachment-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.preview-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/*  */
/* Modules Accordion */
.modules-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.module-block {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.module-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.module-block.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/*  */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--bg, #fff);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/*  */
.module-header:hover {
    background: var(--bg-light);
}

/*  */
.module-block.active .module-header {
    background: var(--primary);
    color: white;
}

.module-block.active .module-header .module-number,
.module-block.active .module-header .module-title,
.module-block.active .module-header .module-info {
    color: white;
}

.module-title-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/*  */
.module-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    font-size: 0.75rem;
    color: white;
    background: var(--primary);
    font-weight: 700;
    border-radius: 6px;
    padding: 0 0.5rem;
}

.module-block.active .module-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.module-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    line-height: 1.4;
}

.module-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    flex-shrink: 0;
}

/*  */
.lecture-count {
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-light);
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-light);
}

.module-block.active .lecture-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1.125rem;
}

.module-block.active .toggle-icon {
    transform: rotate(180deg);
}

/*  */
.module-description {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

/*  */
.module-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    background: var(--bg, #fff);
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.module-block.active .module-content {
    max-height: fit-content;
    overflow: visible;
}

/*  */
/* Lectures List */
.lectures-list {
    padding: 0.5rem;
    background: var(--bg, #fff);
}

/*  */
.lecture-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    background: var(--bg, #fff);
    border: 1px solid transparent;
}

/*  */
.lecture-item:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: translateX(-2px);
}

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

/*  */
.lecture-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.lecture-details {
    flex: 1;
    min-width: 0;
}

.lecture-title {
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    color: var(--text);
    font-size: 0.875rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lecture-meta {
    display: flex;
    gap: 0.875rem;
    font-size: 0.75rem;
    color: var(--text-light);
    flex-wrap: wrap;
    align-items: center;
}

.lecture-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.lecture-meta i {
    font-size: 0.875rem;
}

/*  */
.questions-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.questions-badge i {
    font-size: 0.75rem;
}

/*  */
.required-label {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

/*  */
/* Module Exams */
/*  */
.module-exams {
    margin-top: 0.5rem;
    padding: 0.75rem 0.5rem 0.5rem;
    border-top: 2px dashed var(--border);
}

/*  */
.exam-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-light);
    border-radius: 10px;
    border: 2px solid var(--warning, #ffc107);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.exam-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--warning, #ffc107);
}

/*  */
.exam-icon {
    width: 40px;
    height: 40px;
    background: var(--warning, #ffc107);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.exam-details {
    flex: 1;
    min-width: 0;
}

/*  */
.exam-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    color: var(--text, #333);
    line-height: 1.4;
}

.exam-description {
    font-size: 0.8125rem;
    color: var(--text-light, #666);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.exam-meta {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-light, #666);
}

/*  */
.exam-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.exam-meta i {
    font-size: 0.875rem;
}

.exam-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/*  */
.exam-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--warning, #ffc107);
    color: #fff;
    padding: 0.3rem 0.625rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Instructor Info */
.instructor-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.instructor-avatar {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.instructor-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Reviews */
.review-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 0.875rem;
}

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

.review-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars i {
    color: #ddd;
    font-size: 0.875rem;
}

.rating-stars i.filled {
    color: #ffd700;
}

.review-date {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.review-text {
    line-height: 1.6;
    color: var(--text);
}

/* Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.price-card {
    background: var(--bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text);
}

/* Packages */
.packages-wrapper {
    margin-bottom: 1.5rem;
}

.package-item {
    margin-bottom: 1rem;
}

.package-item input[type="radio"] {
    display: none;
}

.package-item label {
    display: block;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.package-item input:checked + label {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.package-item label {
    position: relative;
    overflow: hidden;
}

/* Package Discount Ribbon */
.package-discount-ribbon {
    position: absolute;
    top: 10px;
    right: -35px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.4);
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
}

[dir="rtl"] .package-discount-ribbon {
    right: auto;
    left: -35px;
    transform: rotate(-45deg);
}

.package-discount-ribbon span {
    display: block;
    text-align: center;
}

.package-name {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.package-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    padding-top: 0.5rem;
}

.old-price {
    font-size: 0.9375rem;
    color: var(--text-light);
    text-decoration: line-through;
    order: 1;
}

.price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    order: 2;
    line-height: 1;
}

.package-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.package-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.package-features i {
    color: var(--success);
}

/* Simple Price */
.simple-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.discount {
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.discount-badge {
    background: var(--danger, #dc3545);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Discount Timer */
.discount-timer {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin: 0.875rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
    }
}

.discount-timer i {
    font-size: 1rem;
    margin-left: 0.5rem;
}

.timer-text {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.time-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    min-width: 30px;
    text-align: center;
}

.time-label {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.time-separator {
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 0.7;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    /* color: var(--primary); */
}

/* Course Includes */
.course-includes {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.course-includes h4 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.875rem;
}

.course-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-includes li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: var(--text);
}

.course-includes i {
    color: var(--primary);
    font-size: 1rem;
}

/* Schedules Section - New Modern Design */
.schedules-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg);
    border-radius: 12px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.section-title i {
    color: var(--primary);
    font-size: 1.75rem;
}

/* Schedules List - Horizontal Layout -  */
.schedules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-list-item {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.schedule-list-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateX(-3px);
}

[dir="rtl"] .schedule-list-item:hover {
    transform: translateX(3px);
}

.schedule-list-item .schedule-date-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 80px;
    flex-shrink: 0;
}

.schedule-list-item .date-day {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.schedule-list-item .date-month {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

.schedule-details {
    flex: 1;
}

.schedule-info-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.info-item-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.info-item-inline i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 8px;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-item-inline .info-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
}

.info-item-inline .info-value {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 600;
}

.info-item-inline .seats-count {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
}

.schedule-action {
    flex-shrink: 0;
}

.schedule-action .btn-enroll-schedule {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.schedule-action .btn-enroll-schedule:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* Old Grid Layout - Keep for backward compatibility */
.schedules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Schedule Card - Modern Column Layout */
.schedule-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.schedule-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.schedule-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.schedule-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.schedule-date-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.date-day {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.date-month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.date-year {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.schedule-card-body {
    padding: 1.5rem;
}

.schedule-info-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    gap: 0.875rem;
    align-items: start;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s;
}

.info-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateX(-3px);
}

[dir="rtl"] .info-item:hover {
    transform: translateX(3px);
}

.info-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 600;
}

.schedule-seats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #0369a1;
}

.schedule-seats i {
    font-size: 1.125rem;
}

.schedule-card-footer {
    padding: 0 1.5rem 1.5rem;
}

.btn-enroll-schedule {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-enroll-schedule:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-enroll-schedule i {
    transition: transform 0.3s;
}

.btn-enroll-schedule:hover i {
    transform: translateX(-3px);
}

[dir="rtl"] .btn-enroll-schedule:hover i {
    transform: translateX(3px);
}

/* Old schedule styles - keep for compatibility */
.btn-enroll {
    width: calc(100% - 2.5rem);
    margin: 0 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-enroll:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Modal */
.modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-wrapper.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.modal-close:hover {
    background: var(--border);
}

.modal-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.modal-body {
    padding: 1.5rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.total-amount {
    font-size: 1.375rem;
    color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Direct Registration Option Styles -  */
.direct-option .package-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.direct-option .package-name i {
    color: var(--primary);
    font-size: 1.125rem;
}

.direct-option .package-features li.excluded {
    color: var(--text-light);
    text-decoration: line-through;
    opacity: 0.7;
}

.direct-option .package-features li.excluded i {
    background: #ef4444;
    color: white;
}

/* Single Option Without Packages */
.single-option label {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--secondary-rgb), 0.03) 100%);
}

/* Permanent Discount Badge */
.permanent-discount {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.permanent-discount::after {
    content: '{{ __l("permanent") }}';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Additional Fees Note -  */
.additional-fees-note {
    margin-top: 0.75rem;
    padding: 0.875rem;
    background: rgba(59, 130, 246, 0.08);
    border-right: 3px solid #3b82f6;
    border-radius: 8px;
    display: flex;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text);
}

[dir="ltr"] .additional-fees-note {
    border-right: none;
    border-left: 3px solid #3b82f6;
}

.additional-fees-note i {
    color: #3b82f6;
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.additional-fees-note strong {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--text);
}

.additional-fees-note div {
    margin-top: 0.25rem;
    color: var(--text-light);
    line-height: 1.5;
}

.note-box {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #1e40af;
}

.note-box i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Price Note Styles -  */
.price-note {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.1);
    border-right: 4px solid #f59e0b;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
}

[dir="ltr"] .price-note {
    border-right: none;
    border-left: 4px solid #f59e0b;
}

.price-note i {
    color: #f59e0b;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.note-content p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9375rem;
}

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

.additional-fees-list li {
    padding: 0.375rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Course Includes Enhancements -  */
.course-includes ul li.highlight-item {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-includes ul li.highlight-item i {
    color: var(--primary);
    font-size: 1.125rem;
}

.course-includes ul li .detail {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Schedules List - Horizontal Layout -  */
.schedules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-list-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.schedule-list-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.schedule-list-item .schedule-date-badge {
    flex-shrink: 0;
    width: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.875rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.schedule-list-item .date-day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.schedule-list-item .date-month {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
    text-transform: uppercase;
    opacity: 0.95;
}

.schedule-details {
    flex: 1;
}

.schedule-info-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.info-item-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.875rem;
}

.info-item-inline i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.info-item-inline .info-label {
    color: var(--text-light);
    font-weight: 600;
    margin-left: 0.25rem;
}

[dir="ltr"] .info-item-inline .info-label {
    margin-left: 0;
    margin-right: 0.25rem;
}

.info-item-inline .info-value {
    color: var(--text);
    font-weight: 700;
}

.info-item-inline .seats-count {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
}

.schedule-action {
    flex-shrink: 0;
}

.schedule-action .btn-enroll-schedule {
    padding: 0.875rem 1.5rem;
    white-space: nowrap;
}

/* Exam Details in Main Content -  */
.exam-details-content {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
}

.exam-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
}

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

.exam-item-row .label {
    color: var(--text-light);
    font-size: 0.9375rem;
    font-weight: 600;
}

.exam-item-row .value {
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
}

.exam-item-row.price-row {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--secondary-rgb), 0.08) 100%);
    padding: 1rem;
    border-radius: 8px;
    border: none;
    margin-top: 0.75rem;
}

.exam-item-row .price-highlight {
    color: var(--primary);
    font-size: 1.25rem !important;
    font-weight: 800;
}

/* Responsive Adjustments for New Styles -  */
@media (max-width: 768px) {
    .schedule-list-item {
        flex-direction: column;
        gap: 1rem;
    }

    .schedule-list-item .schedule-date-badge {
        width: 100%;
        text-align: center;
    }

    .schedule-info-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .schedule-action {
        width: 100%;
    }

    .schedule-action .btn-enroll-schedule {
        width: 100%;
    }

    .direct-registration-card {
        padding: 1rem;
    }

    .exam-info-card {
        margin-top: 1rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sticky-sidebar {
        position: static;
    }
}

/*  */
@media (max-width: 768px) {
    .course-hero-card {
        border-radius: 12px;
    }

    .course-hero-image {
        height: 280px;
    }

    .course-hero-content {
        padding: 1.5rem;
    }

    .course-hero-content.has-image {
        position: static;
        color: var(--text);
        background: var(--bg);
        border-radius: 0 0 12px 12px;
    }

    .course-hero-content.has-image .course-breadcrumb {
        color: var(--text-light);
    }

    .course-hero-content.has-image .course-breadcrumb a {
        color: var(--primary);
    }

    .course-hero-content.has-image .quick-info-item {
        color: var(--text);
    }

    .course-hero-title {
        font-size: 1.5rem;
    }

    .content-box {
        padding: 1.5rem;
    }

    .attachments-grid,
    .schedules-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Schedule Cards - Mobile */
    .schedule-info-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .date-day {
        font-size: 2rem;
    }

    /* Modules & Lectures - Mobile */
    .module-header {
        padding: 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .module-title {
        font-size: 0.875rem;
    }

    .module-number {
        min-width: 50px;
        height: 28px;
        font-size: 0.55rem;
    }

    .lecture-count {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .lecture-item {
        padding: 0.625rem;
        gap: 0.625rem;
    }

    .lecture-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .lecture-title {
        font-size: 0.8125rem;
        white-space: normal;
    }

    .lecture-meta {
        font-size: 0.7rem;
        gap: 0.625rem;
    }

    .exam-item {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .exam-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .exam-title {
        font-size: 0.875rem;
    }

    .exam-meta {
        font-size: 0.7rem;
        gap: 0.625rem;
    }

    .exam-meta span {
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .course-hero-image {
        height: 220px;
    }

    .course-hero-content {
        padding: 1.25rem;
    }

    .course-hero-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .course-quick-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .quick-info-item {
        font-size: 0.85rem;
    }

    .discount-timer {
        padding: 0.75rem;
    }

    .countdown {
        gap: 0.35rem;
    }

    .time-unit {
        padding: 0.3rem 0.4rem;
    }

    .time-value {
        font-size: 1rem;
        min-width: 24px;
    }

    .time-label {
        font-size: 0.65rem;
    }

    .modal-content {
        border-radius: 0;
        max-height: 100vh;
    }

    /* Schedule Cards - Small Mobile */
    .schedule-card-header {
        padding: 1.25rem;
    }

    .date-day {
        font-size: 1.75rem;
    }

    .date-month {
        font-size: 0.875rem;
    }

    .schedule-card-body {
        padding: 1.25rem;
    }

    .info-item {
        padding: 0.75rem;
    }

    .info-item i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .btn-enroll-schedule {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }

    /* Package Ribbon - Mobile */
    .package-discount-ribbon {
        padding: 4px 35px;
        font-size: 0.7rem;
    }
}

/*  - Course Rating Styles */
.reviews-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-add-review {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-add-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Review Item Enhanced */
.review-item-enhanced {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    background: var(--bg);
    transition: all 0.3s ease;
}

.review-item-enhanced:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.review-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-author-section {
    display: flex;
    gap: 1rem;
}

.reviewer-avatar-enhanced {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reviewer-info h4 {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.rating-stars-enhanced {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.3rem;
}

.rating-stars-enhanced i {
    font-size: 0.9rem;
}

.rating-stars-enhanced i.filled {
    color: #fbbf24;
}

.verified-badge {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.verified-badge i {
    font-size: 0.7rem;
}

.review-date-enhanced {
    color: var(--text-light);
    font-size: 0.875rem;
}

.review-text-enhanced {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.review-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.helpful-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.helpful-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.helpful-btn i {
    font-size: 0.875rem;
}

.helpful-count-display {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.helpful-count-display i {
    font-size: 0.875rem;
}

/* No Reviews State */
.no-reviews-state {
    text-align: center;
    padding: 3rem;
}

.no-reviews-state i {
    font-size: 3rem;
    color: var(--text-light);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.no-reviews-state p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Rating Modal */
#ratingModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#ratingModal .modal-content {
    background: var(--bg);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#ratingModal .modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text);
}

#ratingModal .modal-close:hover {
    background: var(--border);
}

#ratingModal .modal-close i {
    font-size: 1.2rem;
}

#ratingModal .modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

#ratingModal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
}

#ratingModal .modal-header p {
    margin: 0.5rem 0 0;
    color: var(--text-light);
}

#ratingModal .modal-body {
    padding: 2rem;
}

#ratingModal .form-field {
    margin-bottom: 2rem;
}

#ratingModal .form-field label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text);
}

#ratingModal .form-field label span {
    color: var(--danger, #ef4444);
}

#courseStarRating {
    display: flex;
    gap: 0.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    justify-content: center;
}

#courseStarRating i {
    color: #e5e7eb;
    transition: color 0.2s;
}

#courseStarRating i:hover {
    color: #fbbf24;
}

#ratingModal textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    resize: vertical;
    background: var(--bg);
    color: var(--text);
}

#ratingModal textarea:focus {
    outline: none;
    border-color: var(--primary);
}

#ratingModal small {
    color: var(--text-light);
    font-size: 0.875rem;
}

#ratingModal .btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

#ratingModal .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

#ratingModal .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dark Theme Support */
:root[data-theme="dark"] .review-item-enhanced {
    background: var(--bg);
    border-color: var(--border);
}

:root[data-theme="dark"] .verified-badge {
    background: rgba(16, 185, 129, 0.2);
}

:root[data-theme="dark"] #ratingModal .modal-content {
    background: var(--bg);
}

:root[data-theme="dark"] #ratingModal textarea {
    background: var(--bg-light);
    color: var(--text);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 300px;
    max-width: 450px;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

[dir="rtl"] .toast-notification {
    right: auto;
    left: 20px;
    transform: translateX(-400px);
}

[dir="rtl"] .toast-notification.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Tajawal', sans-serif;
}

.toast-content i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content span {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-success {
    border-left: 4px solid #10b981;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1), white);
}

[dir="rtl"] .toast-success {
    border-left: none;
    border-right: 4px solid #10b981;
    background: linear-gradient(to left, rgba(16, 185, 129, 0.1), white);
}

.toast-success .toast-content i {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.1), white);
}

[dir="rtl"] .toast-error {
    border-left: none;
    border-right: 4px solid #ef4444;
    background: linear-gradient(to left, rgba(239, 68, 68, 0.1), white);
}

.toast-error .toast-content i {
    color: #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), white);
}

[dir="rtl"] .toast-info {
    border-left: none;
    border-right: 4px solid #3b82f6;
    background: linear-gradient(to left, rgba(59, 130, 246, 0.1), white);
}

.toast-info .toast-content i {
    color: #3b82f6;
}

/* Dark Theme Toast */
:root[data-theme="dark"] .toast-notification {
    background: var(--bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .toast-success {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.2), var(--bg));
}

:root[data-theme="dark"] .toast-error {
    background: linear-gradient(to right, rgba(239, 68, 68, 0.2), var(--bg));
}

:root[data-theme="dark"] .toast-info {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.2), var(--bg));
}

:root[data-theme="dark"] .toast-content span {
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-add-review {
        width: 100%;
        justify-content: center;
    }

    .review-header-enhanced {
        flex-direction: column;
        gap: 1rem;
    }

    #courseStarRating {
        font-size: 2rem;
    }

    #ratingModal .modal-content {
        width: 95%;
    }

    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    [dir="rtl"] .toast-notification {
        right: 10px;
        left: 10px;
    }
}

/* ==========================================
   Course Learning Page Styles

   ========================================== */

/* Learning Page Container */
.course-learning-page {
    min-height: 100vh;
    background: #f8f9fa;
}

/* Learning Header */
.learning-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.learning-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    transition: all 0.3s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(3px);
}

[dir="rtl"] .back-btn:hover {
    transform: translateX(-3px);
}

.learning-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex: 1;
}

.package-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: white;
}

.learning-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    max-width: 250px;
}

.progress-fill {
    height: 100%;
    background: #28a745;
    border-radius: 10px;
    transition: width 0.3s;
}

/* Learning Body */
.learning-body {
    padding: 0;
}

.learning-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    min-height: calc(100vh - 100px);
}

/* Sidebar */
.learning-layout .sidebar-content {
    background: white;
    border-left: 1px solid #e9ecef;
    height: calc(100vh - 100px);
    overflow-y: auto;
    position: sticky;
    top: 0;
}

[dir="rtl"] .learning-layout .sidebar-content {
    border-left: none;
    border-right: 1px solid #e9ecef;
}

.learning-layout .sidebar-content .content-box {
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
}

.learning-layout .sidebar-content .box-title {
    padding: 1rem 1.25rem;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    font-weight: 600;
}

.learning-layout .sidebar-content .box-content {
    padding: 0;
}

.learning-layout .sidebar-content .modules-accordion {
    padding: 0;
}

/* Module Block - Compact */
.learning-layout .sidebar-content .module-block {
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}

.learning-layout .sidebar-content .module-header {
    padding: 0.75rem 1rem;
    background: white;
}

.learning-layout .sidebar-content .module-block.active .module-header {
    background: #f8f9fa;
}

.learning-layout .sidebar-content .module-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

.learning-layout .sidebar-content .module-title {
    font-size: 0.875rem;
    line-height: 1.4;
}

.learning-layout .sidebar-content .module-info {
    gap: 0.5rem;
    font-size: 0.75rem;
}

.learning-layout .sidebar-content .lecture-count {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.learning-layout .sidebar-content .toggle-icon {
    width: 16px;
    height: 16px;
}

.learning-layout .sidebar-content .module-description {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}

.learning-layout .sidebar-content .module-content {
    padding: 0;
}

.learning-layout .sidebar-content .module-block.active .module-content {
    padding: 0.5rem 0;
}

/* Lectures List - Compact */
.learning-layout .sidebar-content .lectures-list {
    gap: 0;
}

.learning-layout .sidebar-content .lecture-item {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    margin: 0;
    border-bottom: 1px solid #f1f3f5;
}

[dir="rtl"] .learning-layout .sidebar-content .lecture-item {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
}

.learning-layout .sidebar-content .lecture-item:hover {
    background: #f8f9fa;
}

.learning-layout .sidebar-content .lecture-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, transparent 100%);
    border-right: 3px solid #667eea;
}

[dir="rtl"] .learning-layout .sidebar-content .lecture-item.active {
    border-right: none;
    border-left: 3px solid #667eea;
    background: linear-gradient(270deg, rgba(102, 126, 234, 0.08) 0%, transparent 100%);
}

.learning-layout .sidebar-content .lecture-icon {
    width: 32px;
    height: 32px;
}

.learning-layout .sidebar-content .lecture-icon i {
    width: 18px;
    height: 18px;
}

.learning-layout .sidebar-content .lecture-title {
    font-size: 0.85rem;
    line-height: 1.3;
}

.learning-layout .sidebar-content .lecture-meta {
    gap: 0.75rem;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.learning-layout .sidebar-content .lecture-meta i {
    width: 12px;
    height: 12px;
}

/* Exam Item - Compact */
.learning-layout .sidebar-content .module-exams {
    margin: 0.5rem 0.5rem 0.5rem 2.5rem;
}

[dir="rtl"] .learning-layout .sidebar-content .module-exams {
    margin: 0.5rem 2.5rem 0.5rem 0.5rem;
}

.learning-layout .sidebar-content .exam-item {
    padding: 0.6rem 0.75rem;
    margin: 0;
}

.learning-layout .sidebar-content .exam-item.locked {
    background: #f8f9fa;
}

.learning-layout .sidebar-content .exam-icon {
    width: 32px;
    height: 32px;
}

.learning-layout .sidebar-content .exam-icon i {
    width: 16px;
    height: 16px;
}

.learning-layout .sidebar-content .exam-title {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.learning-layout .sidebar-content .exam-meta {
    gap: 0.75rem;
    font-size: 0.7rem;
}

.learning-layout .sidebar-content .exam-meta i {
    width: 12px;
    height: 12px;
}

.learning-layout .sidebar-content .exam-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
}

/* Final Exam */
.learning-layout .sidebar-content > .content-box > .box-content > .exam-item {
    margin: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Learning Content Area */
.learning-content {
    background: white;
    padding: 2rem;
    overflow-y: auto;
}

.content-tabs-wrapper {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.content-tabs {
    display: flex;
    gap: 0;
}

.content-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-tab i {
    width: 16px;
    height: 16px;
}

.content-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.content-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.3s;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* Alert Styles */
.learning-body .alert {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem;
}

.learning-body .alert h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.learning-body .alert p {
    margin: 0 0 1rem 0;
}

.learning-body .alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.learning-body .alert-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

/* Scrollbar Styling */
.learning-layout .sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.learning-layout .sidebar-content::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.learning-layout .sidebar-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.learning-layout .sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Responsive */
@media (max-width: 1024px) {
    .learning-layout {
        grid-template-columns: 280px 1fr;
    }

    .learning-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .learning-header {
        padding: 0.75rem 0;
    }

    .learning-title {
        font-size: 1.125rem;
    }

    .learning-layout {
        grid-template-columns: 1fr;
    }

    .learning-layout .sidebar-content {
        position: static;
        height: auto;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .learning-content {
        padding: 1rem;
    }

    .progress-track {
        max-width: 150px;
    }

    .package-badge {
        display: none;
    }
}
