/* css/pages/chitiet-lophoc.css - Premium Glassmorphism for Class Details */

:root {
    --bg-deep: #0f172a;
    --accent-primary: #3b82f6;
    --accent-secondary: #0ea5e9;
    --text-light: #f8fafc;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --radius-md: 24px;
}

body {
    background-color: #f8fafc;
    color: #334155;
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

/* --- Hero Section (Wide Banner Style) --- */
.lh-hero {
    position: relative;
    padding: 100px 40px 100px;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #090a57);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

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

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

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatingShape 20s infinite linear;
}

.shape-1 {
    width: 250px;
    height: 250px;
    top: -50px;
    left: -50px;
    animation-duration: 25s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: 5%;
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes floatingShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 30px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.lh-hero-content {
    position: relative;
    z-index: 10;
}

.class-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

.class-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    color: #ffffff !important;
}

/* --- Layout Grid --- */
.class-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .class-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* --- Glass Sections --- */
.glass-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.glass-section:hover {
    transform: translateY(-2px);
}

.glass-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.glass-section h2 i {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.glass-section p {
    line-height: 1.7;
    color: #475569;
}

/* --- Sidebar Glass Card --- */
.glass-sidebar {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.summary-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.info-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 0.95rem;
}

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

.info-list i {
    width: 25px;
    color: var(--accent-secondary);
    margin-right: 10px;
}

.info-list strong {
    color: #334155;
    margin-right: 5px;
}

.btn-sidebar-action {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-align: center;
    font-weight: 700;
    border-radius: 16px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-sidebar-action:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

/* --- Mobile Optimization (Max Width 768px) --- */
@media (max-width: 768px) {

    /* =========================================
       1. HERO SECTION & TITLES
       ========================================= */
    .lh-hero {
        padding: 40px 15px;
        /* Reduced vertical padding */
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .class-title {
        font-size: 1.6rem !important;
        /* Force smaller size */
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .class-subtitle {
        font-size: 0.95rem !important;
        padding: 0 5px;
        line-height: 1.5;
    }

    .class-detail-header {
        padding: 1.5rem !important;
    }

    .class-detail-header h1 {
        font-size: 1.5rem !important;
    }

    /* =========================================
       2. LAYOUT - ENROLLMENT VIEW (.class-detail-layout)
       ========================================= */
    .class-detail-layout {
        display: block;
        /* Stack vertically */
    }

    .glass-sidebar {
        margin-top: 25px;
        width: 100%;
        box-sizing: border-box;
        /* Ensure padding doesn't overflow width */
    }

    /* =========================================
       3. LAYOUT - CONTENT VIEW (.class-content-layout)
       ========================================= */
    .class-content-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 1rem;
    }

    .class-main-content-tabs {
        width: 100%;
        min-width: 0;
        /* Allow flex item to shrink below content size if needed */
    }

    .class-sidebar-announcements {
        width: 100% !important;
        flex-basis: auto !important;
        max-width: none !important;
        margin-top: 0;
        padding: 1.25rem;
    }

    /* =========================================
       4. COMPONENTS
       ========================================= */

    /* Tabs - Horizontal Scroll */
    .class-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        border-bottom: 1px solid #e2e8f0;
    }

    .class-tabs::-webkit-scrollbar {
        height: 3px;
    }

    .class-tabs::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 3px;
    }

    .class-tabs::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

    .class-tab-button {
        padding: 8px 14px;
        font-size: 0.85rem;
        flex: 0 0 auto;
        border-bottom-width: 2px;
    }

    /* Glass Sections */
    .glass-section {
        padding: 20px !important;
        border-radius: 16px;
        margin-bottom: 15px;
    }

    .glass-section h2 {
        font-size: 1.25rem !important;
    }

    /* Lesson Items & Videos */
    .lesson-item,
    .material-link-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-player-wrapper {
        width: 100%;
        margin-top: 10px;
        border-radius: 8px;
        overflow: hidden;
    }

    .video-player-wrapper iframe {
        width: 100%;
        aspect-ratio: 16/9;
        height: auto;
    }

    /* Roadmap */
    .roadmap-timeline {
        padding-left: 15px;
    }

    .roadmap-step {
        padding-left: 15px;
    }

    .roadmap-step::before {
        left: -24px;
        width: 14px;
        height: 14px;
    }



}

/* =========================================
       6. RENOVATION - PREMIUM UI OVERRIDES
       ========================================= */

/* Premium Class Header (Content View) */
.class-detail-header {
    background: linear-gradient(135deg, var(--color-primary), #090a57);
    margin-bottom: 25px;
    padding: 40px 30px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(50, 61, 151, 0.2);
    position: relative;
    overflow: hidden;
}

.class-detail-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
}

.class-detail-header h1 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Premium Tabs (Capsule/Pill Style) */
.class-tabs {
    background: #fff;
    padding: 10px 10px 0 10px;
    /* Slight fix */
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    display: inline-flex;
    /* Fit content or full? Flex usually better */
    display: flex;
    gap: 8px;
    /* Gap between pills */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}

.class-tabs::-webkit-scrollbar {
    height: 0;
    width: 0;
    display: none;
    /* Hide scrollbar for cleaner look */
}

.class-tab-button {
    border-bottom: none !important;
    /* Override default */
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.class-tab-button:hover {
    background: #f1f5f9;
    color: #334155;
}

.class-tab-button.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(50, 61, 151, 0.25);
}

/* Enhance Content Cards (Lessons, etc) */
.lesson-item,
.material-link-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lesson-item:hover,
.material-link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(50, 61, 151, 0.1);
}

.material-link-item i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-right: 0;
    margin-bottom: 5px;
}

