/* Basic Resets & Global Styles */
:root {
    --primary-color: #4C89ED;
    --secondary-color: #f0f2f5;
    --text-color-dark: #333;
    --text-color-light: #fff;
    --gray-light: #e0e0e0;
    --gray-medium: #888;
    --gray-dark: #555;
    --box-shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius-soft: 8px;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dark Mode Override */
body.dark-mode {
    --text-color: #e0e0e0;
    --text-color-light: #222;
    --gray-light: #222;
    --gray-dark: #aaa;
    --secondary-color: #111;
    --primary-color: #219ebc;
    --accent-color: #ffb703;
    --box-shadow-light: 0 2px 6px rgba(255,255,255,0.1);
    background: #121212;
}

body {
    font-family: 'Poppins', sans-serif; /* You might need to import Poppins from Google Fonts */
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: #3a6cdb; /* Slightly darker primary color on hover */
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 10px 20px;
    border-radius: var(--border-radius-soft);
    transition: background-color var(--transition-speed);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #3a6cdb;
    color: #e0e0e0;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--gray-light);
    color: var(--text-color-dark);
    padding: 8px 15px;
    border-radius: var(--border-radius-soft);
    transition: background-color var(--transition-speed);
    border: 1px solid var(--gray-medium);
    font-size: 0.9em;
}

.btn-secondary:hover {
    background-color: var(--gray-medium);
    color: var(--text-color-light);
}

/* Navbar */
.navbar {
    background-color: var(--text-color-light);
    box-shadow: var(--box-shadow-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for mobile */
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .logo {
    height: 40px;
    margin-right: 10px;
}

.navbar-brand .brand-text {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--primary-color);
}

.navbar-nav ul {
    display: flex;
}

.navbar-nav li {
    margin-left: 25px;
    position: relative;
}

.navbar-nav a {
    color: var(--text-color-dark);
    font-weight: 500;
    padding: 5px 0;
    display: block;
}

.navbar-nav a:hover {
    color: var(--primary-color);
}

.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--text-color-light);
    min-width: 260px;
    box-shadow: var(--box-shadow-light);
    z-index: 1;
    border-radius: var(--border-radius-soft);
    padding: 10px 0;
    left: 0;
    top: 100%;
}

.navbar-nav .dropdown-content a {
    color: var(--text-color-dark);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.navbar-nav .dropdown-content a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.navbar-nav .dropdown:hover .dropdown-content {
    display: block;
}

.navbar-actions {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    margin-right: 20px;
}

.search-box input {
    border: 1px solid var(--gray-light);
    padding: 8px 10px 8px 35px;
    border-radius: var(--border-radius-soft);
    font-size: 0.9em;
    width: 150px;
    transition: width var(--transition-speed);
}

.search-box input:focus {
    width: 200px;
    outline: none;
    border-color: var(--primary-color);
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-medium);
}
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}


.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--text-color-dark);
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-bottom: 40px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust height as needed */
    overflow: hidden;
    border-radius: var(--border-radius-soft);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--text-color-light);
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.slide-content h1 {
    font-size: 3em;
    font-weight: 700;
    color: var(--text-color-light);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.dot.active, .dot:hover {
    background-color: var(--text-color-light);
}

.hero-social-links {
    text-align: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 10px;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
    z-index: 5;
}

.hero-social-links a {
    font-size: 1.5em;
    color: var(--gray-dark);
}

.hero-social-links a:hover {
    color: var(--primary-color);
}

.hero-social-links .qr-code {
    text-align: center;
    margin-top: 10px;
}

.hero-social-links .qr-code img {
    text-align: center;
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
}

.hero-social-links .qr-code p {
    font-size: 0.8em;
    color: var(--gray-dark);
}

/* Profil Section */
.profil-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.profil-text {
    flex: 2;
}

.profil-text h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.profil-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.profil-video-card {
    flex: 1;
    background-color: var(--text-color-light);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-color-light);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color var(--transition-speed);
}

.play-button:hover {
    background-color: var(--primary-color);
}

.video-meta {
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.video-meta h4 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: var(--text-color-dark);
}

.video-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: var(--gray-medium);
}

.video-stats i {
    margin-right: 5px;
}

.video-footer {
    padding: 10px 15px;
    text-align: right;
}

