/*==========================
    GOOGLE FONT
==========================*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

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

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Vazirmatn',sans-serif;
    background:#f5f7fb;
    color:#222;
    line-height:1.8;
}

img{
    width:100%;
    display:block;
}

a{
    text-decoration:none;
}

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

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

.hero{

    height:70vh;

    background:
    linear-gradient(rgba(0,60,120,.70),
    rgba(0,60,120,.70)),
    url("../images/news/hero.jpg");

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    color:white;

    position:relative;
}

.hero-content{

    z-index:2;

}

.hero-badge{

    display:inline-block;

    padding:10px 22px;

    background:rgba(255,255,255,.15);

    backdrop-filter:blur(12px);

    border-radius:30px;

    margin-bottom:25px;

    letter-spacing:2px;

}

.hero h1{

    font-size:58px;

    margin-bottom:20px;

    font-weight:800;

}

.hero p{

    font-size:20px;

    opacity:.9;

}

/*==========================
SEARCH
==========================*/

.search-section{

    margin-top:-45px;

    position:relative;

    z-index:10;

}

.search-box{

    background:white;

    border-radius:60px;

    padding:15px;

    box-shadow:0 15px 45px rgba(0,0,0,.08);

}

.search-box input{

    width:100%;

    border:none;

    outline:none;

    font-size:17px;

    padding:10px 20px;

    background:transparent;

}

/*==========================
CATEGORY
==========================*/

.category-section{

    padding:60px 0 20px;

}

.categories{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

}

.categories button{

    border:none;

    padding:12px 24px;

    border-radius:40px;

    background:white;

    cursor:pointer;

    transition:.35s;

    font-size:15px;

    font-weight:600;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}

.categories button:hover{

    transform:translateY(-4px);

}

.categories button.active{

    background:#0056b3;

    color:white;

}

/*==========================
FEATURED
==========================*/

.featured{

    padding:60px 0;

}

.featured-card{

    background:white;

    border-radius:25px;

    overflow:hidden;

    display:grid;

    grid-template-columns:1fr 1fr;

    box-shadow:0 25px 60px rgba(0,0,0,.08);

}

.featured-image{

    overflow:hidden;

}

.featured-image img{

    height:100%;

    object-fit:cover;

    transition:.6s;

}

.featured-card:hover img{

    transform:scale(1.08);

}

.featured-content{

    padding:55px;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.featured-content span{

    color:#0d6efd;

    font-weight:700;

}

.featured-content h2{

    font-size:34px;

    margin:18px 0;

}

.featured-content p{

    color:#666;

    margin-bottom:35px;

}

.featured-content a{

    width:170px;

    text-align:center;

    padding:15px;

    border-radius:40px;

    background:#0056b3;

    color:white;

    transition:.3s;

}

.featured-content a:hover{

    background:#003d82;

}

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

.news-section{

    padding:40px 0 90px;

}

.news-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(340px,1fr));

    gap:35px;

}

.news-card{

    background:white;

    border-radius:22px;

    overflow:hidden;

    transition:.4s;

    box-shadow:0 15px 45px rgba(0,0,0,.05);

}

.news-card:hover{

    transform:translateY(-12px);

    box-shadow:0 30px 60px rgba(0,0,0,.12);

}

.news-image{

    overflow:hidden;

}

.news-image img{

    height:240px;

    object-fit:cover;

    transition:.6s;

}

.news-card:hover img{

    transform:scale(1.08);

}

.news-body{

    padding:28px;

}

.tag{

    display:inline-block;

    background:#eaf2ff;

    color:#0056b3;

    padding:8px 16px;

    border-radius:30px;

    font-size:13px;

    margin-bottom:15px;

}

.news-body h3{

    margin-bottom:15px;

    font-size:24px;

}

.news-body p{

    color:#666;

    margin-bottom:25px;

}

.news-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.news-footer a{

    color:#0056b3;

    font-weight:700;

}

/*====================================
    LOAD MORE BUTTON
=====================================*/

.load-more{

    text-align:center;

    padding-bottom:100px;

}

#loadMore{

    background:#0056b3;
    color:#fff;

    border:none;

    padding:16px 45px;

    border-radius:50px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

    box-shadow:0 15px 35px rgba(0,86,179,.25);

}

#loadMore:hover{

    transform:translateY(-5px);

    background:#00428c;

    box-shadow:0 25px 45px rgba(0,86,179,.35);

}


/*====================================
        CARD ANIMATION
=====================================*/

