:root{
    --primary:#d86185;
    --secondary:#7c3aed;
    --bg:#f4f7fb;
    --text:#222;
    --gray:#666;
    --white:#fff;
}

.tech-page{
    max-width:1400px;
    margin:40px auto;
    padding:0 20px 80px;
}

/* اخبار فوری */

.breaking-news{
    display:flex;
    align-items:center;
    gap:15px;
    background:#111827;
    color:#fff;
    padding:14px 20px;
    border-radius:16px;
    margin-bottom:30px;
    overflow:hidden;
}

.breaking-badge{
    background:var(--primary);
    padding:8px 16px;
    border-radius:30px;
    flex-shrink:0;
}

.breaking-marquee{
    overflow:hidden;
}

.breaking-marquee p{
    white-space:nowrap;
    animation:marquee 18s linear infinite;
}

@keyframes marquee{
    from{transform:translateX(100%);}
    to{transform:translateX(-100%);}
}

/* خبر ویژه */

.hero-news{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:30px;
    margin-bottom:40px;
    padding:30px;
    border-radius:30px;

    background:rgba(255,255,255,.7);
    backdrop-filter:blur(20px);

    box-shadow:0 20px 40px rgba(0,0,0,.08);
}

.hero-category{
    display:inline-block;
    margin-bottom:20px;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    padding:8px 18px;
    border-radius:30px;
}

.hero-content h1{
    font-size:3rem;
    line-height:1.4;
    margin-bottom:20px;
}

.hero-content p{
    color:var(--gray);
    line-height:2;
    margin-bottom:30px;
}

.hero-actions{
    display:flex;
    gap:15px;
}

.btn-primary,
.btn-secondary{
    text-decoration:none;
    padding:14px 24px;
    border-radius:14px;
}

.btn-primary{
    background:var(--primary);
    color:#fff;
}

.btn-secondary{
    background:#eef2ff;
    color:var(--secondary);
}

.hero-image img{
    width:100%;
    height:100%;
    min-height:380px;
    object-fit:cover;
    border-radius:24px;
}

/* جستجو و دسته‌بندی */

.top-bar{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:20px;
    margin-bottom:40px;
}

.search-box{
    display:flex;
    overflow:hidden;
    border-radius:14px;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.search-box input{
    width:300px;
    border:none;
    outline:none;
    padding:16px;
}

.search-box button{
    border:none;
    background:var(--primary);
    color:#fff;
    padding:0 24px;
}

.categories{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.categories button{
    border:none;
    background:#fff;
    padding:12px 18px;
    border-radius:30px;
    cursor:pointer;
}

.categories button.active{
    background:var(--primary);
    color:#fff;
}

/* چیدمان */

.content-layout{
    display:grid;
    grid-template-columns:300px 1fr;
    gap:30px;
}

/* سایدبار */

.widget{
    background:#fff;
    border-radius:20px;
    padding:24px;
    margin-bottom:24px;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
}

.widget h3{
    margin-bottom:20px;
}

.trending-list{
    list-style:none;
}

.trending-list li{
    padding:12px 0;
    border-bottom:1px solid #eee;
    color:var(--secondary);
}

.widget input{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
    margin-bottom:12px;
}

.widget button{
    width:100%;
    border:none;
    background:var(--primary);
    color:#fff;
    padding:14px;
    border-radius:12px;
}

/* کارت خبر */

.news-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:24px;
}

.news-card{
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    transition:.4s;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

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

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

.news-info{
    padding:24px;
}

.news-info span{
    color:var(--primary);
    font-weight:bold;
}

.news-info h3{
    margin:16px 0;
    line-height:1.7;
}

.news-info p{
    color:var(--gray);
    line-height:1.8;
}

.news-meta{
    display:flex;
    justify-content:space-between;
    margin-top:20px;
    color:#999;
}

/* موبایل */

@media(max-width:992px){

    .hero-news,
    .content-layout{
        grid-template-columns:1fr;
    }

    .hero-content h1{
        font-size:2rem;
    }
}

@media(max-width:576px){

    .search-box{
        width:100%;
    }

    .search-box input{
        width:100%;
    }

    .hero-actions{
        flex-direction:column;
    }
}