/* ==========================================================
   BLOG PAGE
========================================================== */

.blog-hero{
    padding:110px 20px 80px;
    background:linear-gradient(135deg,#0b1020,#121d38,#1d4ed8);
    position:relative;
    overflow:hidden;
}

.blog-hero::before{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    border-radius:50%;
    background:rgba(255,255,255,.06);
    top:-150px;
    right:-120px;
    filter:blur(20px);
}

.blog-hero::after{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    border-radius:50%;
    background:rgba(59,130,246,.25);
    bottom:-140px;
    left:-80px;
    filter:blur(30px);
}

.blog-hero-content{
    max-width:900px;
    margin:auto;
    text-align:center;
    position:relative;
    z-index:2;
}

.blog-tag{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 18px;
    border-radius:50px;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:.95rem;
    margin-bottom:22px;
    backdrop-filter:blur(10px);
}

.blog-tag img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.blog-hero h1{
    font-size:3rem;
    line-height:1.2;
    color:#fff;
    margin-bottom:22px;
    font-weight:700;
}

.blog-hero p{
    max-width:760px;
    margin:auto;
    color:#dbeafe;
    font-size:1.08rem;
    line-height:1.8;
}

.blog-search{
    margin:45px auto 0;
    max-width:650px;
    background:#fff;
    display:flex;
    align-items:center;
    border-radius:60px;
    padding:0 22px;
    box-shadow:0 18px 40px rgba(0,0,0,.18);
}

.blog-search i{
    color:#2563eb;
    font-size:18px;
}

.blog-search input{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    padding:20px 16px;
    font-size:16px;
}

.blog-search input::placeholder{
    color:#94a3b8;
}


/* ==========================================================
   CATEGORY
========================================================== */

.blog-category{
    padding:20px 0 35px;
    background:transparent;
}

.category-container{
    max-width:900px;
    margin:0 auto;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
}


.category-btn{

    padding:11px 22px;

    border:none;

    border-radius:50px;

    background:#f8fafc;

    color:#475569;

    font-size:.92rem;

    font-weight:600;

    cursor:pointer;

    border:1px solid #e2e8f0;

    transition:.3s ease;

}

.category-btn:hover{

    background:#2563eb;

    color:#fff;

    border-color:#2563eb;

    transform:translateY(-2px);

}

.category-btn.active{

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

    border-color:#2563eb;

    box-shadow:0 8px 22px rgba(37,99,235,.25);

}

/* ==========================================================
   FEATURED BLOG
========================================================== */


/* ==========================================================
   PREMIUM FEATURED BLOG
========================================================== */

.featured-blog{
    padding:90px 20px;
    background:
        radial-gradient(circle at top right,#dbeafe 0%,transparent 40%),
        radial-gradient(circle at bottom left,#eff6ff 0%,transparent 45%),
        #f8fafc;
}

.featured-container{
    max-width:1200px;
    margin:auto;
}

.featured-card{
    display:grid;
    grid-template-columns:0.95fr 1.05fr;
    align-items:center;
    gap:30px;
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    max-width:1050px;
    margin:auto;
    box-shadow:0 20px 55px rgba(15,23,42,.08);
    transition:.35s ease;
}

.featured-card:hover{
    transform:translateY(-8px);
    box-shadow:0 35px 80px rgba(37,99,235,.16);
}

/* ================= IMAGE ================= */

.featured-image{
    position:relative;
    height:420px;
    overflow:hidden;
}

.featured-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.6s ease;
}

.featured-card:hover .featured-image img{
    transform:scale(1.06);
}

.featured-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.45),
        transparent 65%
    );
}

.featured-ribbon{
    position:absolute;
    top:22px;
    left:22px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 18px;
    border-radius:40px;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    font-weight:600;
    font-size:.9rem;
    box-shadow:0 12px 30px rgba(37,99,235,.35);
}

/* ================= CONTENT ================= */

