/*Variables*/
:root{
--primary:#2563eb;
--primary-dark:#1d4ed8;
--secondary:#38bdf8;
--dark:#111827;
--dark-2:#1f2937;
--light:#f8fafc;
--white:#fff;
--text:#4b5563;
--border:#e5e7eb;
--radius:12px;
--radius-lg:20px;
--shadow:0 10px 30px rgba(0,0,0,.08);
--shadow-lg:0 20px 50px rgba(0,0,0,.12);
--transition:.3s ease;
--container:1280px;
--header:72px;
--font:'Poppins',sans-serif;
}

/*Reset*/
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{font:16px/1.7 var(--font);background:var(--light);color:var(--text);-webkit-font-smoothing:antialiased;overflow-x:hidden;}
img{display:block;max-width:100%;height:auto;}
a{text-decoration:none;color:inherit;transition:var(--transition);}
ul{list-style:none;}
button,input,textarea,select{font:inherit;border:none;outline:none;}
button{cursor:pointer;background:none;}
.container{width:min(95%,var(--container));margin:auto;}
section{position:relative;}
.main-content{min-height:100vh;}
::selection{background:var(--primary);color:#fff;}

/*Scrollbar*/
::-webkit-scrollbar{width:10px;}
::-webkit-scrollbar-track{background:#eef2f7;}
::-webkit-scrollbar-thumb{background:var(--primary);border-radius:20px;}
::-webkit-scrollbar-thumb:hover{background:var(--primary-dark);}

/*Utility*/
.text-center{text-align:center;}
.mt-1{margin-top:10px;}
.mt-2{margin-top:20px;}
.mt-3{margin-top:30px;}
.mt-4{margin-top:40px;}
.mb-1{margin-bottom:10px;}
.mb-2{margin-bottom:20px;}
.mb-3{margin-bottom:30px;}
.mb-4{margin-bottom:40px;}
.d-flex{display:flex;}
.align-center{align-items:center;}
.justify-between{justify-content:space-between;}
.grid{display:grid;}
.hidden{display:none;}
.w-100{width:100%;}

/*Buttons*/
.btn{
display:inline-flex;
align-items:center;
justify-content:center;
padding:16px 34px;
background:var(--primary);
color:#fff;
font-weight:600;
border-radius:var(--radius);
transition:var(--transition);
box-shadow:0 15px 30px rgba(37,99,235,.25);
}
.btn:hover{
background:var(--primary-dark);
transform:translateY(-3px);
}
.btn-outline{
display:inline-flex;
align-items:center;
justify-content:center;
padding:16px 34px;
border:2px solid var(--primary);
color:var(--primary);
font-weight:600;
border-radius:var(--radius);
transition:var(--transition);
}
.btn-outline:hover{
background:var(--primary);
color:#fff;
}

/*Header*/
.header{
position:sticky;
top:0;
left:0;
z-index:1000;
height:var(--header);
background:rgba(17,24,39,.96);
backdrop-filter:blur(12px);
box-shadow:var(--shadow);
}
.nav{
height:100%;
display:flex;
align-items:center;
justify-content:space-between;
gap:40px;
}

/*Logo*/
.logo{
display:flex;
align-items:center;
font-size:30px;
font-weight:800;
letter-spacing:1px;
text-transform:uppercase;
white-space:nowrap;
user-select:none;
}
.logo-white{color:#fff;}
.logo-blue{color:var(--secondary);}
.logo:hover{opacity:.9;}

/*Menu*/
.menu{
display:flex;
align-items:center;
justify-content:center;
flex:1;
gap:40px;
}
.menu a{
position:relative;
padding:24px 0;
font-size:16px;
font-weight:600;
color:#d1d5db;
}
.menu a:hover,.menu a.active{
color:#fff;
}
.menu a.active::after{
content:"";
position:absolute;
left:50%;
bottom:8px;
width:42px;
height:4px;
background:var(--primary);
border-radius:20px;
transform:translateX(-50%);
}

/*Search*/
.search{
display:flex;
align-items:center;
height:48px;
background:#fff;
border:1px solid var(--border);
border-radius:12px;
overflow:hidden;
box-shadow:0 6px 18px rgba(0,0,0,.08);
}
.search input{
width:260px;
height:100%;
padding:0 18px;
background:#fff;
font-size:15px;
}
.search button{
width:110px;
height:100%;
background:var(--primary);
color:#fff;
font-weight:600;
transition:var(--transition);
}
.search button:hover{
background:var(--primary-dark);
}

/*Mobile Menu*/
.menu-toggle{
display:none;
width:48px;
height:48px;
padding:0;
z-index:1202;
}
.menu-toggle span{
display:block;
width:28px;
height:3px;
margin:6px auto;
background:#fff;
border-radius:10px;
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);
}
.overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,.45);
opacity:0;
visibility:hidden;
transition:.3s;
z-index:1198;
}
.overlay.show{
opacity:1;
visibility:visible;
}
body.menu-open{
overflow:hidden;
}
/*Hero*/
.hero{
padding:40px 0 80px;
background:#f8fbff;
}
.hero-box{
display:grid;
grid-template-columns:1.1fr .9fr;
align-items:center;
gap:70px;
padding:70px;
background:linear-gradient(135deg,#f8fbff,#eef5ff);
border-radius:24px;
overflow:hidden;
position:relative;
box-shadow:var(--shadow-lg);
}
.hero-box:before{
content:"";
position:absolute;
top:-180px;
right:-120px;
width:500px;
height:500px;
border-radius:50%;
background:radial-gradient(circle,rgba(37,99,235,.12),transparent 70%);
}
.hero-box:after{
content:"";
position:absolute;
left:-120px;
bottom:-120px;
width:320px;
height:320px;
border-radius:50%;
background:radial-gradient(circle,rgba(56,189,248,.10),transparent 70%);
}
.hero-left,.hero-right{
position:relative;
z-index:2;
}
.hero-tag{
display:inline-block;
padding:10px 18px;
background:#dbeafe;
color:var(--primary);
font-size:14px;
font-weight:700;
border-radius:30px;
margin-bottom:25px;
}
.hero h1{
font-size:64px;
font-weight:800;
line-height:1.05;
letter-spacing:-2px;
color:var(--dark);
margin-bottom:25px;
}
.hero p{
font-size:20px;
line-height:1.8;
margin-bottom:35px;
max-width:620px;
}
.hero-right{
display:flex;
justify-content:center;
align-items:center;
}
.hero-right img{
max-width:520px;
filter:drop-shadow(0 30px 40px rgba(0,0,0,.18));
transition:.4s;
}
.hero-right img:hover{
transform:translateY(-10px) scale(1.02);
}

/*Section*/
.section-head{
display:flex;
align-items:flex-end;
justify-content:space-between;
gap:20px;
margin-bottom:50px;
}
.section-tag{
display:inline-block;
padding:8px 16px;
background:#dbeafe;
color:var(--primary);
font-size:13px;
font-weight:700;
border-radius:30px;
margin-bottom:14px;
}
.section-head h2{
font-size:40px;
font-weight:800;
color:var(--dark);
margin-bottom:10px;
}
.section-head p{
font-size:17px;
color:#6b7280;
}
.view-all{
font-weight:600;
color:var(--primary);
}
.view-all:hover{
color:var(--primary-dark);
}

/*Featured*/
.featured{
padding:80px 0;
background:#fff;
}
.featured-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}
.card{
background:#fff;
border-radius:18px;
overflow:hidden;
box-shadow:var(--shadow);
transition:.35s;
}
.card:hover{
transform:translateY(-10px);
box-shadow:var(--shadow-lg);
}
.card-image{
position:relative;
overflow:hidden;
}
.card-image img{
width:100%;
height:240px;
object-fit:cover;
transition:.4s;
}
.card:hover img{
transform:scale(1.08);
}
.badge{
position:absolute;
top:18px;
left:18px;
padding:8px 14px;
background:var(--primary);
color:#fff;
font-size:12px;
font-weight:600;
border-radius:20px;
}
.card-body{
padding:25px;
}
.card-body h3{
font-size:24px;
line-height:1.4;
margin-bottom:15px;
color:var(--dark);
}
.card-body h3 a:hover{
color:var(--primary);
}
.card-body p{
margin-bottom:20px;
color:#6b7280;
}
.card-meta{
display:flex;
justify-content:space-between;
font-size:14px;
padding-top:18px;
border-top:1px solid var(--border);
color:#6b7280;
}

