/*======================================================
BLOG DETAILS.CSS
TIMOSA FOUNDATION

PART 1

- Google Font
- CSS Variables
- Reset
- Base Styles
- Typography
- Container
- Buttons
- Images
- Preloader
======================================================*/


/*======================================================
GOOGLE FONT
======================================================*/

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


/*======================================================
CSS VARIABLES
======================================================*/

:root{

    --primary:#0B6E4F;

    --primary-dark:#07543C;

    --secondary:#F4F8F6;

    --text:#222222;

    --text-light:#666666;

    --border:#E6E6E6;

    --white:#FFFFFF;

    --black:#111111;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --radius:12px;

    --transition:.35s ease;

}


/*======================================================
RESET
======================================================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    font-size:16px;

    line-height:1.8;

    color:var(--text);

    background:#fff;

    overflow-x:hidden;

}

body.menu-open{

    overflow:hidden;

}



/*======================================================
COMMON ELEMENTS
======================================================*/

a{

    text-decoration:none;

    color:inherit;

    transition:var(--transition);

}

ul{

    list-style:none;

}

img{

    width:100%;

    display:block;

}

button,

input{

    font-family:inherit;

    border:none;

    outline:none;

}

button{

    cursor:pointer;

}

section{

    padding:80px 0;

}


/*======================================================
TYPOGRAPHY
======================================================*/

h1,h2,h3,h4{

    color:var(--black);

    line-height:1.3;

    font-weight:700;

}

h1{

    font-size:3rem;

    margin-bottom:25px;

}

h2{

    font-size:2rem;

    margin:55px 0 25px;

}

h3{

    font-size:1.35rem;

}

p{

    color:var(--text-light);

    margin-bottom:24px;

}

.lead{

    font-size:1.2rem;

    color:#444;

    font-weight:500;

}


/*======================================================
CONTAINER
======================================================*/

.container{

    width:min(1150px,92%);

    margin:auto;

}

.article-container{

    max-width:850px;

}


/*======================================================
BUTTONS
======================================================*/

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 32px;

    border-radius:40px;

    font-weight:600;

    transition:var(--transition);

}

.btn-primary{

    background:var(--primary);

    color:#fff;

}

.btn-primary:hover{

    background:var(--primary-dark);

}

.btn-outline{

    border:2px solid var(--primary);

    color:var(--primary);

}

.btn-outline:hover{

    background:var(--primary);

    color:#fff;

}


/*======================================================
PRELOADER
======================================================*/

#preloader{

    position:fixed;

    inset:0;

    background:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:99999;

    transition:.6s;

}

.loader{

    width:60px;

    height:60px;

    border:5px solid #E8E8E8;

    border-top:5px solid var(--primary);

    border-radius:50%;

    animation:spin 1s linear infinite;

}

@keyframes spin{

    100%{

        transform:rotate(360deg);

    }

}

/*======================================================
HEADER
======================================================*/

header{

    position:sticky;

    top:0;

    left:0;

    width:100%;

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

    backdrop-filter:blur(15px);

    border-bottom:1px solid var(--border);

    z-index:1000;

    transition:var(--transition);

}