.featured-content{
    padding:40px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.featured-content .blog-badge{
    width:max-content;
    background:#eff6ff;
    color:#2563eb;
    border-radius:30px;
    padding:8px 18px;
    font-size:.82rem;
    font-weight:700;
    margin-bottom:18px;
}

.featured-content h3{
    font-size:2rem;
    color:#0f172a;
    line-height:1.3;
    margin-bottom:16px;
    font-weight:800;
}

.featured-content p{
    font-size:1rem;
    color:#64748b;
    line-height:1.8;
    margin-bottom:24px;
}

/* ================= META ================= */

.featured-meta{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    margin-bottom:28px;
}

.meta-item{
    display:flex;
    align-items:center;
    gap:12px;
}

.meta-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    background:#eff6ff;
    color:#2563eb;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:18px;
}

.meta-item small{
    display:block;
    color:#94a3b8;
    font-size:12px;
    margin-bottom:2px;
}

.meta-item strong{
    color:#0f172a;
    font-size:.95rem;
    font-weight:600;
}

/* ================= AUTHOR ================= */

.featured-author{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:28px;
}

.featured-author img{
    width:50px;
    height:50px;
    border-radius:50%;
    background:#fff;
    padding:6px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.featured-author span{
    display:block;
    color:#94a3b8;
    font-size:13px;
}

.featured-author h4{
    color:#0f172a;
    font-size:15px;
    margin-top:2px;
}

/* ================= BUTTON ================= */

.featured-btn{
    width:max-content;
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:15px 28px;
    border-radius:12px;
    text-decoration:none;
    color:#fff;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    font-weight:700;
    transition:.3s;
}

.featured-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(37,99,235,.35);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:992px){

    .featured-card{
        grid-template-columns:1fr;
    }

    .featured-image{
        height:320px;
    }

    .featured-content{
        padding:32px;
    }

    .featured-content h3{
        font-size:1.8rem;
    }

}

@media(max-width:768px){

    .featured-blog{
        padding:70px 20px;
    }

    .featured-image{
        height:260px;
    }

    .featured-content{
        padding:25px;
    }

    .featured-content h3{
        font-size:1.55rem;
    }

    .featured-content p{
        font-size:.95rem;
    }

    .featured-meta{
        gap:14px;
    }

}

@media(max-width:480px){

    .featured-image{
        height:220px;
    }

    .featured-content{
        padding:22px;
    }

    .featured-content h3{
        font-size:1.35rem;
    }

    .featured-btn{
        width:100%;
        justify-content:center;
    }

}

/* ==============================
   BLOG SECTION TITLE
============================== */

.blog-section-title{
    font-size:2.8rem;
    font-weight:800;
    color:#0f172a;
    text-align:center;
    margin-bottom:18px;
    letter-spacing:-0.5px;
    line-height:1.2;
    position:relative;
}

.blog-section-title::after{
    content:"";
    display:block;
    width:70px;
    height:5px;
    margin:18px auto 0;
    border-radius:50px;
    background:linear-gradient(90deg,#2563eb,#60a5fa);
}

.blog-section-description{
    max-width:700px;
    margin:0 auto;
    text-align:center;
    color:#64748b;
    font-size:1.08rem;
    line-height:1.9;
    font-weight:400;
}

/* Space between heading and featured card */

#featuredBlog{
    margin-top:50px;
}





/* ==========================================================
   PREMIUM LATEST BLOGS
========================================================== */

.latest-blogs{
    padding:70px 20px 90px;
    background:
        radial-gradient(circle at top left,#eef5ff 0%,transparent 35%),
        radial-gradient(circle at bottom right,#eff6ff 0%,transparent 40%),
        #ffffff;
}

.latest-container{
    max-width:1180px;
    margin:auto;
}

/* ================= GRID ================= */

.blog-grid{
    display:grid;
    grid-template-columns:repeat(3,320px);
    justify-content:center;
    gap:30px;
}

/* ================= CARD ================= */

.blog-card{
    width:320px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    border:1px solid #e8edf5;
    box-shadow:0 10px 28px rgba(15,23,42,.05);
    transition:.35s ease;
    position:relative;
}

.blog-card:hover{
    transform:translateY(-8px);
    border-color:#2563eb;
    box-shadow:
        0 20px 45px rgba(37,99,235,.15);
}

/* ================= IMAGE ================= */

.blog-image{
    height:180px;
    overflow:hidden;
    position:relative;
}

.blog-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(15,23,42,.18),
        transparent 65%
    );
}

.blog-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.55s;
}

