/* =========================================
   VIVEK FORUM
   inspired layout
   ========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #eef2f6;
    color: #141821;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

a {
    text-decoration: none;
}


/* ==============================
   PAGE
   ============================== */

#container {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
}

#content {
    padding: 20px 18px 40px;
}

#content > .wrapper {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}


/* ==============================
   HOMEPAGE GRID
   ============================== */

.vf-home-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 3fr)
        minmax(300px, 1fr);

    gap: 24px;

    align-items: start;
}

.vf-home-main {
    min-width: 0;
}

.vf-home-sidebar {
    min-width: 0;
}


/* ==============================
   CATEGORY
   ============================== */

.vf-category {
    background: #ffffff;
    margin-bottom: 24px;
    overflow: hidden;

    border: 1px solid #e1e6eb;
    border-radius: 5px;
}

.vf-category-title {
    min-height: 59px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background: #1d6fa5;
    color: #ffffff;

    font-size: 20px;
    font-weight: 700;
}

.vf-category-title a {
    color: #ffffff;
}


/* ==============================
   FORUM ROW
   ============================== */

.vf-forum-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        120px
        minmax(260px, 310px);

    gap: 20px;

    align-items: center;

    min-height: 132px;

    padding: 28px 30px;

    background: #ffffff;

    border-bottom: 1px solid #edf0f2;
}

.vf-forum-row:last-child {
    border-bottom: 0;
}


/* Forum information */

.vf-forum-info {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 26px;
}

.vf-forum-icon {
    width: 72px;
    height: 72px;

    flex: 0 0 72px;

    border-radius: 5px;

    object-fit: cover;

    background: #e8edf2;
}

.vf-forum-copy {
    min-width: 0;
}

.vf-forum-name {
    display: block;

    margin-bottom: 5px;

    color: #111827;

    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
}

.vf-forum-name:hover {
    color: #1d6fa5;
}

.vf-forum-description {
    color: #71809a;

    font-size: 16px;
    line-height: 1.55;
}


/* ==============================
   POST COUNT
   ============================== */

.vf-forum-count {
    text-align: center;

    color: #141821;
}

.vf-forum-count strong {
    display: block;

    font-size: 23px;
    font-weight: 400;

    line-height: 1.1;
}

.vf-forum-count span {
    display: block;

    margin-top: 4px;

    color: #71809a;

    font-size: 14px;
}


/* ==============================
   LAST POST
   ============================== */

.vf-lastpost {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 14px;
}

.vf-lastpost-avatar {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    border-radius: 50%;

    object-fit: cover;

    background: #edf0f3;
}

.vf-lastpost-content {
    min-width: 0;
}

.vf-lastpost-title {
    display: block;

    overflow: hidden;

    color: #151922;

    font-size: 16px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.vf-lastpost-meta {
    margin-top: 3px;

    color: #75839c;

    font-size: 14px;
}


/* ==============================
   SIDEBAR PLACEHOLDER
   ============================== */

.vf-sidebar-box {
    margin-bottom: 18px;

    background: #ffffff;

    border: 1px solid #e1e6eb;
    border-radius: 4px;

    overflow: hidden;
}

.vf-sidebar-title {
    padding: 18px 24px;

    background: #1d6fa5;
    color: #ffffff;

    font-size: 20px;
    font-weight: 700;
}

.vf-sidebar-body {
    padding: 22px;

    color: #4b5563;
}


/* ==============================
   MOBILE
   ============================== */

@media (max-width: 950px) {

    .vf-home-layout {
        grid-template-columns: 1fr;
    }

    .vf-home-sidebar {
        order: 2;
    }

    .vf-forum-row {
        grid-template-columns: 1fr;
    }

    .vf-forum-count {
        text-align: left;
    }
}


@media (max-width: 600px) {

    #content {
        padding: 12px;
    }

    .vf-category-title {
        padding: 0 16px;
        font-size: 17px;
    }

    .vf-forum-row {
        padding: 20px 16px;
    }

    .vf-forum-info {
        align-items: flex-start;
        gap: 15px;
    }

    .vf-forum-icon {
        width: 58px;
        height: 58px;

        flex-basis: 58px;
    }

    .vf-forum-name {
        font-size: 18px;
    }

    .vf-forum-description {
        font-size: 14px;
    }
}