/* ============================================
   SUBJECT CONTENT - STYLES
   ============================================ */

@import url('variables.css');

/* ============================================
   HEADER SECTION
   ============================================ */
.subject-content .page-header {
    padding: 40px 0;
    background: var(--gradient-primary);
    color: var(--text-color-light);
}

.subject-content .header-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.subject-content .header-image {
    flex: 0 0 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--primary-color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-color-light);
}

.subject-content .header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subject-content .header-info {
    flex: 1;
}

.subject-content .header-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--somar-bold);
    margin-bottom: 15px;
}

.subject-content .header-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.subject-content .meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
}

.subject-content .header-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* ============================================
   MAIN SECTION
   ============================================ */
.subject-content .main-section {
    padding: 20px 0;
    background-color: var(--bg-color);
}

.subject-content .main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .subject-content .main-grid {
        grid-template-columns: 1fr 2fr;
        gap: 40px;
        align-items: start;
    }

    .subject-content .sidebar-card {
        position: sticky;
        top: 90px;
        align-self: start;
    }
}

/* ============================================
   SIDEBAR CARD
   ============================================ */
.subject-content .sidebar-card {
    background: var(--bg-color-white);
    border-radius: var(--radius-xl);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.subject-content .sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.subject-content .avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.subject-content .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

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

.subject-content .name-wrapper {
    text-align: center;
    margin-bottom: 5px;
}

.subject-content .name {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--somar-bold);
    color: var(--text-color);
    margin: 0;
}

.subject-content .bio-wrapper {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.subject-content .bio {
    font-size: 0.95rem;
    color: var(--text-color-2);
    margin: 0;
    line-height: 1.8;
}

/* ============================================
   BALANCE
   ============================================ */
.subject-content .balance-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--bg-hover), var(--primary-color-50));
    border-radius: var(--radius-xl);
    margin-bottom: 15px;
    border: 2px solid var(--primary-color);
    border-style: dashed;
}

.subject-content .balance-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.subject-content .balance-value-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subject-content .balance-amount {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--somar-bold);
    color: var(--primary-color);
}

.subject-content .balance-currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.subject-content .quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.subject-content .btn-action {
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.subject-content .btn-recharge {
    background: var(--gradient-primary);
    color: var(--text-color-light);
}

.subject-content .btn-recharge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.subject-content .btn-whatsapp {
    background: #25d366;
    color: var(--text-color-light);
}

.subject-content .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.subject-content .btn-whatsapp i {
    font-size: 20px;
}

/* ============================================
   SECTION HEADING
   ============================================ */
.subject-content .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.subject-content .section-heading h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.subject-content .btn-all-subjects {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--text-color-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.subject-content .btn-all-subjects:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-color-light);
}

.subject-content .btn-all-subjects i {
    font-size: 16px;
}

/* ============================================
   UNITS ACCORDION
   ============================================ */
.subject-content .units-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subject-content .unit-item {
    background: var(--bg-color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.subject-content .unit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition-base);
    background: var(--bg-hover);
    user-select: none;
}

.subject-content .unit-header:hover {
    background: var(--gray-100);
}

.subject-content .unit-number {
    flex-shrink: 0;
}

.subject-content .unit-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: var(--text-color-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

.subject-content .unit-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--somar-bold);
    color: var(--text-color);
    margin: 0;
}

.subject-content .unit-toggle-icon {
    color: var(--text-color-3);
    transition: transform 0.3s ease;
    font-size: 18px;
}

.subject-content .unit-toggle-icon.rotated {
    transform: rotate(180deg);
}

.subject-content .unit-body {
    display: none !important;
    padding: 0 25px;
}

.subject-content .unit-body.active {
    display: block !important;
    padding: 0 25px 25px !important;
}

.subject-content .unit-body.active .lessons-list {
    animation: slideDown 0.4s ease;
}

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

/* ============================================
   LESSONS
   ============================================ */
.subject-content .lessons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
}

