/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ================= BODY ================= */
body {
    background: #d8892b;
    padding-top: 155px;
}

/* ================= HEADER FIXED ================= */
.header-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
}

/* ================= TOPBAR ================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-bottom: 2px solid #eee;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-logo {
    width: 42px;
    margin-right: 10px;
}

.topbar-text strong {
    font-size: 15px;
}

.topbar-text span {
    font-size: 12px;
    color: #555;
}

.topbar-right a {
    color: #000;
    margin-left: 12px;
    font-size: 16px;
}

/* ================= NAVBAR ================= */

/* ================= NAVBAR ================= */
.navbar {
    background: #000;
    display: flex;
    justify-content: center;
    position: relative;
}

.navbar a {
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

.navbar a:hover {
    background: #d8892b;
}

.nav-item {
    position: relative;
}

/* ===== SUB MENU ===== */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    min-width: 260px;
    display: none;
    z-index: 999;
}

.sub-menu a {
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid #222;
}

.nav-item-sub {
    position: relative;
}

.sub-menu-right {
    position: absolute;
    top: 0;
    left: 100%;
    background: #000;
    min-width: 260px;
    display: none;
}

.nav-item:hover > .sub-menu {
    display: block;
}

.nav-item-sub:hover > .sub-menu-right {
    display: block;
}

/* ================= BREAKING NEWS ================= */
.breaking-news {
    display: flex;
    align-items: center;
    height: 40px;
    background: linear-gradient(90deg, #c79b2d, #e3b84d);
    color: #fff;
}

.breaking-news .label {
    background: #a67c00;
    padding: 0 16px;
    white-space: nowrap;
}

.news-wrapper {
    overflow: hidden;
    flex: 1;
}

.news-text {
    white-space: nowrap;
    padding-left: 100%;
    animation: scrollNews 18s linear infinite;
}

@keyframes scrollNews {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ================= WRAPPER (BOXED) ================= */
.page-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px 20px;
}

/* ================= KOTAK PUTIH ================= */
.main-grid {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    padding: 30px 40px;
}

/* ================= JUDUL ================= */
.main-grid h2 {
    text-align: center;
    margin-bottom: 5px;
}

.main-grid h3 {
    text-align: center;
    font-weight: normal;
    margin-bottom: 20px;
}

.info-link {
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

/* ================= SEARCH ================= */
#searchForm {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

#searchForm input {
    flex: 1;
    padding: 8px;
}

#searchForm button {
    padding: 8px 18px;
    cursor: pointer;
}

/* ================= STATUS ================= */
#status-refresh {
    min-height: 22px;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

/* ================= TABLE ================= */
.table-wrapper {
    width: 100%;
    min-height: 450px;
    border: 1px solid #ddd;
    padding: 10px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 14px;
    text-align: center;
    word-wrap: break-word;
}

/* ================= LOADING ================= */
.loading {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

/* ================= BUTTONS ================= */
.buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-gray {
    background: #777;
    color: #fff;
    border: none;
    padding: 8px 14px;
}

.btn-green {
    background: #2e8b57;
    color: #fff;
    border: none;
    padding: 8px 14px;
}

/* ================= PRE FOOTER ================= */
.pre-footer {
    background: #f5f5f5;
    border-top: 4px solid #c79b2d;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.footer-content img {
    width: 70px;
    margin-bottom: 15px;
}

.footer-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-content p {
    font-size: 14px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 15px;
}

.footer-content i {
    color: #d8892b;
    margin-right: 6px;
}

.footer-social a {
    margin: 0 8px;
    font-size: 18px;
    color: #000;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #d8892b;
}

/* ================= FOOTER ================= */
.footer {
    background: linear-gradient(to right, #d8892b, #c79b2d);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    body {
        padding-top: 220px;
    }

    .main-grid {
        padding: 20px;
    }

    #searchForm {
        flex-direction: column;
    }

}
