*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
    width:100%;
    overflow-x:clip;
}

body{
    font-family:'Inter',sans-serif;
    background:#faf6ef;
    color:#111827;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
        linear-gradient(to top, rgba(250,246,239,1), rgba(250,246,239,.75)),
        url('../images/bg.jpg') center/cover no-repeat;
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(255,255,255,.25);
    backdrop-filter:blur(3px);
    z-index:-1;
}

header{
    padding:28px 24px;
    border-bottom:1px solid rgba(255,255,255,.5);
    backdrop-filter:blur(10px);
    position:sticky;
    top:0;
    background:rgba(250,246,239,.8);
    z-index:10;
}

.nav{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.logo{
    font-size:1.8rem;
    font-weight:800;
}

.logo span{
    color:#ef4444;
}

nav a{
    text-decoration:none;
    color:#111827;
    font-weight:600;
    margin:0 10px;
}

.hero{
    max-width:1200px;
    margin:40px auto;
    padding:40px 24px;
    text-align:center;
}

.breaking{
    max-width:1200px;
    margin:auto;
    padding:0 24px 35px;
}

.breaking-banner{
    position:relative;
    display:flex;
    align-items:center;
    gap:18px;

    background:
        linear-gradient(135deg,#dc2626,#ef4444,#f97316);

    color:white;
    padding:22px 28px;
    border-radius:24px;

    box-shadow:
        0 18px 45px rgba(239,68,68,.28),
        inset 0 1px 0 rgba(255,255,255,.18);

    overflow:hidden;
}

.breaking-banner::before{
    content:"";
    position:absolute;
    top:0;
    left:-150px;
    width:120px;
    height:100%;
    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.25),
        transparent
    );
    transform:skewX(-20deg);
    animation:shine 4s infinite linear;
}

.breaking-banner .badge{
    background:rgba(0,0,0,.18);
    border:1px solid rgba(255,255,255,.15);
    padding:10px 18px;
    border-radius:999px;
    font-weight:800;
    font-size:.85rem;
    letter-spacing:.08em;
    white-space:nowrap;
    backdrop-filter:blur(6px);
}

.breaking-banner div:last-child{
    font-size:1rem;
    font-weight:600;
    line-height:1.5;
}

@keyframes shine{
    from{
        left:-150px;
    }
    to{
        left:130%;
    }
}

@media(max-width:900px){
    .breaking-banner{
        flex-direction:column;
        text-align:center;
        padding:20px;
        gap:14px;
    }

    .breaking-banner .badge{
        width:100%;
        text-align:center;
    }
}
.search{
    max-width:1200px;
    margin:auto;
    padding:0 24px 20px;
}

.search input{
    width:100%;
    padding:18px;
    border:none;
    border-radius:18px;
    font-size:1rem;
}

.news-grid{
    max-width:1200px;
    margin:auto;
    padding:0 24px 60px;
    display:grid;
    gap:22px;
}

.card{
    display:flex;
    gap:22px;
    background:white;
    border-radius:24px;
    padding:18px;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
}

.card-image{
    width:320px;
    min-width:320px;
    height:200px;
    overflow:hidden;
    border-radius:18px;
}

.card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.read-more{
    color:#ef4444;
    font-weight:800;
    text-decoration:none;
    cursor:pointer;
}

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    z-index:9999;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.modal-content{
    background:white;
    width:100%;
    max-width:850px;
    max-height:85vh;
    overflow-y:auto;
    padding:30px;
    border-radius:24px;
    position:relative;
}

.modal-close{
    position:absolute;
    top:16px;
    right:18px;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#ef4444;
    color:white;
    font-size:1.4rem;
    cursor:pointer;
}

.modal-image{
    width:100%;
    height:320px;
    object-fit:cover;
    border-radius:18px;
    margin:20px 0;
}

@media(max-width:900px){
    .card{
        flex-direction:column;
    }

    .card-image{
        width:100%;
        min-width:100%;
    }

    .nav{
        flex-direction:column;
        gap:15px;
        text-align:center;
    }

    nav{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:10px;
    }

    .hero{
        padding:30px 20px;
    }
}