.hover-shadow {
    transition: all 0.3s ease;
}
.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
body { font-size: 0.95rem; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.fs-6 { font-size: 0.875rem; }


/* ===== layout_inner – Mobile first, responsive lessons layout ===== */

/* Base layout */
.layout_inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header / page header inside layout */
.layout_inner__header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 1rem;
}

.layout_inner__header a {
    text-decoration: none;
    color: #007bff;
    font-size: 0.95rem;
}

.layout_inner__header a:hover {
    text-decoration: underline;
}

/* Main wrapper (left menu + content) */
.layout_inner__main {
    display: flex;
    flex: 1;
}

/* Left inner menu */
.layout_inner__left-menu {
    width: 220px;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    padding: 16px 12px;
    overflow-y: auto;
    max-height: calc(100vh - 50px);
}

.layout_inner__left-menu h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #495057;
}

.layout_inner__left-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layout_inner__left-menu li {
    margin-bottom: 4px;
    border-radius: 6px;
    overflow: hidden;
}

.layout_inner__left-menu a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #555;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.layout_inner__left-menu a:hover,
.layout_inner__left-menu li.active a {
    background: #007bff;
    color: #ffffff;
}

/* Responsive – mobile: hide left menu by default */
@media (max-width: 991px) {
    .layout_inner__main {
        flex-direction: column;
    }

    .layout_inner__left-menu {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 16px;
    }
}

/* Optional: toggle‑style sidebar on narrow screens */
@media (max-width: 767px) {
    .layout_inner__left-menu h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .layout_inner__left-menu li {
        margin-bottom: 2px;
    }

    .layout_inner__left-menu a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Main content (lesson body) */
.layout_inner__content {
    flex: 1;
    padding: 20px 16px;
    margin: 0 auto;
    background: #ffffff;
}

/* Heading inside lesson content */
.layout_inner__content h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

/* Links inside lesson content */
.layout_inner__content a {
    color: #007bff;
    text-decoration: none;
}

.layout_inner__content a:hover {
    text-decoration: underline;
}

/* Code / example blocks */
.layout_inner__content pre {
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 12px 0;
}

.layout_inner__content code {
    padding: 2px 4px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Paragraphs and lists inside lesson */
.layout_inner__content p,
.layout_inner__content ul,
.layout_inner__content ol {
    margin-bottom: 12px;
}

.layout_inner__content ul,
.layout_inner__content ol {}
   

/* Responsive: smaller padding on mobile */
@media (max-width: 480px) {
    .layout_inner__content {
        padding: 16px 12px;
    }

    .layout_inner__content h1 {
        font-size: 1.3rem;
    }

    .layout_inner__left-menu {
        padding: 12px 8px;
    }
}

/* ===== layout_inner left menu – elegant sidebar ===== */

/* Left inner menu box */
.layout_inner__left-menu {
    width: 220px;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    padding: 16px 12px;
    overflow-y: auto;
    max-height: calc(100vh - 50px);
}

/* Title inside menu */
.layout_inner__left-menu h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 6px;
}

/* List of lessons */
.layout_inner__left-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layout_inner__left-menu li {
    margin-bottom: 4px;
    border-radius: 6px;
    overflow: hidden;
}

.layout_inner__left-menu a {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #555;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Hover and active states */
.layout_inner__left-menu a:hover {
    background: #f0f7ff;
    color: #007bff;
}

.layout_inner__left-menu li.active a {
    background: #007bff;
    color: #ffffff;
}

/* Responsive – mobile */
@media (max-width: 991px) {
    .layout_inner__left-menu {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 16px;
    }

    .layout_inner__left-menu h3 {
        margin-bottom: 8px;
        font-size: 1rem;
        border-bottom: 1px solid #e9ecef;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .layout_inner__left-menu {
        padding: 12px 8px;
    }

    .layout_inner__left-menu a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}