/*==================================================
NEWS PAGE
TKJ SMKN 8 BATAM
==================================================*/


/*==================================================
1. NEWS HERO
==================================================*/

.news-hero{

    padding:40px 0 25px;

    text-align:center;

}

.news-hero .container{

    width:90%;

    max-width:1100px;

    margin:0 auto;

}


/* BACK HOME */

.news-hero .back-home{

    display:inline-flex;

    align-items:center;

    gap:8px;

    margin-bottom:16px;

    color:var(--accent);

    text-decoration:none;

    font-size:14px;

    font-weight:600;

    transition:.3s ease;

}

.news-hero .back-home:hover{

    transform:translateX(-5px);

}


/* LABEL */

.news-hero .hero-label{

    display:block;

    margin-bottom:10px;

    color:var(--accent);

    font-size:14px;

    font-weight:700;

    letter-spacing:.8px;

}


/* TITLE */

.news-hero h1{

    margin:0 0 20px;

    color:#fff;

    font-size:56px;

    line-height:1.15;

}


/* DESCRIPTION */

.news-hero p{

    max-width:760px;

    margin:0 auto;

    color:var(--text2);

    font-size:16px;

    line-height:1.8;

}


/*==================================================
2. SEARCH
==================================================*/

.news-search{

    position:relative;

    width:100%;

    max-width:620px;

    margin:18px auto;

}

.news-search i{

    position:absolute;

    left:22px;

    top:50%;

    transform:translateY(-50%);

    color:var(--accent);

    font-size:18px;

    pointer-events:none;

}

.news-search input{

    display:block;

    box-sizing:border-box;

    width:100%;

    height:58px;

    padding:0 25px 0 55px;

    border:1px solid rgba(255,255,255,.09);

    border-radius:999px;

    outline:none;

    background:rgba(255,255,255,.055);

    color:#fff;

    font-family:inherit;

    font-size:15px;

    transition:.3s ease;

}

.news-search input::placeholder{

    color:#94a3b8;

}

.news-search input:focus{

    border-color:var(--accent);

    background:rgba(255,255,255,.08);

    box-shadow:

        0 0 0 3px rgba(82,255,168,.07),

        0 10px 30px rgba(0,0,0,.18);

}


/*==================================================
3. NEWS FILTER
==================================================*/

.news-filter{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:12px;

}

.news-filter button{

    height:44px;

    padding:0 22px;

    border:1px solid rgba(255,255,255,.09);

    border-radius:999px;

    outline:none;

    background:rgba(255,255,255,.05);

    color:#fff;

    font-family:inherit;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:.3s ease;

}

.news-filter button:hover{

    transform:translateY(-3px);

    border-color:var(--accent);

    background:rgba(255,255,255,.08);

}

.news-filter button.active{

    border-color:transparent;

    background:

        linear-gradient(

            135deg,

            var(--accent),

            var(--accent2)

        );

    color:#fff;

    box-shadow:

        0 10px 25px rgba(82,255,168,.20);

}


/*==================================================
4. FEATURED NEWS
==================================================*/

.featured-news{

    padding:10px 0 50px;

}

.featured-news .container{

    width:90%;

    max-width:1100px;

    margin:auto;

}

.featured-card{

    display:grid;

    grid-template-columns:1.15fr 1fr;

    gap:30px;

    align-items:center;

}


/* FEATURED IMAGE */

.featured-image{

    position:relative;

    overflow:hidden;

    min-height:390px;

    border-radius:28px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

}

.featured-image img{

    display:block;

    width:100%;

    height:470px;

    object-fit:cover;

    transition:.6s ease;

}

.featured-card:hover .featured-image img{

    transform:scale(1.05);

}


/* FEATURED BADGE */

.featured-badge{

    position:absolute;

    top:22px;

    left:22px;

    z-index:2;

    padding:9px 18px;

    border-radius:999px;

    background:

        linear-gradient(

            135deg,

            var(--accent),

            var(--accent2)

        );

    color:#fff;

    font-size:13px;

    font-weight:700;

    box-shadow:0 10px 25px rgba(0,0,0,.20);

}


/* FEATURED CONTENT */

.featured-content{

    padding:10px 0;

}

.featured-date{

    display:inline-flex;

    align-items:center;

    gap:8px;

    color:var(--accent);

    font-size:14px;

    font-weight:600;

}

.featured-content h2{

    margin:18px 0 22px;

    color:#fff;

    font-size:46px;

    line-height:1.18;

}

.featured-content p{

    margin:0 0 32px;

    color:var(--text2);

    font-size:16px;

    line-height:1.9;

}


/* FEATURED BUTTON */

.featured-content .btn-primary{

    display:inline-flex;

    align-items:center;

    gap:8px;

}


/*==================================================
5. NEWS LIST
==================================================*/

.news-list{

    padding: 0;

}

.news-list .container{

    width:90%;

    max-width:1100px;

    margin:auto;

}


/*==================================================
6. SECTION TITLE
==================================================*/

.news-list .section-title{

    text-align:center;

    margin-bottom:28px;

}