.blog-card:hover .blog-image img{
    transform:scale(1.05);
}

/* ================= CONTENT ================= */

.blog-content{
    padding:20px;
}

/* Category */

.blog-content .blog-badge{
    display:inline-flex;
    width:max-content;
    background:#eff6ff;
    color:#2563eb;
    padding:6px 14px;
    border-radius:30px;
    font-size:.74rem;
    font-weight:700;
    margin-bottom:14px;
}

/* Title */

/* Title */

.blog-content h3{
    font-size:1.15rem;
    line-height:1.45;
    color:#0f172a;
    font-weight:800;
    margin-top:4px;
    margin-bottom:12px;
    transition:.3s;

    /* Keep all blog card titles the same height */
    height:2.9em;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.blog-card:hover h3{
    color:#2563eb;
}

/* Description */
.blog-content p{
    color:#64748b;
    font-size:.90rem;
    line-height:1.7;
    margin-bottom:18px;

    /* Keep descriptions the same height */
    height:3.4em;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* Meta */

.blog-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-top:1px solid #eef2f7;
    padding-top:14px;
    margin-bottom:18px;
    font-size:.80rem;
    color:#64748b;
}

.blog-meta span{
    display:flex;
    align-items:center;
    gap:6px;
}

.blog-meta i{
    color:#2563eb;
}

/* Button */

.read-btn{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    width:100%;
    padding:12px;
    border-radius:12px;
    text-decoration:none;
    color:#fff;
    font-weight:700;
    font-size:.90rem;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    transition:.3s;
}

.read-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(37,99,235,.28);
}

.read-btn i{
    transition:.3s;
}

.read-btn:hover i{
    transform:translateX(4px);
}

/* ================= RESPONSIVE ================= */

@media (max-width:1100px){

    .blog-grid{
        grid-template-columns:repeat(2,320px);
        justify-content:center;
    }

}

@media (max-width:768px){

    .latest-blogs{
        padding:80px 20px;
    }

    .blog-grid{
        grid-template-columns:320px;
        justify-content:center;
    }

}

@media (max-width:480px){

    .blog-grid{
        grid-template-columns:1fr;
    }

    .blog-card{
        width:100%;
    }

    .blog-image{
        height:180px;
    }

    .blog-content{
        padding:18px;
    }

    .blog-content h3{
        font-size:1.05rem;
    }

    .blog-content p{
        font-size:.88rem;
    }

}




/* ==========================================================
   PREMIUM PAGINATION
   ========================================================== */

.blog-pagination{
    padding:35px 20px 85px;
    background:#fff;
}

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

/* =========================
   PAGE BUTTON
   ========================= */

.page-btn{
    position:relative;
    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    border-radius:12px;

    background:#ffffff;
    color:#475569;

    border:1px solid #e2e8f0;

    font-size:.9rem;
    font-weight:700;

    box-shadow:
        0 4px 12px rgba(15,23,42,.04);

    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

/* =========================
   HOVER
   ========================= */

.page-btn:hover{
    transform:translateY(-3px);

    background:#f8fbff;
    color:#2563eb;

    border-color:#93c5fd;

    box-shadow:
        0 8px 22px rgba(37,99,235,.12);
}

/* =========================
   ACTIVE PAGE
   ========================= */

.page-btn.active{
    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:#ffffff;

    border-color:#2563eb;

    box-shadow:
        0 8px 22px rgba(37,99,235,.28),
        0 0 0 4px rgba(37,99,235,.08);

    transform:translateY(-2px);
}

/* =========================
   NEXT BUTTON
   ========================= */

.page-btn.next{
    width:auto;
    min-width:105px;

    height:46px;

    padding:0 18px;

    gap:9px;

    border-radius:12px;

    background:#f8fafc;
    color:#334155;
}

/* Next button arrow */

.page-btn.next i{
    font-size:.8rem;

    transition:
        transform .25s ease;
}

/* Next hover */

.page-btn.next:hover{
    background:#2563eb;
    color:#ffffff;
    border-color:#2563eb;

    box-shadow:
        0 10px 25px rgba(37,99,235,.22);
}

.page-btn.next:hover i{
    transform:translateX(4px);
}


/* ==========================================================
   PREMIUM DARK MODE
   ========================================================== */

.dark-mode .blog-pagination{
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(59,130,246,.06),
            transparent 45%
        ),
        #0b1120;
}

