.card-title,
.recom-btn {
    /* Sudah ada style sebelumnya */
}

.recommendation-card {
    position: relative;
}

.card-image {
    position: relative;
}

/* Tambahkan overlay gelap di bawah title dan button */
.card-image::after {
    margin-bottom: 10px;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 115px;
    /* Sesuaikan tinggi shadow sesuai kebutuhan */
    border-radius: 0 0 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 80%, rgba(0, 0, 0, 0.0) 100%);
    z-index: 1;
    pointer-events: none;
}

.card-title,
.recom-btn {
    position: absolute;
    left: 10px;
    z-index: 2;
}

.card-title {
    bottom: 30px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
}

.recom-btn {
    bottom: 19px;
    background: #fff;
    color: #1767B2;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(23, 103, 178, 0.15);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.recom-btn:hover {
    background: #D0E8FF;
    color: #145a99;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    margin-bottom: 20px;
}

.audio-player button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.audio-player button:hover {
    color: #1767B2;
}

.audio-player input[type="range"] {
    flex: 1;
    appearance: none;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.audio-player input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 10px;
    height: 10px;
    background: #1767B2;
    border-radius: 50%;
    cursor: pointer;
}

.audio-player span {
    font-size: 14px;
    color: #333;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: white;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    z-index: 100;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1); /* Shadow di atas footer */
}

.footer-logo {
    max-width: 150px;
}

.footer-text {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.footer-button {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-button:hover {
    background-color: #D0E8FF;
    /* Warna tombol saat hover */
}

.author-card {
    display: inline-block;
    border: 1px solid #1767B2;
    /* Outline warna biru muda */
    color: #1767B2;
    /* Warna teks biru */
    padding: 5px 5px;
    margin-bottom: 15px;
    border-radius: 5px;
    /* Membuat sudut membulat */
    font-size: 10px;
    background-color: #ffff;
    /* Warna latar belakang */
}

.header-content {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: black;
    z-index: 1;
    /* Default z-index */
    transition: transform 0.8s ease, z-index 0.8s ease;
    /* Animasi transisi untuk transform dan z-index */
}

@keyframes bringToFront {
    0% {
        z-index: 1;
        /* Awalnya di belakang */
        transform: translateY(0);
        /* Posisi awal */
    }

    100% {
        z-index: 10;
        /* Berada di depan */
        transform: translateY(30px);
        /* Turun ke bawah 20px */
    }
}

@keyframes returnToBack {
    0% {
        z-index: 10;
        /* Awalnya di depan */
        transform: translateY(30px);
        /* Posisi akhir animasi bringToFront */
    }

    100% {
        z-index: 1;
        /* Kembali ke belakang */
        transform: translateY(0);
        /* Kembali ke posisi awal */
    }
}

.header-image {
    width: 100%;
    height: auto;
    /* object-fit: cover; */
}

.content-body {
    word-break: break-word;
    position: relative;
    margin-top: -100px;
    /* Menutupi gambar sekitar 20px */
    background-color: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    padding-bottom: 40px;
    z-index: 5;
}

.content-body img,
.content-body video,
.content-body iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.content-body table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
}

.content-body p,
.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    word-break: break-word;
    font-size: 1em;
}

@media (max-width: 600px) {
    .content-body {
        font-size: 0.95em;
        padding: 10px;
        padding-bottom: 40px;
    }
}



.news-date {
    font-size: 14px;
    color: gray;
    margin-bottom: 5px;
}

.news-views {
    font-size: 14px;
    color: gray;
    margin-bottom: 2px;
}

.recommendation-news {
    margin-top: 30px;
}

.recommendation-news h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.recommendation-card {
    display: inline-block;
    width: 100%;
    /* Full width */
    margin-bottom: 15px;
    position: relative;
}

.card-image {
    position: relative;
    width: 100%;
    height: auto;
    /* Tinggi otomatis agar gambar tidak terpotong */
    overflow: hidden;
    border-radius: 10px;
}

.card-image img {
    width: 100%;
    height: auto;
    /* Gambar memenuhi card */
    object-fit: cover;
}


.card-text {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    padding: 0 10px;
    /* Memberikan jarak di dalam card */
}

.card-body {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    background-color: #ECF7FF;
    border-radius: 10px;
    margin: auto;
    padding: 15px;
    text-align: center;
    font-family: arial;
}

.card-body-tolak {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    background-color: #FFECEC;
    border-radius: 10px;
    margin: auto;
    padding: 15px;
    text-align: center;
    font-family: arial;
}

.header-logo-btn {
    position: absolute;
    top: 30%;
    /* Jarak dari atas */
    left: 15px;
    /* Jarak dari kanan */
    background: none;
    border: none;
    border-radius: 0%10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
}

.header-btn {
    position: absolute;
    top: 17%;
    /* Jarak dari atas */
    right: 15px;
    /* Jarak dari kanan */
    background: none;
    border: none;
    border-radius: 0%10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
}

.header-btn img {
    width: 30px;
    height: 30px;
}

/* TAB HEADER */
.tab-header {
    display: flex;
    justify-content: space-around;
    background: #d6eaf8;
    /* biru muda sesuai gambar */
    padding: 6px 4px;
    border-bottom: 2px solid #cdd7e1;
}

.tab-header button {
    flex: 1;
    margin: 0 4px;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    color: #1565c0;
    /* teks biru */
}

.tab-header button.active {
    background: #2ACA22;
    /* hijau aktif */
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* TAB CONTENT */
.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.card {
    background: #f0f8ff;
    /* biru sangat muda */
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.card p {
    margin: 6px 0;
}

.status {
    color: green;
    font-weight: bold;
}

.peserta-card {
    background: #fff;
    margin: 10px 0px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* Style dasar untuk modal */
.modal-container {
    display: none;
    /* Sembunyikan secara default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    /* Mulai dari opacity 0 untuk transisi */
    transition: opacity 0.3s ease-in-out;
    /* Transisi untuk overlay */
}

/* Kelas saat modal aktif */
.modal-container.active {
    display: flex;
    /* Ganti display agar bisa diatur */
    opacity: 1;
    /* Transisi ke opacity 1 */
}

/* Style untuk konten modal */
.modal-content {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.7);
    /* Mulai dengan ukuran kecil */
    transition: transform 0.3s ease-in-out;
    /* Transisi untuk konten */
}

/* Style untuk konten modal saat aktif */
.modal-container.active .modal-content {
    transform: scale(1);
    /* Kembali ke ukuran normal */
}

/* BUTTONS */
.action-buttons {
    display: flex;
    justify-content: space-between;
    padding: 10px 13px 0px 13px;

}

.btn1 {
    flex: 1;
    margin: 0 4px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-tolak {
    background: #005FA3;
}

.btn-setuju {
    background: #30B200;
}

.btn-tutup {
    background: #F06B6B;
}

.btn-kembali {
    background: #F06B6B;
    margin: 12px 16px;
    width: calc(100% - 32px);
}