.news-card{

    opacity:0;

    transform:translateY(60px);

    transition:
    opacity .8s ease,
    transform .8s ease,
    box-shadow .3s ease;

}

.news-card.show{

    opacity:1;

    transform:translateY(0);

}


/*====================================
            IMAGE OVERLAY
=====================================*/

.news-image{

    position:relative;

}

.news-image::after{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(

    rgba(0,0,0,0),

    rgba(0,0,0,.18)

    );

    opacity:0;

    transition:.4s;

}

.news-card:hover .news-image::after{

    opacity:1;

}


/*====================================
            NEWS TITLE
=====================================*/

.news-body h3{

    transition:.35s;

}

.news-card:hover h3{

    color:#0056b3;

}


/*====================================
            LINKS
=====================================*/

.news-footer a{

    position:relative;

}

.news-footer a::after{

    content:"";

    position:absolute;

    right:0;

    bottom:-4px;

    width:0;

    height:2px;

    background:#0056b3;

    transition:.35s;

}

.news-card:hover .news-footer a::after{

    width:100%;

}


/*====================================
            TAG
=====================================*/

.tag{

    transition:.3s;

}

.news-card:hover .tag{

    background:#0056b3;

    color:#fff;

}


/*====================================
        GLASS EFFECT
=====================================*/

.featured-card{

    backdrop-filter:blur(12px);

}

.search-box{

    backdrop-filter:blur(16px);

}


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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#eef3f9;

}

::-webkit-scrollbar-thumb{

    background:#0d6efd;

    border-radius:30px;

}

::-webkit-scrollbar-thumb:hover{

    background:#004fa5;

}


/*====================================
        SECTION TITLE
=====================================*/

.section-title{

    text-align:center;

    margin-bottom:50px;

}

.section-title span{

    color:#0d6efd;

    font-weight:700;

    letter-spacing:1px;

}

.section-title h2{

    margin-top:10px;

    font-size:40px;

}

.section-title p{

    color:#777;

    margin-top:15px;

}


/*====================================
        CARD SHINE EFFECT
=====================================*/

.news-card{

    position:relative;

}

.news-card::before{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:60%;

    height:100%;

    background:

    linear-gradient(

        120deg,

        transparent,

        rgba(255,255,255,.55),

        transparent

    );

    transition:.8s;

}

.news-card:hover::before{

    left:150%;

}


/*====================================
        FEATURED SHADOW
=====================================*/

.featured-card{

    transition:.4s;

}

.featured-card:hover{

    transform:translateY(-8px);

    box-shadow:

    0 35px 80px rgba(0,0,0,.12);

}


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

.hero h1{

    text-shadow:

    0 8px 30px rgba(0,0,0,.35);

}

.hero p{

    max-width:700px;

    margin:auto;

}


/*====================================
        CATEGORY HOVER
=====================================*/

.categories button{

    position:relative;

    overflow:hidden;

}

.categories button::before{

    content:"";

    position:absolute;

    left:-100%;

    top:0;

    width:100%;

    height:100%;

    background:

    rgba(255,255,255,.18);

    transition:.45s;

}

.categories button:hover::before{

    left:100%;

}


/*====================================
        INPUT
=====================================*/

.search-box input::placeholder{

    color:#999;

}

.search-box:focus-within{

    box-shadow:

    0 20px 45px rgba(13,110,253,.18);

}


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

@media(max-width:1100px){

.featured-card{

grid-template-columns:1fr;

}

.featured-image img{

height:350px;

}

.hero h1{

font-size:48px;

}

}


@media(max-width:768px){

.hero{

height:55vh;

padding:30px;

}

.hero h1{

font-size:36px;

}

.hero p{

font-size:16px;

}

.news-grid{

grid-template-columns:1fr;

}

.featured-content{

padding:35px;

}

.news-body{

padding:22px;

}

.news-body h3{

font-size:22px;

}

.categories{

gap:10px;

}

.categories button{

padding:10px 18px;

font-size:14px;

}

}


@media(max-width:500px){

.hero{

height:48vh;

}

.hero h1{

font-size:30px;

}

.hero-badge{

font-size:13px;

}

.search-box{

padding:12px;

}

.news-image img{

height:220px;

}

.featured-content h2{

font-size:28px;

}

.featured-content a{

width:100%;

}

#loadMore{

width:100%;

}

}


/*=================================================
                ROOT VARIABLES
=================================================*/

