*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Segoe UI,Arial,sans-serif;
background:#f4f6f8;
color:#222;
line-height:1.7;
}

.container{
max-width:1200px;
margin:auto;
}

header{
background:#0f172a;
color:white;
padding:20px;
}

.header-top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:15px;
}

.logo{
font-size:32px;
font-weight:bold;
}

.logo span{
color:#38bdf8;
}

.search-box input{
padding:10px;
width:250px;
border:none;
border-radius:5px;
}

nav a{
color:#cbd5e1;
text-decoration:none;
margin-right:20px;
}

.hero{
max-width:1200px;
margin:30px auto;
}

.hero img{
width:100%;
height:400px;
object-fit:cover;
border-radius:10px;
}

.page-layout{
max-width:1200px;
margin:auto;
display:flex;
gap:30px;
padding:20px;
}

.content{
flex:3;
background:white;
padding:40px;
border-radius:10px;
box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.sidebar{
flex:1;
}

.widget{
background:white;
padding:20px;
margin-bottom:20px;
border-radius:10px;
box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.widget ul{
list-style:none;
margin-top:10px;
}

.widget li{
margin-bottom:10px;
}

.widget a{
text-decoration:none;
color:#0369a1;
}

.category{
color:#0284c7;
font-weight:bold;
margin-bottom:10px;
}

h1{
font-size:42px;
margin-bottom:20px;
}

.meta{
color:#64748b;
margin-bottom:25px;
}

h2{
margin-top:30px;
margin-bottom:10px;
}

p{
margin-bottom:15px;
}

ul{
margin-left:20px;
margin-bottom:20px;
}

.note{
background:#e0f2fe;
padding:15px;
border-left:5px solid #0284c7;
margin:20px 0;
}

.related{
margin-top:40px;
}

.related ul{
margin-top:10px;
}

.author{
margin-top:40px;
padding-top:25px;
border-top:1px solid #ddd;
}

.author-card{
display:flex;
gap:20px;
align-items:center;
}

.author-card img{
width:90px;
height:90px;
border-radius:50%;
object-fit:cover;
}

.comments{
margin-top:40px;
}

.comment{
padding:15px;
margin-top:15px;
background:#f8fafc;
border-radius:8px;
}

footer{
margin-top:50px;
padding:40px;
background:#0f172a;
color:white;
text-align:center;
}

.footer-links{
margin-bottom:15px;
}

.footer-links a{
color:#cbd5e1;
text-decoration:none;
margin:0 10px;
}

@media(max-width:900px){

.page-layout{
flex-direction:column;
}

.search-box{
display:none;
}

h1{
font-size:30px;
}

.hero img{
height:250px;
}

.code-section{
margin:25px 0;
border-radius:10px;
overflow:hidden;
box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.code-header{
background:#1e293b;
color:white;
padding:12px 18px;
display:flex;
justify-content:space-between;
align-items:center;
font-size:14px;
font-weight:bold;
}

.code-header button{
background:#0284c7;
border:none;
color:white;
padding:8px 14px;
border-radius:5px;
cursor:pointer;
}

.code-header button:hover{
background:#0369a1;
}

.code-section pre{
margin:0;
padding:20px;
background:#0f172a;
color:#e2e8f0;
overflow-x:auto;
font-family:Consolas,Monaco,monospace;
font-size:14px;
line-height:1.5;
}

}