/* =========================
   BLOG SECTION
========================= */

.blog-section{
    position:relative;
    padding:30px 0;
    background:#f8fafc;
    overflow:hidden;
}

.blog-container{
    width:90%;
    max-width:1280px;
    margin:auto;
}

.blog-header{
    text-align:center;
    margin-bottom:70px;
}

.blog-tag{
    display:inline-block;
    font-size:14px;
    font-weight:800;
    color:#2563eb;
    letter-spacing:1px;
    margin-bottom:18px;
}

.blog-header h2{
    font-size:56px;
    line-height:1.2;
    color:#0f172a;
    margin-bottom:20px;
}

.blog-header h2 span{
    color:#ff3131;
}

.blog-header p{
    max-width:850px;
    margin:auto;
    font-size:18px;
    line-height:1.9;
    color:#000000;
}

/* GRID */

.blog-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

/* CARD */

.blog-card{
    background:white;
    border-radius:24px;
    overflow:hidden;
    transition:.4s ease;
    box-shadow:0 10px 40px rgba(0,0,0,.05);
}

.blog-card:hover{
    transform:translateY(-10px);
}

/* IMAGE */

.blog-image{
    position:relative;
    overflow:hidden;
}

.blog-image img{
    width:100%;
    height:250px;
    object-fit:cover;
    transition:.5s ease;
}

.blog-card:hover .blog-image img{
    transform:scale(1.08);
}

/* CATEGORY */

.blog-category{
    position:absolute;
    top:18px;
    left:18px;
    padding:8px 16px;
    border-radius:40px;
    background:#ff3131;
    color:white;
    font-size:12px;
    font-weight:700;
}

/* CONTENT */

.blog-content{
    padding:28px;
}

.blog-date{
    display:block;
    font-size:14px;
    color:#94a3b8;
    margin-bottom:16px;
}

.blog-content h3{
    font-size:26px;
    line-height:1.4;
    color:#0f172a;
    margin-bottom:18px;
    transition:.3s;
}

.blog-card:hover h3{
    color:#2563eb;
}

.blog-content p{
    font-size:16px;
    line-height:1.9;
    color:#000000;
    margin-bottom:24px;
}

/* READ */

.blog-read{
    display:inline-flex;
    align-items:center;
    text-decoration:none;
    color:#000000;
    font-size:14px;
    font-weight:700;
    transition:.3s;
}

.blog-read:hover{
    color:#ff3131;
}

/* BUTTON */

.blog-btn-wrap{
    text-align:center;
    margin-top:55px;
}

.blog-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:56px;
    padding:0 34px;
    background:#2563eb;
    color:white;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
    border-radius:0 18px 0 18px;
    transition:.3s ease;
}

.blog-btn:hover{
    background:#ff3131;
    transform:translateY(-4px);
}

/* EMPTY */

.no-blog-post{
    grid-column:1/-1;
    text-align:center;
    padding:60px 20px;
}

.no-blog-post p{
    font-size:18px;
    color:#020913;
}

/* MOBILE */

@media(max-width:992px){

    .blog-section{
        padding:10px 0;
    }

    .blog-grid{
        grid-template-columns:1fr;
    }

    .blog-header h2{
        font-size:40px;
    }

    .blog-header p{
        font-size:16px;
    }

    .blog-content{
        padding:24px;
    }

    .blog-content h3{
        font-size:24px;
    }

    .blog-image img{
        height:220px;
    }

}

/* =========================
   BLOG TO FOOTER BLEND
========================= */

.blog-section{
    position:relative;
    padding-bottom:260px !important;
    overflow:hidden;
}

/* SMOOTH GRADIENT */

.blog-section::after{
    content:'';

    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:860px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, .35) 20%, rgb(0 0 0 / 25%) 55%, rgb(2 6 23 / 78%) 80%, #020617 100%);
    pointer-events:none;
    z-index:2;
}
/* KEEP CONTENT ABOVE GRADIENT */
.blog-container{
    position:relative;
    z-index:5;
}

/* =========================
   BLOG PAGE
========================= */

.blog-page{
    position:relative;
    padding:140px 0 220px;
    overflow:hidden;
    background:
    radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 25%),
    linear-gradient(to bottom, #020617, #020617);
    color:white;
}

.blog-page-container{
    width:90%;
    max-width:1280px;
    margin:auto;
}

.blog-page-header{
    text-align:center;
    margin-bottom:70px;
}

.blog-page-header span{
    color:#2563eb;
    font-weight:500;
    font-size:14px;
}

.blog-page-header h1{
    font-size:60px;
    margin:18px 0;
    color:#fff;
}

.blog-page-header h1 span{
    color:#ff3131;
}

.blog-page-header p{
    max-width:850px;
    margin:auto;
    font-size:18px;
    line-height:1.9;
    color:#dbe0e7;
}

/* GRID */

.blog-page-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

/* CARD */

