.post_searchbox{
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: block;
}
.posts_form_get{
    width: 100%;
    display: flex;
    position: relative;
    height: 35px;
    background-color: var(--main-bg);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.posts_form_get:focus-within{
    border: 1px solid var(--main-color);
}
.posts_form_get input{
    width: 100%;
    height: 100%;
    padding: 0 25px 0 20px;
    border: none;
    background-color: transparent;
    outline: none;
}
.btn_form_submit{
    border: none;
    background-color: var(--main-color);
    color: var(--main-bg);
    height: 100%;
    width: 40px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
}

/* Category Scrolling -------------- */
.cat_scrolling {
    position: relative;
    width: 100%;
    margin: 0 auto;
}
.cat_scroll_container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.cat_scroll_wrapper {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 10px;
    width: 100%;
}
.cat_scroll_wrapper::-webkit-scrollbar {
    display: none;
}
.cat_scroll_item {
    flex: 0 0 auto;
    background-color: var(--main-bg);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding: 6px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition-normal);
}
.cat_scroll_item:hover{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}
.catThumb{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}
.catImages{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.cat_info{
    display: flex;
    flex-direction: column;
}
.catesName{
    color: var(--main-color);
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}
.catCount{
    font-size: 10px;
    color: var(--second-text);
}
.scroll_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: opacity 0.3s ease, background 0.2s ease;
    font-size: 12px;
}
.scroll_btn:hover {
    background: #f9fafb;
    color: #111827;
}
.scroll_prev {
    left: 15px;
}
.scroll_next {
    right: 15px;
}
.scroll_btn.hide,
.cat_scrolling.no_overflow .scroll_btn {
    opacity: 0;
    pointer-events: none;
}

/* Recipes blog Css ------------------ */
.content_grid{
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}
.title_section{
    display: block;
    margin-bottom: 1rem;
    font-size: 18px;
    font-weight: 600;
    color: var(--second-text);
}
/* Recipes ---------------- */
.grid_recipes{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.card_recipe{
    background-color: var(--main-bg);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border-radius: 8px;
}
.recipe_thumb{
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    transition: var(--transition-normal);
}
.recipe_thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-normal);
}
.recipe_thumb:hover img{
    transform: scale(1.05);
}
.recipe_card_body{
    padding: 10px;
}
.recipe_card_title{
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 20px;
}
.recipe_card_title a{
    text-decoration: none;
    line-height: 1.4;
    color: var(--main-text);
}
.meta_active{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.data_meta_active{
    font-size: 11px;
    color: var(--second-text);
}
.recipe_tag{
    text-decoration: none;
    color: var(--main-color);
    font-size: 12px;
}
.load_more_btn{
    display: block;
    margin-top: 3rem;
    width: max-content;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    color: var(--main-bg);
    background-color: var(--main-color);
    cursor: pointer;
}
.sidebar_content{
    position: sticky;
    top: 7rem;
}
.sidebar_loop{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.side_card{
    background-color: var(--main-bg);
    border-radius: 5px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
    padding: 10px;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.5rem;
}
.side_img{
    width: 100%;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
}
.side_img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.side_tag_link{
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    font-size: 11px;
    text-decoration: none;
    color: var(--main-color);
}
.side_title{
    display: block;
    font-size: 13px;
    font-weight: 600;
}
.side_title a{
    transition: var(--transition-normal);
    text-decoration: none;
    color: var(--main-text);
    line-height: 1.4;
}
.side_title a:hover{
    color: var(--main-color);
}

/* Laptop kecil --------------- */
@media( max-width: 1024px ){
    .grid_recipes{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet ---------------------- */
@media( max-width: 768px ){
    .content_grid{
        grid-template-columns: 1fr;
    }
    .grid_recipes{
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile -------------- */
@media(max-width:480px){
    .content_card,
    .grid_recipes{
        grid-template-columns: 1fr;
    }
    .recipe_thumb{
        height: 280px;
    }
}