header.scrolled{

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.navbar{

    display:flex;

    align-items:center;

    justify-content:space-between;

    height:85px;

}

.logo{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:1.3rem;

    font-weight:700;

    color:var(--primary);

}

.logo img{

    width:55px;

}

.nav-links{

    display:flex;

    align-items:center;

    gap:35px;

}

.nav-links li{

    position:relative;

}

.nav-links a{

    font-weight:500;

    color:var(--text);

    position:relative;

    padding:8px 0;

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:0;

    height:2px;

    background:var(--primary);

    transition:.35s;

}

.nav-links a:hover,

.nav-links a.active{

    color:var(--primary);

}

.nav-links a:hover::after,

.nav-links a.active::after{

    width:100%;

}


/*======================================================
MOBILE MENU
======================================================*/

.menu-toggle{

    width:45px;

    height:45px;

    display:none;

    cursor:pointer;

    flex-direction:column;

    justify-content:center;

    gap:6px;

}

.menu-toggle span{

    width:100%;

    height:3px;

    background:var(--primary);

    border-radius:20px;

    transition:.35s;

}

.menu-toggle.active span:nth-child(1){

    transform:translateY(9px) rotate(45deg);

}

.menu-toggle.active span:nth-child(2){

    opacity:0;

}

.menu-toggle.active span:nth-child(3){

    transform:translateY(-9px) rotate(-45deg);

}


/*======================================================
BREADCRUMB
======================================================*/

.breadcrumb{

    padding:30px 0;

    background:#F9FBFA;

    border-bottom:1px solid var(--border);

}

.breadcrumb .container{

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:12px;

    font-size:.95rem;

}

.breadcrumb a{

    color:var(--primary);

    font-weight:500;

}

.breadcrumb span{

    color:var(--text-light);

}

.breadcrumb i{

    color:#B8B8B8;

    font-size:.8rem;

}


/*======================================================
ARTICLE HEADER
======================================================*/

.article-header{

    padding:70px 0 40px;

    background:#fff;

}

.category{

    display:inline-block;

    padding:8px 18px;

    border-radius:30px;

    background:#EAF7F2;

    color:var(--primary);

    font-weight:600;

    margin-bottom:25px;

}

.article-header h1{

    font-size:3.2rem;

    line-height:1.25;

    margin-bottom:25px;

}

.summary{

    font-size:1.15rem;

    color:#555;

    max-width:760px;

    margin-bottom:35px;

}

.article-meta{

    display:flex;

    align-items:center;

    flex-wrap:wrap;

    gap:30px;

    color:var(--text-light);

    font-size:.95rem;

    padding-top:20px;

    border-top:1px solid var(--border);

}

.article-meta div{

    display:flex;

    align-items:center;

    gap:10px;

}

.article-meta i{

    color:var(--primary);

}


/*======================================================
FEATURED IMAGE
======================================================*/

.featured-image{

    padding:20px 0 70px;

}

.featured-image img{

    width:100%;

    border-radius:16px;

    box-shadow:var(--shadow);

}

.image-caption{

    font-size:.92rem;

    color:#777;

    text-align:center;

    margin-top:18px;

    font-style:italic;

}


/*======================================================
RESPONSIVE HEADER
======================================================*/

@media (max-width:992px){

    .menu-toggle{

        display:flex;

    }

    .nav-links{

        position:fixed;

        top:85px;

        left:-100%;

        width:100%;

        background:#fff;

        flex-direction:column;

        padding:40px 0;

        gap:25px;

        box-shadow:0 15px 40px rgba(0,0,0,.08);

        transition:.4s;

    }

    .nav-links.active{

        left:0;

    }

    .article-header h1{

        font-size:2.5rem;

    }

}

@media (max-width:768px){

    .article-header{

        padding:50px 0 30px;

    }

    .article-header h1{

        font-size:2rem;

    }

    .summary{

        font-size:1rem;

    }

    .article-meta{

        gap:18px;

        flex-direction:column;

        align-items:flex-start;

    }

    .featured-image{

        padding-bottom:50px;

    }

}

@media (max-width:576px){

    .logo span{

        display:none;

    }

    .breadcrumb{

        padding:20px 0;

    }

    .article-header h1{

        font-size:1.75rem;

    }

}

/*======================================================
ARTICLE CONTENT
======================================================*/

.article-content{

    padding:20px 0 90px;

    background:#fff;

}

.article-content .article-container{

    max-width:850px;

}

.article-content h2{

    font-size:2rem;

    color:var(--black);

    margin:60px 0 20px;

    line-height:1.35;

}

.article-content p{

    font-size:1.08rem;

    line-height:2;

    color:#444;

    margin-bottom:24px;

}

.article-content strong{

    color:var(--primary);

    font-weight:600;

}

.article-content a{

    color:var(--primary);

    font-weight:600;

}

.article-content a:hover{

    text-decoration:underline;

}


/*======================================================
ARTICLE IMAGES
======================================================*/

.article-image{

    margin:50px 0;

}

.article-image img{

    width:100%;

    border-radius:16px;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.article-image img:hover{

    transform:scale(1.02);

}

.article-image figcaption{

    text-align:center;

    font-size:.95rem;

    color:#777;

    margin-top:15px;

    font-style:italic;

}


/*======================================================
BLOCKQUOTE
======================================================*/

blockquote{

    margin:50px 0;

    padding:35px 40px;

    background:#F6FAF8;

    border-left:5px solid var(--primary);

    border-radius:12px;

    font-size:1.35rem;

    font-weight:500;

    line-height:1.8;

    color:#222;

    position:relative;

}

blockquote::before{

    content:"“";

    position:absolute;

    top:-18px;

    left:20px;

    font-size:5rem;

    color:rgba(11,110,79,.15);

    font-family:Georgia, serif;

}


/*======================================================
LISTS
======================================================*/

.article-list{

    margin:30px 0 40px;

    padding-left:10px;

}

.article-list li{

    display:flex;

    align-items:flex-start;

    gap:15px;

    margin-bottom:18px;

    color:#444;

    line-height:1.8;

}

.article-list li::before{

    content:"";

    width:10px;

    height:10px;

    background:var(--primary);

    border-radius:50%;

    margin-top:11px;

    flex-shrink:0;

}


/*======================================================
HIGHLIGHT BOX
======================================================*/

.highlight-box{

    background:var(--secondary);

    border-left:5px solid var(--primary);

    padding:35px;

    border-radius:15px;

    margin:55px 0;

}

.highlight-box h3{

    margin-bottom:20px;

    color:var(--primary);

}

.highlight-box ul{

    list-style:none;

}

.highlight-box li{

    position:relative;

    padding-left:28px;

    margin-bottom:15px;

    color:#444;

}

.highlight-box li::before{

    content:"✓";

    position:absolute;

    left:0;

    top:0;

    color:var(--primary);

    font-weight:700;

}


/*======================================================
ARTICLE TAGS
======================================================*/

.article-tags{

    display:flex;

    flex-wrap:wrap;

    align-items:center;

    gap:12px;

    margin-top:60px;

    padding-top:35px;

    border-top:1px solid var(--border);

}

.article-tags span{

    font-weight:600;

    color:#222;

}

.article-tags a{

    padding:10px 18px;

    background:#F3F5F4;

    border-radius:30px;

    font-size:.9rem;

    transition:var(--transition);

}

.article-tags a:hover{

    background:var(--primary);

    color:#fff;

}


/*======================================================
SHARE ARTICLE
======================================================*/

.share-article{

    margin-top:50px;

    padding-top:35px;

    border-top:1px solid var(--border);

}

.share-article h3{

    margin-bottom:20px;

}

.social-links{

    display:flex;

    gap:15px;

}

.social-links a{

    width:48px;

    height:48px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#F4F4F4;

    color:var(--primary);

    transition:var(--transition);

    font-size:1.1rem;

}

.social-links a:hover{

    background:var(--primary);

    color:#fff;

    transform:translateY(-4px);

}


/*======================================================
AUTHOR BOX
======================================================*/

.author-box{

    display:flex;

    align-items:center;

    gap:25px;

    margin-top:70px;

    padding:35px;

    background:#F8FAF9;

    border-radius:18px;

}

.author-box img{

    width:120px;

    height:120px;

    border-radius:50%;

    object-fit:cover;

    flex-shrink:0;

}

.author-box h3{

    margin-bottom:12px;

}

.author-box p{

    margin-bottom:0;

}


/*======================================================
RESPONSIVE
======================================================*/

@media (max-width:768px){

    .article-content h2{

        font-size:1.6rem;

    }

    .article-content p{

        font-size:1rem;

    }

    blockquote{

        padding:25px;

        font-size:1.1rem;

    }

    .author-box{

        flex-direction:column;

        text-align:center;

    }

}

/*======================================================
ARTICLE NAVIGATION
======================================================*/

.article-navigation{

    padding:70px 0;

    background:#FAFBFB;

    border-top:1px solid var(--border);

    border-bottom:1px solid var(--border);

}

.article-navigation .article-container{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

}

.article-navigation a{

    display:block;

    padding:30px;

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    transition:var(--transition);

}

.article-navigation a:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow);

    border-color:var(--primary);

}

