@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@100..900&display=swap");

#g-mainbar>div:nth-child(1) {
    background-color: var(--background-gray);
}

.page-blog {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 30px;
}

.page-blog-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-blog-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-section {
    background-color: #00aecb;
    padding: 20px 0px;
    color: white;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
}

.sidebar-section-header,
.sidebar-section-elements {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

.sidebar-section-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    text-align: center;
}

.sidebar-section-elements {
    padding-top: 20px;
}

.sidebar-section h2 {
    margin: 0;
    color: white;
    font-weight: 700;
    font-family: "Barlow";
    font-size: 18px;
}

.sidebar-section p {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: capitalize;
}

#sidebar-categories p.active {
    text-shadow: 0.1px 0 white, -0.1px 0 white;
}

.page-blog-sidebar-desktop .sidebar-newsletters {
    display: none;
}

.sidebar-newsletters p,
.sidebar-newsletters a {
    font-weight: normal;
    text-decoration: underline;
    text-decoration-color: #ffffffbf;
    color: white;
}

.card-with-hover .main-image {
    height: 200px;
    object-fit: cover;
}

#sidebar-search {
    width: 100%;
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.search-input {
    flex-grow: 1;
}

#sidebar-search .categories-toggle {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    cursor: pointer;

}

#sidebar-categories {
    display: none;
}

#sidebar-categories.show {
    display: block;
}


@media (max-width: 816px) {
    body .g-content {
        padding-bottom: 0px;
        margin-bottom: 0px;
    }

    .page-blog-sidebar-mobile {
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        background: white;
        width: 106%;
        padding-top: 70px;
        padding-bottom: 20px;
    }

}

@media (min-width: 816px) {
    .page-blog-sidebar-mobile {
        display: none;
    }

    .page-blog-sidebar-mobile .sidebar-newsletters {
        display: none;
    }

    .page-blog-sidebar-desktop .sidebar-newsletters {
        display: block;
    }

    #sidebar-categories {
        display: block;
    }

    .page-blog {
        flex-direction: row;
        align-items: flex-start;
        padding: 20px;
    }

    .page-blog-content {
        width: 70%;
    }

    .page-blog-sidebar {
        width: 30%;
    }

    .sidebar-section h2 {
        font-size: 20px;
    }

    .sidebar-section-header {
        text-align: left;
    }
}

@media (min-width: 1220px) {
    #g-mainbar>div:nth-child(1) {
        margin-left: -13%;
        padding-left: 13%;
        margin-right: -13%;
        padding-right: 13%;
    }

    #sidebar-search .categories-toggle {
        display: none;
    }
}