/*==================================================
 RAITA HTML FRAMEWORK
 Version : 1.0
==================================================*/

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

html{
scroll-behavior:smooth;
}

body{
font-family:'Inter',sans-serif;
background:#f5f7fb;
color:#222;
line-height:1.7;
font-size:16px;
}

a{
text-decoration:none;
color:inherit;
}

img{
display:block;
max-width:100%;
height:auto;
}

.container{
width:1200px;
max-width:95%;
margin:auto;
}

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

.header{
position:sticky;
top:0;
z-index:9999;
background:#ffffff;
box-shadow:0 2px 15px rgba(0,0,0,.06);
}

.header .container{
display:flex;
justify-content:space-between;
align-items:center;
height:75px;
}

.logo a{
font-size:32px;
font-weight:800;
color:#2563eb;
letter-spacing:1px;
}

.menu{
display:flex;
gap:35px;
}

.menu a{
font-weight:600;
color:#444;
transition:.3s;
}

.menu a:hover{
color:#2563eb;
}

.search input{
width:250px;
height:42px;
padding:0 15px;
border:1px solid #ddd;
border-radius:30px;
outline:none;
transition:.3s;
}

.search input:focus{
border-color:#2563eb;
}

/*==============================
HERO
==============================*/

.hero{
padding:45px 0;
}

.hero-grid{
display:grid;
grid-template-columns:1.2fr 1fr;
gap:40px;
align-items:center;
}

.hero-image img{
border-radius:18px;
box-shadow:0 15px 40px rgba(0,0,0,.12);
}

.badge{
display:inline-block;
background:#2563eb;
color:#fff;
padding:7px 18px;
border-radius:30px;
font-size:14px;
margin-bottom:20px;
}

.hero h1{
font-size:42px;
line-height:1.2;
margin-bottom:20px;
font-weight:800;
}

.hero p{
color:#666;
margin-bottom:25px;
}

.btn{
display:inline-block;
padding:14px 28px;
background:#2563eb;
color:#fff;
border-radius:8px;
font-weight:700;
transition:.3s;
}

.btn:hover{
background:#174ac9;
}

/*==============================
SECTION
==============================*/

.section{
padding:50px 0;
}

.section-title{
margin-bottom:30px;
}

.section-title h2{
font-size:34px;
font-weight:800;
}

/*==============================
LAYOUT
==============================*/

.content-grid{
display:grid;
grid-template-columns:3fr 1fr;
gap:35px;
}

/*==============================
POST GRID
==============================*/

.posts{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
}

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

.card:hover{
transform:translateY(-8px);
box-shadow:0 20px 45px rgba(0,0,0,.15);
}

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

.card-body{
padding:20px;
}

.category{
display:inline-block;
background:#eef4ff;
color:#2563eb;
padding:6px 12px;
font-size:13px;
border-radius:30px;
margin-bottom:12px;
font-weight:700;
}

.card h3{
font-size:22px;
line-height:1.4;
margin-bottom:15px;
}

.card h3 a:hover{
color:#2563eb;
}

.card p{
color:#666;
margin-bottom:18px;
}

.meta{
font-size:14px;
color:#999;
}

/*==============================
SIDEBAR
==============================*/

.widget{
background:#fff;
padding:25px;
margin-bottom:25px;
border-radius:15px;
box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.widget h3{
margin-bottom:20px;
font-size:22px;
}

.widget input{
width:100%;
height:45px;
padding:0 15px;
border:1px solid #ddd;
border-radius:8px;
outline:none;
}

.widget ul{
list-style:none;
}

.widget li{
padding:10px 0;
border-bottom:1px solid #eee;
}

.widget li:last-child{
border:none;
}

.widget a{
transition:.3s;
}

.widget a:hover{
color:#2563eb;
padding-left:8px;
}

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

footer{
margin-top:60px;
background:#0f172a;
color:#fff;
padding:60px 0 30px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
margin-bottom:35px;
}

.footer-grid h3{
margin-bottom:20px;
font-size:22px;
}

.footer-grid p,
.footer-grid li{
color:#b8c1d1;
margin-bottom:10px;
}

.footer-grid ul{
list-style:none;
}

.footer-grid a:hover{
color:#fff;
}

.copyright{
border-top:1px solid rgba(255,255,255,.08);
padding-top:20px;
text-align:center;
color:#9aa5b5;
}

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

::-webkit-scrollbar{
width:10px;
}

::-webkit-scrollbar-thumb{
background:#2563eb;
border-radius:20px;
}

::-webkit-scrollbar-track{
background:#e8edf6;
}

/*======================================
 APP.JS SUPPORT
======================================*/

.hidden{

opacity:0;

transform:translateY(40px);

transition:.7s;

}

.show{

opacity:1;

transform:translateY(0);

}

#backTop{

position:fixed;

right:25px;

bottom:25px;

width:48px;

height:48px;

border:none;

border-radius:50%;

background:#2563eb;

color:#fff;

font-size:22px;

cursor:pointer;

opacity:0;

visibility:hidden;

transition:.3s;

z-index:99999;

}

