/* ===== STYLE UNTUK HALAMAN PEMERINTAH DESA ===== */

/* Layout Pemerintah */
.pemerintah-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px 0;
}

@media (max-width: 992px) {
    .pemerintah-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Pemerintah */
.pemerintah-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.pemerintah-sidebar .sidebar-sticky {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pemerintah-sidebar .sidebar-header {
    background: linear-gradient(135deg, #2c7a2c 0%, #38a169 100%);
    color: white;
    padding: 20px;
}

.pemerintah-sidebar .sidebar-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.pemerintah-sidebar .sidebar-nav {
    padding: 20px 0;
}

.pemerintah-sidebar .sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pemerintah-sidebar .sidebar-nav li {
    margin: 0;
}

.pemerintah-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.pemerintah-sidebar .sidebar-link:hover {
    background: #f8f9fa;
    color: #2c7a2c;
    border-left-color: #2c7a2c;
}

.pemerintah-sidebar .sidebar-link.active {
    background: #f0f7f0;
    color: #2c7a2c;
    border-left-color: #2c7a2c;
    font-weight: 500;
}

.pemerintah-sidebar .sidebar-link i {
    width: 20px;
    text-align: center;
}

/* Pemerintah Content */
.pemerintah-content {
    min-height: 1000px;
}

.pemerintah-section {
    margin-bottom: 50px;
}

.section-header-pemerintah {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-header-pemerintah h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header-pemerintah .section-badge {
    background: #e9ecef;
    color: #495057;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.pemerintah-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* Struktur Organisasi */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.org-level-1, .org-level-2, .org-level-3, .org-level-4 {
    display: flex;
    justify-content: center;
    width: 100%;
}

.org-level-3 {
    gap: 40px;
}

.org-level-4 {
    gap: 20px;
}

.org-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.org-node {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 200px;
    position: relative;
    transition: all 0.3s;
}

.org-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #2c7a2c;
}

.org-node.ceo {
    border-color: #2c7a2c;
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%);
}

.org-node.staff {
    min-width: 180px;
}

.node-content h5 {
    color: #2c7a2c;
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.node-content p {
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 500;
    font-size: 15px;
}

.node-content small {
    color: #6c757d;
    font-size: 12px;
}

.node-connector {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: #e9ecef;
}

.org-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #e9ecef;
}

.legend-color.ceo {
    background: #2c7a2c;
}

.legend-color.staff {
    background: #4299e1;
}

/* Filter Controls */
.filter-controls {
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 25px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #2c7a2c;
    color: #2c7a2c;
}

.filter-btn.active {
    background: #2c7a2c;
    border-color: #2c7a2c;
    color: white;
}

/* Perangkat Desa Grid */
.perangkat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.perangkat-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.perangkat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #2c7a2c;
}

.perangkat-photo {
    height: 200px;
    overflow: hidden;
}

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

.perangkat-card:hover .perangkat-photo img {
    transform: scale(1.05);
}

.perangkat-content {
    padding: 20px;
}

.perangkat-role {
    display: inline-block;
    background: #f0f7f0;
    color: #2c7a2c;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.perangkat-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.perangkat-position {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.perangkat-contact {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #6c757d;
}

.perangkat-contact i {
    color: #2c7a2c;
    width: 16px;
}

/* BPD Section */
.bpd-intro {
    display: flex;
    gap: 30px;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.intro-icon {
    background: #2c7a2c;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.intro-content h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.intro-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.bpd-structure h4 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.structure-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.structure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.structure-card.chairman {
    border-color: #2c7a2c;
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%);
}

.structure-photo {
    height: 200px;
    overflow: hidden;
}

.structure-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.structure-info {
    padding: 20px;
    text-align: center;
}

.structure-info h5 {
    color: #2c7a2c;
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.structure-info .name {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 5px 0;
}

.structure-info .role {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.structure-contact {
    color: #6c757d;
    font-size: 13px;
}

.structure-contact i {
    color: #2c7a2c;
    margin-right: 5px;
}

.anggota-section {
    margin-top: 30px;
}

.anggota-section h5 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 18px;
}

.anggota-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.anggota-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.anggota-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.anggota-avatar {
    background: #2c7a2c;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.anggota-info .name {
    color: #333;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.anggota-info .dusun {
    color: #666;
    margin: 0;
    font-size: 13px;
}

/* PKK Section */
.pkk-intro {
    display: flex;
    gap: 30px;
    align-items: center;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe3e6 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.pkk-logo {
    background: #e91e63;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.pkk-content h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.pkk-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.pkk-structure {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .pkk-structure {
        grid-template-columns: 1fr;
    }
}

.pkk-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.pkk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e91e63;
}

.pkk-photo {
    height: 200px;
    overflow: hidden;
}

.pkk-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pkk-info {
    padding: 20px;
    text-align: center;
}

.pkk-info h5 {
    color: #e91e63;
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.pkk-info .name {
    color: #333;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 5px 0;
}

.pkk-info .role {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.pkk-contact {
    color: #6c757d;
    font-size: 13px;
}

.pkk-contact i {
    color: #e91e63;
    margin-right: 5px;
}

.pkk-programs h5 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 18px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.program-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    text-align: center;
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e91e63;
}

.program-icon {
    background: #ffe3e6;
    color: #e91e63;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 15px;
}

.program-content h6 {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.program-content p {
    color: #666;
    margin: 0;
    font-size: 13px;
}