/*Content*/
.content{
padding:80px 0;
}
.content-grid{
display:grid;
grid-template-columns:2fr 360px;
gap:40px;
}

/*Posts*/
.post-list{
display:grid;
gap:30px;
}
.post{
display:flex;
gap:25px;
background:#fff;
border-radius:18px;
overflow:hidden;
box-shadow:var(--shadow);
transition:.3s;
}
.post:hover{
transform:translateY(-6px);
box-shadow:var(--shadow-lg);
}
.post-thumb{
width:320px;
overflow:hidden;
}
.post-thumb img{
width:100%;
height:100%;
object-fit:cover;
transition:.4s;
}
.post:hover .post-thumb img{
transform:scale(1.08);
}
.post-body{
padding:25px;
flex:1;
display:flex;
flex-direction:column;
justify-content:center;
}
.post-body h3{
font-size:28px;
line-height:1.3;
margin-bottom:15px;
color:var(--dark);
}
.post-body h3 a:hover{
color:var(--primary);
}
.post-body p{
margin-bottom:18px;
}
.post-meta{
display:flex;
gap:25px;
font-size:14px;
color:#6b7280;
}

/*Sidebar*/
.sidebar{
display:grid;
gap:30px;
}
.widget{
background:#fff;
padding:30px;
border-radius:18px;
box-shadow:var(--shadow);
}
.widget h3{
font-size:22px;
margin-bottom:20px;
color:var(--dark);
}
.widget ul{
display:grid;
gap:15px;
}
.widget li{
display:flex;
justify-content:space-between;
padding-bottom:12px;
border-bottom:1px solid var(--border);
}
.widget li:last-child{
border:none;
padding-bottom:0;
}
.widget a:hover{
color:var(--primary);
}