.dark-mode .page-btn{
    background:
        linear-gradient(
            145deg,
            #1e293b,
            #172033
        );

    color:#cbd5e1;

    border-color:rgba(148,163,184,.14);

    box-shadow:
        0 6px 18px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.025);
}

.dark-mode .page-btn:hover{
    background:#243554;

    color:#60a5fa;

    border-color:rgba(96,165,250,.35);

    box-shadow:
        0 10px 25px rgba(0,0,0,.30),
        0 0 18px rgba(59,130,246,.08);
}

.dark-mode .page-btn.active{
    background:linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color:#ffffff;

    border-color:#3b82f6;

    box-shadow:
        0 8px 24px rgba(37,99,235,.32),
        0 0 0 4px rgba(59,130,246,.08);
}

.dark-mode .page-btn.next{
    background:
        linear-gradient(
            145deg,
            #1e293b,
            #172033
        );

    color:#cbd5e1;
}

.dark-mode .page-btn.next:hover{
    background:#2563eb;
    color:#ffffff;
    border-color:#3b82f6;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:480px){

    .blog-pagination{
        padding:25px 15px 65px;
    }

    .pagination{
        gap:8px;
    }

    .page-btn{
        width:42px;
        height:42px;

        border-radius:10px;

        font-size:.85rem;
    }

    .page-btn.next{
        min-width:92px;
        height:42px;

        padding:0 14px;

        font-size:.85rem;
    }

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:1024px){

    .featured-card{
        grid-template-columns:1fr;
    }

    .featured-content{
        padding:40px;
    }

    .blog-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .blog-hero h1{
        font-size:2.5rem;
    }

}

@media (max-width:768px){

    .blog-hero{
        padding:90px 20px 70px;
    }

    .blog-hero h1{
        font-size:2rem;
    }

    .blog-hero p{
        font-size:1rem;
    }

    .blog-search{
        flex-direction:column;
        border-radius:20px;
        padding:12px 18px;
    }

    .blog-search i{
        display:none;
    }

    .blog-search input{
        padding:16px 0;
    }

    .featured-content{
        padding:30px;
    }

    .featured-content h3{
        font-size:1.6rem;
    }

    .section-header h2{
        font-size:2rem;
    }

    .blog-grid{
        grid-template-columns:1fr;
    }






    .page-btn{
        width:44px;
        height:44px;
    }

}

@media (max-width:480px){

    .blog-tag{
        font-size:.8rem;
    }

    .blog-hero h1{
        font-size:1.7rem;
    }

    .section-header h2{
        font-size:1.8rem;
    }

    .featured-content h3{
        font-size:1.4rem;
    }

    .blog-content{
        padding:22px;
    }

    .blog-content h3{
        font-size:1.2rem;
    }

    .blog-meta{
        flex-direction:column;
        gap:10px;
        align-items:flex-start;
    }

}


/* Search bar inside Latest Articles */

.latest-search{

    max-width:650px;

    margin:45px auto 60px;

}





/* ==========================================================
   PREMIUM DARK MODE — BLOGS PAGE
   ========================================================== */

/* =========================
   BLOG HERO
   ========================= */

.dark-mode .blog-hero {
    background:
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.16), transparent 38%),
        radial-gradient(circle at 85% 20%, rgba(96, 165, 250, 0.08), transparent 35%),
        linear-gradient(120deg, #070d1a, #0f172a, #172554);
    color: #f8fafc;
}

.dark-mode .blog-hero::before {
    background: rgba(96, 165, 250, 0.06);
}

.dark-mode .blog-hero::after {
    background: rgba(59, 130, 246, 0.12);
}

.dark-mode .blog-tag {
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #dbeafe;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dark-mode .blog-tag i {
    color: #60a5fa;
}