#backTop.show{

opacity:1;

visibility:visible;

}

#backTop:hover{

transform:translateY(-5px);

}

#progressBar{

position:fixed;

top:0;

left:0;

height:4px;

width:0;

background:#2563eb;

z-index:999999;

}

#darkToggle{

position:fixed;

left:25px;

bottom:25px;

width:48px;

height:48px;

border:none;

border-radius:50%;

background:#0f172a;

color:#fff;

font-size:20px;

cursor:pointer;

z-index:99999;

}

body.dark{

background:#0f172a;

color:#f1f5f9;

}

body.dark .header,

body.dark .card,

body.dark .widget{

background:#1e293b;

color:#fff;

}

body.dark .card p,

body.dark .widget li,

body.dark .meta{

color:#cbd5e1;

}


/*======================================
 ARTICLE PAGE
======================================*/

.article-wrap{
max-width:900px;
margin:40px auto;
background:#fff;
padding:45px;
border-radius:18px;
box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.article-title{
font-size:42px;
font-weight:800;
line-height:1.3;
margin-bottom:20px;
}

.article-meta{
display:flex;
gap:20px;
font-size:14px;
color:#777;
margin-bottom:25px;
flex-wrap:wrap;
}

.article-featured{
margin-bottom:30px;
}

.article-featured img{
width:100%;
border-radius:15px;
}

.article-content{
font-size:18px;
line-height:1.9;
color:#333;
}

.article-content h2{
margin-top:45px;
margin-bottom:18px;
font-size:32px;
font-weight:800;
}

.article-content h3{
margin-top:35px;
margin-bottom:15px;
font-size:26px;
}

.article-content p{
margin-bottom:22px;
}

.article-content ul,
.article-content ol{
margin:20px 0 20px 28px;
}

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

.article-content img{
margin:35px auto;
display:block;
border-radius:12px;
max-width:100%;
}

.article-content blockquote{
border-left:5px solid #2563eb;
background:#f6f8fc;
padding:18px 25px;
margin:30px 0;
font-style:italic;
border-radius:8px;
}

.article-content table{
width:100%;
border-collapse:collapse;
margin:30px 0;
}

.article-content table th,
.article-content table td{
border:1px solid #ddd;
padding:12px;
}

.article-content table th{
background:#2563eb;
color:#fff;
}

.article-content a{
color:#2563eb;
font-weight:600;
}

.article-content a:hover{
text-decoration:underline;
}


/*======================================
TABLE OF CONTENTS
======================================*/

#toc{

background:#f8f9fc;

border:1px solid #e5e7eb;

padding:25px;

border-radius:12px;

margin:35px 0;

}

#toc h3{

margin-bottom:15px;

font-size:22px;

}

#toc ul{

list-style:none;

padding-left:0;

}

#toc li{

padding:8px 0;

}

#toc li.h3{

padding-left:20px;

font-size:15px;

}

#toc a{

color:#2563eb;

font-weight:600;

}

#toc a:hover{

text-decoration:underline;

}


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

.breadcrumb{

display:flex;

flex-wrap:wrap;

gap:10px;

margin-bottom:20px;

font-size:14px;

color:#777;

}

.breadcrumb a{

color:#2563eb;

font-weight:600;

}

.breadcrumb span{

color:#888;

}


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

.share-box{

margin-top:50px;

padding:25px;

background:#f8f9fc;

border-radius:15px;

}

.share-buttons{

display:flex;

gap:12px;

flex-wrap:wrap;

margin-top:15px;

}

.share-buttons a{

padding:12px 18px;

background:#2563eb;

color:#fff;

border-radius:8px;

transition:.3s;

}

.share-buttons a:hover{

transform:translateY(-3px);

}
