.hero {
    position: relative;
    background: url('/general/img/bg.png')  center center/100% 100% no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 50, 0.5);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.search-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    max-width: 700px;
    margin: 0 auto;
}
.search-card input {
    border: none;
    background: #f1f1f1;
}
.search-card button {
    height: 100%;
}
.classifications {
    margin-top: -60px;
}
.classifications_dokumen {
    margin-top: 30px;
    /* padding: 20px 0; */
}
.card-custom {
    border-radius: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    transition: all 0.2s ease-in-out;
    height: 100%;
}
.card-custom:hover {
    background-color: #f1f1f1;
    transform: translateY(-3px);
}
.berita-card {
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.berita-card:hover {
    transform: translateY(-5px);
}

.berita-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.berita-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.berita-img-container:hover .berita-img {
    transform: scale(1.05);
}

.berita-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Container halaman detail */
.detail-container {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Metadata card */
.metadata-card {
    flex: 2;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.8;
}

/* Sidebar kanan */
.sidebar-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Box di sidebar */
.sidebar-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Tombol PDF & download */
.sidebar-box button,
.sidebar-box a {
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    width: 48%;
}

.sidebar-box button:hover,
.sidebar-box a:hover {
    background: #374abf;
}
/* modal style */
#pdfModal, #abstrakModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    max-width: 90%;
    height: 80%;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-peraturan {
    position: relative;
    background: url('/general/img/bg.png') center center / cover no-repeat;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-peraturan .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* meta data */
 .metadata-card {
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.metadata-card h2 {
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 20px;
}

.metadata-row {
    display: flex;
    flex-direction: column;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #f1f5ff;
    margin-bottom: 5px;
    border-radius: 5px;
}

.metadata-item strong {
    flex: 0 0 200px;
    color: #000;
}

.metadata-item span {
    flex: 1;
}

/* berita */
.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-top-left-radius: 0.375rem; /* sesuai .card default */
    border-top-right-radius: 0.375rem;
}

.card-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.1);
    z-index: 1;
}

.card-img-foreground {
    position: relative;
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    z-index: 2;
    display: block;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}

.card:hover {
    transform: translateY(-5px);
    transition: 0.3s ease;
}

/* Style Card Statistik-Dokumen */
.card-statistik {
    background-color: #f8f9fc;
    border-radius: 1rem;
    padding: 1.5rem;
    min-height: 250px;
    display: flex;
    align-items: center;
}

.card-statistik canvas {
    height: 200px !important;
    max-height: 200px;
}


.card-statistik h5 {
    font-weight: 600;
    color: #343a40;
}

.card-statistik p,
.card-statistik ul {
    font-size: 0.95rem;
    color: #4e4e4e;
}

.card-statistik .btn {
    background-color: #1e3a8a;
    border: none;
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
}

.card-statistik .btn:hover {
    background-color: #0e255d;
}

