/* ========== BASE ========== */
.eab-wrapper {
    display: flex;
    gap: 30px;
    font-family: Inter, system-ui, sans-serif;
}

/* ========== LEFT PANEL ========== */
/* ================= LEFT MENU ================= */

/* ================= LEFT MENU (FIXED) ================= */

.eab-left {
    width: 28%;
    position: sticky;
    top: 80px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 12px;
    background: #fafafa;
    border-right: 1px solid #e5e7eb;
}

/* Menu item */
.eab-link {
    display: block;
    padding: 16px 18px;
    margin-bottom: 12px;              /* CLEAN GAP */
    border-radius: 14px;
    text-decoration: none;
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;

    /* REAL HR */
    border-bottom: 1px solid #e5e7eb;

    transition: all 0.25s ease;
}

/* Remove HR for last item */
.eab-link:last-child {
    border-bottom: none;
}

/* Hover */
.eab-link:hover {
    background: linear-gradient(90deg, #eef2ff, #f8faff);
    color: #3730a3;
    transform: translateX(3px);
}

/* Active item */
.eab-link.active {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    color: #ffffff;
    font-weight: 600;

    border-bottom: none;              /* IMPORTANT */
    box-shadow: 0 10px 30px rgba(99,102,241,0.35);
}


/* ========== RIGHT CONTENT ========== */
.eab-right {
    width: 72%;
}

/* ARTICLE CARD */
.eab-article {
    background: #ffffff;
    padding: 26px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* Breadcrumb */
.eab-breadcrumb {
    font-size: 13px;
    color: #6366f1;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* Title */
.eab-title {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #111827;
}

/* Meta */
.eab-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 22px;
}

/* Content Typography */
.eab-content p {
    font-size: 17px;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 20px;
}

.eab-content h2 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #111827;
}

.eab-content ul {
    padding-left: 20px;
}

.eab-content li {
    margin-bottom: 10px;
}

/* Loading */
.eab-loading {
    padding: 40px;
    opacity: .6;
}

/* ========== MOBILE VIEW (IMPORTANT) ========== */
/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

    .eab-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    /* LEFT MENU */
    .eab-left {
        width: 100%;
        position: relative;
        top: unset;
        max-height: none;
        padding: 10px;
        background: transparent;
        border: none;
    }

    .eab-link {
        margin-bottom: 10px;
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 14px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.05);
        border-bottom: none;
    }

    .eab-link.active {
        box-shadow: 0 8px 20px rgba(99,102,241,0.35);
    }

    /* RIGHT CONTENT */
    .eab-right {
        width: 100%;
        margin-top: 10px;     /* IMPORTANT SEPARATION */
        position: relative;
        z-index: 1;
    }

    .eab-article {
        padding: 20px;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    }

    /* Title scaling */
    .eab-title {
        font-size: 22px;
        line-height: 1.35;
    }

    .eab-meta {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .eab-content p {
        font-size: 15.5px;
        line-height: 1.7;
    }
}


/* ================= SEARCH BAR ================= */

.eab-search {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    transition: all 0.2s ease;
}

.eab-search:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
