@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Reference Image Ocean Blue & Government Teal Theme */
    --color-primary: #008db9;         /* Vibrant Ocean Blue / Cyan (Header Banner in Ref) */
    --color-primary-dark: #005b7f;    /* Deep Navy Blue (Sekilas Info Bar in Ref) */
    --color-primary-light: #e0f2fe;   /* Soft Cyan Blue Tint */
    --color-secondary: #0097a7;       /* Government Teal Green (Aparatur/Berita Header in Ref) */
    --color-secondary-dark: #00695c;  /* Deep Teal Green */
    --color-secondary-light: #e0f2f1; /* Soft Teal Tint */
    
    --color-bg-base: #ebf3f7;         /* Soft Blue-Slate Ambient Tint */
    --color-bg-surface: #ffffff;      /* Pure White */
    --color-bg-card: rgba(255, 255, 255, 0.95);
    
    --color-text-main: #0f172a;       /* Slate 900 */
    --color-text-muted: #334155;      /* Slate 700 */
    --color-text-light: #64748b;      /* Slate 500 */
    
    --color-accent-blue: #0284c7;     /* Ocean Cyan */
    --color-accent-blue-light: #e0f2fe; /* Soft Sky Blue */
    --color-accent-red: #ef4444;      /* Red 500 */
    --color-accent-green: #009688;    /* Teal Green */
    
    --border-glass: rgba(186, 230, 253, 0.8);
    --border-light: #cbd5e1;          /* Slate 300 */
    
    /* Shadows */
    --shadow-sm: 0 2px 4px 0 rgba(0, 91, 127, 0.04);
    --shadow-md: 0 6px 12px -2px rgba(0, 91, 127, 0.08);
    --shadow-lg: 0 15px 30px -5px rgba(0, 91, 127, 0.12);
    --shadow-premium: 0 12px 30px -5px rgba(0, 91, 127, 0.08), 0 4px 12px -2px rgba(0, 141, 185, 0.05);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e0f2fe 0%, #ebf3f7 45%, #e0f2f1 75%, #f1f5f9 100%);
    background-attachment: fixed;
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Section Styling */
.section-padding {
    padding: 5rem 0;
}
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    color: #0f172a;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    background: linear-gradient(135deg, #005b7f 0%, #0097a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.section-title p {
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 3px solid #008db9;
    box-shadow: 0 4px 20px rgba(0, 91, 127, 0.08);
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 100%;
    width: 100%;
    padding: 0 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    flex-shrink: 0;
    margin-right: 2.5rem;
}