.video-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.video-footer a i {
    margin-right: 5px;
}

/* Pelajari Alur Section */
.pelajari-alur-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    margin-bottom: 60px;
}

.pelajari-alur-content {
    display: flex;
    gap: 40px;
    align-items: center;
    color: var(--text-color-light);
}

.pelajari-alur-content .image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pelajari-alur-content .image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
}

.pelajari-alur-content .text-wrapper {
    flex: 2;
}

.pelajari-alur-content h3 {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.pelajari-alur-content h2 {
    font-size: 2.5em;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.pelajari-alur-content p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-soft);
    padding: 20px;
    text-align: center;
    transition: background-color var(--transition-speed);
}

.stat-item.primary {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    border-color: var(--text-color-light);
}

.stat-item.primary .number {
    color: var(--primary-color);
}
.stat-item.primary .label {
    color: var(--gray-dark);
}


.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.stat-item .number {
    font-size: 2em;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    color: var(--text-color-light);
}

.stat-item .label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}


/* Galeri Sistem Section */
.galeri-sistem-section {
    padding: 60px 0;
    margin-bottom: 60px;
    text-align: center;
}

.galeri-sistem-section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.galeri-sistem-section h3 {
    font-size: 1.8em;
    margin-bottom: 40px;
    color: var(--text-color-dark);
}

