.tutorials-card {
    border: 2px solid var(--bs-theme-secondary) !important;
}

.tutorials-card:hover {
    border: 2px solid var(--bs-theme-primary) !important;
}


@media (min-width: 1400px) {
    .new-container-fluid {
        max-width: 1750px;
        margin: 0 auto;
    }
}

/* ================================
   Sticky Sidebar
================================ */
.tutorial-sidebar {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    font-family: "Inter", system-ui, sans-serif;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Title */
.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

/* Menu */
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 6px;
}

/* Menu Links */
.menu-item>a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

/* Hover */
.menu-item>a:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Active */
.menu-item>a.active {
    background: linear-gradient(135deg, #201c6b, #201c6b);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

/* Icons */
.icon-left {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.menu-item>a.active .icon-left {
    color: #ffffff;
}

.icon-right {
    margin-left: auto;
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

/* Rotate icon */
.menu-item.open>a .icon-right {
    transform: rotate(180deg);
}

/* ================================
   Submenu
================================ */
.submenu {
    list-style: none;
    padding-left: 28px;
    margin: 6px 0 10px;
    border-left: 2px solid #e5e7eb;
}

.submenu li {
    margin: 4px 0;
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #4b5563;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.submenu a:hover {
    background: #f3f4f6;
    color: #111827;
}

.submenu a.active {
    background: #201c6b;
    color: #ffffff;
    font-weight: 600;
}

/* ================================
   Scrollbar (optional)
================================ */
.tutorial-sidebar::-webkit-scrollbar {
    width: 6px;
}

.tutorial-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}



/* code mirror editor*/
.CodeMirror-lines {
    padding: 1rem 0rem !important;
}

.cm-ui-wrapper {
    border-radius: 8px;
    overflow: hidden;
    background: #1e1e1e;
    border: 1px solid #333;
    margin: 20px 0;
}

.cm-ui-header {
    background: #404040;
    height: 50px;
    display: flex;
    justify-content: space-between;
    padding-inline: 1rem;
    align-items: center;
}

.cm-ui-logo-side {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot.red {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
    display: inline-block;
    margin-right: 6px;
}

.dot.yellow {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffbd2e;
    display: inline-block;
    margin-right: 6px;
}

.dot.green {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #27ca3f;
    display: inline-block;
}

.cm-ui-title {
    margin-left: 10px;
    font-size: 13px;
    color: #ccc;
}

.CodeMirror {
    height: auto !important;
}

.CodeMirror-scroll {
    overflow: hidden !important;
}

/* footer {
    margin-bottom: 0 !important;
    padding-bottom: 20px;
} */

footer p {
    margin-bottom: 0;
}

.h70vh {
    min-height: 70vh;
}

.h80vh {
    min-height: 80vh;
}

.h60vh {
    min-height: 60vh;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    z-index: 9998;
}

.cookie-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    max-width: 620px;
    width: calc(100% - 30px);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    z-index: 9999;
    display: none;
}

.cookie-box h3 {
    margin-top: 0;
    font-size: 18px;
}

.cookie-box p {
    font-size: 14px;
    color: #444;
}

.cookie-box a {
    color: #201c6b;
    text-decoration: underline;
}

.cookie-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Settings Modal */
.cookie-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    max-width: 500px;
    width: calc(100% - 30px);
    padding: 20px;
    border-radius: 8px;
    display: none;
    z-index: 10000;
}

.cookie-option {
    margin-bottom: 15px;
}

.cookie-option p {
    font-size: 13px;
    color: #555;
    margin: 5px 0 0 25px;
}

@media (max-width: 576px) {
    .offcanvas-start {
        width: 85% !important;
    }
}

.offcanvas-body .tutorial-sidebar {
    padding-top: 0;
}

.custom-offcanvas-header {
    padding: 10px;
}

.custom-offcanvas-header .btn-close {
    padding: 0;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.custom-offcanvas-body .tutorial-sidebar {
    top: 0px !important;
    min-height: 100%;
}

.html-tag {
    background-color: #f4f4f4;
    color: #d63384;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 14px;
    white-space: nowrap;
}