/* ===============================
   GOOGLE FONT
=================================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:#222;
    line-height:1.8;
}

/*=============================
Reading Progress
=============================*/

.progress-bar{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:5px;
    background:linear-gradient(90deg,#007bff,#00d4ff);
    z-index:9999;
}

/*=============================
Hero
=============================*/

.hero{
    position:relative;
    height:70vh;
    overflow:hidden;
}

.hero img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
    rgba(0,0,0,.25),
    rgba(0,0,0,.75)
    );
}

.overlay{
    position:absolute;
    bottom:70px;
    left:8%;
    color:#fff;
    z-index:2;
    max-width:800px;
}

/*=============================
Category
=============================*/

.category{
    display:inline-block;
    background:#0d6efd;
    color:#fff;
    padding:10px 22px;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
    margin-bottom:20px;
    letter-spacing:.5px;
    box-shadow:0 8px 20px rgba(13,110,253,.35);
}

/*=============================
Title
=============================*/

.overlay h1{
    font-size:54px;
    font-weight:700;
    line-height:1.2;
    margin-bottom:25px;
    text-shadow:0 5px 20px rgba(0,0,0,.4);
}

/*=============================
Meta
=============================*/

.meta{
    display:flex;
    flex-wrap:wrap;
    gap:30px;
    font-size:15px;
    color:#f3f3f3;
}

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

.meta i{
    color:#ffd43b;
}

/*=============================
Container
=============================*/

.container{
    max-width:1100px;
    margin:auto;
    padding:70px 20px;
}

/*=============================
Article Card
=============================*/

.article{
    background:#fff;
    border-radius:18px;
    box-shadow:0 15px 45px rgba(0,0,0,.08);
    padding:50px;
    margin-top:-70px;
    position:relative;
    z-index:10;
}

/*=============================
Body
=============================*/

.article-body{
    font-size:18px;
    color:#444;
}

.article-body p{
    margin-bottom:28px;
}

.article-body img{
    width:100%;
    border-radius:15px;
    margin:30px 0;
}

.article-body h2{
    margin-top:40px;
    margin-bottom:20px;
    color:#111;
}

.article-body h3{
    margin:30px 0 15px;
}

.article-body ul{
    margin-left:30px;
    margin-bottom:25px;
}

.article-body li{
    margin-bottom:12px;
}

.article-body blockquote{
    border-left:5px solid #0d6efd;
    background:#eef5ff;
    padding:20px;
    font-style:italic;
    margin:35px 0;
    border-radius:10px;
}

/*=============================
Share
=============================*/

.share{
    margin-top:60px;
}

.share h3{
    margin-bottom:20px;
}

.share-icons{
    display:flex;
    gap:15px;
}

.share-icons a{
    width:50px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#0d6efd;
    color:#fff;
    text-decoration:none;
    font-size:20px;
    transition:.35s;
}

.share-icons a:hover{
    transform:translateY(-8px);
    background:#111827;
}

/*=============================
Like + Bookmark
=============================*/

.actions{
    display:flex;
    gap:15px;
    margin-top:35px;
}