.subject-content .lesson-item {
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* ============================================
   LESSON HEADER - ROW 1
   ============================================ */
.lesson-header {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
    transition: all 0.3s ease;
    background: var(--bg-hover);
    border-bottom: 2px solid var(--border-color);
    gap: 12px;
    cursor: pointer;
}

.lesson-header:hover {
    background: var(--gray-100);
}

.lesson-header-row1 {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    cursor: pointer;
}

.lesson-header-row1 .lesson-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.lesson-header-row1 .lesson-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--somar-bold);
    color: var(--text-color);
    flex: 1;
}

.lesson-header-row1 .lesson-title .text-muted {
    color: var(--text-color-2);
}

.lesson-header-row1 .lesson-title .text-success {
    color: var(--success-color);
}

.lesson-header-row1 .lesson-title i {
    font-size: 16px;
}

.lesson-header-row1 .lesson-title .unlock-icon {
    color: var(--success-color);
}

.lesson-header-row1 .lesson-title .lock-icon {
    color: var(--text-color-3);
}

/* ============================================
   LESSON HEADER - ROW 2
   ============================================ */
.lesson-header-row2 {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    cursor: default;
    position: relative;
    padding: 4px 0;
}

.lesson-header-row2 .price-amount {
    font-weight: 700;
    color: var(--primary-color);
    background: var(--primary-color-50);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    order: 1;
}

/* ============================================
   TABS CONTAINER
   ============================================ */
.lesson-tabs-container {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* justify-content: flex-start; */
    padding: 2px 0;
    order: 2;
    justify-content: flex-end;
}

.lesson-tabs-container::-webkit-scrollbar {
    display: none;
}

.lesson-tab {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color-2);
    background: var(--gray-100);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.lesson-tab:hover {
    background: var(--gray-200);
    color: var(--primary-color);
}

.lesson-tab.active {
    background: var(--primary-color-50);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.lesson-tab i {
    font-size: 12px;
}

.lesson-tab .tab-badge {
    display: inline-block;
    padding: 0 5px;
    background: var(--gray-200);
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-color-2);
    line-height: 16px;
    min-width: 16px;
    text-align: center;
}

.lesson-tab.active .tab-badge {
    background: var(--primary-color);
    color: #ffffff;
}

/* ============================================
   PURCHASE BUTTONS
   ============================================ */
.btn-buy-lesson {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    order: 3;
}

.btn-buy-lesson:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(98, 89, 202, 0.3);
}

.btn-buy-lesson i {
    font-size: 14px;
}

.badge-purchased {
    background: var(--success-color);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    order: 3;
}

/* ============================================
   LESSON BODY
   ============================================ */
.lesson-body {
    padding: 0;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
    border-bottom: 1px solid transparent;
}

.lesson-body.active {
    max-height: 5000px;
    opacity: 1;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.lesson-description {
    padding: 15px 20px;
    color: var(--text-color-2);
    line-height: 1.8;
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
}

/* ============================================
   LESSON TAB CONTENT
   ============================================ */
.lesson-tab-content {
    display: none;
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.lesson-tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

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

/* ============================================
   CLOSE BUTTON
   ============================================ */
.lesson-close-wrapper {
    display: none;
    justify-content: flex-end;
    padding: 10px 2px;
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
}

.lesson-close-wrapper.visible {
    display: flex;
}

.btn-close-lesson {
    background: transparent;
    border: none;
    color: var(--danger-color);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-close-lesson:hover {
    background: var(--danger-color-50, #fde8ec);
    transform: scale(1.02);
}

.btn-close-lesson i {
    font-size: 18px;
}

/* ============================================
   VIDEOS
   ============================================ */
.videos-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tab-videos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    order: 1;
    justify-content: center;
}

.tab-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-hover);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-video-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color-50);
    transform: translateY(-2px);
}

.tab-video-btn.active-video {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.tab-video-btn.active-video i {
    color: #ffffff;
}

.tab-video-btn i {
    color: var(--primary-color);
    font-size: 16px;
}

.tab-video-btn .video-status {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--gray-200);
    color: var(--text-color-2);
}

.tab-video-btn .video-status.watched {
    background: var(--success-color);
    color: #ffffff;
}

