/*=========================================
            TYPO MASTER BLOG
=========================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#121212;

    color:#ECECEC;

    line-height:1.8;

}

/*=========================================
            LINKS
=========================================*/

a{

    text-decoration:none;

    color:inherit;

}

img{

    max-width:100%;

    display:block;

}

/*=========================================
            HEADER
=========================================*/

.blog-header{

    width:90%;

    max-width:1200px;

    margin:40px auto;

}

.back-btn{

    display:inline-block;

    background:#8B5E3C;

    color:white;

    padding:12px 22px;

    border-radius:10px;

    transition:.3s;

    font-weight:600;

}

.back-btn:hover{

    background:#A06C46;

}

/*=========================================
            HERO
=========================================*/

.hero{

    width:90%;

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

    margin-bottom:80px;

}

.hero-image img{

    border-radius:20px;

    box-shadow:0 15px 35px rgba(0,0,0,.35);

}

.category{

    display:inline-block;

    background:#8B5E3C;

    color:white;

    padding:8px 18px;

    border-radius:30px;

    margin-bottom:18px;

    font-size:.9rem;

    font-weight:600;

}

.hero-content h1{

    font-size:3rem;

    line-height:1.2;

    margin-bottom:20px;

    color:white;

}

.meta{

    color:#A5A5A5;

    margin-bottom:25px;

}

.hero-content p{

    font-size:1.05rem;

    color:#D2D2D2;

}

/*=========================================
            ARTICLE
=========================================*/

.article{

    width:90%;

    max-width:900px;

    margin:auto;

    margin-bottom:80px;

}

.article h2{

    font-size:2rem;

    margin-top:60px;

    margin-bottom:18px;

    color:#8B5E3C;

}

.article p{

    margin-bottom:22px;

    color:#D5D5D5;

    text-align:justify;

}

.article ul{

    margin:20px 0 20px 35px;

}

.article li{

    margin-bottom:10px;

}


/*=========================================
            TABLE
=========================================*/

.speed-table{

    width:100%;

    border-collapse:collapse;

    margin:35px 0;

    overflow:hidden;

    border-radius:12px;

    background:#1E1B18;

    box-shadow:0 10px 25px rgba(0,0,0,.3);

}

.speed-table th{

    background:#8B5E3C;

    color:white;

    padding:15px;

    text-align:left;

}

.speed-table td{

    padding:15px;

    border-bottom:1px solid rgba(255,255,255,.08);

    color:#ddd;

}

.speed-table tr:hover{

    background:#2A2522;

}

/*=========================================
            FAQ
=========================================*/

.faq-section{

    margin-top:80px;

}

.faq{

    background:#1E1B18;

    border-left:5px solid #8B5E3C;

    border-radius:12px;

    padding:25px;

    margin-bottom:25px;

    transition:.3s;

}

.faq:hover{

    transform:translateY(-5px);

    box-shadow:0 10px 25px rgba(0,0,0,.35);

}

.faq h3{

    color:#fff;

    margin-bottom:12px;

}

.faq p{

    color:#d4d4d4;

}

/*=========================================
        CONTINUE LEARNING
=========================================*/

.continue-learning{

    margin-top:80px;

}

.continue-learning ul{

    list-style:none;

    margin:25px 0;

    padding:0;

}

.continue-learning li{

    margin-bottom:15px;

}

.continue-learning a{

    display:block;

    padding:18px 22px;

    background:#1E1B18;

    border-radius:12px;

    transition:.3s;

    color:#ECECEC;

    font-weight:500;

}

.continue-learning a:hover{

    background:#8B5E3C;

    color:white;

    transform:translateX(8px);

}

/*=========================================
        RELATED POSTS
=========================================*/

.related-posts{

    margin-top:90px;

}

.related-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

    margin-top:30px;

}

.related-card{

    background:#1E1B18;

    border-radius:18px;

    overflow:hidden;

    transition:.35s;

    box-shadow:0 10px 25px rgba(0,0,0,.3);

}

.related-card:hover{

    transform:translateY(-8px);

}

.related-card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.related-card h3{

    color:#fff;

    padding:20px 20px 10px;

    font-size:1.35rem;

}

.related-card p{

    color:#cfcfcf;

    padding:0 20px 20px;

}

.related-card a{

    display:inline-block;

    margin:0 20px 25px;

    background:#8B5E3C;

    color:white;

    padding:12px 20px;

    border-radius:10px;

    transition:.3s;

}

.related-card a:hover{

    background:#A06C46;

}

/*=========================================
            AUTHOR BOX
=========================================*/

.author-box{

    margin-top:90px;

    padding:35px;

    background:#1E1B18;

    border-left:6px solid #8B5E3C;

    border-radius:18px;

    box-shadow:0 10px 25px rgba(0,0,0,.30);

}

.author-box h2{

    color:#8B5E3C;

    margin-bottom:18px;

}

.author-box p{

    color:#d4d4d4;

    margin:0;

}

/*=========================================
            BLOG FOOTER
=========================================*/

.blog-footer{

    margin-top:100px;

    padding:40px 20px;

    text-align:center;

    border-top:1px solid rgba(255,255,255,.08);

}

