/* ==========================================================================
   LATEST NEWS SWIPER ([bigro_latest_news_swiper])
   ========================================================================== */

/* 1. Card Wrapper */
.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none !important;
    padding: 1.5rem;
    color: #fff;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 2. Hiệu ứng nền mờ Linear Gradient (Primary -> Transparent) */
.news-card::before,
.news-featured-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--color-linear-1) 5%, transparent 40%) !important;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* 3. Content Box (Text, Tag, Title, Footer) */
.news-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 75%;
}

.news-featured-card .news-content>*:not(.news-footer) {
    display: none !important;
}

/* 7. Footer (Author & Meta) */
.news-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

/* Tác giả */
.news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-author-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.news-author-name {
    font-weight: 600;
    color: #fff;
}

/* Meta Data (Ngày & Thời lượng) */
.news-meta-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.news-date {
    color: #fff !important;
    padding: 0 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.news-duration {
    color: #fff !important;
}

.news-meta-icons span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-meta-icons i.dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

/* 8. Swiper Navigation (Next/Prev) ở góc dưới */
.bigro-news-swiper .swiper-button-next,
.bigro-news-swiper .swiper-button-prev {
    top: auto;
    bottom: 1rem;
    margin: 0;
    width: 1.75rem;
    height: 1.75rem;
    padding: .5rem;
    z-index: 9999 !important;
    background-color: #fff;
    border-radius: 50%;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.bigro-news-swiper .swiper-button-next:hover,
.bigro-news-swiper .swiper-button-prev:hover {
    background-color: var(--color-secondary);
}

.bigro-news-swiper .swiper-button-prev {
    right: 4rem;
    /* Căn góc phải, lùi vào để nhường chỗ cho nút next */
    left: auto;
}

.bigro-news-swiper .swiper-button-next {
    right: 1.5rem;
    /* Sát mép phải */
}

/* Chỉnh kích thước icon bên trong nút */
.bigro-news-swiper .swiper-button-next::after,
.bigro-news-swiper .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: bold;
}

/* ==========================================================================
   LATEST NEWS GRID CARD & TABS ([bigro_news_category_tabs])
   ========================================================================== */

/* 1. Grid Card Wrapper */
.news-grid-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 2. Grid Image Area */
.news-grid-img {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-grid-cat {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-success, #28a745);
    /* Màu xanh lá như ảnh */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. Grid Body */
.news-grid-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-grid-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid-excerpt {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 4. Grid Footer */
.news-grid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.news-grid-footer span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-grid-author img {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    object-fit: cover;
}

.news-grid-footer i.dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    color: #aaa;
}

/* ==========================================================================
   TABS INTERFACE
   ========================================================================== */
/* Style.css */

/* ==========================================================================
   FEATURED NEWS CARD (Standalone version of Swiper Card)
   ========================================================================== */
.news-featured-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    overflow: hidden;
    color: #fff;
    text-decoration: none !important;
    padding: 2rem;
    height: 100%;
    min-height: 400px;
    background-position: 0;
}

.news-featured-card .news-content {
    max-width: 100%;
}

.news-featured-card .news-duration {
    padding-left: 1.5rem !important;
}

/* ==========================================================================
   FIX CHIỀU CAO CHO SECTION SINGLE POST 
   ========================================================================== */
.section-blog-single .row {
    display: flex;
    align-items: stretch !important;
}

.section-blog-single .col-inner {
    height: 100%;
}

/* FOOTER */
.blog-footer-left .banner,
.blog-footer-left .banner-bg.fill {
    border-radius: 1rem;
}

.blog-footer-right>.col-inner {
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}

.cf7-single-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cf7-single-input input {
    margin: 0 !important;
    padding: .75rem !important;
    line-height: 1.2 !important;
    border-radius: .5rem !important;
    height: 100% !important;
    text-transform: initial !important;
}

@media screen and (min-width: 822px) and (max-width: 1025px) {
    .blog-footer-left .banner {
        padding-top: 50% !important;
    }
}




@media screen and (max-width: 431px) {

    .bigro-news-swiper .news-card {
        aspect-ratio: 16/9 !important;
    }

    .news-content {
        max-width: 100%;
    }

    .news-footer {
        flex-direction: column;
        justify-content: flex-start;
        align-items: start;
        gap: 1rem;
        display: none;
    }

    .news-date {
        padding-left: 0 !important;
    }

    .blog-footer-left .banner .text-box {
        width: 90% !important;
    }

    .blog-footer-left .banner {
        padding-top: 90% !important;
    }

    .cf7-single-input {
        flex-direction: column;
    }

    /* News / CS - MOBILE */
    .news-card::before,
    .news-featured-card::before {
        background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-linear-1) 15%, transparent 80%);
    }

    .bigro-news-swiper .swiper-button-next,
    .bigro-news-swiper .swiper-button-prev {
        bottom: 1.5rem;
        width: 2rem;
        height: 2rem;
    }

    .news-featured-card {
        height: auto !important;
        min-height: auto !important;
        aspect-ratio: 16/9 !important;
    }

}

@media screen and (max-width: 376px) {}