.blog-page-card{
    background:white;
    border-radius:24px;
    overflow:hidden;
    transition:.4s;
    box-shadow:0 10px 40px rgba(0,0,0,.05);
}

.blog-page-card:hover{
    transform:translateY(-10px);
}

.blog-page-image img{
    width:100%;
    height:260px;
    object-fit:cover;
}

.blog-page-content{
    padding:30px;
}

.blog-page-date{
    color:#94a3b8;
    font-size:14px;
}

.blog-page-content h2{
    margin:18px 0;
    font-size:28px;
    line-height:1.4;
    color: #000000;
    font-weight: 800;
}

.blog-page-content p{
    color:#64748b;
    line-height:1.9;
    margin-bottom:22px;
}

.blog-page-btn{
    color:#2563eb;
    font-weight:700;
    text-decoration:none;
}

/* SINGLE BLOG */

.single-blog{
    padding:140px 0;
    background:#f8fafc;
}

.single-blog-container{
    width:90%;
    max-width:950px;
    margin:auto;
}

.single-blog-image img{
    width:100%;
    border-radius:28px;
    margin-bottom:40px;
}

.single-blog-date{
    color:#2563eb;
    font-weight:700;
}

.single-blog-content h1{
    font-size:60px;
    line-height:1.2;
    margin:20px 0 30px;
    color: #000000;
    font-weight: 800
}

.single-blog-body{
    font-size:18px;
    line-height:2;
    color:#475569;
}

/* MOBILE */

@media(max-width:992px){

    .blog-page-grid{
        grid-template-columns:1fr;
    }

    .blog-page-header h1,
    .single-blog-content h1{
        font-size:40px;
    }

}
/* =========================
   CREATE BLOG
========================= */

.create-blog{
    padding:140px 0;
    background:#f8fafc;
}

.create-blog-container{
    width:90%;
    max-width:800px;
    margin:auto;
}

.create-blog h1{
    font-size:50px;
    margin-bottom:40px;
}

.form-group{
    margin-bottom:28px;
}

.form-group label{
    display:block;
    margin-bottom:12px;
    font-weight:700;
}

.form-group input,
.form-group textarea{
    width:100%;
    padding:18px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    font-size:16px;
}

.form-group textarea{
    resize:none;
}

.create-blog button{
    height:56px;
    padding:0 36px;
    border:none;
    background:#2563eb;
    color:white;
    font-weight:700;
    border-radius:0 18px 0 18px;
    cursor:pointer;
}

.success-message{
    padding:18px;
    margin-bottom:25px;
    background:#dcfce7;
    color:#166534;
    border-radius:12px;
}

/* =========================
   CREATE BLOG TEXT FIX
========================= */

.create-blog h1{
    color:#0f172a !important;
}

.create-blog label{
    color:#0f172a !important;
}

.create-blog input,
.create-blog textarea{
    color:#0f172a !important;
    background:white !important;
}

.create-blog input::placeholder,
.create-blog textarea::placeholder{
    color:#94a3b8;
}

/* =========================
   SINGLE BLOG
========================= */

.single-blog-page{
    position:relative;
    padding:160px 0;
    background:
    radial-gradient(circle at top left, rgba(37,99,235,.15), transparent 25%),
    linear-gradient(to bottom, #020617, #020617);
    color:white;
}

/* CONTAINER */

.single-blog-container{
    width:90%;
    max-width:1300px;
    margin:auto;
    display:grid;
    grid-template-columns:1fr 340px;
    gap:50px;
}

/* CATEGORY */

.single-blog-category{
    display:inline-flex;
    padding:10px 18px;
    border-radius:40px;
    background:rgba(37,99,235,.15);
    color:#60a5fa;
    font-size:13px;
    font-weight:700;
    margin-bottom:24px;
}

/* TITLE */

.single-blog-content h1{
    font-size:64px;
    line-height:1.2;
    margin-bottom:40px;
    color:white;
}

/* IMAGE */

.single-blog-image{
    border-radius:30px;
    overflow:hidden;
    margin-bottom:40px;
}

.single-blog-image img{
    width:100%;
    display:block;
}

/* BODY */

.single-blog-body{
    background:#081225;
    padding:50px;
    border-radius:30px;
    border:1px solid rgba(255,255,255,.06);
}

/* TYPOGRAPHY */

.single-blog-body p{
    font-size:18px;
    line-height:2;
    color:#cbd5e1;
    margin-bottom:24px;
    text-align: justify;
}

.single-blog-body h2,
.single-blog-body h3{
    color:white;

    margin:40px 0 20px;
}

.single-blog-body ul{
    padding-left:20px;
}

.single-blog-body li{
    margin-bottom:14px;

    color:#cbd5e1;
}

/* SHARE */

.blog-share{
    margin-top:40px;
}

.blog-share h3{
    margin-bottom:18px;
}

.blog-share-links{
    display:flex;
    gap:14px;
}

.blog-share-links a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:48px;
    padding:0 22px;
    border-radius:14px;
    background:#2563eb;
    color:white;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
}