.article-navigation small{

    display:block;

    color:var(--primary);

    font-weight:600;

    margin-bottom:12px;

    text-transform:uppercase;

    letter-spacing:.08em;

}

.article-navigation h4{

    font-size:1.2rem;

    color:var(--black);

    line-height:1.5;

}

.article-navigation .next{

    text-align:right;

}


/*======================================================
RELATED ARTICLES
======================================================*/

.related-posts{

    padding:100px 0;

    background:#fff;

}

.related-posts h2{

    text-align:center;

    margin-bottom:60px;

}

.related-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.post-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 35px rgba(0,0,0,.06);

    transition:var(--transition);

}

.post-card:hover{

    transform:translateY(-8px);

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

}

.post-card img{

    width:100%;

    height:240px;

    object-fit:cover;

}

.post-content{

    padding:28px;

}

.post-content span{

    display:inline-block;

    background:#EAF7F2;

    color:var(--primary);

    padding:6px 16px;

    border-radius:30px;

    font-size:.85rem;

    font-weight:600;

    margin-bottom:18px;

}

.post-content h3{

    font-size:1.3rem;

    line-height:1.5;

    margin-bottom:20px;

}

.post-content a{

    color:var(--primary);

    font-weight:600;

    display:inline-flex;

    align-items:center;

    gap:10px;

}

