/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
}

/* LOADING SCREEN */
#loading-screen {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: white; z-index: 99999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
#loading-screen img { width: 100px; margin-bottom: 20px; }
#loading-screen .spinner {
    width: 40px; height: 40px;
    border: 4px solid #e8eeff;
    border-top: 4px solid #1f3b6f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #e6b1b1;
    padding: 10px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

/* MENU DROPDOWN */
.dropdown-menu {
    position: absolute;
    top: 35px;
    left: 0;
    background: white;
    border-radius: 12px;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 999;
}

/* ITEM */
.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}

/* HOVER ITEM */
.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #1f3b6f;
}

/* SHOW DROPDOWN */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* LOGO */
.logo-pemprov { height: 60px; }
.logo-dp3a { height: 60px; }
.logo-dp3a-sumsel { height: 60px; }
.logo-sumsel { height: 60px; }

/* MENU */
.menu {
    display: flex;
    gap: 25px;
    margin-left: auto;
    margin-right: 40px;
}

.menu a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.menu a:hover {
    color: #1f3b6f;
}

.menu a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #1f3b6f;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.clock {
    background-color: #1f3b6f;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
}

.menu a:hover::after {
    width: 100%;
}

/* BUTTON */
.signin {
    background-color: #1f3b6f;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.signin:hover {
    background-color: #16305a;
    transform: translateY(-2px);
}

/* HERO */
.hero {
    margin: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    height: 500px;
}

/* SLIDE */
.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

/* BACKGROUND */
.slide .bg {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background-color: white;
}

/* OVERLAY */
.slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(31,59,111,0.7) 0%, rgba(31,59,111,0.3) 50%, rgba(0,0,0,0) 100%);
    padding: 80px 50px;
    box-sizing: border-box;
}

/* SLIDE BIDANG */
.slide.bidang .bg {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    background-color: #f7edee;
}

.slide.bidang .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to right, rgba(247,237,238,1) 0%, rgba(247,237,238,0.3) 20%, rgba(247,237,238,0) 40%, rgba(247,237,238,0) 60%, rgba(247,237,238,0.3) 80%, rgba(247,237,238,1) 100%) !important;
    backdrop-filter: none !important;
    padding: 0 !important;
}

.slide.no-overlay .overlay {
    background: rgba(0,0,0,0) !important;
    backdrop-filter: none !important;
}

/* HERO CONTENT */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* TEXT */
.hero-text {
    max-width: 500px;
    color: white;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-text p {
    font-size: 15px;
    line-height: 1.6;
}

.hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-top: 12px;
    line-height: 1.7;
    max-width: 500px;
}

/* IMAGE */
.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.hero-image img {
    height: 480px;
    object-fit: contain;
    transition: 0.4s;
}

.hero-image img:hover {
    transform: scale(1.03);
}

/* NAMA KADIS */
.nama-kadis {
    margin-top: -80px;
    background-color: #1f3b6f;
    color: white;
    padding: 12px 85px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* TEXT TENGAH */
.center-text {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    font-weight: 600;
    height: 100%;
}

/* BUTTON NEXT */
.next, .prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.35);
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.next { right: 20px; left: auto; }
.prev { left: 20px; right: auto; }

.next:hover, .prev:hover {
    background-color: rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.1);
}

/* SECTION LOKASI */
.lokasi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px;
    margin: 40px 30px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* FOTO KIRI */