/*Newsletter*/
.newsletter form{
display:grid;
gap:15px;
}
.newsletter input{
height:52px;
padding:0 18px;
border:1px solid var(--border);
border-radius:12px;
}
.newsletter button{
height:52px;
background:var(--primary);
color:#fff;
font-weight:600;
border-radius:12px;
transition:.3s;
}
.newsletter button:hover{
background:var(--primary-dark);
}
/*Footer*/
.footer{
background:var(--dark);
padding:70px 0 25px;
color:#cbd5e1;
margin-top:80px;
}
.footer-grid{
display:grid;
grid-template-columns:2fr 1fr 1fr 1fr;
gap:40px;
margin-bottom:50px;
}
.footer-logo{
font-size:32px;
font-weight:800;
margin-bottom:20px;
}
.footer p{
line-height:1.8;
}
.footer h4{
font-size:20px;
margin-bottom:20px;
color:#fff;
}
.footer ul{
display:grid;
gap:12px;
}
.footer li a:hover{
color:var(--secondary);
padding-left:6px;
}
.social{
display:flex;
gap:12px;
margin-top:20px;
}
.social a{
width:42px;
height:42px;
display:flex;
align-items:center;
justify-content:center;
background:#1f2937;
border-radius:50%;
transition:.3s;
}
.social a:hover{
background:var(--primary);
transform:translateY(-4px);
}
.footer-bottom{
padding-top:25px;
border-top:1px solid rgba(255,255,255,.08);
text-align:center;
font-size:15px;
}

