/**
 * Class Page Styles - Modern Redesign
 * URL: /lop-7.html
 */

.tlht-class-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Page Header */
.tlht-page-header {
    text-align: center;
    margin-bottom: 25px;
}

.tlht-page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.2;
}

.tlht-page-description {
    color: #666;
    font-size: 15px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Curriculum Filter */
.tlht-curriculum-filter {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.tlht-filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    padding: 12px 20px;
    background: #c91212;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.tlht-filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(102, 126, 234, 0.4);
}

.tlht-filter-button img {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.tlht-filter-button.active img {
    transform: rotate(180deg);
}

.tlht-filter-dropdown {
    margin-top: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tlht-filter-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tlht-filter-dropdown li {
    border-bottom: 1px solid #f0f0f0;
}

.tlht-filter-dropdown li:last-child {
    border-bottom: none;
}

.tlht-filter-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.tlht-filter-dropdown a:hover {
    background: linear-gradient(to right, #f8f9ff, #ffffff);
    color: #667eea;
    padding-left: 22px;
}

.tlht-filter-dropdown img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Subjects Grid - 2 columns */
.tlht-subjects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Subject Card */
.tlht-subject-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.tlht-subject-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.tlht-subject-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.tlht-subject-icon {
    font-size: 26px;
}

.tlht-subject-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Course List */
.tlht-course-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tlht-course-item {
    margin: 0;
}

.tlht-course-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.tlht-course-link:hover {
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transform: translateX(6px);
}

.tlht-course-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.tlht-course-info {
    flex: 1;
}

.tlht-course-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3px;
    color: #000;
}

.tlht-course-meta {
    font-size: 12px;
    color: #999;
}

/* Curriculum Color Borders */
.tlht-course-item[data-curriculum="1"] .tlht-course-link {
    border-left-color: #f44336;
}

.tlht-course-item[data-curriculum="1"] .tlht-course-link:hover {
    border-left-color: #f44336;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.15);
}

.tlht-course-item[data-curriculum="2"] .tlht-course-link {
    border-left-color: #2196f3;
}

.tlht-course-item[data-curriculum="2"] .tlht-course-link:hover {
    border-left-color: #2196f3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.tlht-course-item[data-curriculum="3"] .tlht-course-link {
    border-left-color: #4caf50;
}

.tlht-course-item[data-curriculum="3"] .tlht-course-link:hover {
    border-left-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.tlht-course-item[data-curriculum="6"] .tlht-course-link {
    border-left-color: #9c27b0;
}

.tlht-course-item[data-curriculum="6"] .tlht-course-link:hover {
    border-left-color: #9c27b0;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.15);
}

.tlht-course-item[data-curriculum="7"] .tlht-course-link {
    border-left-color: #ff5722;
}

.tlht-course-item[data-curriculum="7"] .tlht-course-link:hover {
    border-left-color: #ff5722;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.15);
}

.tlht-course-item[data-curriculum="9"] .tlht-course-link {
    border-left-color: #00bcd4;
}

.tlht-course-item[data-curriculum="9"] .tlht-course-link:hover {
    border-left-color: #00bcd4;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.15);
}

.tlht-course-item[data-curriculum="0"] .tlht-course-link {
    border-left-color: #ff9800;
}

.tlht-course-item[data-curriculum="0"] .tlht-course-link:hover {
    border-left-color: #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

/* Empty State */
.tlht-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.tlht-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.tlht-empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.tlht-empty-description {
    font-size: 16px;
    color: #999;
}

/* Responsive */
@media (max-width: 1200px) {
    .tlht-subjects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .tlht-class-page {
        padding: 15px 12px;
    }

    .tlht-page-title {
        font-size: 24px;
    }

    .tlht-page-description {
        font-size: 14px;
    }

    .tlht-subjects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tlht-subject-card {
        padding: 16px;
    }

    .tlht-subject-title {
        font-size: 18px;
    }

    .tlht-course-link {
        padding: 9px 11px;
    }
}

@media (max-width: 480px) {
    .tlht-page-title {
        font-size: 22px;
    }

    .tlht-filter-button {
        padding: 11px 16px;
        font-size: 14px;
    }

    .tlht-subject-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .tlht-subject-icon {
        font-size: 22px;
    }
}

