/* ===== Pengaturan Global & Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --pln-blue: #005B9A;
    --pln-lightblue: #00A3E0;
    --dark-grey: #333333;
    --light-grey: #f4f7f9;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.7;
    background-color: var(--light-grey);
    color: var(--dark-grey);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* ===== Header & Navigasi ===== */
header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 45px;
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 22px;
    color: var(--pln-blue);
    font-weight: 700;
}

header nav a {
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    margin-left: 30px;
}

header nav a:hover {
    color: var(--pln-lightblue);
}

header nav a.active {
    color: var(--pln-lightblue);
    font-weight: 700;
}

/* ===== Form Pencarian di Header ===== */
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding-left: 15px;
    margin-left: 20px;
    background-color: #f4f7f9;
}

.search-form:focus-within {
    border-color: var(--pln-blue);
}

.search-form input {
    border: none;
    padding: 8px 0;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    background-color: transparent;
    flex-grow: 1;
}

.search-form button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button i {
    color: var(--pln-blue);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.search-form button:hover i {
    color: var(--pln-lightblue);
}

/* ===== Navigasi Responsive (Side-Panel) ===== */
.hamburger-icon { display: none; font-size: 1.8rem; color: var(--pln-blue); cursor: pointer; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.overlay.active { opacity: 1; visibility: visible; }
.mobile-nav { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background-color: var(--white); z-index: 1002; display: flex; flex-direction: column; padding-top: 60px; transform: translateX(-100%); transition: transform 0.4s ease-in-out; box-shadow: 5px 0px 15px rgba(0,0,0,0.1); }
.mobile-nav a { color: var(--dark-grey); font-size: 1.2rem; text-decoration: none; padding: 15px 30px; font-weight: 600; transition: background-color 0.3s, color 0.3s; border-bottom: 1px solid #f0f0f0; }
.mobile-nav a:hover { background-color: var(--light-grey); color: var(--pln-blue); }
.close-icon { position: absolute; top: 15px; right: 25px; font-size: 2rem; color: var(--dark-grey); cursor: pointer; }
.mobile-nav.active { transform: translateX(0); }

/* ===== Hero Section ===== */
.hero {
    background: url('https://images.unsplash.com/photo-1621237053359-05f24f42a8b5?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 91, 154, 0.8), rgba(0, 163, 224, 0.7));
}

.hero-content { z-index: 1; }
.hero h2 { font-size: 3.5rem; margin: 0 0 10px 0; font-weight: 700; }
.hero p { font-size: 1.3rem; font-weight: 300; min-height: 25px; }
.typed-cursor { font-size: 1.3rem; color: var(--white); }

/* ===== Konten Utama ===== */
.main-content-wrapper {
    padding: 40px 0;
}
.page-title { text-align: center; font-size: 2.5rem; color: var(--pln-blue); margin-bottom: 40px; }
.section-title { font-size: 2.2rem; color: var(--pln-blue); margin-bottom: 30px; font-weight: 700; }
.card { background: var(--white); padding: 30px; margin-bottom: 30px; border-radius: 10px; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }
.card h2 { display: flex; align-items: center; color: var(--pln-blue); border-left: 4px solid var(--pln-lightblue); padding-left: 15px; margin-top: 0; }
.card h2 i { margin-right: 15px; color: var(--pln-lightblue); }

/* ===== Berbagai Seksi di Halaman Beranda ===== */
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.focus-card { background: var(--white); padding: 30px; text-align: center; border-radius: 10px; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.focus-card:hover { transform: translateY(-10px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }
.focus-icon { font-size: 3rem; color: var(--pln-blue); margin-bottom: 20px; }
.focus-card h3 { margin-bottom: 15px; color: var(--dark-grey); }
.stats-section { background: var(--pln-blue); color: var(--white); padding: 60px 0; margin: 60px 0; border-radius: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 3.5rem; margin: 0; font-weight: 700; }
.stat-item p { font-size: 1rem; margin: 0; font-weight: 300; }
.commitment-section { background: var(--white); padding: 50px; text-align: center; border-radius: 10px; box-shadow: var(--shadow); margin-top: 60px; }
.commitment-content h3 { font-size: 2rem; color: var(--pln-blue); margin-top: 0; }
.commitment-content p { font-size: 1.1rem; max-width: 800px; margin: 0 auto; line-height: 1.8; }
.pemadaman-container { background: var(--white); padding: 20px 30px; border-radius: 10px; box-shadow: var(--shadow); }
.pemadaman-item { display: flex; align-items: center; gap: 25px; padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.pemadaman-item:last-child { border-bottom: none; }
.pemadaman-tanggal { background-color: var(--pln-blue); color: var(--white); border-radius: 8px; width: 70px; height: 70px; text-align: center; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; }
.pemadaman-tanggal .tanggal { font-size: 2rem; font-weight: 700; line-height: 1; }
.pemadaman-tanggal .bulan { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }
.pemadaman-info h4 { margin: 0 0 5px 0; color: var(--dark-grey); }
.pemadaman-info p { margin: 5px 0; color: #555; font-size: 0.95rem; }
.pemadaman-info p i { color: var(--pln-blue); margin-right: 8px; }

/* ===== Halaman Berita ===== */
.berita-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.berita-item { background: var(--white); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.berita-item:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); }
.berita-item .berita-image { width: 100%; height: 200px; object-fit: cover; }
.berita-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.berita-content small { display: block; color: #777; font-size: 0.85rem; margin-bottom: 10px; }
.berita-content h3 { margin-top: 0; margin-bottom: 15px; }
.berita-content h3 a { text-decoration: none; color: var(--dark-grey); font-size: 1.2rem; }
.berita-content h3 a::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.berita-content p { flex-grow: 1; margin-bottom: 15px; }
.read-more-wrapper { margin-top: auto; }
.read-more { display: inline-block; text-decoration: none; color: var(--pln-blue); font-weight: 600; position: relative; z-index: 2; }
.berita-post { padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #e9e9e9; }
.berita-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.berita-post h2 { margin-top: 0; margin-bottom: 5px; border-left: none; padding-left: 0; }
.berita-post h2 a { color: var(--dark-grey); text-decoration: none; font-size: 1.5rem; }
.berita-post h2 a:hover { color: var(--pln-blue); }
.berita-post p { margin-top: 10px; }
.search-container-page { margin-bottom: 30px; }
.search-container-page .search-form { max-width: 600px; margin: 0 auto; border-width: 2px; }

/* ===== Halaman Galeri, Kontak, Struktur Organisasi ===== */
.gallery-grid-public { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.photo-item { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); display: block; height: 250px; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-item:hover img { transform: scale(1.1); }
.photo-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 91, 154, 0.7); color: var(--white); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; text-align: center; padding: 15px; }
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-overlay i { font-size: 2.5rem; margin-bottom: 10px; }
.photo-overlay p { font-weight: 600; margin: 0; }
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; padding: 20px; box-sizing: border-box; }
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-image { max-width: 90%; max-height: 80%; object-fit: contain; border-radius: 5px; }
.lightbox-caption { position: absolute; bottom: 20px; color: var(--white); font-weight: 600; background: rgba(0, 0, 0, 0.5); padding: 10px 15px; border-radius: 5px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: var(--white); cursor: pointer; line-height: 1; }
.contact-card { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: var(--shadow); margin-bottom: 40px; }
.info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.info-item:last-child { margin-bottom: 0; }
.info-item i { font-size: 1.8rem; color: var(--pln-blue); margin-top: 5px; }
.info-item h4 { margin: 0 0 5px 0; font-size: 1.1rem; color: var(--dark-grey); }
.info-item p { margin: 0; color: #555; }
.social-media-section { text-align: center; border-top: 1px solid #f0f0f0; padding-top: 30px; margin-top: 40px; }
.social-media-section h4 { font-size: 1.3rem; color: var(--dark-grey); margin-bottom: 20px; }
.social-icons { display: flex; justify-content: center; gap: 25px; }
.social-icon { font-size: 2rem; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.social-icon:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.2); }
.social-icon.instagram { background: #E1306C; }
.social-icon.youtube { background: #FF0000; }
.social-icon.whatsapp { background: #25D366; }
.map-container { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.profile-card { background: var(--white); border-radius: 10px; box-shadow: var(--shadow); text-align: center; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.profile-card:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.profile-card img { width: 100%; height: 280px; object-fit: cover; object-position: top center; }
.profile-info { padding: 20px; }
.profile-name { font-size: 1.2rem; color: var(--dark-grey); margin: 0 0 5px 0; }
.profile-jabatan { font-size: 0.95rem; color: var(--pln-blue); font-weight: 600; margin: 0; }

/* ===== Footer ===== */
footer { background: var(--dark-grey); color: var(--white); padding: 40px 0 20px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-grid h4 { color: var(--pln-lightblue); margin-bottom: 20px; }
.footer-grid a, .footer-grid li { color: #ccc; text-decoration: none; list-style: none; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #555; margin-top: 30px; }

/* ===== Responsive Breakpoints ===== */
@media (max-width: 992px) {
    .search-form { display: none; }
}
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger-icon { display: block; }
    header h1 { font-size: 18px; }
    .berita-list-item { grid-template-columns: 1fr; }
}

/* ===== Style untuk Pagination ===== */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.pagination-link {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    background: var(--white);
    color: var(--pln-blue);
    font-weight: 600;
    border-right: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}
.pagination-list li:last-child .pagination-link {
    border-right: none;
}
.pagination-link:hover {
    background-color: var(--light-grey);
}
.pagination-link.active {
    background-color: var(--pln-blue);
    color: var(--white);
    cursor: default;
}