.tab-video-btn .video-status.locked {
    background: var(--danger-color-50, #fde8ec);
    color: var(--danger-color);
}

/* ============================================
   VIDEO PLAYER
   ============================================ */
.tab-video-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: none !important;
    width: 100%;
    order: 2;
}

.tab-video-player.visible {
    display: block !important;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .tab-video-player {
        border-radius: 8px;
        margin: 0 -10px;
        width: calc(100% + 20px);
        max-width: 100vw;
    }
}

@media (max-width: 576px) {
    .tab-video-player {
        border-radius: 0;
        margin: 0 -15px;
        width: calc(100% + 30px);
        max-width: 100vw;
    }
    
    .video-wrapper {
        padding-bottom: 56.25%;
    }
}

.video-wrapper iframe {
    pointer-events: auto !important;
    -webkit-touch-callout: default !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

.tab-video-player {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.video-wrapper {
    touch-action: manipulation;
    -webkit-touch-callout: default;
}

.video-wrapper iframe:active,
.video-wrapper iframe:focus {
    pointer-events: auto !important;
}

/* ============================================
   VIDEO INFO
   ============================================ */
.tab-video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--border-color);
    border-top: none;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-video-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    text-align: center;
}

.btn-fullscreen-video {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fullscreen-video:hover {
    background: var(--primary-color-50);
    transform: scale(1.1);
}

/* ============================================
   VIDEO NAVIGATION
   ============================================ */
.tab-video-nav {
    display: none !important;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    width: 100%;
    order: 3;
}

.tab-video-nav.visible {
    display: flex !important;
}

.tab-video-nav .btn-nav-video {
    padding: 8px 24px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    background: #ffffff;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-video-nav .btn-nav-video:hover:not(:disabled) {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(98, 89, 202, 0.3);
}

.tab-video-nav .btn-nav-video:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.tab-video-nav .btn-nav-video i {
    font-size: 16px;
}

/* ============================================
   FILES
   ============================================ */
.tab-files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-hover);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-file-btn:hover {
    border-color: var(--primary-color);
}

.tab-file-btn i {
    font-size: 18px;
}

