.blogs-page {
    padding-top: 28px;
    padding-bottom: 40px;
}

.header-area {
    background-color: #fff !important;
    position: sticky !important;
    top: 0 !important;
    box-shadow: 0 4px 18px rgba(24, 32, 56, 0.12) !important;
    z-index: 1000 !important;
}

.header-area .main-nav .logo {
    line-height: 75px;
}

.header-area .main-nav .nav {
    margin-top: 20px;
}

.header-area .main-nav .nav li a {
    color: #1e1e1e !important;
}

.header-area .main-nav .nav li a.active,
.header-area .main-nav .nav li a:hover {
    color: #fb5849 !important;
}

.blog-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 16px;
    margin: 0 0 24px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.blog-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 130px;
    padding: 9px 24px;
    border-radius: 999px;
    color: #a12c2f;
    background: transparent;
    border: 1px solid #b52a30;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.blog-category-tab:hover {
    color: #fff;
    text-decoration: none;
    background: #b52a30;
    border-color: #b52a30;
    transform: translateY(-1px);
}

.blog-category-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #b52a30, #d05249);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(181, 42, 48, 0.2);
}

.blog-filter-card {
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), #fdf7f3 62%, #eef2f7);
    border: 1px solid rgba(161, 44, 47, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(24, 32, 56, 0.07);
}

.blog-filter-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(161, 44, 47, 0.2), transparent 38%),
        radial-gradient(circle at bottom left, rgba(248, 185, 73, 0.14), transparent 28%);
    pointer-events: none;
}

.blog-filter-card > .row {
    position: relative;
    z-index: 1;
}

.blogs-summary {
    margin-bottom: 10px;
}

.blogs-summary-note {
    margin-bottom: 0;
    color: #5e5e5e;
    line-height: 1.7;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #a12c2f, #730c10);
}

.blog-filter-card .main-button-red {
    font-size: 13px;
    color: #fff;
    background-color: #a12c2f;
    padding: 12px 30px;
    border-radius: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 15px 25px rgba(161, 44, 47, 0.35);
}

.blog-filter-card .main-button-red:hover {
    opacity: 0.95;
    box-shadow: 0 15px 30px rgba(161, 44, 47, 0.45);
}

.blogs-grid {
    margin-top: 10px;
}

.blog-card-col {
    margin-top: 10px;
}

.blog-card {
    height: 100%;
    border: 1px solid rgba(161, 44, 47, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(24, 32, 56, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #fff;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(24, 32, 56, 0.11);
}

.blog-card-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f9ece7, #f7f8fb);
    /* aspect-ratio: 16 / 10; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

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

.blog-card-placeholder {
    min-height: 230px;
    display: grid;
    place-items: center;
    color: #a12c2f;
    font-size: 40px;
}

.blog-card .card-body {
    padding: 13px 22px 4px;
}

.blog-card-title {
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #1f1f1f;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #a12c2f;
}

.blog-card-text {
    color: #515151;
    line-height: 1.75;
    margin-bottom: 0;
}

.blog-card-footer {
    background: #fff;
    border-top: 1px solid #f3e8e4;
    padding: 14px 22px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-card-footer .read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    min-width: 140px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: none;
    color: white;
    background: #a12c2f;
    box-shadow: 0 10px 20px rgba(161, 44, 47, 0.25);
}

.blog-card-footer .read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px rgba(161, 44, 47, 0.3);
    text-decoration: none;
}

.blog-view-count {
    border: 1px solid rgba(161, 44, 47, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(161, 44, 47, 0.06);
    color: #73232a;
    font-weight: 600;
    font-size: 0.84rem;
    margin-bottom: 0;
}

.blog-view-count i {
    color: #a12c2f;
    font-size: 0.86rem;
}

.input-group .form-control {
    border: none;
    border-radius: 0 22px 22px 0;
    min-height: 44px;
    box-shadow: none;
}

.input-group-text {
    border: none;
    border-radius: 22px 0 0 22px;
    min-width: 48px;
    justify-content: center;
}

.form-select {
    border-radius: 18px;
    min-height: 44px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.blogs-empty-state {
    text-align: center;
    padding: 48px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, #faf5f1);
    border: 1px solid rgba(161, 44, 47, 0.08);
    box-shadow: 0 18px 42px rgba(24, 32, 56, 0.06);
}

.blogs-empty-state i {
    font-size: 42px;
    color: #a12c2f;
    margin-bottom: 14px;
}

.blog-pagination {
    margin-top: 10px;
}

.blog-pagination .pagination {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-pagination .page-link {
    border-radius: 12px;
    border: 1px solid rgba(161, 44, 47, 0.1);
    color: #73232a;
    min-width: 42px;
    text-align: center;
}

.blog-pagination .page-item.active .page-link {
    background: #a12c2f;
    border-color: #a12c2f;
    color: #fff;
}

@media (max-width: 767.98px) {
    .blog-category-tabs {
        justify-content: flex-start;
        gap: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 2px 10px;
        margin-bottom: 16px;
    }

    .blog-category-tab {
        flex: 0 0 auto;
        min-height: 40px;
        min-width: auto;
        padding: 8px 16px;
        white-space: nowrap;
    }

    .blog-filter-card {
        border-radius: 22px;
    }

    .blog-card-media img,
    .blog-card-placeholder {
        height: 100%;
        min-height: 0;
        object-fit: cover;
    }

    .blog-card .card-body,
    .blog-card-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .blog-card-footer .read-more-btn {
        width: 100%;
    }

    .blog-view-count {
        width: 100%;
        justify-content: center;
    }

    .blog-filter-card .search-btn {
        width: 100%;
    }
}