.news-list .section-title span{

    display:block;

    margin-bottom:12px;

    color:var(--accent);

    font-size:14px;

    font-weight:700;

    letter-spacing:.8px;

}

.news-list .section-title h2{

    margin:0 0 18px;

    color:#fff;

    font-size:46px;

    line-height:1.2;

}

.news-list .section-title p{

    max-width:720px;

    margin:auto;

    color:var(--text2);

    font-size:15px;

    line-height:1.8;

}


/*==================================================
7. NEWS GRID
==================================================*/

.news-page-grid{

    display:grid;

    grid-template-columns:

        repeat(3,minmax(0,1fr));

    gap:28px;

}


/*==================================================
8. NEWS CARD
==================================================*/

.news-card{

    display:flex;

    flex-direction:column;

    min-width:0;

    overflow:hidden;

    border-radius:22px;

    background:rgba(255,255,255,.045);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(12px);

    transition:.4s ease;

}

.news-card:hover{

    transform:translateY(-8px);

    border-color:rgba(79,209,197,.35);

    box-shadow:

        0 20px 50px rgba(0,0,0,.30);

}


/*==================================================
9. NEWS IMAGE
==================================================*/

.news-image{

    position:relative;

    overflow:hidden;

    height:230px;

    background:#102a31;

}

.news-image img{

    display:block;

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.6s ease;

}

.news-card:hover .news-image img{

    transform:scale(1.07);

}


/* CATEGORY */

.news-category{

    position:absolute;

    top:16px;

    right:16px;

    z-index:2;

    padding:8px 16px;

    border-radius:999px;

    background:

        linear-gradient(

            135deg,

            var(--accent),

            var(--accent2)

        );

    color:#fff;

    font-size:11px;

    font-weight:700;

    box-shadow:

        0 8px 20px rgba(0,0,0,.20);

}


/*==================================================
10. NEWS CONTENT
==================================================*/

.news-content{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:25px;

}

.news-date{

    display:flex;

    align-items:center;

    gap:7px;

    color:var(--accent);

    font-size:12px;

    font-weight:600;

}

.news-content h3{

    margin:16px 0 14px;

    color:#fff;

    font-size:23px;

    line-height:1.3;

}

.news-content p{

    margin:0 0 25px;

    color:var(--text2);

    font-size:14px;

    line-height:1.8;

}

.news-content a{

    display:inline-flex;

    align-items:center;

    gap:8px;

    margin-top:auto;

    color:#fff;

    text-decoration:none;

    font-size:13px;

    font-weight:600;

    transition:.3s ease;

}

.news-content a:hover{

    gap:13px;

    color:var(--accent);

}


/*==================================================
11. PAGINATION
==================================================*/

.news-pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:9px;

    margin-top:55px;

}

.news-pagination a{

    display:flex;

    justify-content:center;

    align-items:center;

    min-width:42px;

    height:42px;

    padding:0 12px;

    border:1px solid rgba(255,255,255,.08);

    border-radius:12px;

    background:rgba(255,255,255,.04);

    color:#fff;

    text-decoration:none;

    font-size:14px;

    font-weight:600;

    transition:.3s ease;

}

.news-pagination a:hover{

    border-color:var(--accent);

    color:var(--accent);

    transform:translateY(-3px);

}

.news-pagination a.active{

    border-color:transparent;

    background:

        linear-gradient(

            135deg,

            var(--accent),

            var(--accent2)

        );

    color:#fff;

}


/*==================================================
12. NEWSLETTER
==================================================*/

.newsletter{

    padding:25px 0 35px;

}

.newsletter .container{

    width:90%;

    max-width:1100px;

    margin:auto;

}

.newsletter-box{

    position:relative;

    display:grid;

    grid-template-columns:1fr auto;

    align-items:center;

    gap:50px;

    overflow:hidden;

    padding:40px;

    border-radius:28px;

    background:

        linear-gradient(

            135deg,

            rgba(79,209,197,.12),

            rgba(140,184,204,.08)

        );

    border:1px solid rgba(255,255,255,.08);

}

.newsletter-box::before{

    content:"";

    position:absolute;

    width:420px;

    height:420px;

    right:-170px;

    top:-180px;

    border-radius:50%;

    background:rgba(79,209,197,.09);

    filter:blur(90px);

    pointer-events:none;

}


/* NEWSLETTER TEXT */

.newsletter-text{

    position:relative;

    z-index:2;

}

.newsletter-text span{

    color:var(--accent);

    font-size:13px;

    font-weight:700;

    letter-spacing:1px;

}

.newsletter-text h2{

    margin:16px 0;

    color:#fff;

    font-size:44px;

    line-height:1.2;

}

.newsletter-text p{

    max-width:600px;

    margin:0;

    color:var(--text2);

    font-size:14px;

    line-height:1.8;

}


/* NEWSLETTER FORM */

.newsletter-form{

    position:relative;

    z-index:2;

    display:flex;

    align-items:center;

    gap:12px;

}