/* Sidebar Enhancements */
.class-sidebar-announcements {
    background: transparent !important;
    /* Container transparency */
    padding: 0 !important;
}

.student-info-box {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    display: flex;
    /* Override previous flex if desktop */
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.student-avatar-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #f8fafc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.student-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.student-email {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Announcement items polished */
.announcement-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.announcement-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-secondary);
}

/* Mobile Responsive Tweaks for Renovated UI */
@media (max-width: 768px) {
    .class-detail-header {
        padding: 25px 20px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .class-detail-header h1 {
        font-size: 1.5rem;
    }

    .class-tabs {
        width: 100%;
        /* Full width scrollable on mobile */
        border-radius: 12px;
        padding: 5px;
    }

    .class-tab-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .student-info-box {
        /* Keep separate style for mobile if needed, but flex-col override above might conflict with previous mobile styles. 
               Let's ensure mobile stays compact. */
        flex-direction: row;
        padding: 15px;
        text-align: left;
        align-items: center;
    }

    .student-avatar-small {
        width: 50px;
        height: 50px;
        margin: 0;
        border-width: 2px;
    }

    .student-info-box h4,
    .student-info-box p {
        text-align: left;
    }

    .student-info-box a.button {
        /* Hide edit profile on mobile to save space */
        display: none;

    }

    /* Empty State Polish */
    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px;
        text-align: center;
        color: #94a3b8;
        background: white;
        border-radius: 16px;
        border: 2px dashed #e2e8f0;
    }

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #cbd5e1;
        display: block;
    }

    .empty-state p {
        margin: 0;
        font-size: 1rem;
        font-weight: 500;
    }

    /* Animation Utilities */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

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

    .animate-fade-in-up {
        animation: fadeInUp 0.5s ease-out forwards;
    }

    .animate-delay-1 {
        animation-delay: 0.1s;
    }

    .animate-delay-2 {
        animation-delay: 0.2s;
    }

    .animate-delay-3 {
        animation-delay: 0.3s;
    }
}

/* =========================================
       7. ASSIGNMENT CARDS - PREMIUM ROW LAYOUT
       ========================================= */
.assignments-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.assignment-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.assignment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

/* Left colorful accent line */
.assignment-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.assignment-card:hover::before {
    opacity: 1;
}

.assignment-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: var(--color-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
    border: 1px solid #bae6fd;
}

.assignment-details {
    flex: 1;
    min-width: 0;
    /* Text truncation fix */
}

.assignment-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.assignment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #64748b;
    align-items: center;
}

