:root {
    --primary-color: #0d6efd;
    --secondary-color: #198754;
    --accent-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Header Styles */
.top-header {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 0;
    font-size: 14px;
}

.main-header {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    padding: 15px 0 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header h1 {
    color: #0d6efd;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-weight: bold;
    font-size: 24px;
}

/* Navigation */
.navbar {
    background: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 15px 20px !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Slider */
.carousel-item {
    height: 400px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px;
}

/* Content Sections */
.section-title {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

.news-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-date {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Sidebar (Menuside) Beautified */
.sidebar-widget {
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    margin-bottom: 28px;
    background: var(--light-color);
    transition: box-shadow 0.2s;
    padding: 0 !important;
}

.sidebar-widget:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

.sidebar-link {
    color: #222;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.sidebar-link:hover,
.sidebar-link:focus {
    background: var(--primary-color);
    color: #fff !important;
    text-decoration: none;
}

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.1em;
    border-radius: 50%;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}

.agenda-date {
    font-size: 1em;
    line-height: 1.1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    border: 2px solid #fff;
}

/* Search Form */
.search-form {
    position: relative;
}

.search-form .form-control {
    border-radius: 25px;
    padding-left: 20px;
}

.search-form .btn {
    position: absolute;
    right: 5px;
    top: 5px;
    border-radius: 20px;
    background: var(--primary-color);
    color: white;
}

/* News Detail Card (detail-berita) */
.news-detail-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(13, 110, 253, 0.08);
    background: #fff;
    padding: 32px 32px 24px 32px;
    margin-bottom: 40px;
}

.news-title {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 2.1rem;
    line-height: 1.25;
}

.news-meta {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 22px;
}

.news-feature-img {
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.09);
    margin-bottom: 32px;
    width: 100%;
    max-height: 390px;
    object-fit: cover;
}

.news-content p {
    font-size: 1.08rem;
    color: #333;
    margin-bottom: 17px;
}

/* Comment Section */
.comment-section {
    margin-top: 40px;
}

.comment-title {
    font-weight: 700;
    margin-bottom: 22px;
    color: #0d6efd;
    font-size: 1.3rem;
}

.comment-card {
    margin-bottom: 18px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(90deg, #f5faff 70%, #e3f2fd 100%);
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.04);
    padding: 15px 24px 12px 18px;
}

.comment-author {
    font-weight: bold;
    color: #198754;
}

.comment-date {
    color: #6c757d;
    font-size: 12px;
    font-weight: 400;
}

.comment-card p {
    margin-bottom: 0;
}

.comment-form label {
    font-weight: 500;
    color: #0d6efd;
}

.comment-form textarea {
    border-radius: 12px;
    resize: none;
}

.comment-form .btn {
    padding: 8px 30px;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* card nice */
.card-nice {
    border: none;
    border-radius: 1.7rem;
    box-shadow: 0 6px 28px 0 rgba(13, 110, 253, 0.11);
    background: linear-gradient(120deg, #e3f2fd 65%, #fff 100%);
    transition: transform .16s, box-shadow .16s;
}

.card-nice:hover {
    transform: translateY(-6px) scale(1.018);
    box-shadow: 0 12px 38px 0 rgba(13, 110, 253, 0.16);
}

/* btn fancy */
.stat-box {
    background: linear-gradient(90deg, #e3f2fd 80%, #b6e0fe 100%);
    border-radius: 18px;
    box-shadow: 0 1px 8px 0 rgba(13, 110, 253, 0.06);
    padding: 18px 0;
    margin-bottom: 18px;
}

.gallery-thumb {
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(13, 110, 253, .10);
    transition: transform .13s, box-shadow .14s;
}

.gallery-thumb:hover {
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 8px 40px rgba(13, 110, 253, 0.18);
}

.btn-fancy {
    border-radius: 24px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 8px 28px;
    box-shadow: 0 2px 8px rgba(13, 110, 253, .09);
    background: linear-gradient(90deg, #0d6efd 70%, #198754 100%);
    color: #fff !important;
    border: none;
    transition: background .17s, box-shadow .18s, color .18s;
}

.btn-fancy:hover,
.btn-fancy:focus {
    background: linear-gradient(90deg, #198754 70%, #0d6efd 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(25, 135, 84, .14);
}

.btn-outline-fancy {
    border-radius: 24px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 8px 28px;
    box-shadow: 0 2px 8px rgba(13, 110, 253, .09);
    background: #fff;
    color: #0d6efd !important;
    border: 2px solid #0d6efd;
    transition: background .17s, box-shadow .18s, color .18s;
}

.btn-outline-fancy:hover,
.btn-outline-fancy:focus {
    background: linear-gradient(90deg, #e3f2fd 80%, #b6e0fe 100%);
    color: #198754 !important;
    border-color: #198754;
    box-shadow: 0 6px 16px rgba(25, 135, 84, .11);
}

.list-group-item {
    border: none;
    border-radius: 16px !important;
    margin-bottom: 12px;
    box-shadow: 0 2px 14px rgba(13, 110, 253, 0.07);
    background: #f9fbfe;
    transition: box-shadow .14s, background .14s;
}

.list-group-item:hover,
.list-group-item:focus {
    box-shadow: 0 6px 28px rgba(13, 110, 253, 0.13);
    background: #e3f2fd;
}

.p-soft {
    background: linear-gradient(120deg, #e3f2fd 75%, #fff 100%);
    border-radius: 1.5rem;
    box-shadow: 0 4px 22px 0 rgba(13, 110, 253, 0.10);
}

.stat-icon {
    border-radius: 50%;
    background: #fff;
    color: #0d6efd;
    padding: 10px 13px;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, .13);
    margin-bottom: 4px;
    display: inline-block;
}

.carousel-caption-slider {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    color: #0d6efd;
    box-shadow: 0 2px 12px rgba(13, 110, 253, 0.09);
}

.rounded-4 {
    border-radius: 2rem !important;
}

.shadow-nice {
    box-shadow: 0 8px 38px 0 rgba(13, 110, 253, 0.12) !important;
}

/* Footer */
.footer {
    background: #212529;
    color: white;
    padding: 40px 0 20px;
}

.footer-title {
    color: #0d6efd;
    font-weight: 700;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
}

/* Spacing between Navbar and Breadcrumb */
.navbar-breadcrumb-separator {
    height: 24px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 28px;
}

.breadcrumb-container {
    margin-top: 22px;
    margin-bottom: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #0d6efd;
}

/* Multi-level dropdowns for Bootstrap 5 */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    min-width: 180px;
}

.dropdown-submenu:hover>.dropdown-menu,
.dropdown-submenu:focus-within>.dropdown-menu {
    display: block;
}

/* information */
.list-informasi-title {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 2rem;
}

.info-list-group .list-group-item {
    padding: 25px 18px;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 14px rgba(13, 110, 253, 0.06);
    transition: box-shadow 0.18s;
    background: #fff;
}

.info-list-group .list-group-item:hover {
    box-shadow: 0 4px 24px rgba(13, 110, 253, 0.12);
    background: #f8fafc;
}

.info-list-title {
    font-size: 1.15rem;
    color: #198754;
    font-weight: 600;
}

.info-list-meta {
    font-size: 0.96rem;
    color: #6c757d;
}

.info-list-desc {
    color: #333;
    margin: 8px 0 0 0;
    font-size: 1.03rem;
}

/* ====== Style untuk Halaman Detail Tabel ====== */
.detail-table-container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(13, 110, 253, 0.08);
    padding: 32px 32px 24px 32px;
    margin-bottom: 40px;
}

.detail-table-title {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 2rem;
}

.table-responsive {
    margin-top: 24px;
}

.table th,
.table td {
    vertical-align: middle;
    word-break: break-word;
    /* atau break-all jika butuh */
    white-space: pre-line;
    font-size: 0.98rem;
}

/* sosial media */
.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 1.5em;
    transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
    box-shadow: 0 2px 8px rgba(13, 110, 253, .05);
    border: 2px solid #fff;
    text-decoration: none !important;
}

.social-icon-link:hover {
    transform: scale(1.13) rotate(-8deg);
    box-shadow: 0 4px 18px rgba(13, 110, 253, .12);
    filter: brightness(1.14) saturate(1.2);
    border-color: #0d6efd;
}

/* download */
.download-list-section-title {
    color: #0d6efd;
    font-weight: 700;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 8px;
    margin-bottom: 28px;
    font-size: 1.6rem;
}

.download-list-group .list-group-item {
    padding: 18px 20px;
    font-size: 1rem;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.06);
    transition: box-shadow 0.16s;
}

.download-list-group .list-group-item:hover {
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.14);
    background: #f8fafc;
}

.download-icon {
    font-size: 1.2em;
    color: #198754;
    margin-right: 15px;
}

.file-size {
    color: #6c757d;
    font-size: 0.96em;
}

/* album */
.album-card {
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.07);
    overflow: hidden;
    background: #fff;
    transition: transform 0.19s, box-shadow 0.19s;
}

.album-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 32px rgba(13, 110, 253, 0.13);
}

.album-cover {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.album-section-title {
    color: #0d6efd;
    font-weight: 700;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 8px;
    margin-bottom: 24px;
    font-size: 1.7rem;
}

/* gallery */
.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.06);
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.12);
}

