/* ===== Blogs Page Hero ===== */
.blogs-page-hero {
    position: relative;
    background: var(--secondary-color);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.blogs-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('../assets/images/about-banner.png') center / cover no-repeat;
    opacity: 0.12;
}

.blogs-page-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.85rem;
}

.blogs-page-hero .breadcrumb-item.active {
    color: #fff;
    font-size: 0.85rem;
}

.blogs-page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.blogs-page-hero h1 {
    font-size: 2.4rem;
}

.blogs-hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    max-width: 480px;
    margin-bottom: 2rem;
}

/* Search Bar */
.blogs-search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 0.4rem 0.4rem 0.4rem 1.25rem;
    max-width: 520px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    gap: 0.75rem;
}

.blogs-search-icon {
    color: #aaa;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.blogs-search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--body-color);
    background: transparent;
}

.blogs-search-bar input::placeholder {
    color: #aaa;
}

.blogs-search-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-family);
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.blogs-search-btn:hover {
    background: #b8102a;
}

/* ===== Filter Tabs ===== */
.blogs-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.filter-tab {
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    color: var(--third-color);
    font-family: var(--font-family);
    font-weight: bold;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.22s;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ===== Blog Cards Shared ===== */
.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.blog-card-img img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.45s;
    display: block;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

.blog-card-category {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: bold;
    z-index: 1;
}

.blog-card-meta {
    font-size: 0.78rem;
    color: #888;
    gap: 0.4rem;
}

.blog-card-meta i {
    font-size: 0.72rem;
}

.blog-card-title {
    color: var(--third-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    font-size: 1rem;
    margin: 0;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    margin: 0;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.82rem;
    text-decoration: none;
}

.blog-read-more i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.blog-card:hover .blog-read-more i {
    transform: translateX(-3px);
}

/* ===== Featured Card ===== */
.blog-card--featured {
    height: 100%;
}

.blog-card-img--featured {
    flex: 0 0 50%;
    min-height: 320px;
}

.blog-card-img--featured img {
    height: 100%;
    min-height: 320px;
}

.blog-card--featured .blog-card-body {
    padding: 2rem;
    justify-content: center;
}

.blog-card--featured .blog-card-title {
    font-size: 1.2rem;
    -webkit-line-clamp: 3;
}

.blog-card--featured .blog-card-excerpt {
    -webkit-line-clamp: 4;
}

/* ===== Side Cards ===== */
.blog-card--side {
    padding: 0.85rem;
    align-items: flex-start;
    gap: 1rem;
}

.blog-card-img--side {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    flex-shrink: 0;
}

.blog-card-img--side img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
}

.blog-card--side .blog-card-category {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.65rem;
    padding: 0.15rem 0.6rem;
}

.blog-card--side .blog-card-title {
    font-size: 0.88rem;
    -webkit-line-clamp: 3;
}

/* ===== Vertical Card ===== */
.blog-card--vertical .blog-card-img img {
    height: 210px;
}

.blog-card--vertical .blog-card-body {
    padding: 1.25rem;
}

/* ===== Divider ===== */
.blogs-divider {
    border-color: rgba(0, 0, 0, 0.08);
}

/* ===== Pagination ===== */
.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    color: var(--third-color);
    font-family: var(--font-family);
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.22s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-btn.active,
.page-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-dots {
    color: #aaa;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 0 0.25rem;
}

/* ===== Active Nav Link ===== */
.active-nav {
    color: var(--primary-color) !important;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .blogs-page-hero {
        padding: 3.5rem 0 3rem;
    }

    .blogs-page-hero h1 {
        font-size: 1.8rem;
    }

    .blogs-search-bar {
        max-width: 100%;
    }

    .blog-card-img--featured {
        flex: unset;
        min-height: 220px;
    }

    .blog-card-img--featured img {
        min-height: 220px;
        height: 220px;
    }

    .blog-card--featured .blog-card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .blogs-page-hero h1 {
        font-size: 1.5rem;
    }

    .blog-card-img--side {
        width: 90px;
        height: 90px;
    }

    .blog-card-img--side img {
        width: 90px;
        height: 90px;
    }
}