.grid-card-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.card-item {
    background-color: var(--text-color-light);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
    padding: 30px 20px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
    text-decoration: none; /* hapus underline link */
    color: var(--text-color-dark); /* warna teks default */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-item i {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Akses Referensi Section */
/* ===================== */
.akses-referensi-section {
    padding: 60px 0;
    margin-bottom: 60px;
    background-color: var(--secondary-color);
}

.akses-referensi-section .container {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.akses-referensi-section .image-akses {
    flex: 1;
}

.akses-referensi-section .image-akses img {
    width: 100%;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
}

.akses-referensi-section .text-akses {
    flex: 1.2;
}

.akses-referensi-section .text-akses h4 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.akses-referensi-section .text-akses h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.akses-referensi-section .text-akses p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--gray-dark);
}


/* ===================== */
/* Berita Section */
/* ===================== */
.berita-section {
    padding: 60px 0;
    margin-bottom: 60px;
}

.berita-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.berita-header h2 {
    font-size: 2em;
    color: var(--primary-color);
}

.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.berita-card {
    background-color: var(--text-color-light);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.berita-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.berita-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.berita-card .card-content {
    padding: 20px;
    flex: 1;
}

.berita-card h4 {
    font-size: 1.1em;
    color: var(--text-color-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.berita-card p {
    font-size: 0.95em;
    color: var(--gray-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: var(--gray-medium);
}


/* ===================== */
/* Footer */
/* ===================== */
.footer {
    background-color: var(--text-color-dark);
    color: var(--text-color-light);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: var(--primary-color);
}

.footer-col p {
    font-size: 0.9em;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-logo {
    margin-bottom: 15px;
    max-width: 160px;
}

.footer-col i {
    margin-right: 8px;
    color: var(--accent-color, #ffb703);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.7);
}

/* ===================== */
/* GLOBAL RESPONSIVE */
/* ===================== */

/* Tablet */
@media (max-width: 1024px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .search-box input {
        width: 120px;
    }

    .profil-section {
        flex-direction: column;
    }

    .pelajari-alur-content {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .akses-referensi-section .container {
        flex-direction: column;
        text-align: center;
    }

    .berita-header {
        flex-direction: column;
        gap: 15px;
    }

    .hero-social-links {
        display: none; /* Sembunyikan di tablet & mobile agar tidak ganggu */
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--text-color-light);
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: var(--box-shadow-light);
    }

    .navbar-nav ul {
        flex-direction: column;
        padding: 15px;
    }

    .navbar-nav li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block; /* Tampilkan toggle menu */
    }

    .navbar-nav.active {
        display: flex;
    }

    /* Hero Section */
    .hero-slider {
        height: 250px;
    }

    .slide-content h1 {
        font-size: 1.8em;
    }

    /* Profil Section */
    .profil-section {
        flex-direction: column;
        gap: 20px;
    }

    .profil-video-card {
        width: 100%;
    }

    /* Pelajari Alur */
    .pelajari-alur-content {
        flex-direction: column;
        gap: 20px;
    }

    .pelajari-alur-content h2 {
        font-size: 1.8em;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Galeri Sistem */
    .grid-card-system {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Akses Referensi */
    .akses-referensi-section .container {
        flex-direction: column;
        text-align: center;
    }

    /* Berita */
    .berita-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 20px;
    }
}

/* Extra Small Devices (HP kecil) */
@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 1.4em;
    }

    .search-box {
        display: none; /* Sembunyikan pencarian di layar kecil */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .grid-card-system {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        height: 180px;
    }
}


/* profile */
.prof-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.prof-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
}

.prof-text h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

.prof-image {
    flex: 1;
    max-width: 400px;
}

.prof-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.prof-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.prof-content table th,
.prof-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.prof-content table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Supaya tabel bisa discroll kalau kepanjangan */
.prof-content {
    overflow-x: auto;
}

.prof-content table {
    min-width: 600px; /* tabel punya lebar minimal */
}

/* Responsif */
@media (max-width: 768px) {
    .prof-container {
        flex-direction: column;
        align-items: center;
    }

    .prof-image {
        max-width: 100%;
        margin-top: 20px;
    }
    .prof-content table {
        font-size: 13px;
        min-width: 100%;
    }
}

/* editor */
.prof-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.prof-content p {
    margin-bottom: 1em;
}

.prof-content h1,
.prof-content h2,
.prof-content h3,
.prof-content h4,
.prof-content h5,
.prof-content h6 {
    margin: 1.2em 0 0.5em;
    font-weight: bold;
    color: #222;
}

.prof-content ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin: 0.8em 0;
}

.prof-content ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin: 0.8em 0;
}

.prof-content li {
    margin-bottom: 0.4em;
}

.prof-content blockquote {
    border-left: 4px solid #4CAF50;
    padding-left: 1em;
    color: #555;
    font-style: italic;
    margin: 1em 0;
}

.prof-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 6px;
}
.image-stuktur {
    display: flex;
    justify-content: center; /* posisi horizontal di tengah */
    align-items: center;     /* posisi vertical di tengah (kalau ada height) */
    margin: 40px auto;
    max-width: 600px; /* batas lebar frame */
    overflow: hidden; /* agar efek hover tidak keluar frame */
    border-radius: 8px;
}

.image-stuktur img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
    border-radius: 8px;
}

/* Hover Effect */
.image-stuktur img:hover {
    transform: scale(1.05); /* sedikit zoom */
    filter: brightness(1.1); /* perjelas gambar */
}

.pimpinan-section {
    margin: 40px auto;
    max-width: 900px;
    padding: 20px;
}

.pimpinan-card {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.pimpinan-card:hover {
    transform: translateY(-5px);
}

.pimpinan-image img {
    width: 260px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #4982ff;
}

.pimpinan-info {
    flex: 1;
}

.pimpinan-info h2 {
    margin-bottom: 10px;
    font-size: 1.6rem;
    color: #333;
}

.pimpinan-info p {
    margin: 6px 0;
    font-size: 1rem;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .pimpinan-card {
        flex-direction: column;
        text-align: center;
    }

    .pimpinan-image img {
        width: 140px;
        height: 140px;
    }
}

.pustakawan-section {
    margin: 40px auto;
    max-width: 1200px;
    padding: 20px;
}

.pustakawan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

.pustakawan-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.pustakawan-card:hover {
    transform: translateY(-5px);
}

.pustakawan-image img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #4982ff;
}

.pustakawan-info {
    flex: 1;
}

.pustakawan-info h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #333;
}

.pustakawan-info p {
    margin: 6px 0;
    font-size: 1rem;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .pustakawan-card {
        flex-direction: column;
        text-align: center;
    }

    .pustakawan-image img {
        width: 120px;
        height: 120px;
    }
}

.navbar-nav ul li a.active {
    color: #535fca; /* hijau */
    font-weight: bold;
    border-bottom: 2px solid #534caf;
}
.complaint-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolom sama besar */
    gap: 20px;
    margin-top: 20px;
}

.complaint-card,
.maps-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.complaint-section {
    margin: 40px auto;
    padding: 20px;
}

