:root{
--bg:#0f1724;
--card:#ffffff;
--muted:#6b7280;
--accent:#ef6c35;
--glass: rgba(255,255,255,0.06);
--max-width:1100px;
--radius:12px;
--gap:5px;
--shadow: 0 6px 20px rgba(2,6,23,0.5);
--fw-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
font-family:var(--fw-sans);
background:linear-gradient(180deg,#071027 0%, #0d1320 100%);
color:#e6eef8;
-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
line-height:1.45;
}

.container{max-width:var(--max-width);margin:0 auto;padding:24px;}

header.site-header{
position:sticky;
top:12px;
z-index:40;
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
margin-bottom:22px;
}
.nav-wrap{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
padding:10px;
border-radius:14px;
box-shadow:var(--shadow);
}
.brand{
display:flex;align-items:center;gap:12px;
text-decoration:none;color:inherit;
}
.logo{
width:46px;height:46px;border-radius:10px;
background:linear-gradient(135deg,#ffb86b 0%, #ef6c35 100%);
display:flex;align-items:center;justify-content:center;
color:#fff;font-weight:700;font-size:18px;
box-shadow:0 6px 18px rgba(239,108,53,0.25);
}
.brand h1{font-size:16px;margin:0}
nav.primary{
display:flex;gap:12px;align-items:center;
}
nav.primary a{
color:var(--muted);text-decoration:none;padding:8px 12px;border-radius:8px;font-size:14px;
}
nav.primary a:hover{color:#fff;background:var(--glass)}
/* Hamburger */
.menu-toggle{
display:none;
background:transparent;border:0;color:inherit;font-size:22px;padding:8px;border-radius:8px;
}
.hero-visual{
position:relative;border-radius:14px;overflow:hidden;height:360px;
display:flex;align-items:flex-end;
background-size:cover;background-position:center center;
}
.hero-visual::after{
content:"";
position:absolute;left:0;right:0;top:0;bottom:0;
background:linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.4));
}
/* Responsive */
@media (max-width:1000px){
.hero{grid-template-columns:1fr}
.hero-visual{height:300px}
.featured{grid-template-columns:repeat(2,1fr)}

}
@media (max-width:700px){
.container{padding:16px}
nav.primary{display:none;flex-direction:column;gap:6px;width:100%}
.menu-toggle{display:inline-block}
.nav-wrap{flex-direction:row;align-items:center}
.hero-visual{height:220px}
.featured{grid-template-columns:1fr}

}
/* Dropdown active */
.nav-open nav.primary{display:flex;position:absolute;left:16px;right:16px;top:74px;background:linear-gradient(180deg, rgba(2,6,23,0.85), rgba(2,6,23,0.95));padding:12px;border-radius:12px;box-shadow:0 18px 40px rgba(2,6,23,0.6)}
footer.site-footer{
    margin-top:28px;padding:20px;border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    box-shadow:var(--shadow);
}
.footer-row{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap}
.social a{margin-right:10px;color:var(--muted);text-decoration:none}
.fab{list-style: none;font-size: 30px; color: #fff;}
.muted{color:var(--muted)}

/* Responsive tweaks */
@media (max-width:740px){
    .controls{ width:100%; margin-top:12px; }
    .search input{ width:110px; }

}
@media (max-width:420px){
    body{ padding:16px; }
    .brand h1{ font-size:16px; }
    .thumb{ height:120px; }
}

/* helper for hidden */
.hidden{ display:none !important; }




.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.article-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-content p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.read-time {
    color: #e74c3c;
    font-weight: 600;
}

.date {
    color: #3498db;
}

.full-article {
    display: none;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.full-article.active {
    display: block;
}

.full-article h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.full-article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
    font-size: 0.95rem;
    color: #7f8c8d;
}

.full-article img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2rem 0;
}

.full-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.full-article-content h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.full-article-content p {
    margin-bottom: 1.5rem;
}

.back-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.back-button:hover {
    background: #2980b9;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav a {
        display: block;
        margin: 0.5rem 0;
    }

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

    .full-article {
        padding: 1.5rem;
    }

    .full-article h2 {
        font-size: 1.7rem;
    }

    .full-article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.95rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .full-article {
        padding: 1rem;
    }
}

.view-article {
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.view-article:hover {
    color: #2980b9;
}