.assignment-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.test-time-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
}

.test-time-info i {
    color: var(--accent-secondary);
}

.assignment-action {
    margin-left: 20px;
}

.assignment-action .button {
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.assignment-action .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Mobile Responsive for Rows */
@media (max-width: 768px) {
    .assignment-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .assignment-icon {
        margin-bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .assignment-meta {
        gap: 10px 15px;
        margin-bottom: 15px;
    }

    .assignment-action {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
    }

    .assignment-action .button {
        width: 100%;
        justify-content: center;
    }

    /* COPIED FROM danh-sach-thi.css for Identical "Do Test" Button */
    .btn-start-test {
        display: inline-block;
        width: 100%;
        padding: 10px 20px;
        background: white;
        color: #475569;
        text-align: center;
        border-radius: 10px;
        font-weight: 600;
        text-decoration: none;
        border: 1px solid #e2e8f0;
        transition: all 0.2s ease;
        font-size: 0.95rem;
    }

    .btn-start-test:hover:not(.disabled) {
        background: var(--accent-primary, #3b82f6);
        color: white;
        border-color: var(--accent-primary, #3b82f6);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    }

    .btn-start-test.disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background: #f1f5f9;
        color: #94a3b8;
    }
}

/**** MODAL REGISTRATION STYLES ****/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.glass-modal {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 24px;
    width: 100%;
    max-width: 1000px;
    padding: 0;
    overflow-y: auto;
    /* Allow vertical scroll */
    max-height: 90vh;
    /* Limit height to viewport */
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .glass-modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--accent-primary, #3b82f6);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary, #3b82f6);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    margin-top: 30px;
}


/* End of Mobile Optimization Media Query */

/* =========================================
       8. ENROLLMENT VIEW (NEW PREMIUM DESIGN)
       ========================================= */

/* Hero Section used in Enrollment View */
.enrollment-hero {
    background: linear-gradient(135deg, var(--color-primary), #1e293b);
    padding: 60px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.enrollment-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.enrollment-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.enrollment-hero .hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.enrollment-hero .hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Feature/Benefit Grid */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    display: inline-block;
}

.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.benefit-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Teacher Showcase */
.teacher-showcase {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.teacher-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f1f5f9;
}

/* Enrollment Sidebar Card */
.enrollment-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(50, 61, 151, 0.1);
    border: 1px solid rgba(50, 61, 151, 0.1);
    position: sticky;
    top: 100px;
    text-align: center;
}

.enrollment-card .price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 5px;
    display: block;
}

.enrollment-card .price-period {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 25px;
    display: block;
}

.enrollment-card .btn-register-pulse {
    background: linear-gradient(135deg, #ef4444, #f97316);
    width: 100%;
    padding: 16px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.enrollment-card .btn-register-pulse:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.4);
}

.enrollment-card .btn-register-pulse::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rotate 45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.enrollment-features-list {
    text-align: left;
    margin-top: 20px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 20px;
}

.enrollment-features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 0.95rem;
}

.enrollment-features-list li i {
    color: #10b981;
    /* Green check */
}

/* Responsive adjustments for Enrollment View */
@media (max-width: 768px) {
    .enrollment-hero {
        padding: 40px 15px;
        border-radius: 0 0 20px 20px;
    }

    .enrollment-hero h1 {
        font-size: 1.8rem;
    }

    .teacher-showcase {
        flex-direction: column;
        text-align: center;
    }

    .enrollment-card {
        position: static;
        margin-top: 30px;
    }

    .class-detail-layout {
        display: flex;
        flex-direction: column;
    }

    /* Reorder for mobile: Hero -> Card -> Info */
    .class-detail-layout.enrollment-mode {
        display: flex;
        flex-direction: column;
    }

    .class-detail-layout.enrollment-mode .class-main-content {
        order: 2;
    }

    .class-detail-layout.enrollment-mode .class-sidebar-sticky {
        order: 1;
        /* Enrollment card first on mobile? Or maybe keep it below description? */
        /* Let's keep card first for conversion */
        margin-bottom: 20px;
    }
}