.gallery-section-title {
    color: #0d6efd;
    font-weight: 700;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 8px;
    margin-bottom: 24px;
    font-size: 1.7rem;
}

/* Modal fullscreen custom */
.modal-gallery .modal-dialog {
    max-width: 900px;
}

.modal-gallery .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(13, 110, 253, 0.18);
    border: none;
}

.modal-gallery .modal-body {
    padding: 0;
}

.modal-gallery-img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    background: #e3f2fd;
}

.modal-gallery-caption {
    padding: 1.3rem 2rem;
}

/* faq */
.faq-section-title {
    color: #0d6efd;
    font-weight: 700;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 8px;
    margin-bottom: 24px;
    font-size: 1.7rem;
}

.faq-search {
    max-width: 420px;
    margin: 0 auto 32px auto;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, #e3f2fd 0%, #f8faff 100%);
    color: #0d6efd;
}

.faq-accordion .accordion-body {
    background: #f8faff;
}

.faq-accordion .accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.06);
}

/* app box */
.app-box {
    width: 100%;
    /* Agar tetap responsif di grid Bootstrap */
    min-height: 120px;
    /* Tinggi minimal, bisa disesuaikan */
    height: 120px;
    /* Tinggi tetap, semua box sama */
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(13, 110, 253, 0.09);
    padding: 18px 12px;
    margin-bottom: 18px;
    transition: box-shadow 0.2s;
    /* Tambahan agar konten tidak overflow */
    overflow: hidden;
}