.tab-file-btn .btn-download-tab {
    padding: 2px 12px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-file-btn .btn-download-tab:hover {
    background: var(--primary-color-dark);
}

.tab-file-btn .badge-locked {
    background: var(--gray-200);
    color: var(--text-color-3);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
}

/* ============================================
   HOMEWORKS & QUIZZES
   ============================================ */
.tab-homeworks-grid,
.tab-quizzes-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tab-homework-item,
.tab-quiz-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.tab-homework-item:hover {
    border-color: #856404;
    background: #fff8e1;
}

.tab-homework-item .hw-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-homework-item .hw-info i {
    color: #856404;
    font-size: 18px;
}

.tab-quiz-item:hover {
    border-color: #155724;
    background: #d4edda;
}

.tab-quiz-item .quiz-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-quiz-item .quiz-info i {
    color: #155724;
    font-size: 18px;
}

.tab-homework-item .badge-available,
.tab-quiz-item .badge-available {
    background: var(--success-color);
    color: #ffffff;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.tab-homework-item .badge-locked,
.tab-quiz-item .badge-locked {
    background: var(--gray-200);
    color: var(--text-color-3);
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================
   NO CONTENT
   ============================================ */
.subject-content .no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-color-2);
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
}

.subject-content .no-content i {
    font-size: 48px;
    color: var(--text-color-3);
    margin-bottom: 16px;
}

.subject-content .no-content h4 {
    color: var(--text-color);
    margin-bottom: 6px;
}

/* ============================================
   RTL SUPPORT
   ============================================ */
html[dir="rtl"] .lesson-header-row1 {
    justify-content: flex-start;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .subject-content .page-header {
        padding: 30px 0;
    }
    
    .subject-content .header-content {
        flex-direction: column;
        text-align: center;
    }

    .subject-content .header-image {
        flex: 0 0 150px;
        height: 150px;
        width: 150px;
        margin: 0 auto;
        font-size: 3rem;
    }

    .subject-content .header-meta {
        justify-content: center;
    }

    .subject-content .main-grid {
        grid-template-columns: 1fr;
    }

    .subject-content .sidebar-card {
        position: relative !important;
        top: auto !important;
    }

    .subject-content .btn-action {
        min-width: 100px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .subject-content .section-heading {
        flex-direction: column-reverse;
        text-align: center;
    }

    .subject-content .btn-all-subjects {
        justify-content: center;
    }
    
    .lesson-header {
        padding: 12px 15px;
    }
    
    .lesson-header-row1 .lesson-title {
        font-size: 0.95rem;
    }
    
    .lesson-header-row2 {
        gap: 6px;
    }
    
    .lesson-header-row2 .price-amount {
        font-size: 13px;
        padding: 3px 10px;
    }
    
    .lesson-tab {
        font-size: 11px;
        padding: 3px 9px;
    }
    
    .lesson-tab .tab-badge {
        font-size: 9px;
        line-height: 14px;
        min-width: 14px;
        padding: 0 4px;
    }
    
    .btn-buy-lesson {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .badge-purchased {
        font-size: 11px;
        padding: 3px 10px;
    }
}

@media (max-width: 768px) {
    .subject-content .header-title {
        font-size: 1.8rem;
    }

    .subject-content .unit-header {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .subject-content .quick-actions {
        flex-direction: column;
    }

    .subject-content .btn-action {
        width: 100%;
    }

    .subject-content .balance-amount {
        font-size: 24px;
    }
    
    .lesson-header {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .lesson-header-row1 {
        gap: 6px;
        flex-wrap: nowrap;
    }

    
    .lesson-header-row1 .lesson-title {
        font-size: 0.85rem;
        flex: 1 1 100%;
        order: 2;
    }
    
    .lesson-header-row1 .lesson-badge {
        font-size: 11px;
        padding: 2px 10px;
        order: 1;
    }
    
    .lesson-header-row2 {
        gap: 5px;
        margin-top: 4px;
    }
    
    .lesson-header-row2 .price-amount {
        font-size: 12px;
        padding: 3px 8px;
        order: 1;
        flex-shrink: 0;
    }
    
    .lesson-tabs-container {
        gap: 3px;
        flex: 1 1 100%;
        order: 2;
        -webkit-overflow-scrolling: touch;
        padding: 4px 2px;
        margin: 0 -4px;
        width: calc(100% + 8px);
    }
    
    .lesson-tabs-container::-webkit-scrollbar {
        display: none;
    }
    
    .lesson-tab {
        font-size: 10px;
        padding: 3px 8px;
        gap: 3px;
        border-radius: 14px;
        flex-shrink: 0;
    }
    
    .lesson-tab i {
        font-size: 10px;
    }
    
    .lesson-tab .tab-badge {
        font-size: 8px;
        line-height: 13px;
        min-width: 13px;
        padding: 0 3px;
    }
    
    .btn-buy-lesson {
        font-size: 11px;
        padding: 4px 10px;
        order: 3;
        flex-shrink: 0;
    }
    
    .badge-purchased {
        font-size: 10px;
        padding: 3px 8px;
        order: 3;
        flex-shrink: 0;
    }
    
    .lesson-tab-content {
        padding: 15px 12px;
    }
    
    .tab-videos-grid {
        gap: 8px;
    }
    
    .tab-video-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .tab-video-info {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 10px 12px;
        gap: 8px;
    }
    
    .tab-video-title {
        font-size: 14px;
    }
    
    .tab-video-nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 0;
    }
    
    .tab-video-nav .btn-nav-video {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .tab-files-grid {
        gap: 8px;
    }
    
    .tab-file-btn {
        font-size: 11px;
        padding: 6px 12px;
        width: 100%;
        justify-content: space-between;
    }
    
    .tab-homework-item,
    .tab-quiz-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px;
    }
    
    .tab-homework-item .hw-info,
    .tab-quiz-item .quiz-info {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .subject-content .page-header {
        padding: 25px 0;
    }

    .subject-content .header-image {
        flex: 0 0 120px;
        height: 120px;
        width: 120px;
        font-size: 2.5rem;
    }

    .subject-content .header-title {
        font-size: 1.4rem;
    }

    .subject-content .sidebar-card {
        padding: 18px;
    }

    .subject-content .avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .subject-content .name {
        font-size: 1.1rem;
    }

    .subject-content .unit-badge {
        font-size: 12px;
        padding: 4px 12px;
    }

    .subject-content .balance-amount {
        font-size: 20px;
    }

    .subject-content .balance-currency {
        font-size: 16px;
    }

    .subject-content .btn-all-subjects {
        font-size: 13px;
        padding: 6px 16px;
    }
    
    .lesson-header {
        padding: 8px 10px;
    }
    
    .lesson-header-row1 .lesson-title {
        font-size: 0.8rem;
    }
    
    .lesson-header-row1 .lesson-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .lesson-header-row2 .price-amount {
        font-size: 11px;
        padding: 2px 7px;
    }
    
    .lesson-tab {
        font-size: 9px;
        padding: 2px 6px;
        gap: 2px;
        border-radius: 12px;
    }
    
    .lesson-tab i {
        font-size: 9px;
    }
    
    .lesson-tab .tab-badge {
        font-size: 7px;
        line-height: 12px;
        min-width: 12px;
        padding: 0 2px;
    }
    
    .btn-buy-lesson {
        font-size: 10px;
        padding: 3px 8px;
        gap: 3px;
    }
    
    .badge-purchased {
        font-size: 9px;
        padding: 2px 7px;
    }
    
    .lesson-tab-content {
        padding: 12px 8px;
    }
    
    .tab-video-btn {
        font-size: 10px;
        padding: 4px 8px;
        gap: 4px;
    }
    
    .tab-video-btn i {
        font-size: 12px;
    }
    
    .tab-video-nav .btn-nav-video {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .tab-file-btn {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .lesson-description {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .lesson-header {
        padding: 12px 16px;
    }
    
    .lesson-header-row1 .lesson-title {
        font-size: 1rem;
    }
    
    .lesson-tab {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .tab-video-player {
        margin: 0 -5px;
        width: calc(100% + 10px);
        border-radius: 10px;
    }
    
    .lesson-tab-content {
        padding: 18px;
    }
}

@media (min-width: 1200px) {
    .subject-content .main-grid {
        gap: 50px;
    }
    
    .lesson-header {
        padding: 18px 25px;
    }
    
    .lesson-header-row1 .lesson-title {
        font-size: 1.2rem;
    }
    
    .lesson-tab {
        font-size: 13px;
        padding: 5px 14px;
    }
    
    .lesson-tab-content {
        padding: 25px;
    }
}

@media print {
    .subject-content .page-header {
        background: #fff !important;
        color: #000 !important;
    }
    
    .subject-content .meta-badge {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .subject-content .sidebar-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .subject-content .btn-action,
    .subject-content .btn-all-subjects,
    .subject-content .btn-buy-lesson,
    .subject-content .btn-close-lesson,
    .subject-content .tab-video-nav {
        display: none !important;
    }
    
    .lesson-body {
        max-height: none !important;
        opacity: 1 !important;
        border: 1px solid #ddd !important;
    }
    
    .lesson-tab-content {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .tab-video-player {
        display: none !important;
    }
}

/* ============================================
   CENTERS SECTION
   ============================================ */
.centers-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.centers-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.centers-toggle:hover {
    opacity: 0.8;
}

.centers-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    font-family: var(--somar-regular);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.centers-title i {
    color: var(--primary-color);
}

.centers-arrow {
    transition: transform 0.3s ease;
    color: var(--text-color-2);
}

.centers-arrow.rotated {
    transform: rotate(180deg);
}

.centers-list-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 10px;
}

.centers-list-wrapper.active {
    max-height: 800px;
    padding: 10px 10px 5px;
}

.centers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.center-card {
    background: var(--bg-color-2);
    border-radius: var(--radius-lg);
    padding: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.center-info {
    margin-bottom: 10px;
}

.center-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    font-family: var(--somar-bold);
    margin: 0 0 6px 0;
}

.center-info p,
.center-schedule p {
    font-size: 13px;
    color: var(--text-color-2);
    font-family: var(--somar-regular);
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.center-info p i,
.center-schedule p i {
    width: 16px;
    color: var(--primary-color);
    font-size: 12px;
}

.center-info p a {
    color: var(--primary-color);
    text-decoration: none;
}

.center-info p a:hover {
    text-decoration: underline;
}

.center-schedule {
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

/* ============================================
   HOMEWORK STATUS & ACTIONS
   ============================================ */
.homework-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    color: #fff;
}

.homework-status-badge.completed {
    background: var(--success-color);
}

.homework-status-badge.in-progress {
    background: var(--warning-color);
    color: #212529;
}

.homework-status-badge.not-started {
    background: var(--gray-600);
}

.homework-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.homework-actions .btn {
    font-size: 13px;
    padding: 4px 12px;
    white-space: nowrap;
}

.tab-homework-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tab-homework-item:hover {
    background: var(--gray-100);
    border-color: var(--border-color-2);
}

.tab-homework-item .hw-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-homework-item .hw-info i {
    color: var(--text-color-3);
    font-size: 18px;
}

.hw-score {
    font-weight: 600;
    color: var(--success-color);
}

.homework-video-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.homework-video-btn:hover {
    background: var(--primary-color-dark);
    transform: scale(1.05);
}

.homework-video-player {
    background: var(--bg-hover);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.homework-video-player .video-wrapper {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.homework-video-player .video-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.homework-video-player .video-info {
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 576px) {
    .tab-homework-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .homework-actions {
        justify-content: flex-end;
    }
    .homework-video-player {
        padding: 10px;
    }
    .homework-video-player .video-title {
        font-size: 14px;
    }
}

/* ============================================
   HOMEWORKS GRID - CARD STYLE
 /* ============================================
   HOMEWORKS GRID
   ============================================ */
.homeworks-grid {
    display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 10px 0;
    justify-items: center;
}

.homework-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px 16px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.homework-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Row 1: Icon - Centered */
.homework-card-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 4px;
}

.homework-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: var(--radius-full);
    color: var(--primary-color);
    font-size: 22px;
}

/* Row 2: Title - Centered */
.homework-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.homework-card-info {
    flex: 1;
}

.homework-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

/* Row 3: Score + Meta - Centered */
.homework-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.homework-card-score-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.homework-card-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.homework-card-score.score-pass {
    color: var(--success-color);
    background: rgba(var(--success-rgb), 0.1);
}

.homework-card-score.score-fail {
    color: var(--danger-color);
    background: rgba(var(--danger-rgb), 0.1);
}

.homework-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.homework-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-color-2);
}

.homework-card-meta .meta-item i {
    font-size: 13px;
    color: var(--text-color-3);
}

/* Row 4: Actions - Centered */
.homework-card-actions-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.homework-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.homework-card-actions .btn {
    font-size: 13px;
    padding: 6px 18px;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition-base);
    font-weight: 500;
    cursor: pointer;
}

.homework-card-actions .btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.homework-card-actions .btn-primary:hover {
    background: var(--primary-color-dark);
}

.homework-card-actions .btn-success {
    background: var(--success-color);
    color: #fff;
}
.homework-card-actions .btn-success:hover {
    background: var(--success-color-dark);
}

.homework-card-actions .btn-warning {
    background: var(--warning-color);
    color: #fff;
}
.homework-card-actions .btn-warning:hover {
    background: var(--warning-color-dark);
}

.btn-video-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 14px;
}

.btn-video-tip:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.08);
}

/* Row 5: Tip - Centered */
.homework-card-tip {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(var(--warning-rgb), 0.06);
    border: 1px solid rgba(var(--warning-rgb), 0.15);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-color-2);
    
}

.homework-card-tip i {
    color: var(--warning-color);
    font-size: 14px;
    flex-shrink: 0;
}


.homework-card-tip .tip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 10px;
    background: var(--surface-color);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .homeworks-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .homework-card {
        padding: 14px 16px;
        max-width: 100%;
    }
    
    .homework-card-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .homework-card-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .homework-card-title {
        font-size: 14px;
    }
    
    .homework-card-score {
        font-size: 13px;
        padding: 3px 12px;
    }
    
    .homework-card-actions {
        align-items: stretch;
    }
    
    .homework-card-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .homework-card-tip {
        justify-content: center;
    }
}

/* ============================================
   QUIZZES GRID - CARD STYLE (مثل الهوم ورك بالضبط)
   ============================================ */
.quizzes-grid {
    display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 10px 0;
    justify-items: center;
}

.quiz-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px 16px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.quiz-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Row 1: Icon - Centered */
.quiz-card-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 4px;
}

.quiz-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: var(--radius-full);
    color: var(--primary-color);
    font-size: 22px;
}

/* Row 2: Title - Centered */
.quiz-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quiz-card-info {
    flex: 1;
}

.quiz-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

/* Row 3: Score + Meta - Centered */
.quiz-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quiz-card-score-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz-card-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.quiz-card-score.score-pass {
    color: var(--success-color);
    background: rgba(var(--success-rgb), 0.1);
}

.quiz-card-score.score-fail {
    color: var(--danger-color);
    background: rgba(var(--danger-rgb), 0.1);
}

.quiz-card-expired {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--danger-color);
    background: rgba(var(--danger-rgb), 0.1);
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.quiz-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.quiz-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-color-2);
}