.lokasi-img img {
    width: 500px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* TEXT */
.lokasi-text { flex: 1; }

.label {
    font-size: 14px;
    color: gray;
    display: block;
    margin-bottom: 8px;
}

.lokasi-text h2 {
    font-size: 28px;
    color: #1f3b6f;
    margin-bottom: 14px;
}

.lokasi-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* BUTTON MAPS */
.maps-btn {
    display: inline-block;
    margin-top: 15px;
    background-color: #1f3b6f;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.maps-btn:hover {
    background-color: #16305a;
    transform: translateY(-2px);
}

/* MAP KANAN */
.lokasi-map img {
    width: 250px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* SECTION BERITA */
.berita {
    margin: 40px 30px;
    padding: 50px;
    border-radius: 20px;
    background: url('assets/images/songket.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* JUDUL */
.judul-section {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* CONTAINER CARD */
.berita-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* CARD */
.card {
    background: linear-gradient(-350deg, #ffffff 0%, #e8eeff 35%, #1f3b6f 100%) !important;
    border-radius: 15px;
    overflow: hidden;
    width: 260px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(31,59,111,0.2);
}

/* GAMBAR */
.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* ISI */
.card-body { padding: 15px; }

.card-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 13px;
    color: #555;
}

/* BUTTON LIHAT SEMUA */
.lihat-semua {
    text-align: center;
    margin-top: 30px;
}

.lihat-semua a {
    background-color: #1f3b6f;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.lihat-semua a:hover { background-color: #16305a; }

.footer {
    margin: 0;
    border-radius: 0;
    padding: 90px 50px;
    background: url('assets/images/songket.png') center/cover no-repeat;
    color: #333;
}

.footer {
    background:
        linear-gradient(rgba(230,150,150,0.1), rgba(230,150,150,0.85)),
        url('assets/images/songket.png') center/cover no-repeat;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left { max-width: 500px; }

.footer-logo {
    width: 80px;
    margin-bottom: 10px;
}

.footer-left h3 {
    margin: 10px 0;
    color: #1f3b6f;
}

.footer-left p {
    font-size: 14px;
    margin: 5px 0;
}

/* SOSMED */
.footer-right {
    display: flex;
    gap: 15px;
}

.footer-right img {
    width: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.footer-right img:hover { transform: scale(1.2); }

/*--------------------------------HALAMAN VISI MISI---------------------*/
.hero-mini {
    margin: 30px;
    padding: 60px 20px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(rgba(31,59,111,0.8), rgba(31,59,111,0.8)),
                url('assets/images/ampera.jpg') center/cover;
    color: white;
}

.hero-mini h1 {
    font-size: 32px;
    font-weight: 600;
}

/* VISI MISI */
.visi-misi {
    margin: 40px 30px;
    padding: 50px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.visi-misi h2 { color: #1f3b6f; }
.visi { margin-bottom: 30px; }
.misi ul { padding-left: 20px; }
.misi li { margin-bottom: 10px; }

/*--------------------------------HALAMAN Fungsi & Tujuan---------------------*/
.fungsi-tujuan {
    margin: 40px 30px;
    padding: 50px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.fungsi-tujuan h2 {
    font-size: 24px;
    color: #1f3b6f;
    margin-bottom: 15px;
}

.fungsi-tujuan p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

/* SECTION PDF */
.pdf-section { margin: 40px 30px; padding: 40px; }

.pdf-container {
    width: 100%;
    height: 700px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/*--------------------------------HALAMAN Struktur Organisasi---------------------*/
.struktur {
    margin: 40px 30px;
    padding: 50px;
    border-radius: 20px;
    background: white;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.struktur h2 {
    color: #1f3b6f;
    margin-bottom: 30px;
}

.struktur-img img {
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.struktur-img img:hover { transform: scale(1.02); }

/*--------------------------------HALAMAN Program & Kegiatan---------------------*/
.program {
    padding: 50px;
    background: #f5f5f5;
}

.program-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.program-card {
    width: 240px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.program-card:hover { transform: translateY(-5px); }

.program-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.program-card p { padding: 10px; font-weight: 500; }

.kegiatan {
    padding: 50px 30px;
    margin: 40px 30px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.kegiatan-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.kegiatan-card {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: black;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.kegiatan-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top;
}

.kegiatan-card p { padding: 15px; font-size: 15px; }
.kegiatan-card:hover { transform: translateY(-10px); }

/*--------------------------------HALAMAN Pejabat---------------------*/
.hero-pejabat img {
    width: calc(100% - 60px);
    height: 420px;
    object-fit: cover;
    margin: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.struktur-box {
    margin: 40px 30px;
    padding: 30px;
    background: #f3f3f3;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.struktur-box h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    color: #1f3b6f;
    letter-spacing: 1px;
}

.kepala-dinas {
    display: flex;
    gap: 25px;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.kepala-dinas img {
    width: 180px;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    object-position: top;
    border: 3px solid #1f3b6f;
    flex-shrink: 0;
}

.kepala-dinas div h3 {
    font-size: 20px;
    color: #1f3b6f;
    margin-bottom: 8px;
}

.kepala-dinas div p {
    font-size: 15px;
    color: #555;
    font-style: italic;
}

.scroll-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-container::-webkit-scrollbar { display: none; }

.card-pejabat {
    width: 220px;
    background: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: 0.3s;
}

.card-pejabat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(31,59,111,0.15);
}

.card-pejabat img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top !important;
}

.card-pejabat h4 {
    font-size: 12px;
    margin: 6px 8px 3px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1f3b6f;
    font-weight: 700;
}

.card-pejabat p {
    font-size: 11px;
    color: #666;
    min-height: 15px;
    margin-bottom: 8px;
    font-style: italic;
}

/* KEGIATAN GRID */
.kegiatan-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.kegiatan-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: black;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.kegiatan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(31,59,111,0.15);
}

.kegiatan-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top;
}

.kegiatan-card p {
    padding: 12px 16px 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f3b6f;
    line-height: 1.5;
}

.kegiatan-card .tanggal {
    padding: 0 16px 14px;
    font-size: 12px;
    color: #888;
}

/*--------------------------------Agenda---------------------*/
.agenda-section { padding: 40px 80px; }
.title { font-size: 32px; font-weight: bold; margin-bottom: 30px; }
.agenda-box { margin-bottom: 40px; }
.agenda-box h3 { margin-bottom: 15px; font-size: 20px; }

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

thead { background: #c7d6d8; }
th, td { padding: 15px; text-align: left; font-size: 14px; }
th { font-weight: bold; }
tr { border-bottom: 1px solid #eee; }
tr:hover { background: #f9f9f9; }

td:last-child { text-align: center; width: 150px; }

.badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; color: white; }
.berjalan { background: orange; }
.selesai { background: #4CAF50; }

.btn {
    background: #1e3a5f;
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover { background: #16304d; }

/*--------------------------------LHKPN---------------------*/
.lhkpn-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 80px;
    gap: 50px;
}

.lhkpn-left { width: 50%; }
.lhkpn-left h1 { font-size: 32px; margin-bottom: 20px; }
.lhkpn-left p { font-size: 14px; color: #333; }
.lhkpn-right { width: 50%; display: flex; justify-content: flex-end; align-items: center; }
.next-btn { font-size: 24px; margin-left: 15px; cursor: pointer; }

/*--------------------------------LAPORAN KEUANGAN---------------------*/
.hero-laporan {
    background:
        linear-gradient(rgba(230,150,150,0.7), rgba(230,150,150,0.7)),
        url('assets/images/songket.png') center/cover no-repeat;
    padding: 50px 60px;
}

.hero-laporan h1 { font-size: 32px; color: black; }

.laporan-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding: 60px 120px;
}

.laporan-card {
    background: #c7d6d8;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    color: black;
    display: block;
}

.laporan-card:hover { transform: translateY(-6px) scale(1.02); background: #b5cacc; }
.laporan-card h3 { font-size: 18px; font-weight: 600; }

/*--------------------------------PERENCANAAN---------------------*/
.content-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 80px;
    gap: 50px;
}

.content-left { width: 55%; }
.content-left h1 { font-size: 32px; margin-bottom: 20px; }
.content-left p { font-size: 14px; color: #333; line-height: 1.6; }
.content-right { width: 45%; display: flex; justify-content: center; }

.card-box {
    width: 300px;
    background: #c7d6d8;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: black;
    font-weight: 600;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.card-box:hover { transform: translateY(-5px); }

/*--------------------------------PEMILIHAN & PELAKSANAAN---------------------*/
.pemilihan-section, .pelaksanaan-section {
    padding: 60px 80px;
    text-align: center;
}

.pemilihan-section h1, .pelaksanaan-section h1 { font-size: 36px; margin-bottom: 10px; }

.desc {
    max-width: 600px;
    margin: auto;
    margin-bottom: 30px;
    font-size: 14px;
    color: #555;
}

.table-container { overflow-x: auto; margin-top: 20px; }

/*--------------------------------SEJARAH---------------------*/
.sejarah { margin: 40px 30px; padding: 50px; }

.sejarah-box {
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    line-height: 1.8;
    font-size: 15px;
    color: #444;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.sejarah-box p { margin-bottom: 20px; text-align: justify; }

/*--------------------------------PENGADUAN---------------------*/
.pengaduan-section {
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pengaduan-info {
    max-width: 700px;
    text-align: center;
    margin-bottom: 30px;
}

.pengaduan-info h2 {
    color: #1f3b6f;
    margin-bottom: 10px;
}

.pengaduan-info p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.pengaduan-box {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pengaduan-box h2 {
    margin-bottom: 20px;
    color: #1f3b6f;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: 0.3s;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #1f3b6f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(31,59,111,0.1);
}

.submit-btn {
    width: 100%;
    background-color: #1f3b6f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #16305a;
    transform: translateY(-2px);
}

/*--------------------------------FOOTER---------------------*/
.footer {
    margin-top: 50px;
    padding: 90px 50px;
    background:
        linear-gradient(rgba(230,150,150,0.2), rgba(230,150,150,0.9)),
        url('assets/images/songket.png') center/cover no-repeat;
}

.footer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo { width: 70px; }
.footer-title h3 { margin: 0; color: #1f3b6f; font-size: 18px; line-height: 1.3; }
.footer-info p { margin: 6px 0; font-size: 14px; }

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.info-item img { width: 18px; height: 18px; object-fit: contain; }
.info-item p { margin: 0; font-size: 14px; }

.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-left { max-width: 500px; }
.footer-logo { width: 80px; margin-bottom: 10px; }
.footer-left h3 { color: #1f3b6f; }
.footer-left p { font-size: 14px; }

.footer-right { display: flex; gap: 15px; }
.footer-right img { width: 30px; transition: 0.3s; }
.footer-right img:hover { transform: scale(1.2); }

/* FOOTER CENTER */
.footer-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.footer-logo-partner {
    width: 150px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    transition: 0.3s;
}

.footer-logo-partner:hover {
    transform: scale(1.1);
}

/* SCROLL TO TOP */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #1f3b6f;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
    z-index: 9999;
}

#scrollTop:hover {
    background: #16305a;
    transform: translateY(-3px);
}

/* FADE IN ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {

    /* NAVBAR */
    .navbar {
        padding: 8px 10px;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }
    .logo-group {
        display: flex;
        gap: 4px;
        align-items: center;
    }
    .logo-pemprov, .logo-dp3a, .logo-dp3a-sumsel, .logo-sumsel {
        height: 30px;
    }
    .menu {
        display: none !important;
    }
    .clock {
        font-size: 11px;
        padding: 5px 10px;
        white-space: nowrap;
    }

    /* HAMBURGER */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 5px;
    }
    .hamburger span {
        width: 24px;
        height: 2px;
        background: #1f3b6f;
        border-radius: 2px;
        display: block;
    }
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        z-index: 9999;
        padding: 10px 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    .mobile-menu.open { display: block; }
    .mobile-menu a {
        display: block;
        padding: 10px 20px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
    }
    .mobile-menu a:hover { background: #f5f5f5; color: #1f3b6f; }
    .mobile-menu .mobile-group-title {
        padding: 8px 20px;
        font-size: 12px;
        color: #aaa;
        font-weight: 600;
        text-transform: uppercase;
        background: #f9f9f9;
    }

    /* HERO */
    .hero {
        margin: 8px;
        height: 200px;
    }
    .slide .bg {
        height: 200px !important;
        object-fit: cover !important;
        background-color: white;
    }
    .slide.bidang .bg {
        height: 200px !important;
        object-fit: cover !important;
    }
    .hero-content {
        flex-direction: column;
        padding: 15px;
        justify-content: center;
    }
    .hero-text { max-width: 100%; }
    .hero-text h2 { font-size: 14px; margin-bottom: 6px; }
    .hero-desc { font-size: 11px; margin-top: 6px; }
    .hero-image { display: none; }
    .nama-kadis { display: none; }

    /* HERO MINI */
    .hero-mini {
        margin: 8px;
        padding: 25px 15px;
    }
    .hero-mini h1 { font-size: 18px; }

    /* LOKASI */
    .lokasi {
        flex-direction: column;
        margin: 8px;
        padding: 20px 15px;
        gap: 15px;
    }
    .lokasi-img img {
        width: 100%;
        height: 180px;
    }
    .lokasi-map { display: none; }
    .lokasi-text h2 { font-size: 16px; }
    .lokasi-text p { font-size: 13px; }

    /* BERITA */
    .berita {
        margin: 8px;
        padding: 20px 15px;
    }
    .judul-section { font-size: 18px; }
    .berita-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .card {
        width: 100% !important;
    }
    .card img { height: 180px; }
    .card-body h3 { font-size: 13px; }
    .card-body p { font-size: 12px; }

    /* KEGIATAN */
    .kegiatan {
        margin: 8px;
        padding: 20px 15px;
    }
    .kegiatan-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .kegiatan-card img { height: 150px; }
    .kegiatan-card p { font-size: 12px; padding: 8px; }
    .kegiatan-card .tanggal { font-size: 11px; padding: 0 8px 10px; }

    /* PEJABAT */
    .struktur-box {
        margin: 8px;
        padding: 15px;
    }
    .struktur-box h2 { font-size: 16px; }
    .kepala-dinas {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .kepala-dinas img {
        width: 120px;
        height: 150px;
        margin: auto;
    }
    .scroll-container {
        justify-content: center;
        gap: 12px;
    }
    .card-pejabat { width: 140px; }
    .card-pejabat img { height: 160px; }
    .card-pejabat h4 { font-size: 11px; }
    .card-pejabat p { font-size: 10px; }

    /* FOOTER */
    .footer {
        padding: 30px 15px;
        margin-top: 20px;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-left { max-width: 100%; }
    .footer-header { justify-content: center; }
    .info-item { justify-content: center; }
    .footer-center {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
    .footer-logo-partner { width: 80px; }
    .footer-right { justify-content: center; }

    /* BRANDING */
    .branding-wrap { margin: 8px; }
    .branding-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    .branding-hero img { width: 80px; }
    .branding-hero h2 { font-size: 16px; }
    .branding-card { padding: 20px; }
    .warna-grid { grid-template-columns: 1fr; gap: 10px; }

    /* UPTD */
    .uptd-wrap {
        grid-template-columns: 1fr !important;
        margin: 8px;
    }

    /* PENGADUAN */
    .pengaduan-section { padding: 15px; }
    .pengaduan-box { padding: 20px; }

    /* SEJARAH */
    .sejarah { margin: 8px; padding: 15px; }
    .sejarah-box { padding: 20px; font-size: 13px; }

    /* KEBIJAKAN */
    .kebijakan-wrap { padding: 0 10px; }

    /* SCROLL TOP */
    #scrollTop {
        bottom: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}