.post-content a:hover{

    gap:16px;

}


/*======================================================
NEWSLETTER
======================================================*/

.newsletter{

    padding:100px 0;

    background:var(--primary);

    color:#fff;

}

.newsletter-content{

    max-width:700px;

    margin:auto;

    text-align:center;

}

.newsletter-content span{

    display:inline-block;

    margin-bottom:15px;

    text-transform:uppercase;

    letter-spacing:.08em;

    font-weight:600;

    color:#CFEFDF;

}

.newsletter-content h2{

    color:#fff;

    margin-bottom:20px;

}

.newsletter-content p{

    color:rgba(255,255,255,.85);

    margin-bottom:35px;

}

.newsletter-form{

    display:flex;

    gap:15px;

    justify-content:center;

    flex-wrap:wrap;

}

.newsletter-form input{

    flex:1;

    min-width:260px;

    max-width:500px;

    padding:18px 22px;

    border-radius:50px;

    background:#fff;

    font-size:1rem;

}

.newsletter-form button{

    padding:18px 36px;

    border-radius:50px;

    background:#fff;

    color:var(--primary);

    font-weight:700;

    transition:var(--transition);

}

.newsletter-form button:hover{

    background:#EAF7F2;

}


/*======================================================
CALL TO ACTION
======================================================*/

.cta{

    padding:100px 0;

    background:#F8FAF9;

}

.cta-content{

    max-width:800px;

    margin:auto;

    text-align:center;

}

.cta-content h2{

    margin-bottom:20px;

}

.cta-content p{

    margin-bottom:35px;

}

.cta-buttons{

    display:flex;

    justify-content:center;

    gap:18px;

    flex-wrap:wrap;

}


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

.article-image{

    overflow:hidden;

    border-radius:16px;

}

.article-image img{

    transition:transform .6s ease;

}

.article-image:hover img{

    transform:scale(1.05);

}

.post-card img{

    transition:transform .6s ease;

}

.post-card:hover img{

    transform:scale(1.08);

}


/*======================================================
RESPONSIVE
======================================================*/

@media(max-width:992px){

    .related-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:768px){

    .article-navigation .article-container{

        grid-template-columns:1fr;

    }

    .article-navigation .next{

        text-align:left;

    }

    .related-grid{

        grid-template-columns:1fr;

    }

    .newsletter-form{

        flex-direction:column;

    }

    .newsletter-form input,

    .newsletter-form button{

        width:100%;

        max-width:none;

    }

}

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

footer{

    /*background:#0F172A; */
    background:#0f2215;

    color:#CBD5E1;

    padding:90px 0 30px;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1.3fr;

    gap:50px;

    margin-bottom:60px;

}

.footer-about img{

    width:70px;

    margin-bottom:20px;

}

.footer-about p{

    color:#94A3B8;

    line-height:1.9;

}

.footer-links h3,

.footer-contact h3{

    color:#fff;

    margin-bottom:25px;

    font-size:1.25rem;

}

.footer-links ul{

    display:flex;

    flex-direction:column;

    gap:14px;

}

.footer-links a{

    color:#CBD5E1;

    transition:var(--transition);

}

.footer-links a:hover{

    color:#ffffff;

    padding-left:8px;

}