.app-box:hover {
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.13);
}

.app-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 10px;
    background: #f1f4fa;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.06);
}

.app-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.app-desc {
    font-size: 0.96em;
    color: #444;
    margin-bottom: 7px;
}

.app-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
}

.app-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .logo {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }

    .sidebar-widget {
        padding: 15px 0 0 0 !important;
    }

    .news-detail-card {
        padding: 20px 6px 16px 6px;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .navbar-nav .nav-link {
        padding: 10px 14px !important;
    }

    .breadcrumb-container {
        margin-top: 14px;
    }

    .detail-table-container {
        padding: 18px 4px 12px 4px;
    }

    .detail-table-title {
        font-size: 1.2rem;
    }

    .table th,
    .table td {
        font-size: 0.92rem;
    }

    .list-informasi-title {
        font-size: 1.3rem;
    }

    .info-list-group .list-group-item {
        padding: 14px 7px;
    }

    .info-list-title {
        font-size: 1rem;
    }

    .download-list-section-title {
        font-size: 1.1rem;
    }

    .download-list-group .list-group-item {
        padding: 12px 8px;
        font-size: 0.98rem;
    }

    .album-cover {
        height: 120px;
    }

    .album-section-title {
        font-size: 1.1rem;
    }

    .gallery-img {
        height: 110px;
    }

    .gallery-section-title {
        font-size: 1.1rem;
    }

    .modal-gallery .modal-dialog {
        max-width: 98vw;
    }

    .modal-gallery-caption {
        padding: 1rem 0.8rem;
    }

    .faq-section-title {
        font-size: 1.1rem;
    }

    .faq-search {
        max-width: 100%;
    }
}

.modal-gallery .btn-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    padding: 8px;
}

.modal-gallery .modal-footer {
    border: none;
    padding-top: 0;
}

/* Navigation arrows */
.modal-gallery .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    color: #0d6efd;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.modal-gallery .nav-arrow.left {
    left: 18px;
}

.modal-gallery .nav-arrow.right {
    right: 18px;
}

.modal-gallery .nav-arrow:active {
    background: #e3f2fd;
}