:root{

    --primary:#0056b3;
    --secondary:#0d6efd;
    --bg:#f5f7fb;
    --text:#1f2937;
    --gray:#6b7280;
    --radius:22px;

}


/*=================================================
            DATE BADGE
=================================================*/

.news-image{

    position:relative;

}

.news-date{

    position:absolute;

    top:18px;

    left:18px;

    background:white;

    color:var(--primary);

    border-radius:16px;

    padding:10px 15px;

    text-align:center;

    box-shadow:0 12px 25px rgba(0,0,0,.12);

}

.news-date strong{

    display:block;

    font-size:22px;

    line-height:1;

}

.news-date span{

    font-size:13px;

}


/*=================================================
            FEATURED BADGE
=================================================*/

.featured-image{

    position:relative;

}

.featured-image::before{

    content:"★ خبر ویژه";

    position:absolute;

    top:20px;

    right:20px;

    background:#ffb703;

    color:#fff;

    padding:10px 20px;

    border-radius:30px;

    z-index:5;

    font-weight:700;

}


/*=================================================
            IMAGE ZOOM
=================================================*/

.news-image img{

    transition:
    transform .8s ease,
    filter .5s ease;

}

.news-card:hover img{

    transform:scale(1.12);

    filter:brightness(.92);

}


/*=================================================
                BUTTON
=================================================*/

.featured-content a{

    position:relative;

    overflow:hidden;

}

.featured-content a::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(90deg,
    transparent,
    rgba(255,255,255,.35),
    transparent);

    left:-100%;

}

.featured-content a:hover::before{

    animation:shine .8s;

}

@keyframes shine{

0%{left:-100%;}

100%{left:150%;}

}


/*=================================================
            NEWS HOVER BORDER
=================================================*/

.news-card{

    border:1px solid transparent;

}

.news-card:hover{

    border-color:#dbe8ff;

}


/*=================================================
        FLOAT ANIMATION
=================================================*/

.featured-card{

    animation:floating 5s ease-in-out infinite;

}

@keyframes floating{

0%,100%{

transform:translateY(0);

}

50%{

transform:translateY(-8px);

}

}


/*=================================================
        HERO SCROLL INDICATOR
=================================================*/

.scroll-down{

    position:absolute;

    bottom:30px;

    left:50%;

    transform:translateX(-50%);

}

.scroll-down span{

    display:block;

    width:24px;

    height:40px;

    border:2px solid #fff;

    border-radius:30px;

    position:relative;

}

.scroll-down span::before{

    content:"";

    position:absolute;

    width:5px;

    height:10px;

    background:#fff;

    border-radius:10px;

    left:50%;

    transform:translateX(-50%);

    animation:wheel 1.5s infinite;

}

@keyframes wheel{

0%{

top:6px;

opacity:1;

}

100%{

top:22px;

opacity:0;

}

}


/*=================================================
        SKELETON LOADING
=================================================*/

.skeleton{

    position:relative;

    overflow:hidden;

    background:#eceff4;

}

.skeleton::after{

content:"";

position:absolute;

top:0;

left:-150px;

height:100%;

width:150px;

background:

linear-gradient(

90deg,

transparent,

rgba(255,255,255,.7),

transparent

);

animation:skeleton 1.2s infinite;

}

@keyframes skeleton{

100%{

left:120%;

}

}


/*=================================================
        NEWS DESCRIPTION
=================================================*/

.news-body p{

display:-webkit-box;

-webkit-line-clamp:3;

-webkit-box-orient:vertical;

overflow:hidden;

}


/*=================================================
        FEATURED TITLE
=================================================*/

.featured-content h2{

transition:.35s;

}

.featured-card:hover h2{

color:var(--primary);

}


/*=================================================
        CARD BACKGROUND
=================================================*/

.news-card{

background:

linear-gradient(

180deg,

#ffffff,

#fbfcff

);

}


/*=================================================
        IMAGE RADIUS
=================================================*/

.news-image img{

border-radius:0;

}


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

.news-footer small{

color:#888;

font-size:14px;

}


/*=================================================
        SELECTION
=================================================*/

::selection{

background:var(--secondary);

color:#fff;

}


/*=================================================
        REMOVE TAP COLOR
=================================================*/

button,
a{

-webkit-tap-highlight-color:transparent;

}


/*=================================================
        SMOOTH APPEAR
=================================================*/

.fade-up{

opacity:0;

transform:translateY(40px);

transition:.8s;

}

.fade-up.active{

opacity:1;

transform:none;

}