/* SIDEBAR */

.single-blog-sidebar{
    display:flex;
    flex-direction:column;
    gap:30px;
}

/* WIDGET */

.blog-widget{
    background:#081225;
    padding:30px;
    border-radius:26px;
    border:1px solid rgba(255,255,255,.06);
}

.blog-widget h3{
    color:white;
    margin-bottom:20px;
}

.blog-widget p{
    color:#94a3b8;
    line-height:2;
}

/* RECENT */

.recent-posts{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.recent-post-item{
    display:flex;
    gap:14px;
    text-decoration:none;
}

.recent-post-item img{
    width:90px;
    height:70px;
    object-fit:cover;
    border-radius:12px;
}

.recent-post-item h4{
    color:white;

    font-size:15px;
    line-height:1.6;
}

/* MOBILE */

@media(max-width:992px){

    .single-blog-container{
        grid-template-columns:1fr;
    }

    .single-blog-content h1{
        font-size:42px;
    }

    .single-blog-body{
        padding:30px 24px;
    }

}

/* =========================
   BLOG COMMENTS
========================= */

.blog-comments{
    margin-top:70px;
}

/* TITLE */

.blog-comments h2{
    color:white;
    font-size:36px;
    margin-bottom:40px;
}

/* COMMENT ITEM */

.comment-item{
    background:#081225;
    border:1px solid rgba(255,255,255,.06);
    padding:28px;
    border-radius:24px;
    margin-bottom:24px;
}

.comment-item h4{
    color:white;
    margin-bottom:8px;
}

.comment-item span{
    color:#94a3b8;
    font-size:13px;
}

.comment-item p{
    margin-top:18px;
    color:#cbd5e1;
    line-height:1.9;
}

/* FORM */

.comment-form{
    margin-top:50px;
}

.comment-form input,
.comment-form textarea{
    width:100%;
    padding:18px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.06);
    background:#081225;
    color:white;
    margin-bottom:18px;
}

.comment-form textarea{
    resize:none;
}

/* BUTTON */

.comment-form button{
    height:56px;
    padding:0 32px;
    border:none;
    border-radius:0 18px 0 18px;
    background:#2563eb;
    color:white;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}

/* SUCCESS */

.comment-success{
    padding:18px;
    background:#14532d;
    border-radius:14px;
    margin-bottom:24px;
    color:white;
}

/* =========================
   COMMENT TOP
========================= */

.comment-top{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:20px;
}

/* AVATAR */

.comment-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    background:
    linear-gradient(
        135deg,
        #2563eb,
        #ff3131
    );
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:20px;
    font-weight:700;
    flex-shrink:0;
}

/* INFO */

.comment-info h4{
    color:white;
    margin-bottom:6px;
}

.comment-info span{
    color:#94a3b8;
    font-size:13px;
}

/* =========================
   BLOG PAGE MOBILE NEWS STYLE
========================= */

@media(max-width:768px){

    /* GRID */
    .blog-page-grid{
        display:flex;
        flex-direction:column;
        gap:22px;
    }

    /* CARD */

    .blog-page-card{
        display:flex;
        align-items:flex-start;
        background:#081225;
        border:1px solid rgba(255,255,255,.06);
        border-radius:20px;
        padding:14px;
        overflow:hidden;
    }

    /* IMAGE */

    .blog-page-image{
        width:42%;
        height:240px;
        flex-shrink:0;
        border-radius:14px;
        overflow:hidden;
    }

    .blog-page-image img{
        width:100%;
        height:100%;
        object-fit:cover;
    }

    /* CONTENT */

    .blog-page-content{
        flex:1;
        display:flex;
        flex-direction:column;
        justify-content:center;
    }

    /* DATE */

    .blog-page-date{
        display:block;
        font-size:12px;
        color:#94a3b8;
        margin-bottom:10px;
    }

    /* TITLE */

    .blog-page-content h2{
        font-size:24px;
        line-height:1.4;
        color:white;
        margin-bottom:12px;
    }

    /* EXCERPT */

    .blog-page-content p{
        font-size:14px;
        line-height:1.8;
        color:#94a3b8;
        display:-webkit-box;
        -webkit-line-clamp:3;
        -webkit-box-orient:vertical;
        overflow:hidden;
        margin-bottom:14px;
    }

    /* BUTTON */

    .blog-page-btn{
        display:inline-flex;
        align-items:center;
        color:#60a5fa;
        text-decoration:none;
        font-size:13px;
        font-weight:700;
    }

}

/* =========================
   BLOG META
========================= */

.single-blog-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;
    margin-bottom:28px;
}

/* AUTHOR */

.single-blog-author{
    color:#f7b4b4;
    font-size:14px;
    font-weight:600;
    padding-bottom: 18px;
}

/* DATE */

.single-blog-date{
    color:#94a3b8;
    font-size:13px;
    padding-bottom: 18px;
}

