.class-detail-hero {
    padding: 2.5rem;
    border-radius: var(--border-radius-soft);
    background-color: var(--color-surface-soft);
    margin-bottom: 2rem;
    text-align: center;
}

.class-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: var(--color-text-primary);
}

.class-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.class-main-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.class-main-content p {
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.registration-sidebar {
    position: sticky;
    top: 90px;
    /* Dính lại khi cuộn trang */
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-soft);
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
}

.registration-sidebar .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.registration-sidebar .button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.info-list li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list i {
    color: var(--color-primary);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.info-list strong {
    color: var(--color-text-primary);
    margin-right: 0.5rem;
}

@media (max-width: 900px) {
    .class-detail-layout {
        grid-template-columns: 1fr;
        /* Chuyển thành 1 cột trên mobile */
    }

    .registration-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

.class-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Loại bỏ border ở section cuối cùng (Về giáo viên) */
.class-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.class-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    /* Loại bỏ margin-top mặc định của h2 trong section */
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-section h2 i {
    font-size: 1.2rem;
    color: var(--color-primary);
}

.class-section p,
.class-section div {
    /* Áp dụng cho cả đoạn văn và danh sách (nếu có) */
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* Định стилизовать danh sách (nếu bạn hiển thị nội dung khóa học dạng list) */
.class-section div ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.class-section div ul li {
    line-height: 1.7;
}

.class-sidebar-box {
    position: sticky;
    top: 100px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-soft);
    padding: 1.5rem;
    box-shadow: var(--shadow-subtle);
}

.class-sidebar-box .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin: 0 0 1.5rem 0;
}

/* Thêm vào file class-details-new.css */
.registration-sidebar .price-enroll-box {
    background-color: var(--color-surface);
    /* Màu nền trắng /
border: 1px solid var(--color-border);    / Viền mờ /
border-radius: var(--border-radius-soft);  / Bo góc /
padding: 1rem;                             / Khoảng cách bên trong /
margin-bottom: 1.5rem;                     / Tạo khoảng cách với các phần tử khác trong sidebar /
box-shadow: var(--shadow-subtle);          / Bóng đổ nhẹ /
text-align: center; / Căn giữa nội dung bên trong */
}

.registration-sidebar .price {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.registration-sidebar .info-list {
    margin-bottom: 1rem;
}

/* --- Giao diện nội dung lớp học (sau khi đã ghi danh) --- */
.class-detail-header {
    background-color: var(--color-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius-soft);
    margin-bottom: 2rem;
}

.class-detail-header h1 {
    margin: 0;
    font-size: 2rem;
}

.class-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.class-tab-button {
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.class-tab-button.active,
.class-tab-button:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.class-tab-content {
    display: none;
}

.class-tab-content.active {
    display: block;
}

.material-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-hard);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: background-color 0.2s ease;
}

.material-link-item:hover {
    background-color: var(--color-surface-soft);
}

.material-link-item i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* Layout mới cho nội dung lớp học */
.class-content-layout {
    display: flex;
    flex-wrap: wrap;
    /* Cho phép xuống dòng trên màn hình nhỏ */
    gap: 2rem;
    margin-top: 2rem;
}

/* Cột chính bên trái */
.class-main-content-tabs {
    flex: 1;
    /* Chiếm không gian còn lại */
    min-width: 300px;
    /* Đảm bảo không bị quá hẹp */
}

/* Cột thông báo bên phải */
.class-sidebar-announcements {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-soft);
    padding: 1.5rem;
    height: fit-content;
    /* Chỉ cao bằng nội dung bên trong */
    border: 1px solid var(--border-color-translucent);
    width: 100%;
    /* Chiếm toàn bộ chiều rộng trên màn hình nhỏ */
    flex-basis: 320px;
    /* Chiều rộng cơ sở trên màn hình lớn */
}

.class-sidebar-announcements h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.student-info-box {
    background-color: var(--color-surface-soft);
    border-radius: var(--border-radius-hard);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid var(--color-border);
}

.student-avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 2px solid var(--color-primary-light);
}

.student-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.student-email {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
    word-break: break-all;
}

.edit-profile-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.5rem;
}

.announcement-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color-translucent);
}

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

.announcement-content {
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.announcement-date {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* Responsive: Trên màn hình lớn hơn 900px, hiển thị 2 cột */
@media (min-width: 900px) {
    .class-sidebar-announcements {
        width: 320px;
        /* Cố định chiều rộng cột phải */
        flex-shrink: 0;
        /* Không cho cột bị co lại */
    }
}

/* NEW: Loading Skeleton Styles */
.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--color-surface-soft);
    border-radius: var(--border-radius-hard);
}

.skeleton-icon {
    width: 24px;
    height: 24px;
    background-color: var(--color-border);
    border-radius: 4px;
    flex-shrink: 0;
}

.skeleton-text {
    width: 70%;
    height: 1.2rem;
    background-color: var(--color-border);
    border-radius: 4px;
}

.skeleton-item {
    background: linear-gradient(90deg, var(--color-surface-soft) 25%, var(--color-border) 50%, var(--color-surface-soft) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* --- MODAL STYLES (Copied from class-list.css) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
}

/* GUIDE STEPS */
.step-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step h3 {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.step p {
    font-size: 0.9rem;
    color: #64748b;
}

.arrow {
    font-size: 24px;
    color: #cbd5e1;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #2563eb;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

/* RESPONSIVE */
@media (max-width: 768px) {
    .step-guide {
        flex-direction: column;
        gap: 30px;
    }

    .arrow {
        transform: rotate(90deg);
    }
}

/* --- ROADMAP STYLES --- */
.roadmap-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed #e0e0e0;
}

.roadmap-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
    margin-top: 1.5rem;
}

.roadmap-step {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 20px;
}

.roadmap-step::before {
    content: '';
    position: absolute;
    left: -29px;
    /* Adjust based on border and padding */
    top: 0;
    width: 16px;
    height: 16px;
    background-color: var(--color-primary, #00468c);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.roadmap-step h4 {
    margin: 0 0 0.5rem 0;
    color: var(--color-text-primary);
    font-weight: 600;
}

.roadmap-step p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}