/* Edu Platform Specific Styles */
:root {
    --edu-card-bg: rgba(15, 23, 42, 0.6);
    --code-bg: #0f172a;
    --code-header: #1e293b;
    --html-color: #f06529;
    --css-color: #2965f1;
    --js-color: #f7df1e;
    --php-color: #4f5b93;
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: var(--edu-card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.course-card .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

/* Lesson Viewer Layout */
.lesson-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2px;
    /* Thin divider */
    height: calc(100vh - 80px);
    /* Adjust for header */
    background: var(--glass-border);
    overflow: hidden;
}

.lesson-sidebar {
    background: #020617;
    padding: 2rem;
    overflow-y: auto;
}

.lesson-workspace {
    display: grid;
    grid-template-rows: 1fr 1fr;
    background: #020617;
}

.code-editor-area {
    background: var(--code-bg);
    position: relative;
    display: flex;
    flex-direction: column;
}

.editor-header {
    background: var(--code-header);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-content {
    flex: 1;
    padding: 1.5rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre-wrap;
    outline: none;
    overflow-y: auto;
}

.preview-area {
    background: white;
    position: relative;
}

.preview-header {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.preview-frame {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1024px) {
    .lesson-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .lesson-workspace {
        height: 600px;
    }
}