/* =========================================================
   NEWS PAGE (daftar) — mewarisi token warna & font dari style.css.
   File ini berdiri sendiri.
   ========================================================= */

.section-eyebrow{
    display:inline-block;
    font-size:13px;
    font-weight:700;
    letter-spacing:2.5px;
    text-transform:uppercase;
    color:var(--blue);
    margin-bottom:14px;
}
.section-eyebrow-light{ color:var(--blue-pale); }

/* ================= PAGE BANNER ================= */
.nw-banner{
    position:relative;
    min-height:42vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:140px 6% 70px;
    background: linear-gradient(135deg,#020b5c,#040f8f);
    overflow:hidden;
    isolation:isolate;
}
.nw-banner-glow{
    position:absolute;
    inset:-20% -10% auto -10%;
    height:70%;
    background:radial-gradient(closest-side, rgba(91,63,245,0.35), transparent 70%);
    z-index:-1;
}
.nw-banner-content{ max-width:680px; color:#fff; }
.nw-banner-content h1{
    font-size:clamp(32px, 6vw, 52px);
    font-weight:700;
    line-height:1.2;
    margin-bottom:16px;
}
.nw-banner-content p{
    font-size:16px;
    line-height:1.7;
    color:rgba(255,255,255,0.75);
    max-width:520px;
    margin:0 auto;
}

.nw-section{
    padding:70px 6% 90px;
    background:#f5f7fb;
}

/* ================= CONTROLS (toggle + search) ================= */
.nw-controls{
    max-width:1100px;
    margin:0 auto 36px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:16px;
}
.nw-view-toggle{
    display:inline-flex;
    background:#ffffff;
    border-radius:14px;
    padding:4px;
    box-shadow:0 8px 18px rgba(11,10,46,0.08);
}
.nw-view-toggle button{
    width:40px;
    height:36px;
    border:none;
    background:transparent;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:rgba(23,21,51,0.45);
    cursor:pointer;
    transition:background 0.2s ease, color 0.2s ease;
}
.nw-view-toggle button.active{
    background:var(--blue);
    color:#fff;
}
.nw-view-toggle .material-icons{ font-size:20px; }

.nw-search{
    display:flex;
    align-items:center;
    gap:8px;
    background:#ffffff;
    border-radius:50px;
    padding:9px 18px;
    box-shadow:0 8px 18px rgba(11,10,46,0.08);
}
.nw-search .material-icons{
    font-size:19px;
    color:rgba(23,21,51,0.4);
}
.nw-search input{
    border:none;
    outline:none;
    font-family:'Myriad-Pro', sans-serif;
	font-style: italic;
    font-size:14px;
    color:var(--ink);
    width:190px;
    background:transparent;
}

/* ================= LIST MODE ================= */
.nw-list{
    max-width:900px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    gap:18px;
}
.nw-list-item{
    display:flex;
    gap:20px;
    background:#ffffff;
    border-radius:20px;
    padding:18px;
    box-shadow:0 10px 25px rgba(11,10,46,0.06);
    cursor:pointer;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.nw-list-item:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 32px rgba(45,31,214,0.12);
}
.nw-list-thumb{
    width:170px;
    height:120px;
    border-radius:14px;
    overflow:hidden;
    flex-shrink:0;
}
.nw-list-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.nw-list-body{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.nw-list-title{
    font-size:17px;
    font-weight:700;
    color:var(--ink);
}
.nw-list-date{
    font-size:12.5px;
    color:rgba(23,21,51,0.5);
    font-style:italic;
}
.nw-list-excerpt{
    font-size:13.5px;
    line-height:1.65;
    color:rgba(23,21,51,0.72);
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.nw-share-btn{
    align-self:flex-end;
    margin-top:auto;
    padding:7px 16px;
    border-radius:50px;
    border:none;
    background:#f5f7fb;
    color:var(--blue);
    font-size:12.5px;
    font-weight:700;
    font-family:'Montserrat', sans-serif;
    cursor:pointer;
    transition:background 0.2s ease, color 0.2s ease;
}
.nw-share-btn:hover{
    background:var(--blue);
    color:#fff;
}

@media(max-width:600px){
    .nw-list-item{ flex-direction:column; }
    .nw-list-thumb{ width:100%; height:170px; }
    .nw-share-btn{ align-self:flex-start; }
}

/* ================= GRID MODE ================= */
.nw-grid{
    max-width:1100px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;
}
.nw-grid-item{
    background:#ffffff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(11,10,46,0.07);
    cursor:pointer;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.nw-grid-item:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 28px rgba(45,31,214,0.14);
}
.nw-grid-thumb{
    aspect-ratio:4/3;
    overflow:hidden;
}
.nw-grid-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.nw-grid-info{
    padding:12px 14px 14px;
}
.nw-grid-title{
    font-size:13.5px;
    font-weight:700;
    color:var(--ink);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.nw-grid-date{
    font-size:11px;
    color:rgba(23,21,51,0.5);
    margin-top:4px;
}

@media(max-width:900px){
    .nw-grid{ grid-template-columns:repeat(2, 1fr); }
}

.nw-empty{
    text-align:center;
    font-size:14px;
    color:rgba(23,21,51,0.5);
    padding:40px 0;
}

/* ================= PAGINATION (di bawah) ================= */
.nw-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    margin-top:50px;
}
.nw-page-btn{
    width:40px;
    height:40px;
    border-radius:50%;
    border:none;
    background:#ffffff;
    box-shadow:0 8px 18px rgba(11,10,46,0.08);
    color:var(--ink);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background 0.2s ease, color 0.2s ease;
}
.nw-page-btn:hover:not(:disabled){
    background:var(--blue);
    color:#fff;
}
.nw-page-btn:disabled{
    opacity:0.35;
    cursor:not-allowed;
}
.nw-page-label{
    font-size:14px;
    font-weight:600;
    color:var(--ink);
}

@media(prefers-reduced-motion: reduce){
    .nw-list-item, .nw-grid-item{ transition:none; }
}