.dark-mode .blog-hero h1 {
    background: linear-gradient(135deg, #ffffff, #e2e8f0, #bfdbfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.20);
}

.dark-mode .blog-hero p {
    color: #cbd5e1;
}


/* =========================
   SEARCH BAR
   ========================= */

.dark-mode .blog-search {
    background: rgba(30, 41, 59, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dark-mode .blog-search i {
    color: #60a5fa;
}

.dark-mode .blog-search input {
    color: #f8fafc;
}

.dark-mode .blog-search input::placeholder {
    color: #64748b;
}


/* =========================
   CATEGORY BUTTONS
   ========================= */

.dark-mode .blog-category {
    background: transparent;
}

.dark-mode .category-btn {
    background: #1e293b;
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.dark-mode .category-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.dark-mode .category-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow:
        0 8px 22px rgba(37, 99, 235, 0.28),
        0 0 20px rgba(59, 130, 246, 0.08);
}


/* =========================
   FEATURED BLOG SECTION
   ========================= */

.dark-mode .featured-blog {
    background:
        radial-gradient(circle at 12% 15%, rgba(59, 130, 246, 0.07), transparent 35%),
        radial-gradient(circle at 88% 85%, rgba(96, 165, 250, 0.045), transparent 35%),
        #0f172a;
    color: #f8fafc;
}

.dark-mode .blog-section-title {
    color: #f8fafc;
}

.dark-mode .blog-section-title::after {
    background: linear-gradient(90deg, #3392ff, #60a5fa);
    box-shadow: 0 0 12px rgba(51, 146, 255, 0.22);
}

.dark-mode .blog-section-description {
    color: #94a3b8;
}


/* =========================
   FEATURED CARD
   ========================= */

.dark-mode .featured-card {
    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, 0.98),
            rgba(15, 23, 42, 0.99)
        );
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.dark-mode .featured-card:hover {
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.40),
        0 0 30px rgba(59, 130, 246, 0.07);
}

.dark-mode .featured-image img {
    filter: brightness(0.94) contrast(1.05);
}

.dark-mode .featured-card:hover .featured-image img {
    filter: brightness(1) contrast(1.08);
}

.dark-mode .featured-overlay {
    background: linear-gradient(
        to top,
        rgba(2, 6, 23, 0.58),
        transparent 65%
    );
}

.dark-mode .featured-ribbon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.30);
}


/* =========================
   FEATURED CONTENT
   ========================= */

.dark-mode .featured-content .blog-badge {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.14);
}

.dark-mode .featured-content h3 {
    color: #f8fafc;
}

.dark-mode .featured-content p {
    color: #94a3b8;
}

.dark-mode .meta-icon {
    background: rgba(59, 130, 246, 0.11);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.12);
}

.dark-mode .meta-item small {
    color: #64748b;
}

.dark-mode .meta-item strong {
    color: #e2e8f0;
}

.dark-mode .featured-author img {
    background: #1e293b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.30);
}

.dark-mode .featured-author span {
    color: #64748b;
}

.dark-mode .featured-author h4 {
    color: #f8fafc;
}


/* Keep Featured button appearance strong */

.dark-mode .featured-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: 1px solid rgba(147, 197, 253, 0.18);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}

.dark-mode .featured-btn:hover {
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.30);
}


/* =========================
   LATEST BLOGS SECTION
   ========================= */

.dark-mode .latest-blogs {
    background:
        radial-gradient(circle at 10% 15%, rgba(59, 130, 246, 0.06), transparent 35%),
        radial-gradient(circle at 90% 85%, rgba(96, 165, 250, 0.04), transparent 35%),
        #0f172a;
    color: #f8fafc;
}


/* =========================
   BLOG CARDS
   ========================= */

.dark-mode .blog-card {
    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, 0.97),
            rgba(15, 23, 42, 0.99)
        );
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    color: #f8fafc;
}

.dark-mode .blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(96, 165, 250, 0.30);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.40),
        0 0 30px rgba(59, 130, 246, 0.08);
}

.dark-mode .blog-image img {
    filter: brightness(0.95) contrast(1.05);
}

.dark-mode .blog-card:hover .blog-image img {
    filter: brightness(1) contrast(1.08);
}

.dark-mode .blog-image::after {
    background: linear-gradient(
        to top,
        rgba(2, 6, 23, 0.28),
        transparent 65%
    );
}


/* =========================
   BLOG CARD CONTENT
   ========================= */

.dark-mode .blog-content .blog-badge {
    background: rgba(59, 130, 246, 0.11);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.12);
}

