/* =============================================
   Blog Section Plugin – style.css
   ============================================= */

/* ---- Wrapper ---- */
.bs-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 0px 100px;
}

/* ---- TABS ---- */
.bs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2.5rem;
}

.bs-tab {
    padding: 13px 30px;
    border: 1px solid #fff !important;
    background: #000 !important;
    color: #fff !important;
    font-size: 16px !important;
    border-radius: 90px !important;
    cursor: pointer !important;
    transition: all 0.22s ease;
    line-height: 1;
    font-family: 'avenir_next_cyrregular';
}

.bs-tab:hover {
    border-color: #fff !important;
    background: #e6ca60 !important;
    color: #000 !important;
}

.bs-tab.active {
    background: #e6ca60 !important;
    border-color: #fff !important;
    color: #000 !important;
}

/* ---- LOADING SPINNER ---- */
.bs-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.bs-loading span {
    width: 32px;
    height: 32px;
    border: 3px solid #eee;
    border-top-color: #e6ca60 !important;
    border-radius: 50%;
    animation: bs-spin 0.7s linear infinite;
    display: block;
}

@keyframes bs-spin {
    to { transform: rotate(360deg); }
}

/* ---- FADE ANIMATION ---- */
.bs-fade {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.bs-fade.bs-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RECENT POSTS (3-column)
   ============================================= */
.bs-recent-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.bs-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.bs-rc {
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.bs-rc-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 0.9rem;
    transition: transform 0.32s ease;
}

.bs-rc:hover .bs-rc-img {
    transform: scale(1.03);
}

.bs-rc-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 0.45rem;
}

.bs-rc-meta strong {
    font-weight: 500;
    color: #555;
}

.bs-rc-title {
    font-size: 18px;
    font-weight: 200;
    color: #fff;
    line-height: 1.45;
}

/* ---- Divider ---- */
.bs-divider {
    border: none;
    border-top: 1px solid #272727;
    margin-bottom: 2rem;
}

/* =============================================
   ALL / CATEGORY POSTS (2-column grid)
   ============================================= */
.bs-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
}

.bs-pc {
    text-decoration: none;
    display: block;
    color: inherit;
    cursor: pointer;
}

.bs-pc-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 0.9rem;
    transition: transform 0.32s ease;
}

.bs-pc:hover .bs-pc-img {
    transform: scale(1.03);
}

.bs-pc-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: .45rem;
    font-weight: 300;
}
.bs-pc-meta strong {
    font-weight: 300;
    color: #888;
}

.bs-pc-title {
    font-size: 20px;
    font-weight: 300;
    color: #fff;
    line-height: 1.45;
    width: 80%;
}

/* =============================================
   PAGINATION
   ============================================= */
.bs-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2.2rem;
    flex-wrap: wrap;
}

.bs-pg-btn,
.bs-pg-arr {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
}

.bs-pg-btn:hover,
.bs-pg-arr:hover {
    border-color: #D85A30;
    color: #D85A30;
}

.bs-pg-btn.active {
    background: #D85A30;
    border-color: #D85A30;
    color: #fff;
}

.bs-pg-arr:disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* =============================================
   NO POSTS MESSAGE
   ============================================= */
.bs-no-posts {
    text-align: center;
    padding: 3rem 0;
    color: #888;
    font-size: 15px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .bs-recent-grid {
        grid-template-columns: 1fr;
    }

    .bs-posts-grid {
        grid-template-columns: 1fr;
    }

    .bs-tabs {
        gap: 6px;
    }

    .bs-tab {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bs-recent-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