.action-btn{
    border:none;
    background:#fff;
    padding:14px 22px;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.action-btn:hover{
    background:#0d6efd;
    color:#fff;
    transform:translateY(-5px);
}

/*=============================
Back Button
=============================*/

.back{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:50px;
    text-decoration:none;
    color:#fff;
    background:#0d6efd;
    padding:14px 30px;
    border-radius:40px;
    transition:.35s;
    font-weight:600;
}

.back:hover{
    transform:translateX(-8px);
    background:#084298;
}

/*=============================
Section Title
=============================*/

.section-title{
    font-size:32px;
    margin-bottom:35px;
    color:#111;
    position:relative;
}

.section-title::after{
    content:"";
    position:absolute;
    bottom:-10px;
    left:0;
    width:80px;
    height:4px;
    background:#0d6efd;
    border-radius:10px;
}
/*=========================================
COMMENTS SECTION
==========================================*/

.comments{
    margin-top:80px;
}

.comments h2{
    font-size:34px;
    color:#222;
    margin-bottom:35px;
}

.comment-card{
    display:flex;
    align-items:flex-start;
    gap:20px;
    background:#fff;
    border-radius:18px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    transition:.35s;
}

.comment-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.avatar{
    width:65px;
    height:65px;
    min-width:65px;
    border-radius:50%;
    background:linear-gradient(135deg,#0d6efd,#00b4ff);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
    font-weight:700;
    box-shadow:0 10px 25px rgba(13,110,253,.35);
}

.comment-content{
    flex:1;
}

.comment-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.comment-header h4{
    font-size:20px;
    color:#111;
}

.comment-date{
    color:#888;
    font-size:14px;
}

.comment-content p{
    color:#555;
    line-height:1.8;
    font-size:16px;
}

.no-comments{
    text-align:center;
    background:#fff;
    border-radius:15px;
    padding:45px;
    color:#888;
    font-size:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.07);
}

/*=========================================
COMMENT FORM
==========================================*/

.comment-form{
    margin-top:70px;
    background:#fff;
    padding:40px;
    border-radius:18px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.comment-form h2{
    margin-bottom:30px;
    font-size:32px;
}

.comment-form label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
    color:#333;
}

.comment-form input,
.comment-form textarea{
    width:100%;
    padding:16px;
    border:2px solid #e7e7e7;
    border-radius:14px;
    font-size:16px;
    transition:.3s;
    outline:none;
    margin-bottom:25px;
    font-family:'Poppins',sans-serif;
}

.comment-form textarea{
    resize:none;
    min-height:170px;
}

.comment-form input:focus,
.comment-form textarea:focus{
    border-color:#0d6efd;
    box-shadow:0 0 18px rgba(13,110,253,.18);
}

.comment-form button{
    background:linear-gradient(135deg,#0d6efd,#009dff);
    color:#fff;
    border:none;
    padding:15px 40px;
    border-radius:40px;
    cursor:pointer;
    font-size:17px;
    font-weight:600;
    transition:.35s;
}

.comment-form button:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 35px rgba(13,110,253,.35);
}

/*=========================================
RELATED NEWS
==========================================*/

.related-news{
    margin-top:100px;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.related-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
    transition:.35s;
}

.related-card:hover{
    transform:translateY(-10px);
}

.related-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.related-content{
    padding:25px;
}

.related-content h3{
    font-size:22px;
    margin-bottom:15px;
    color:#222;
}

.related-content p{
    color:#666;
    line-height:1.7;
}

.related-btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 24px;
    background:#0d6efd;
    color:#fff;
    border-radius:30px;
    text-decoration:none;
    transition:.3s;
}

.related-btn:hover{
    background:#084298;
    transform:translateX(6px);
}

/*=========================================
FOOTER
==========================================*/

footer{
    margin-top:90px;
    background:#0b1220;
    color:#fff;
    text-align:center;
    padding:60px 20px;
}

footer h3{
    font-size:30px;
    margin-bottom:15px;
}

footer p{
    color:#bbb;
    font-size:16px;
    margin-top:10px;
}

footer .social{
    display:flex;
    justify-content:center;
    gap:18px;
    margin:30px 0;
}

footer .social a{
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    background:#18253d;
    color:#fff;
    font-size:20px;
    transition:.35s;
}

footer .social a:hover{
    background:#0d6efd;
    transform:translateY(-6px);
}

footer hr{
    border:none;
    height:1px;
    background:#2d3b57;
    margin:35px auto;
    width:80%;
}

footer .copyright{
    color:#888;
    font-size:15px;
}
/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width:1200px){

.container{
    width:95%;
}

.related-grid{
    grid-template-columns:repeat(2,1fr);
}

}

@media (max-width:992px){

.hero{
    height:60vh;
}

.hero-content h1{
    font-size:42px;
}

.article-content{
    padding:40px;
}

.related-grid{
    grid-template-columns:1fr;
}

.comment-form{
    padding:30px;
}

}

@media (max-width:768px){

.hero{
    height:50vh;
}

.hero-content{
    padding:20px;
}

.hero-content h1{
    font-size:34px;
    line-height:1.3;
}

.meta{
    flex-direction:column;
    gap:10px;
    align-items:flex-start;
}

.article-content{
    padding:25px;
}

.article-content p{
    font-size:17px;
}

.share-buttons{
    flex-wrap:wrap;
}

.comment{
    flex-direction:column;
    align-items:flex-start;
}

.comment-avatar{
    margin-bottom:15px;
}

.comment-form{
    padding:20px;
}

.comment-form input,
.comment-form textarea{
    font-size:15px;
}

.related-card img{
    height:220px;
}

footer{
    padding:50px 20px;
}

}