.quiz-card-meta .meta-item i {
    font-size: 13px;
    color: var(--text-color-3);
}

.quiz-card-meta .time-remaining {
    color: var(--primary-color);
    font-weight: 600;
}

/* Row 4: Actions - Centered */
.quiz-card-actions-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.quiz-card-actions .btn {
    font-size: 13px;
    padding: 6px 18px;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition-base);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quiz-card-actions .btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.quiz-card-actions .btn-primary:hover:not(:disabled) {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-card-actions .btn-success {
    background: var(--success-color);
    color: #fff;
}
.quiz-card-actions .btn-success:hover:not(:disabled) {
    background: var(--success-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-card-actions .btn-warning {
    background: var(--warning-color);
    color: #fff;
}
.quiz-card-actions .btn-warning:hover:not(:disabled) {
    background: var(--warning-color-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-card-actions .btn-secondary {
    background: var(--gray-500);
    color: #fff;
}
.quiz-card-actions .btn-secondary:hover:not(:disabled) {
    background: var(--gray-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-card-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Row 5: Videos - Centered */
.quiz-card-videos-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Row 6: Tip - Centered */
.quiz-card-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(var(--warning-rgb), 0.06);
    border: 1px solid rgba(var(--warning-rgb), 0.15);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-color-2);
    justify-content: center;
}

.quiz-card-tip i {
    color: var(--warning-color);
    font-size: 14px;
    flex-shrink: 0;
}

.quiz-card-tip .tip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 10px;
    background: var(--surface-color);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* ============================================
   RESPONSIVE - QUIZZES
   ============================================ */
@media (max-width: 768px) {
    .quizzes-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .quiz-card {
        padding: 14px 16px;
        max-width: 100%;
    }
    
    .quiz-card-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .quiz-card-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .quiz-card-title {
        font-size: 14px;
    }
    
    .quiz-card-score {
        font-size: 13px;
        padding: 3px 12px;
    }
    
    .quiz-card-actions {
        align-items: stretch;
    }
    
    .quiz-card-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .quiz-card-tip {
        justify-content: center;
    }
}

/* ============================================
   SHARED - Video Tip Button 
   ============================================ */
.btn-video-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 14px;
}

.btn-video-tip:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.08);
}

/* ============================================
   PROGRESS CARD
   ============================================ */
.progress-card .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-card .card-header {
    font-size: 18px;
    font-weight: 600;
    background: var(--gradient-primary);
    color: var(--text-color-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.progress-card .card-body .col-6 {
    border-right: 1px solid var(--border-color);
}

.progress-card .card-body .col-6:last-child {
    border-right: 0;
}

@media (max-width: 576px) {
    .progress-card .card-body .col-6 {
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }
    .progress-card .card-body .col-6:last-child {
        border-bottom: 0;
    }
}

.progress-card .progress {
    background-color: var(--bg-color-3);
    border-radius: 10px;
}
.progress-card .progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}