/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@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:#f7f8fc;
color:#222;
line-height:1.7;
}

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

a{
text-decoration:none;
}

.container{
width:92%;
max-width:1250px;
margin:auto;
}

/* Header */

.header{
position:sticky;
top:0;
z-index:999;
background:#fff;
box-shadow:0 8px 30px rgba(0,0,0,.08);
}

.header .container{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 0;
}

.logo{
font-size:34px;
font-weight:800;
color:#2563eb;
}

.logo span{
color:#ff6b35;
}

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

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

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

.mobile-btn{
display:none;
cursor:pointer;
font-size:30px;
}

/* Hero */

.hero{
background:linear-gradient(135deg,#2563eb,#4f46e5);
padding:110px 0;
text-align:center;
color:#fff;
}

.badge{
display:inline-block;
padding:10px 20px;
border-radius:50px;
background:rgba(255,255,255,.18);
margin-bottom:25px;
font-size:15px;
}

.hero h1{
font-size:60px;
font-weight:800;
margin-bottom:20px;
}

.hero p{
max-width:760px;
margin:0 auto 35px;
font-size:18px;
opacity:.95;
}

.hero-search{
display:flex;
max-width:720px;
margin:auto;
background:#fff;
border-radius:60px;
overflow:hidden;
box-shadow:0 15px 40px rgba(0,0,0,.15);
}

.hero-search input{
flex:1;
border:none;
outline:none;
padding:18px 22px;
font-size:16px;
}

.hero-search button{
border:none;
background:#ff6b35;
color:#fff;
padding:18px 35px;
font-weight:700;
cursor:pointer;
transition:.3s;
}

.hero-search button:hover{
background:#e85d28;
}

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

.section-title{
text-align:center;
margin-bottom:50px;
}

.section-title h2{
font-size:42px;
font-weight:800;
margin-bottom:10px;
}

.section-title p{
color:#666;
font-size:17px;
}

/* ===== Categories ===== */

.categories{
padding:90px 0;
}

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

.cat-card{
background:#fff;
padding:30px 20px;
text-align:center;
border-radius:20px;
font-size:20px;
font-weight:700;
color:#222;
box-shadow:0 15px 35px rgba(0,0,0,.08);
transition:.3s;
}

.cat-card:hover{
background:#2563eb;
color:#fff;
transform:translateY(-8px);
}

/* ===== Latest Posts ===== */

.latest-posts{
padding:90px 0;
background:#f8f9fd;
}

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

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

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

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

.post-content{
padding:25px;
}

.post-content span{
display:inline-block;
background:#2563eb;
color:#fff;
padding:6px 12px;
border-radius:30px;
font-size:13px;
margin-bottom:15px;
}

.post-content h3{
font-size:24px;
margin-bottom:15px;
}

.post-content p{
color:#666;
margin-bottom:20px;
}

.post-content a{
font-weight:700;
color:#2563eb;
}

/* ===== About ===== */

.about-home{
padding:90px 0;
background:#fff;
}

.about-home h2{
text-align:center;
font-size:42px;
margin-bottom:30px;
}

.about-home p{
max-width:900px;
margin:auto;
font-size:18px;
line-height:2;
text-align:center;
color:#555;
}

/* ===== Footer ===== */

.footer{
background:#111827;
color:#fff;
padding:60px 0;
margin-top:50px;
text-align:center;
}

.footer-links{
margin-bottom:20px;
}

.footer-links a{
color:#fff;
margin:0 12px;
}

.footer-links a:hover{
color:#ff6b35;
}

/* ===== Mobile ===== */

@media(max-width:992px){

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

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

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

}

@media(max-width:768px){

.menu{
display:none;
}

.mobile-btn{
display:block;
}

.hero{
padding:70px 20px;
}

.hero-search{
flex-direction:column;
border-radius:18px;
}

.hero-search button{
width:100%;
}

.category-grid{
grid-template-columns:1fr 1fr;
gap:15px;
}

.cat-card{
font-size:16px;
padding:20px;
}

.section-title h2{
font-size:30px;
}

.about-home h2{
font-size:30px;
}

.about-home p{
font-size:16px;
}

.logo{
font-size:28px;
}

}