/* ========================================
   PAGE EDITOR & VALIDATION 
   Edited according to global CSS
   ======================================== */

code{
    color: var(--primary-orange-light);
}
.page-editor-body {
    padding-top: 50px;
}

.page-editor-container {
    display: flex;
    flex-direction: row-reverse;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Main content area */
.page-editor-main {
    flex: 3;
}

.page-editor-sidebar {
    flex: 1;
    background: var(--neutral-light-gray);
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    height: fit-content;
    position: sticky;
    top: 140px;
}

.page-editor-sidebar h3 {
    color: var(--secondary-blue);
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-orange);
    padding-bottom: 8px;
}


.page-editor-section {
    scroll-margin-top: 120px;
    background: var(--neutral-white);
    margin-bottom: 32px;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
}


.page-editor-section h2 {
    color: var(--secondary-blue);
    font-size: 28px;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--primary-orange);
    padding-bottom: 12px;
}

.page-editor-section h3 {
    color: var(--primary-orange);
    font-size: 20px;
    margin-bottom: 16px;
    margin-top: 24px;
}

.page-editor-section p {
    color: var(--neutral-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.ref {
    list-style: none;
    padding: 0;
}

.ref li {
    padding: 12px 0;
    border-bottom: 1px solid var(--neutral-light-gray);
    color: var(--neutral-gray);
    line-height: 1.6;
}

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

.ref a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ref a:hover {
    color: var(--primary-orange-dark);
    text-decoration: underline;
}

.page-editor-sidebar a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 4px;
}

.page-editor-sidebar a:hover {
    color: var(--primary-orange);
    background: rgba(255, 165, 0, 0.1);
    transform: translateX(5px);
}

.page-editor-sidebar li {
    margin-bottom: 8px;
}

.page-editor-sidebar ul {
    list-style: none;
    padding-left: 0;
}

.page-editor-sidebar ul ul {
    padding-left: 20px;
    margin-top: 8px;
}

.student-header {
    background: linear-gradient(135deg, var(--secondary-blue), var(--secondary-blue-light));
    color: var(--neutral-white);
    text-align: center;
    padding: 32px 0;
    margin: 80px 0 32px 0;
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.student-header h2 {
    color: var(--neutral-white);
    font-size: 28px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button styling */
.content-btn {
    background: var(--secondary-blue);
    color: var(--neutral-white);
    padding: 8px 22px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.content-btn:hover {
    background: var(--secondary-blue-light);
    transform: translateY(-2px);
}



/* Validation image styling */
.validation-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--shadow-light);
    margin: 20px 0;
    transition: transform 0.3s ease;
}

.page-editor-top {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-editor-container {
        flex-direction: column;
        padding: 15px;
    }

    .page-editor-sidebar {
        position: static;
        margin-bottom: 20px;
        order: -1;
    }

    .page-editor-section {
        padding: 24px;
    }

    .page-editor-section h2 {
        font-size: 24px;
    }

    .student-header {
        margin: 60px 0 20px 0;
        padding: 24px 0;
    }

    .student-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .page-editor-container {
        padding: 10px;
    }

    .page-editor-section {
        padding: 20px;
    }

    .page-editor-section h2 {
        font-size: 20px;
    }

    .page-editor-sidebar {
        padding: 20px;
    }

    .student-header h2 {
        font-size: 20px;
    }
}

.margin{
    margin-left: 20px;
}