.blog-footer p{

    color:#999;

    margin:8px 0;

}

/*=========================================
            LIGHT MODE
=========================================*/

body.light{

    background:#F8F6F3;

    color:#222;

}

body.light .article p,
body.light .faq p,
body.light .author-box p{

    color:#444;

}

body.light .hero-content h1{

    color:#222;

}

body.light .meta{

    color:#666;

}

body.light .speed-table{

    background:white;

}

body.light .speed-table td{

    color:#333;

}

body.light .faq,
body.light .related-card,
body.light .author-box,
body.light .continue-learning a{

    background:white;

    box-shadow:0 10px 20px rgba(0,0,0,.08);

}

body.light .faq h3,
body.light .related-card h3{

    color:#222;

}

body.light .related-card p{

    color:#555;

}

body.light .blog-footer{

    border-top:1px solid rgba(0,0,0,.1);

}

body.light .blog-footer p{

    color:#666;
}
/*
            ANIMATIONS
*/
.hero-image img{
    transition:.4s;
}
.hero-image img:hover{
    transform:scale(1.03);
}
.related-card img{
    transition:.4s;
}
.related-card:hover img{
    transform:scale(1.06);
}
.back-btn,
.blog-btn,
.related-card a{
    transition:.3s;
}
.back-btn:hover,
.blog-btn:hover,
.related-card a:hover{
    transform:translateY(-3px);
}
/*=
            RESPONSIVE
*/
@media(max-width:900px){
.hero{
    grid-template-columns:1fr;
    gap:35px;
}
.hero-content h1{
    font-size:2.3rem;
}
}
@media(max-width:768px){
.article{
    width:94%;
}
.article h2{
    font-size:1.7rem;
}
.author-box{
    padding:25px;
}
.related-card img{
    height:200px;
}
.speed-table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
}
}
@media(max-width:500px){
.hero-content h1{
    font-size:2rem;

}
.back-btn{

    display:block;

    text-align:center;

}

.category{

    font-size:.8rem;

}

.blog-footer{

    padding:30px 15px;

}

}

/*
        BLOG HOME PAGE
*/

.blog-home-header{

    width:90%;

    max-width:1200px;

    margin:40px auto;

}

.blog-home-hero{

    width:90%;

    max-width:1200px;

    margin:60px auto;

    text-align:center;

}

.blog-home-hero h1{

    font-size:3rem;

    color:#8B5E3C;

    margin-bottom:15px;

}

.blog-home-hero p{

    max-width:700px;

    margin:auto;

    color:#bdbdbd;

    font-size:1.1rem;

}

/*=========================================
        FEATURED ARTICLE
=========================================*/

.featured-blog{

    width:90%;

    max-width:1200px;

    margin:80px auto;

}

.featured-blog h2{

    color:#8B5E3C;

    margin-bottom:30px;

}

.featured-card{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:40px;

    background:#1E1B18;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 15px 35px rgba(0,0,0,.30);

}

.featured-card img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.featured-card div{

    padding:40px;

}

.featured-card h3{

    color:white;

    margin:20px 0;

    font-size:2rem;

}

.featured-card p{

    color:#d4d4d4;

    margin-bottom:30px;

}

/*=========================================
        ALL BLOGS
=========================================*/

.all-blogs{

    width:90%;

    max-width:1200px;

    margin:100px auto;

}

.all-blogs h2{

    color:#8B5E3C;

    margin-bottom:35px;

}

.blog-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:35px;

}

/*=========================================
        NEWSLETTER
=========================================*/

.newsletter{

    width:90%;

    max-width:900px;

    margin:100px auto;

    background:#1E1B18;

    padding:50px;

    border-radius:20px;

    text-align:center;

}

.newsletter h2{

    color:#8B5E3C;

    margin-bottom:15px;

}

.newsletter p{

    color:#ccc;

    margin-bottom:30px;

}

.newsletter form{

    display:flex;

    gap:15px;

    justify-content:center;

    flex-wrap:wrap;

}

.newsletter input{

    width:320px;

    padding:15px;

    border:none;

    outline:none;

    border-radius:10px;

    font-size:1rem;

}

.newsletter button{

    padding:15px 28px;

    background:#8B5E3C;

    color:white;

    border:none;

    border-radius:10px;

    cursor:pointer;

    transition:.3s;

    font-weight:600;

}

.newsletter button:hover{

    background:#A06C46;

}

/*=========================================
        LIGHT MODE
=========================================*/

body.light .featured-card,

body.light .newsletter{

    background:white;

    box-shadow:0 10px 25px rgba(0,0,0,.10);

}

body.light .featured-card h3{

    color:#222;

}

body.light .featured-card p{

    color:#555;

}

body.light .blog-home-hero p{

    color:#555;

}

/*=========================================
        RESPONSIVE
=========================================*/

@media(max-width:900px){

.featured-card{

grid-template-columns:1fr;

}

.featured-card h3{

font-size:1.8rem;

}

}

@media(max-width:600px){

.blog-home-hero h1{

font-size:2.2rem;

}

.newsletter{

padding:30px 20px;

}

.newsletter input{

width:100%;

}

.newsletter button{

width:100%;

}

}