
* { margin:0; padding:0; box-sizing:border-box; }


body {
    font-family:"Poppins", sans-serif;
    background:#fff;
    overflow-x:hidden;
    padding-top:55px;
    color:#000;
}


.header{
    position:fixed;
    top:0; left:0;
    width:100%;
    background:#ffffff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 20px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    z-index:1000;
}

.logo { display:flex; align-items:center; gap:10px; }
.logo img { height:60px; }

.logo-text h2 {
    font-size:18px;
    font-weight:700;
}
.logo-text p {
    font-size:15px;
    color:#c81f1f;
    margin:0;
}

.menu-toggle{
    font-size:26px;
    background:none;
    border:0;
    cursor:pointer;
    color:#ff0000;
}


.sidebar{
    position:fixed;
    top:0; left:0;
    width:240px;
    height:100vh;
    background:#ffffff;
    box-shadow:2px 0 12px rgba(0,0,0,0.1);
    padding:15px 12px;
    transition:.28s ease;
    z-index:2001;
    overflow-y:auto;
    border-right:1px solid #eee;
    transform:translateX(-100%);
    opacity:0;
}
.sidebar.open{ transform:translateX(0); opacity:1; }

.sidebar a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 10px;
    font-size:15px;
    color:#222;
    text-decoration:none;
    border-radius:10px;
}
.sidebar a:hover{ background:#f1f1f1; }

.sidebar h3{
    font-size:12px;
    margin:18px 6px 8px;
    color:#666;
    font-weight:700;
}

.divider{
    height:1px;
    background:#ddd;
    margin:12px 0;
}


.overlay{
    position:fixed;
    top:0; left:0;
    width:100%; height:100vh;
    background:rgba(0,0,0,0.35);
    display:none;
    z-index:2000;
    opacity:0;
    transition:.25s;
}
.overlay.show{ display:block; opacity:1; }

.container {
    width: 92%;
    max-width: 1150px;
    margin: 30px auto 0;
    padding: 20px 18px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 0 14px rgba(0,0,0,0.08);
}

.judul-halaman {
    font-size: 25px;
    margin-bottom: 22px;
    font-weight: 700;
    text-align: center;
    

}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 22px;
    padding-top: 15px; 
}

.news-item {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    border: 1px solid #eaeaea;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    transition: 0.25s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
}

.news-item img {
    width: 100%;
    height: 180px;   
    object-fit: cover;
}

.news-info {
    padding: 14px 16px;
}

.news-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
    text-align: justify;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #666;
    margin-top: 6px;
}

.news-meta i {
    font-size: 12px;
    color: #cc0000;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media(max-width: 600px) {
    .news-item img {
        height: 160px;
    }
    .news-info h3 {
        font-size: 14px;
    }
}

footer{
    background:#ededed;
    color:#000;
    padding:40px 0 10px;
    text-align:center;
    margin-top:40px;
}

.footer-container{
    display:flex;
    justify-content:space-around;
    flex-wrap:wrap;
    max-width:1100px;
    margin:0 auto;
    gap:10px;
}

.footer-section{
    flex:1;
    min-width:220px;
    margin-bottom:10px;
}

.footer-logo{
    width:55px;
    margin-bottom:8px;
}

.footer-section h2 {
  font-size:16px;
  margin-bottom:6px;
  color:#000000;
  font-weight:700;
}

.footer-section h3{
    font-size:14px;
    margin-bottom:6px;
    color:#ff0000;
    font-weight:700;
}

.footer-section p,
.footer-section a{
    font-size:13px;
    line-height:1.2;
    margin:2px 0;
    color:#000;
    text-decoration:none;
}

.footer-section a:hover{ text-decoration:underline; }

.social-icons{
    display:flex;
    justify-content:center;
    gap:14px;
    margin-top:12px;
}

.social-icons a{
    color:rgb(152,152,152);
    font-size:20px;
    transition:.3s;
}

.social-icons a:hover{
    color:#ff0000;
    transform:scale(1.2);
}

.footer-bottom{
    margin-top:15px;
    border-top:1px solid #444;
    padding-top:10px;
    font-size:13px;
    opacity:.8;
}

@media(max-width:768px){
    .footer-container{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }
}
.pagination, 
.pagination li {
    list-style: none !important;
    padding-left: 0 !important;
    padding-top: 10px;
}


nav .pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
}


.pagination .page-item .page-link {
    border-radius: 8px;
    padding: 6px 12px;   
    font-size: 14px;     
    font-weight: 600;
    border: 1px solid #ddd;
    color: #444;
}


.pagination .page-item .page-link:hover {
    background: #ffe5e5;
    color: red;
    border-color: red;
}


.pagination .page-item.active .page-link {
    background: red;
    border-color: red;
    color: white;
}


.pagination .page-item.disabled .page-link {
    background: #f5f5f5;
    color: #aaa;
}
@media(max-width:600px){

    .logo img {
        height: 45px;
    }

    body {
        padding-top: 65px;
    }

    .container {
        margin-top: 15px;
    }

    .news-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .news-item img {
        height: 150px;
    }

    .news-info h3 {
        font-size: 14px;
    }

    .footer-container {
        padding: 0 10px;
        text-align: center;
    }
}
#page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity .3s ease, visibility .3s ease;
}

#page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
    color: #b71c1c;
    font-family: Poppins, sans-serif;
}

.spinner {
    width: 46px;
    height: 46px;
    border: 4px solid #eee;
    border-top: 4px solid #b71c1c;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-inner p {
    font-size: 14px;
    font-weight: 600;
}