@media (max-width:576px){

.hero{
    height:45vh;
}

.hero-content h1{
    font-size:28px;
}

.hero-content p{
    font-size:15px;
}

.category{
    font-size:12px;
}

.meta{
    font-size:13px;
}

.article-content{
    padding:18px;
}

.article-content h2{
    font-size:24px;
}

.article-content p{
    font-size:16px;
}

.back-home{
    width:100%;
    justify-content:center;
}

.comment{
    padding:18px;
}

.comment-avatar{
    width:55px;
    height:55px;
    font-size:20px;
}

.comment-form button{
    width:100%;
}

.related-card img{
    height:190px;
}

}


/* =====================================================
   PREMIUM ANIMATIONS
===================================================== */

@keyframes fadeUp{

0%{
opacity:0;
transform:translateY(40px);
}

100%{
opacity:1;
transform:translateY(0);
}

}

@keyframes fadeLeft{

0%{
opacity:0;
transform:translateX(-40px);
}

100%{
opacity:1;
transform:translateX(0);
}

}

@keyframes fadeRight{

0%{
opacity:0;
transform:translateX(40px);
}

100%{
opacity:1;
transform:translateX(0);
}

}

@keyframes zoomIn{

0%{
opacity:0;
transform:scale(.85);
}

100%{
opacity:1;
transform:scale(1);
}

}

@keyframes float{

0%,100%{
transform:translateY(0);
}

50%{
transform:translateY(-10px);
}

}

@keyframes pulse{

0%{
box-shadow:0 0 0 rgba(13,110,253,.4);
}

50%{
box-shadow:0 0 30px rgba(13,110,253,.5);
}

100%{
box-shadow:0 0 0 rgba(13,110,253,.2);
}

}

.hero-content{
animation:fadeUp .8s ease;
}

.article-content{
animation:fadeUp 1s ease;
}

.comment{
animation:fadeUp .8s ease;
}

.related-card{
animation:zoomIn .8s ease;
}

.comment-avatar{
animation:float 4s ease infinite;
}

.comment-form button{
animation:pulse 3s infinite;
}


/* =====================================================
   GLASSMORPHISM EFFECTS
===================================================== */

.hero-overlay{

background:rgba(0,0,0,.45);
backdrop-filter:blur(5px);

}

.share-box{

background:rgba(255,255,255,.55);
backdrop-filter:blur(12px);

border:1px solid rgba(255,255,255,.4);

border-radius:16px;

padding:20px;

}

.comment{

background:rgba(255,255,255,.82);

backdrop-filter:blur(12px);

border:1px solid rgba(255,255,255,.35);

}

.related-card{

background:rgba(255,255,255,.9);

backdrop-filter:blur(8px);

}


/* =====================================================
   PREMIUM HOVER EFFECTS
===================================================== */

.article-content img{

transition:.5s;

}

.article-content img:hover{

transform:scale(1.02);

}

.comment:hover{

transform:translateY(-8px);

box-shadow:0 25px 45px rgba(0,0,0,.12);

}

.related-card:hover img{

transform:scale(1.08);

}

.related-card:hover{

box-shadow:0 25px 50px rgba(0,0,0,.15);

}

.comment-form input:focus,
.comment-form textarea:focus{

transform:translateY(-2px);

box-shadow:0 0 0 4px rgba(13,110,253,.15);

}

.back-home:hover{

transform:translateX(-5px);

}

.share-buttons a:hover{

transform:translateY(-4px);

}


/* =====================================================
   CUSTOM SCROLLBAR
===================================================== */

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#edf2f7;

}

::-webkit-scrollbar-thumb{

background:#0d6efd;

border-radius:10px;

}

::-webkit-scrollbar-thumb:hover{

background:#084298;

}


/* =====================================================
   DARK MODE SUPPORT
===================================================== */

body.dark{

background:#0f172a;

color:#e5e7eb;

transition:.4s;

}

body.dark .article-content{

background:#1e293b;

color:#e5e7eb;

}

body.dark .article-content p{

color:#d1d5db;

}

body.dark .comment{

background:#1e293b;

border:1px solid #334155;

}

body.dark .comment h4{

color:#ffffff;

}

body.dark .comment p{

color:#d1d5db;

}

body.dark .comment-form{

background:#1e293b;

}

body.dark .comment-form input,
body.dark .comment-form textarea{

background:#334155;

color:white;

border:1px solid #475569;

}

body.dark .related-card{

background:#1e293b;

}

body.dark footer{

background:#020617;

}

body.dark .share-box{

background:#1e293b;

border:1px solid #334155;

}


/* =====================================================
   SELECTION COLOR
===================================================== */

::selection{

background:#0d6efd;

color:white;

}


/* =====================================================
   SMOOTH SCROLL
===================================================== */

html{

scroll-behavior:smooth;

}