/* --- Layout --- */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.knowledge-feed-wrapper {
    height: 100vh;
    overflow-y: auto;
    position: relative;
    background-color: #111;
    /* dark background */
    color: #f8f9fa;
}

/* --- Background image for desktop --- */
.background-image {
    position: fixed;
    top: 0;
    left: -10%;
    width: 60%;
    height: 100vh;
    background: url('../images/mixed/knowledge-bg.jpg') left center / cover no-repeat;
    z-index: 1;
}

/* --- Gradient fade on right side --- */
.background-image::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 1) 100%);
    z-index: -1;
}

/* --- Content section --- */
.content-container {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    background: transparent;
    padding: 60px 20px;
    max-width: 700px;
    margin-left: auto;
    z-index: 1;
}

/* --- Card styling --- */
.card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.card .btn-outline-dark {
    border-color: #fff;
    color: #fff;
}

.card .btn-outline-dark:hover {
    background: #fff;
    color: #000;
}

/* --- Mobile layout: hide bg, image moves on top --- */
@media (max-width: 767px) {

    body,
    html {
        overflow: auto;
    }

    .background-image {
        display: none;
    }

    .mobile-hero {
        display: block;
    }

    .content-container {
        height: auto;
        background: #111;
        padding-top: 20px;
    }
}

.mobile-hero {
    display: none;
}