.dark-mode .blog-content h3 {
    color: #f8fafc;
}

.dark-mode .blog-card:hover h3 {
    color: #60a5fa;
}

.dark-mode .blog-content p {
    color: #94a3b8;
}

.dark-mode .blog-meta {
    border-top-color: rgba(148, 163, 184, 0.12);
    color: #64748b;
}

.dark-mode .blog-meta i {
    color: #60a5fa;
}


/* =========================
   READ ARTICLE BUTTON
   ========================= */

.dark-mode .read-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: 1px solid rgba(147, 197, 253, 0.18);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
}

.dark-mode .read-btn:hover {
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.30);
}


/* =========================
   PAGINATION
   ========================= */

.dark-mode .blog-pagination {
    background:
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.045), transparent 45%),
        #0b1120;
}

.dark-mode .page-btn {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.dark-mode .page-btn:hover,
.dark-mode .page-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}


/* =========================
   BLOG NEWSLETTER
   ========================= */




















/* =========================
   MOBILE DARK MODE
   ========================= */

@media (max-width: 768px) {

    .dark-mode .blog-search {
        background: #1e293b;
    }

    .dark-mode .featured-card {
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .dark-mode .featured-content {
        background: transparent;
    }

    .dark-mode .blog-card {
        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

 


}






/* ==========================================================
   BLOGS PAGE — FINAL RESPONSIVE OVERRIDES
   Add this at the VERY END of blogs.css
   ========================================================== */


/* ==========================================================
   TABLET / SMALL LAPTOP
   1024px and below
   ========================================================== */

@media (max-width: 1024px) {

    /* ---------- HERO ---------- */

    .blog-hero {
        padding: 90px 24px 70px;
    }

    .blog-hero-content {
        max-width: 850px;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .blog-hero p {
        max-width: 700px;
        font-size: 1rem;
        line-height: 1.75;
    }


    /* ---------- FEATURED BLOG ---------- */

    .featured-blog {
        padding: 75px 24px;
    }

    .featured-card {
        grid-template-columns: 1fr;
        max-width: 850px;
    }

    .featured-image {
        height: 360px;
    }

    .featured-content {
        padding: 35px;
    }


    /* ---------- LATEST BLOGS ---------- */

    .latest-blogs {
        padding: 70px 24px 80px;
    }

    .latest-container {
        max-width: 900px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .blog-card {
        width: 100%;
        min-width: 0;
    }


    /* ---------- CATEGORY ---------- */

    .category-container {
        max-width: 850px;
        padding: 0 10px;
    }


    /* ---------- SECTION TITLES ---------- */

    .blog-section-title {
        font-size: 2.4rem;
    }

}


/* ==========================================================
   TABLET
   768px and below
   ========================================================== */

@media (max-width: 768px) {

    /* ---------- HERO ---------- */

    .blog-hero {
        padding: 75px 20px 60px;
    }

    .blog-hero::before {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -100px;
    }

    .blog-hero::after {
        width: 220px;
        height: 220px;
        bottom: -100px;
        left: -70px;
    }

    .blog-tag {
        max-width: 100%;
        padding: 9px 15px;
        gap: 8px;
        font-size: .85rem;
    }

    .blog-tag img {
        width: 26px;
        height: 26px;
    }

    .blog-hero h1 {
        font-size: 2.05rem;
        line-height: 1.25;
        margin-bottom: 18px;
    }

    .blog-hero p {
        font-size: .95rem;
        line-height: 1.7;
    }


    /* ---------- SEARCH ---------- */

    .latest-search {
        margin: 35px auto 45px;
    }

    .blog-search {
        width: 100%;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }


    /* ---------- CATEGORY ---------- */

    .blog-category {
        padding: 10px 0 25px;
    }

    .category-container {
        gap: 9px;
        padding: 0 5px;
    }

    .category-btn {
        padding: 9px 16px;
        font-size: .84rem;
    }


    /* ---------- FEATURED ---------- */

    .featured-blog {
        padding: 65px 20px;
    }

    .featured-card {
        width: 100%;
        max-width: 650px;
        border-radius: 20px;
    }

    .featured-image {
        height: 300px;
    }

    .featured-ribbon {
        top: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: .82rem;
    }

    .featured-content {
        padding: 28px;
    }

    .featured-content h3 {
        font-size: 1.6rem;
        line-height: 1.35;
    }

    .featured-content p {
        font-size: .94rem;
        line-height: 1.7;
    }

    .featured-meta {
        gap: 14px;
    }

    .meta-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .meta-item strong {
        font-size: .88rem;
    }

    .featured-author {
        gap: 12px;
    }

    .featured-author img {
        width: 46px;
        height: 46px;
    }


    /* ---------- LATEST ARTICLES ---------- */

    .latest-blogs {
        padding: 65px 20px 75px;
    }

    .latest-container {
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .blog-card {
        width: 100%;
    }

    .blog-image {
        height: 190px;
    }

    .blog-content {
        padding: 18px;
    }

    .blog-content h3 {
        font-size: 1.08rem;
    }

    .blog-content p {
        font-size: .88rem;
    }


    /* ---------- SECTION HEADERS ---------- */

    .blog-section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .blog-section-title::after {
        width: 60px;
        height: 4px;
        margin-top: 15px;
    }

    .blog-section-description {
        font-size: .95rem;
        line-height: 1.7;
        padding: 0 10px;
    }


    /* ---------- PAGINATION ---------- */

    .blog-pagination {
        padding: 30px 20px 65px;
    }

    .pagination {
        gap: 8px;
    }

    .page-btn {
        width: 44px;
        height: 44px;
    }

    .page-btn.next {
        min-width: 95px;
        height: 44px;
        padding: 0 15px;
    }

}


/* ==========================================================
   MOBILE
   600px and below
   ========================================================== */

@media (max-width: 600px) {

    /* ---------- HERO ---------- */

    .blog-hero {
        padding: 65px 16px 50px;
    }

    .blog-hero-content {
        width: 100%;
    }

    .blog-tag {
        padding: 8px 13px;
        font-size: .78rem;
        gap: 7px;
    }

    .blog-tag img {
        width: 24px;
        height: 24px;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .blog-hero p {
        font-size: .9rem;
        line-height: 1.65;
    }


    /* ---------- SEARCH ---------- */

    .latest-search {
        margin: 30px auto 35px;
    }

    .blog-search {
        min-height: 54px;
        padding: 0 16px;
        border-radius: 16px;
    }

    .blog-search input {
        padding: 16px 5px;
        font-size: 15px;
    }


    /* ---------- CATEGORY ---------- */

    .blog-category {
        padding: 5px 0 22px;
    }

    .category-container {
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 4px 2px 10px;

        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-container::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 9px 15px;
        font-size: .8rem;
    }


    /* ---------- FEATURED ---------- */

    .featured-blog {
        padding: 55px 16px;
    }

    .featured-card {
        border-radius: 18px;
    }

    .featured-image {
        height: 230px;
    }

    .featured-ribbon {
        top: 13px;
        left: 13px;
        padding: 7px 12px;
        gap: 7px;
        font-size: .76rem;
    }

    .featured-content {
        padding: 22px;
    }

    .featured-content .blog-badge {
        padding: 6px 13px;
        font-size: .75rem;
        margin-bottom: 14px;
    }

    .featured-content h3 {
        font-size: 1.35rem;
        line-height: 1.35;
        margin-bottom: 13px;
    }

    .featured-content p {
        font-size: .88rem;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    .featured-meta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 22px;
    }

    .meta-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 15px;
    }

    .meta-item {
        gap: 10px;
    }

    .meta-item small {
        font-size: 11px;
    }

    .meta-item strong {
        font-size: .84rem;
    }

    .featured-author {
        margin-bottom: 22px;
    }

    .featured-author img {
        width: 44px;
        height: 44px;
    }

    .featured-author span {
        font-size: 12px;
    }

    .featured-author h4 {
        font-size: 14px;
    }

    .featured-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 18px;
        font-size: .88rem;
    }


    /* ---------- SECTION HEADERS ---------- */

    .blog-section-title {
        font-size: 1.75rem;
    }

    .blog-section-description {
        font-size: .88rem;
        line-height: 1.65;
        padding: 0 4px;
    }

    #featuredBlog {
        margin-top: 35px;
    }


    /* ---------- LATEST BLOGS ---------- */

    .latest-blogs {
        padding: 55px 16px 65px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card {
        width: 100%;
        max-width: 100%;
    }

    .blog-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .blog-content {
        padding: 18px;
    }

    .blog-content .blog-badge {
        padding: 6px 12px;
        font-size: .7rem;
        margin-bottom: 12px;
    }

    .blog-content h3 {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    .blog-content p {
        font-size: .86rem;
        line-height: 1.65;
    }

    .blog-meta {
        font-size: .76rem;
        gap: 8px;
    }

    .read-btn {
        padding: 11px;
        font-size: .86rem;
    }


    /* ---------- PAGINATION ---------- */

    .blog-pagination {
        padding: 25px 15px 55px;
    }

    .pagination {
        gap: 7px;
    }

    .page-btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: .82rem;
    }

    .page-btn.next {
        min-width: 90px;
        height: 42px;
        padding: 0 13px;
        font-size: .82rem;
    }

}


/* ==========================================================
   VERY SMALL MOBILE
   380px and below
   ========================================================== */

@media (max-width: 380px) {

    .blog-hero {
        padding: 55px 13px 45px;
    }

    .blog-tag {
        font-size: .72rem;
        padding: 7px 11px;
    }

    .blog-tag img {
        width: 22px;
        height: 22px;
    }

    .blog-hero h1 {
        font-size: 1.55rem;
    }

    .blog-hero p {
        font-size: .84rem;
    }


    .featured-blog {
        padding: 45px 13px;
    }

    .featured-image {
        height: 205px;
    }

    .featured-content {
        padding: 18px;
    }

    .featured-content h3 {
        font-size: 1.22rem;
    }

    .featured-content p {
        font-size: .84rem;
    }


    .latest-blogs {
        padding-left: 13px;
        padding-right: 13px;
    }

    .blog-section-title {
        font-size: 1.55rem;
    }

    .blog-section-description {
        font-size: .83rem;
    }

    .blog-content {
        padding: 16px;
    }

    .blog-content h3 {
        font-size: 1rem;
    }

    .blog-content p {
        font-size: .83rem;
    }


    .page-btn {
        width: 40px;
        height: 40px;
    }

    .page-btn.next {
        min-width: 84px;
        padding: 0 11px;
    }

}


/* ==========================================================
   TOUCH DEVICES
   Disable hover movement on phones/tablets
   ========================================================== */

@media (hover: none) and (pointer: coarse) {

    .featured-card:hover {
        transform: none;
    }

    .blog-card:hover {
        transform: none;
    }

    .featured-card:hover .featured-image img {
        transform: none;
    }

    .blog-card:hover .blog-image img {
        transform: none;
    }

    .featured-btn:hover,
    .read-btn:hover,
    .page-btn:hover {
        transform: none;
    }

}


/* ==========================================================
   PREVENT HORIZONTAL OVERFLOW
   ========================================================== */

@media (max-width: 1024px) {

    .blog-hero,
    .featured-blog,
    .latest-blogs,
    .blog-pagination {
        width: 100%;
        overflow-x: hidden;
    }

    .featured-card,
    .blog-card,
    .blog-grid,
    .featured-content,
    .latest-container {
        min-width: 0;
    }

    .featured-content h3,
    .featured-content p,
    .blog-content h3,
    .blog-content p {
        overflow-wrap: anywhere;
    }

}



.blog-search {
    position: relative;
}

.blog-search input {
    padding-right: 48px;
}

#clearBlogSearch {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: transparent;
    color: #94a3b8;

    font-size: 13px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

#clearBlogSearch.active {
    opacity: 1;
    visibility: visible;
}

#clearBlogSearch:hover {
    background: #f1f5f9;
    color: #475569;
}

#clearBlogSearch:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}


/* Dark Mode */

.dark-mode #clearBlogSearch {
    color: #64748b;
}

.dark-mode #clearBlogSearch:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #ffffff;
}


@media (max-width: 768px) {

    .blog-search {
        position: relative;
        flex-direction: row;
    }

    .blog-search input {
        padding: 16px 42px 16px 5px;
    }

    #clearBlogSearch {
        right: 10px;
    }

}