/*Scroll Top*/
.scroll-top{
position:fixed;
right:25px;
bottom:25px;
width:50px;
height:50px;
display:flex;
align-items:center;
justify-content:center;
background:var(--primary);
color:#fff;
border-radius:50%;
box-shadow:var(--shadow);
opacity:0;
visibility:hidden;
transition:.3s;
z-index:999;
}
.scroll-top.show{
opacity:1;
visibility:visible;
}
.scroll-top:hover{
background:var(--primary-dark);
transform:translateY(-5px);
}

/*Animation*/
.fade-up{
opacity:0;
transform:translateY(30px);
transition:.6s;
}
.fade-up.show{
opacity:1;
transform:none;
}
.zoom{
overflow:hidden;
}
.zoom img{
transition:.4s;
}
.zoom:hover img{
transform:scale(1.08);
}

/*Responsive*/
@media(max-width:1200px){
.hero h1{font-size:54px;}
.hero-box{gap:50px;padding:50px;}
.content-grid{grid-template-columns:1fr 330px;}
.post-thumb{width:280px;}
.footer-grid{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:992px){
.header{height:auto;}
.nav{padding:15px 0;flex-wrap:wrap;gap:20px;}
.logo{order:1;}
.menu-toggle{display:block;order:2;}
.search{order:3;width:100%;max-width:500px;}
.search input{width:100%;}
.menu{
position:fixed;
top:0;
right:-320px;
width:300px;
height:100vh;
background:var(--dark);
padding:100px 30px;
display:flex;
flex-direction:column;
align-items:flex-start;
justify-content:flex-start;
gap:22px;
transition:.35s;
z-index:1200;
box-shadow:-10px 0 30px rgba(0,0,0,.25);
}
.menu.active{right:0;}
.menu a{
width:100%;
padding:14px 0;
border-bottom:1px solid rgba(255,255,255,.08);
}
.hero-box{
grid-template-columns:1fr;
text-align:center;
padding:45px;
gap:40px;
}
.hero-right{order:-1;}
.hero h1{font-size:46px;}
.hero p{margin:0 auto 35px;}
.featured-grid{grid-template-columns:repeat(2,1fr);}
.content-grid{grid-template-columns:1fr;}
.sidebar{margin-top:20px;}
.post{flex-direction:column;}
.post-thumb{
width:100%;
height:240px;
}
.section-head{
flex-direction:column;
align-items:flex-start;
}
}

@media(max-width:768px){
.hero{
padding:30px 0 60px;
}
.hero-box{
padding:30px;
}
.hero h1{
font-size:36px;
}
.hero p{
font-size:17px;
}
.hero-right img{
max-width:320px;
}
.featured{
padding:60px 0;
}
.featured-grid{
grid-template-columns:1fr;
}
.post-body h3{
font-size:24px;
}
.section-head h2{
font-size:32px;
}
.footer-grid{
grid-template-columns:1fr;
}
.btn{
width:100%;
}
}

@media(max-width:576px){
.logo{
font-size:24px;
}
.search{
height:44px;
}
.search button{
width:90px;
font-size:14px;
}
.hero h1{
font-size:30px;
line-height:1.2;
}
.hero p{
font-size:16px;
}
.hero-tag{
font-size:13px;
padding:8px 14px;
}
.section-head h2{
font-size:28px;
}
.card-body{
padding:20px;
}
.card-body h3{
font-size:22px;
}
.card-meta{
flex-direction:column;
gap:8px;
}
.post-body{
padding:20px;
}
.post-body h3{
font-size:22px;
}
.widget{
padding:22px;
}
.footer{
padding:50px 0 20px;
}
}

@media(max-width:400px){
.hero-box{
padding:20px;
}
.hero h1{
font-size:26px;
}
.logo{
font-size:22px;
}
.search input{
padding:0 12px;
}
.post-thumb{
height:200px;
}
.scroll-top{
right:15px;
bottom:15px;
width:44px;
height:44px;
}
}