/* ================= PREMIUM BLOG HERO ================= */
.blog-hero {
    position: relative;
    padding: 140px 0;

    background: url('../images/blogheader.jpeg') center center no-repeat;
    background-size: cover; /* 🔥 important */

    background-color: #d5e7f9;
    overflow: hidden;
}

/* OVERLAY - PREMIUM FIX */
.blog-hero .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.366) 45%,
        rgba(255, 255, 255, 0.4) 60%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0) 90%
    );
}
/* CONTENT */
.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;

  
}

/* BREADCRUMB */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb span {
    color: #64748b;
}

/* HEADING */
.blog-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.blog-hero h1 span {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* TEXT */
.blog-hero p {
    color: #475569;
    margin: 20px 0 30px;
    font-size: 18px;
    line-height: 1.7;
}

/* BUTTON */
.hero-btn {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* PRIMARY BUTTON */
.hero-btn.primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

/* HOVER EFFECT */
.hero-btn:hover {
    transform: translateY(-4px) scale(1.02);
}

/* PREMIUM ANIMATION (OPTIONAL) */
.blog-hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.15);
    filter: blur(120px);
    top: -100px;
    right: -100px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
        .blog-hero {
        background: none;
        background-color: #d5e7f9;
    }

    .blog-hero .overlay {
        display: none;
    }


    .blog-hero {
        padding: 100px 0;
        text-align: center;
    }

    .blog-hero-content {
        margin: auto;
    }

    .blog-hero h1 {
        font-size: 38px;
    }
}

/* ================= BLOG TOOLBAR ================= */
.blog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.toolbar-search {
    position: relative;
    width: 300px;
}

.toolbar-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

.toolbar-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    background: #f8fafc;
}

.toolbar-search input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.toolbar-filter .custom-select {
    padding: 10px 40px 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    background-color: #f8fafc;
    transition: 0.3s;
}

.toolbar-filter .custom-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ================= BLOG CARDS ================= */
.blog-posts-section {
    padding: 60px 0;
    background: #f8fafc;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-img {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #e2e8f0;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 500;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: #3b82f6;
    font-size: 14px;
}

.blog-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-card-content h3 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-content h3 a:hover {
    color: #2563eb;
}

.blog-card-content p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.blog-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: auto;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: #1d4ed8;
}

/* LOAD MORE BUTTON */
.load-more-btn {
    padding: 14px 32px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .blog-hero {
        padding: 80px 0;
        text-align: center;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

    .hero-btn-group {
        justify-content: center;
    }

    .hero-image {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .blog-toolbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .toolbar-search, 
    .toolbar-filter, 
    .toolbar-filter .custom-select {
        width: 100%;
    }
}