.brand-logo-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.logo-pemkab {
    width: 38px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.4rem 0.25rem;
    white-space: nowrap !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.dropdown-toggle .arrow {
    font-size: 0.75rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-cta .btn {
    padding: 0.45rem 0.9rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    border-radius: 8px;
    line-height: 1.2;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000005 !important;
    padding: 6px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--color-text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    display: block;
}

@media (max-width: 991px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999999 !important;
        overflow: visible !important;
    }
    .navbar-container {
        padding: 0 1rem !important;
        height: 70px !important;
        position: relative !important;
        overflow: visible !important;
    }
    .brand {
        gap: 0.45rem !important;
        margin-right: auto !important;
    }
    .logo-pemkab {
        width: 32px !important;
        max-height: 36px !important;
    }
    .brand div div:first-child {
        font-size: 0.92rem !important;
    }
    .brand div div:last-child {
        font-size: 0.5rem !important;
        letter-spacing: 0.02em !important;
    }
    .menu-toggle {
        display: flex !important;
        margin-left: 0.75rem;
        z-index: 1000005 !important;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 70px) !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 1.5rem 1.25rem 4rem 1.25rem !important;
        gap: 0.25rem !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
        overflow-y: auto !important;
        z-index: 999999 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }
    .nav-menu.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    .nav-menu li {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .nav-menu .nav-link {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        padding: 0.85rem 1rem !important;
        width: 100% !important;
        justify-content: center !important;
        color: #0f172a !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8fafc !important;
        width: 100% !important;
        border-radius: 8px !important;
        margin-top: 0.25rem !important;
        display: none !important;
    }
    .dropdown.open .dropdown-menu {
        display: block !important;
    }
    .dropdown-menu li a {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem !important;
        color: #334155 !important;
        text-align: center !important;
    }
    .nav-cta {
        display: none !important;
    }
    .mobile-only-cta {
        display: block !important;
        margin-top: 1rem !important;
        width: 100% !important;
        border-top: 2px solid #e2e8f0 !important;
        padding-top: 1.25rem !important;
    }
    .mobile-cta-box {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    .mobile-cta-box * {
        display: inline-flex !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

@media (min-width: 992px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 80px !important;
        z-index: 1000 !important;
    }
    .navbar-container {
        height: 80px !important;
        padding: 0 1.5rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        max-width: 100% !important;
    }
    .brand {
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }
    .nav-menu {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.1rem !important;
        background: transparent !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        margin: 0 auto !important;
    }
    .nav-menu li {
        width: auto !important;
        display: inline-block !important;
    }
    .nav-menu .nav-link {
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        padding: 0.4rem 0.3rem !important;
        width: auto !important;
        color: var(--color-text-muted) !important;
        border-bottom: none !important;
    }
    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 220px !important;
        background: white !important;
        box-shadow: var(--shadow-md) !important;
        border-radius: 12px !important;
        border: 1px solid var(--border-light) !important;
        margin-top: 0 !important;
        display: none !important;
    }
    .dropdown-menu li a {
        font-size: 0.85rem !important;
        text-align: left !important;
        color: var(--color-text-main) !important;
    }
    .nav-cta {
        display: flex !important;
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }
    .mobile-only-cta,
    .mobile-only-cta *,
    .mobile-cta-box,
    .mobile-cta-box * {
        display: none !important;
    }
    .menu-toggle {
        display: none !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: white;
}

.btn-secondary:hover {
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--color-text-main);
    border: 1px solid var(--border-light);
}

.btn-light:hover {
    background-color: #f1f5f9;
}

/* Glassmorphism Card */
.card-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(186, 230, 253, 0.8);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 12px 30px -5px rgba(0, 91, 127, 0.06), 0 4px 12px -2px rgba(0, 141, 185, 0.04);
    transition: all 0.3s ease;
}

.card-glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -5px rgba(0, 91, 127, 0.12), 0 8px 15px -3px rgba(0, 141, 185, 0.08);
    border-color: rgba(0, 141, 185, 0.4);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background-color: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.form-control:focus {
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Badge & Tag */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success { background-color: #dcfce7; color: #15803d; }
.badge-warning { background-color: #fef3c7; color: #b45309; }
.badge-danger { background-color: #fee2e2; color: #b91c1c; }
.badge-info { background-color: #dbeafe; color: #1d4ed8; }

/* Status Step Indicator */
.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--border-light);
    transform: translateY(-50%);
    z-index: 1;
}

.step-progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--color-primary);
    transform: translateY(-50%);
    z-index: 1;
    transition: width 0.4s ease;
}

.step-node {
    position: relative;
    z-index: 2;
    background-color: white;
    border: 3px solid var(--border-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
    color: var(--color-text-light);
}

.step-node.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
}

.step-node.completed {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-text-main);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Footer Section */
.site-footer {
    background: linear-gradient(135deg, #00364e 0%, #005b7f 50%, #008db9 100%);
    color: white;
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary-light);
}

.footer-col p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================
   DROPDOWN MENU NAVIGASI (PURE CSS)
   ========================================== */

/* 1. Parent Menu (Li induk tempat dropdown berpatokan) */
.nav-menu li.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Tombol / Link Pemicu Dropdown */
.nav-menu .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    text-decoration: none;
}

/* Animasi Panah saat Hover */
.nav-menu .dropdown-toggle .arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-menu li.dropdown:hover .dropdown-toggle .arrow,
.nav-menu li.dropdown.open .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

/* 2. Sub-menu Dropdown Box (Melayang & Hidden Secara Default) */
.nav-menu .dropdown-menu {
    display: none;                  /* Sembunyikan secara default */
    position: absolute !important;  /* Melayang keluar dari aliran dokumen */
    top: 100% !important;           /* Tepat di bawah menu induk */
    left: 0 !important;
    min-width: 230px !important;    /* Lebar minimum */
    background-color: #ffffff !important; /* Latar belakang putih */
    border-radius: 12px !important; /* Border radius modern */
    padding: 0.5rem 0 !important;
    margin: 0.25rem 0 0 0 !important;
    list-style: none !important;   /* Hilangkan bullet point */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 6px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
    z-index: 1000 !important;       /* Berada di atas hero banner */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* Jembatan hover transparan agar kursor tidak kehilangan fokus */
.nav-menu .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

/* 3. Tampilkan Sub-menu Saat Parent Menu Disorot (Hover / Open) */
.nav-menu li.dropdown:hover > .dropdown-menu,
.nav-menu li.dropdown.open > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* 4. Styling Item & Link di Dalam Dropdown */
.nav-menu .dropdown-menu li {
    list-style: none !important;   /* Hilangkan bullet point item */
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
}

.nav-menu .dropdown-menu li a {
    display: block !important;
    padding: 0.7rem 1.25rem !important;
    color: #334155 !important;      /* Teks netral Slate 700 */
    font-size: 0.925rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    position: relative;
}

/* Hilangkan garis bawah animasi bawaan nav-link */
.nav-menu .dropdown-menu li a::after {
    display: none !important;
}

/* Hover State Item Dropdown */
.nav-menu .dropdown-menu li a:hover {
    background-color: #ccfbf1 !important; /* Background hijau pastel */
    color: #0f766e !important;            /* Warna hijau gelap profesional */
    padding-left: 1.5rem !important;      /* Bergeser halus ke kanan */
}

/* 5. Penyesuaian Responsif (HP / Tablet <= 768px) */
@media (max-width: 768px) {
    .nav-menu li.dropdown {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
    }

    .nav-menu .dropdown-toggle {
        justify-content: center !important;
        width: auto !important;
    }

    .nav-menu .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background-color: rgba(241, 245, 249, 0.8) !important;
        border-radius: 10px !important;
        margin: 0.5rem auto !important;
        width: 85% !important;
        max-width: 300px !important;
        text-align: center !important;
        padding: 0.25rem 0 !important;
    }

    .nav-menu .dropdown-menu li a {
        text-align: center !important;
        justify-content: center !important;
        padding: 0.6rem 1rem !important;
    }

    .nav-menu .dropdown-menu li a:hover {
        padding-left: 1rem !important;
    }
}

/* ==========================================================================
   Halaman Pengaturan Beranda Admin (.main-content & .grid-container)
   ========================================================================== */

/* Kontainer Utama (.main-content) dengan Latar Belakang Pola Batik Samar */
.main-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
    background-color: #f8fafc; /* Warna latar dasar */
    overflow: hidden;
}

