/* ===========================
   RESET
=========================== */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Inter",sans-serif;

    background:#0b1220;

    color:#f5f5f5;

    line-height:1.7;

}

img{

    width:100%;

    display:block;

}

a{

    text-decoration:none;

    color:inherit;

}

.container{

    width:min(1280px,92%);

    margin:auto;

}

/* ===========================
   NAVBAR
=========================== */

.navbar{

    position:sticky;

    top:0;

    z-index:999;

    background:#111827;

    border-bottom:1px solid #1f2937;

}

.navbar .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:75px;

}

.logo{

    font-size:28px;

    font-weight:800;

    letter-spacing:1px;

}

.logo span{

    color:#3b82f6;

}

nav{

    display:flex;

    gap:25px;

}

nav a{

    color:#d1d5db;

    font-weight:500;

    transition:.3s;

}

nav a:hover{

    color:white;

}

.actions{

    display:flex;

    gap:10px;

    align-items:center;

}

#searchBox{

    width:220px;

    height:42px;

    border:none;

    border-radius:8px;

    padding:0 15px;

    background:#1f2937;

    color:white;

}

#themeButton{

    width:42px;

    height:42px;

    border:none;

    border-radius:8px;

    background:#2563eb;

    color:white;

    cursor:pointer;

}

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

.hero{

    margin:35px 0;

}

.hero-card{

    display:grid;

    grid-template-columns:1.2fr 1fr;

    gap:35px;

    background:#111827;

    border-radius:18px;

    overflow:hidden;

    border:1px solid #1f2937;

}

.hero-card img{

    height:500px;

    object-fit:cover;

}

.hero-content{

    padding:45px;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.category{

    display:inline-block;

    width:max-content;

    padding:8px 18px;

    border-radius:999px;

    background:#2563eb;

    color:#fff;

    font-size:14px;

    font-weight:700;

    margin-bottom:18px;

    text-transform:uppercase;

}

.hero-content h1{

    font-size:42px;

    line-height:1.2;

    margin-bottom:22px;

    font-weight:800;

}

.hero-content p{

    color:#cbd5e1;

    font-size:18px;

    margin-bottom:30px;

}

.read-button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    width:220px;

    height:54px;

    border-radius:10px;

    background:#2563eb;

    color:#fff;

    font-weight:700;

    transition:.25s;

}

.read-button:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

/* ===========================
   NEWS GRID
=========================== */

.latest,

.trending{

    margin:70px 0;

}

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:28px;

}

.section-title h2{

    font-size:34px;

    font-weight:800;

}

.news-grid{

    display:grid;

    grid-template-columns:

    repeat(

        auto-fit,

        minmax(320px,1fr)

    );

    gap:28px;

}

.news-card{

    background:#111827;

    border-radius:16px;

    overflow:hidden;

    border:1px solid #1f2937;

    cursor:pointer;

    transition:.25s;

}

.news-card:hover{

    transform:translateY(-6px);

}

.news-card img{

    height:220px;

    object-fit:cover;

}

.news-content{

    padding:22px;

}

.news-category{

    color:#60a5fa;

    font-weight:700;

    margin-bottom:12px;

}

.news-title{

    font-size:22px;

    line-height:1.4;

    margin-bottom:14px;

    font-weight:700;

}

.news-summary{

    color:#cbd5e1;

    margin-bottom:20px;

}

.news-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    color:#9ca3af;

    font-size:14px;

}

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

footer{

    margin-top:80px;

    border-top:1px solid #1f2937;

    background:#111827;

}

footer .container{

    height:90px;

    display:flex;

    justify-content:center;

    align-items:center;

}

footer p{

    color:#9ca3af;

    font-size:15px;

}

/* ===========================
   LIGHT MODE
=========================== */

body.light{

    background:#f5f7fb;

    color:#111827;

}

body.light .navbar,

body.light .hero-card,

body.light .news-card,

body.light footer{

    background:#ffffff;

    border-color:#e5e7eb;

}

body.light nav a{

    color:#374151;

}

body.light .news-summary,

body.light .hero-content p,

body.light footer p{

    color:#6b7280;

}

body.light #searchBox{

    background:#f3f4f6;

    color:#111827;

    border:1px solid #d1d5db;

}

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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#0b1220;

}

::-webkit-scrollbar-thumb{

    background:#2563eb;

    border-radius:20px;

}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:1100px){

.hero-card{

grid-template-columns:1fr;

}

.hero-card img{

height:420px;

}

.hero-content{

padding:30px;

}

.hero-content h1{

font-size:34px;

}

}

@media(max-width:900px){

nav{

display:none;

}

#searchBox{

width:160px;

}

.news-grid{

grid-template-columns:1fr 1fr;

}

}

@media(max-width:650px){

.news-grid{

grid-template-columns:1fr;

}

.hero-card img{

height:260px;

}

.hero-content h1{

font-size:28px;

}

.hero-content p{

font-size:16px;

}

#searchBox{

display:none;

}

.logo{

font-size:22px;

}

.section-title h2{

font-size:26px;

}

.read-button{

width:100%;

}

}
