
/* ==========================================================================
   BLOG PAGE STYLES (NetNovaz Design System)
   ========================================================================== */

.blog-page-hero-section {
    padding-top: 140px;
    padding-bottom: 55px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    border-bottom: 1px solid #edf2f7;
}

.blog-page-hero-inner {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.blog-page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 16px;
}

.blog-page-breadcrumb a {
    color: #08283e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-page-breadcrumb a:hover {
    color: #01639b;
}

.blog-page-hero-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: #08283e;
    line-height: 1.15;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-page-hero-subtitle {
    font-family: 'Mukta', sans-serif;
    font-size: clamp(1.02rem, 1.35vw, 1.2rem);
    color: #475569;
    line-height: 1.65;
    margin-bottom: 0;
}

.blog-grid-section {
    padding-top: 60px;
    padding-bottom: 110px;
    background-color: #ffffff;
    min-height: 600px;
}

/* Blog Filter and Toolbar */
.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 45px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef2f6;
}

.blog-filter-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-filter-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-filter-btn:hover {
    border-color: #01639b;
    color: #01639b;
    background: #f0f7fb;
}

.blog-filter-btn.active {
    background: #01639b;
    border-color: #01639b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(1, 99, 155, 0.25);
}

.blog-meta-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 34px;
    row-gap: 50px;
}

@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 26px;
        row-gap: 40px;
    }
}

@media (max-width: 680px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }
}

/* Card Design */
.blog-item-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 4px 16px rgba(11, 50, 79, 0.04);
}

.blog-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(11, 50, 79, 0.1);
    border-color: rgba(1, 99, 155, 0.25);
}

.blog-item-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background-color: #e2e8f0;
    display: block;
}

.blog-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-item-card:hover .blog-item-thumb img {
    transform: scale(1.05);
}

.blog-item-badge-wrap {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.blog-item-cat-badge {
    background: rgba(8, 48, 75, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-block;
}

.blog-item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px 24px 20px 24px;
}

.blog-item-meta {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.84rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-item-meta .meta-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-item-meta .meta-dot {
    color: #cbd5e1;
}

.blog-item-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.38;
    color: #08283e;
    margin-bottom: 12px;
}

.blog-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blog-item-title a:hover {
    color: #01639b;
}

.blog-item-excerpt {
    font-family: 'Mukta', sans-serif;
    font-size: 0.95rem;
    line-height: 1.62;
    color: #4b667a;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-item-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-item-readmore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #01639b;
    text-decoration: none;
    transition: all 0.25s ease;
}

.blog-item-readmore .read-arrow-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(1, 99, 155, 0.1);
    color: #01639b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.blog-item-readmore:hover {
    color: #014f7c;
}

.blog-item-readmore:hover .read-arrow-circle {
    transform: translate(2px, -2px);
    background: #01639b;
    color: #ffffff;
}

/* Pagination Controls */
.blog-pagination-wrap {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0 18px;
    border-radius: 50px;
    border: 1.5px solid #dce4ec;
    background: #ffffff;
    color: #08283e;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-page-btn:hover:not(:disabled) {
    border-color: #01639b;
    color: #01639b;
    background: #f0f7fb;
    transform: translateY(-1px);
}

.blog-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.blog-page-btn.active {
    background: #01639b;
    border-color: #01639b;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(1, 99, 155, 0.3);
}

.blog-page-num {
    width: 44px;
    height: 44px;
    padding: 0;
}

.blog-status-message {
    text-align: center;
    padding: 60px 20px;
    font-family: 'Mukta', sans-serif;
    font-size: 1.15rem;
    color: #64748b;
    grid-column: 1 / -1;
}

/* Shimmer Loading Skeleton */
.blog-skeleton-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-skeleton-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

.blog-skeleton-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

.blog-skeleton-line.short {
    width: 35%;
}

.blog-skeleton-line.title {
    height: 22px;
    width: 85%;
}

.blog-skeleton-line.text {
    width: 100%;
}

.blog-skeleton-line.text-last {
    width: 70%;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Blog Search Bar */
.blog-search-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.blog-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-search-input {
    width: 100%;
    height: 42px;
    padding: 0 38px 0 40px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #08283e;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    outline: none;
    transition: all 0.25s ease;
}

.blog-search-input:focus {
    background: #ffffff;
    border-color: #01639b;
    box-shadow: 0 0 0 4px rgba(1, 99, 155, 0.12);
}

.blog-search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.blog-search-box:focus-within .blog-search-icon {
    color: #01639b;
}

.blog-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.blog-search-clear:hover {
    color: #08283e;
    background: #e2e8f0;
}

.blog-search-clear.visible {
    display: flex;
}

/* Empty State */
.blog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1.5px dashed #cbd5e1;
    margin: 20px 0;
}

.blog-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(1, 99, 155, 0.1);
    color: #01639b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.blog-empty-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #08283e;
    margin-bottom: 8px;
}

.blog-empty-desc {
    font-family: 'Mukta', sans-serif;
    font-size: 1rem;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto 20px;
}

.blog-empty-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #01639b;
    color: #ffffff;
    border-radius: 50px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-empty-reset-btn:hover {
    background: #08283e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 40, 62, 0.2);
}

/* Card entry animation */
.blog-item-card {
    animation: blogCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes blogCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