/* Pola Batik Berulang dengan Efek Pudar/Samar (Opacity 18%) via Pseudo-Element */
.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%230d9488' stroke-width='1.4' opacity='0.55'%3E%3Cellipse cx='30' cy='15' rx='12' ry='7'/%3E%3Cellipse cx='30' cy='45' rx='12' ry='7'/%3E%3Cellipse cx='15' cy='30' rx='7' ry='12'/%3E%3Cellipse cx='45' cy='30' rx='7' ry='12'/%3E%3Ccircle cx='30' cy='30' r='3.5' fill='%230d9488'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='60' cy='0' r='6'/%3E%3Ccircle cx='0' cy='60' r='6'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E"), url('../assets/img/batik-pattern.svg'), url('../assets/img/batik-pattern.png');
    background-repeat: repeat;
    background-position: top left;
    opacity: 0.18; /* Mengatur pudar pola batik (18% transparansi) */
    pointer-events: none; /* Agar tidak mengganggu klik/interaksi konten */
    z-index: 0;
}

/* Kontainer Grid Responsif (.grid-container) untuk Menampung Card (2 - 3 Kolom) */
.grid-container {
    position: relative;
    z-index: 1; /* Memastikan konten tampil di atas pola batik */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsif otomatis */
    gap: 1.5rem; /* Jarak antar card */
    max-width: 1280px;
    margin: 0 auto;
}

/* Tampilan Desktop Presisi 3 Kolom */
@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tampilan Tablet / Layar Sedang 2 Kolom */
@media (min-width: 640px) and (max-width: 1023px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tampilan Layar HP / Mobile (1 Kolom) */
@media (max-width: 639px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==========================================================================
   Tugas 2: Card UI Formulir Kepala Desa (.kades-card)
   ========================================================================== */

/* Card Base */
.kades-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kades-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12), 0 12px 15px -8px rgba(0, 0, 0, 0.06);
}



/* Header Card (Foto Profil Inisial + Tombol Hapus) */
.kades-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Outer Border Segi Delapan (Octagon) Emas/Coklat Muda */
.avatar-octagon-border {
    width: 64px;
    height: 64px;
    padding: 2.5px; /* Tebal border emas */
    background: linear-gradient(135deg, #d97706, #f59e0b, #b45309); /* Gradasi Warna Emas / Coklat Muda */
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

/* Inner Avatar Segi Delapan dengan Inisial "K" */
.avatar-octagon-inner {
    width: 100%;
    height: 100%;
    background-color: #fff8f0; /* Cream muda */
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading), Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #92400e; /* Warna coklat tua elegan */
}

/* Tombol Hapus Merah */
.btn-delete-card {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-delete-card:hover {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Form Input Styling */
.kades-form-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.kades-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.kades-form-group label {
    font-size: 0.825rem;
    font-weight: 600;
    color: #475569; /* Slate 600 */
}

.kades-form-group input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kades-form-group input:focus {
    outline: none;
    border-color: #d97706; /* Emas / Warm Amber */
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Profile Section Component */
.profile-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: center; 
}
@media (max-width: 768px) { 
    .profile-container { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    } 
}
.profile-text h3 { 
    font-size: 1.75rem; 
    color: var(--color-primary-dark); 
    margin-bottom: 1rem; 
}
.profile-img-wrapper { 
    position: relative; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: var(--shadow-lg); 
    aspect-ratio: 16/10; 
}
.profile-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}
.profile-img-wrapper:hover img { 
    transform: scale(1.05); 
}