.complaint-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.complaint-form .form-group {
    margin-bottom: 15px;
}

.complaint-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #444;
}

.complaint-form input,
.complaint-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.complaint-form input:focus,
.complaint-form textarea:focus {
    border-color: #535fca;
    outline: none;
}

.btn-pengaduan {
    display: inline-block;
    border: none;
    background: #535fca;
    color: #fff;
    padding: 20px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: border-color 0.3s;
    width: 100%;
}

.btn-pengaduan:hover {
    background: #535fca;
}

.alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.alert.success {
    background: #e6f9ed;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.alert.error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #c62828;
}
.maps-container {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* Judul & deskripsi */
.judul-dokumen {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.deskripsi-dokumen {
    font-size: 0.95rem;
    color: #666;
}

/* Kotak pencarian */
.search-dox {
    margin: 15px 0;
    text-align: right;
}

.search-dox input {
    padding: 10px 15px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    transition: 0.3s;
}

.search-dox input:focus {
    border-color: #2980b9;
    box-shadow: 0 0 5px rgba(41, 128, 185, 0.3);
}

/* Tabel */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

#documentsTable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

#documentsTable thead {
    background: #2980b9;
    color: #fff;
}

#documentsTable th, 
#documentsTable td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#documentsTable tbody tr:hover {
    background-color: #f4f9ff;
    transition: 0.2s ease-in-out;
}

/* Tombol aksi */
.btn-view {
    background: #3498db;
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-view:hover {
    background: #217dbb;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 400px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}
.modal-content input {
    width: 80%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.modal-content .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
}


/* Khusus area isi dokumen */
.document-contents {
    line-height: 1.6;
    color: #333;
    overflow-x: auto;
    padding: 10px 0;
}

/* Styling untuk tabel */
.document-contents table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 12px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Header tabel */
.document-contents table thead {
    background: linear-gradient(135deg, #4C89ED, #6A5ACD);
    color: #fff;
    text-align: left;
}

.document-contents table th,
.document-contents table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
}

/* Efek hover pada baris */
.document-contents table tbody tr:hover {
    background: #f5f7fa;
    transition: 0.2s;
}

/* Responsive tabel: stack di layar kecil */
@media (max-width: 768px) {
    .document-contents table,
    .document-contents thead,
    .document-contents tbody,
    .document-contents th,
    .document-contents td,
    .document-contents tr {
        display: block;
        width: 100%;
    }

    .document-contents thead {
        display: none; /* sembunyikan header di mobile */
    }

    .document-contents tr {
        margin-bottom: 15px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        border-radius: 6px;
        overflow: hidden;
        background: #fff;
    }

    .document-contents td {
        padding: 10px;
        text-align: right;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .document-contents td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
        color: #555;
    }
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chart-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.summary-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.summary-box h4, .summary-box h5 {
    color: #333;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .prof-text h2.judul-dokumen {
        font-size: 1.6rem;
    }
}

.profil-video-card {
    max-width: 350px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    margin: 20px auto;
}
.profil-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.video-thumbnail {
    position: relative;
}
.video-thumbnail img {
    width: 100%;
    display: block;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    padding: 18px 22px;
    border-radius: 50%;
    font-size: 20px;
    transition: background 0.2s ease;
}
.play-button:hover {
    background: rgba(255,0,0,0.8);
}
.video-meta {
    padding: 15px;
}
.video-meta h4 {
    font-weight: 700;
    color: #333;
}
.video-stats {
    font-size: 0.9rem;
    color: #777;
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}
.video-footer {
    padding: 10px 15px;
    background: #f9f9f9;
    text-align: right;
}
.video-footer a {
    text-decoration: none;
    color: #ff0000;
    font-weight: 600;
}

/* Modal Style */
.video-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}
.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}
.video-modal-content iframe {
    width: 100%;
    height: 450px;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    z-index: 1000;
}
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}
@media (max-width:768px){
    .video-modal-content iframe { height: 250px; }
}

.btn-pelajari {
  display: inline-block;
  background: linear-gradient(135deg, #4f46e5, #6366f1); /* gradasi ungu elegan */
  color: #fff;
  padding: 12px 28px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.btn-pelajari:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.4);
}

.btn-pelajari:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}
.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