.newsletter-form input{

    width:280px;

    height:52px;

    padding:0 22px;

    box-sizing:border-box;

    border:1px solid rgba(255,255,255,.08);

    border-radius:999px;

    outline:none;

    background:rgba(255,255,255,.07);

    color:#fff;

    font-family:inherit;

}

.newsletter-form input::placeholder{

    color:rgba(255,255,255,.50);

}

.newsletter-form input:focus{

    border-color:var(--accent);

}

.newsletter-form button{

    height:52px;

    padding:0 27px;

    border:none;

    border-radius:999px;

    background:

        linear-gradient(

            135deg,

            var(--accent),

            var(--accent2)

        );

    color:#fff;

    font-family:inherit;

    font-weight:700;

    cursor:pointer;

    transition:.35s ease;

}

.newsletter-form button:hover{

    transform:translateY(-3px);

    box-shadow:

        0 15px 30px rgba(79,209,197,.25);

}


/*==================================================
13. ARTICLE CONTENT
==================================================*/

.article-content{

    padding:30px 0;

}

.article-content .container{

    width:90%;

    max-width:1100px;

    margin:auto;

}

.article-body{

    max-width:900px;

    margin:auto;

}

.article-body .lead{

    margin-bottom:25px;

    color:#fff;

    font-size:21px;

    font-weight:500;

    line-height:2;

}

.article-body p{

    margin-bottom:22px;

    color:var(--text2);

    font-size:17px;

    line-height:2;

}

.article-body h2{

    margin:40px 0 20px;

    color:#fff;

    font-size:34px;

    line-height:1.3;

}

.article-body img{

    display:block;

    width:100%;

    margin:25px 0;

    border-radius:24px;

}

.article-body blockquote{

    margin:30px 0;

    padding:25px 30px;

    border-left:4px solid var(--accent);

    border-radius:18px;

    background:rgba(255,255,255,.04);

    color:#fff;

    font-size:21px;

    font-style:italic;

    line-height:1.8;

}


/*==================================================
14. ARTICLE INFO
==================================================*/

.article-info{

    margin:30px 0;

    padding:25px 30px;

    border:1px solid rgba(255,255,255,.08);

    border-radius:22px;

    background:rgba(255,255,255,.04);

}

.article-info h3{

    margin:0 0 20px;

    color:#fff;

    font-size:25px;

}

.article-info ul{

    margin:0;

    padding-left:22px;

}

.article-info li{

    margin-bottom:12px;

    color:var(--text2);

    line-height:1.8;

}


/*==================================================
15. RESPONSIVE TABLET
==================================================*/

@media(max-width:992px){

    .featured-card{

        grid-template-columns:1fr;

        gap:35px;

    }

    .featured-image{

        min-height:380px;

    }

    .featured-image img{

        height:380px;

    }

    .featured-content{

        text-align:center;

    }

    .featured-content h2{

        font-size:40px;

    }

    .news-page-grid{

        grid-template-columns:

            repeat(2,minmax(0,1fr));

    }

    .newsletter-box{

        grid-template-columns:1fr;

        text-align:center;

    }

    .newsletter-text p{

        margin-left:auto;

        margin-right:auto;

    }

    .newsletter-form{

        justify-content:center;

        flex-wrap:wrap;

    }

}


/*==================================================
16. RESPONSIVE MOBILE
==================================================*/

@media(max-width:768px){

    .news-hero{

        padding:60px 0 45px;

    }

    .news-hero h1{

        font-size:40px;

    }

    .news-hero p{

        font-size:14px;

    }

    .news-filter{

        gap:8px;

    }

    .news-filter button{

        height:40px;

        padding:0 16px;

        font-size:13px;

    }

    .featured-news{

        padding:30px 0 70px;

    }

    .featured-image{

        min-height:300px;

        border-radius:22px;

    }

    .featured-image img{

        height:300px;

    }

    .featured-content h2{

        font-size:34px;

    }

    .news-list{

        padding:40px 0;

    }

    .news-list .section-title h2{

        font-size:38px;

    }

    .news-page-grid{

        grid-template-columns:1fr;

        gap:22px;

    }

    .news-image{

        height:240px;

    }

    .newsletter{

        padding:50px 0 80px;

    }

    .newsletter-box{

        padding:40px 25px;

        border-radius:22px;

    }

    .newsletter-text h2{

        font-size:34px;

    }

    .newsletter-form{

        flex-direction:column;

        width:100%;

    }

    .newsletter-form input{

        width:100%;

    }

    .newsletter-form button{

        width:100%;

    }

    .article-content{

        padding:60px 0;

    }

    .article-body .lead{

        font-size:18px;

    }

    .article-body p{

        font-size:16px;

    }

    .article-body h2{

        font-size:29px;

    }

}


/*==================================================
17. RESPONSIVE SMALL MOBILE
==================================================*/

@media(max-width:480px){

    .news-hero h1{

        font-size:34px;

    }

    .news-search input{

        height:54px;

    }

    .news-filter button{

        padding:0 14px;

    }

    .featured-content h2{

        font-size:30px;

    }

    .news-list .section-title h2{

        font-size:32px;

    }

    .newsletter-text h2{

        font-size:30px;

    }

}