.footer-contact p{

    display:flex;

    align-items:flex-start;

    gap:12px;

    margin-bottom:18px;

    color:#CBD5E1;

}

.footer-contact i{

    color:var(--primary);

    margin-top:5px;

}


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

.footer-social{

    display:flex;

    gap:15px;

    margin-top:30px;

}

.footer-social a{

    width:46px;

    height:46px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

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

    color:#fff;

    transition:var(--transition);

}

.footer-social a:hover{

    background:var(--primary);

    transform:translateY(-5px);

}


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

.footer-bottom{

    padding-top:30px;

    border-top:1px solid rgba(255,255,255,.08);

    text-align:center;

}

.footer-bottom p{

    margin:0;

    color:#94A3B8;

    font-size:.95rem;

}


/*======================================================
BACK TO TOP BUTTON
======================================================*/

#backToTop{

    position:fixed;

    right:30px;

    bottom:30px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    font-size:1.2rem;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    box-shadow:0 15px 30px rgba(0,0,0,.18);

    opacity:0;

    visibility:hidden;

    transform:translateY(20px);

    transition:var(--transition);

    z-index:999;

}

#backToTop.show{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

#backToTop:hover{

    background:var(--primary-dark);

    transform:translateY(-6px);

}


/*======================================================
TEXT SELECTION
======================================================*/

::selection{

    background:var(--primary);

    color:#fff;

}

::-moz-selection{

    background:var(--primary);

    color:#fff;

}


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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#F4F4F4;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);

}


/*======================================================
UTILITY CLASSES
======================================================*/

.text-center{

    text-align:center;

}

.mt-0{

    margin-top:0;

}

.mb-0{

    margin-bottom:0;

}

.hidden{

    display:none;

}


/*======================================================
RESPONSIVE
======================================================*/

@media(max-width:992px){

    .footer-grid{

        grid-template-columns:repeat(2,1fr);

        gap:40px;

    }

}

@media(max-width:768px){

    footer{

        padding:70px 0 25px;

    }

    .footer-grid{

        grid-template-columns:1fr;

        text-align:center;

    }

    .footer-about img{

        margin:0 auto 20px;

    }

    .footer-social{

        justify-content:center;

    }

    .footer-contact p{

        justify-content:center;

    }

    #backToTop{

        right:20px;

        bottom:20px;

        width:50px;

        height:50px;

    }

}


/*======================================================
PRINT STYLES
======================================================*/

@media print{

    header,

    footer,

    .newsletter,

    .cta,

    .article-navigation,

    .related-posts,

    #backToTop{

        display:none !important;

    }

    body{

        color:#000;

        background:#fff;

    }

    .article-container{

        max-width:100%;

    }

    .article-image img{

        box-shadow:none;

    }

}



/*======================================================
NAVIGATION MENU DROPDOWN
======================================================*/


.dropdown:hover>a i{

    transform:rotate(180deg);

}

/*==============================
DROPDOWN MENU
==============================*/

.dropdown-menu{

    position:absolute;

    top:115%;

    left:0;

    min-width:240px;

    background:#fff;

    border-radius:18px;

    box-shadow:
    0 20px 60px rgba(0,0,0,.12);

    padding:15px 0;

    opacity:0;

    visibility:hidden;

    transform:translateY(20px);

    transition:.4s;

    overflow:hidden;

}

.dropdown:hover .dropdown-menu{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.dropdown-menu a{

    display:block;

    padding:14px 25px;

    font-weight:500;

    transition:.3s;

}

.dropdown-menu a:hover{

    padding-left:35px;

    color:var(--primary);

    background:#f3faf5;

}

/*==============================
MEGA MENU
==============================*/

.dropdown-menu.mega{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:25px;

    width:520px;

    padding:30px;

}

.dropdown-menu h4{

    color:#111;

    margin-bottom:15px;

    font-size:18px;

    position:relative;

}

.dropdown-menu h4::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:45px;

    height:3px;

    background:var(--primary);

    border-radius:20px;

}

.dropdown-menu.mega a{

    padding:10px 0;

}

.dropdown-menu.mega a:hover{

    padding-left:10px;

    background:none;

}



/*======================================================
END OF FILE
======================================================*/