@import "tailwindcss";

/* Dinas Perikanan Lebak Custom Style */
:root {
    --primary-blue: #003366;
    --accent-blue: #0099cc;
    --accent-orange: #ff9900;
    --card-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header {
    background-color: var(--card-bg);
    padding: 10px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-left img {
    max-height: 80px;
}

.header-nav ul {
    display: flex;
    gap: 30px;
}

.header-nav a {
    font-weight: 400;
    font-size: 18px;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent-blue);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    font-size: 26px;
    color: #888;
    cursor: pointer;
    text-decoration: none;
}

.header-logo-right {
    max-height: 80px;
}

.hero {
    position: relative;
    color: var(--text-light);
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 85, 175, 0.95) 0%, rgba(0, 85, 175, 0.8) 45%, rgba(0, 85, 175, 0.15) 100%);
    z-index: -1;
}

.highlight-red {
    color: #fbfb09;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 550px;
}

.hero-text h1 {
    font-size: 46px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-cta {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
}

.btn-cta:hover {
    background-color: #0077aa;
}

.hero-officials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-officials img {
    max-height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.services {
    background-color: var(--card-bg);
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.service-box {
    width: calc(25% - 15px);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-box img {
    max-height: 80px;
    margin-bottom: 15px;
}

.service-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.3;
}

.news-container {
    padding: 60px 0;
    background-image: url('/assets/images/Background Berita.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.news-content {
    flex: 1;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.news-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-item h3 {
    padding: 15px 15px 5px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    flex-grow: 1;
}

.news-item .date {
    padding: 0 15px 15px;
    font-size: 12px;
    color: #888;
}

.btn-read-more {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--text-light);
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    margin: 0 15px 15px;
    width: fit-content;
    text-decoration: none;
    cursor: pointer;
}

.btn-read-more:hover {
    background-color: #0077aa;
}

.news-sidebar {
    width: 350px;
}

.sidebar-widget {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
    padding-bottom: 5px;
}

.stat-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.stat-item p {
    font-size: 12px;
    color: var(--text-dark);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-top: 2px;
}

.stat-sub {
    font-size: 10px;
    color: #888;
}

.announcement p {
    font-size: 12px;
}

.poll p {
    font-size: 12px;
    margin-bottom: 15px;
}

.poll form {
    font-size: 12px;
}

.poll input[type="radio"] {
    margin-right: 8px;
    margin-bottom: 10px;
}

.poll-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-poll, .btn-results {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-poll {
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
}

.btn-results {
    background-color: #fff;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

footer {
    background-color: #0b1d30;
    color: #cbd5e1;
}

@media (max-width: 992px) {
    .header-nav ul {
        gap: 15px;
    }
    .hero-text h1 {
        font-size: 36px;
    }
    .news-container .container {
        flex-direction: column;
    }
    .news-sidebar {
        width: 100%;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }
    .header-logo-left {
        gap: 8px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    .header-logo-left img {
        max-height: 38px;
        height: auto;
        width: auto;
        object-fit: contain;
    }
    .header-logo-right {
        max-height: 38px;
        height: auto;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-officials {
        align-items: center;
        margin-top: 30px;
    }
    .services .container {
        flex-wrap: wrap;
    }
    .service-box {
        width: calc(50% - 10px);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .news-item img {
        height: 120px;
    }
    .news-item h3 {
        padding: 10px 10px 4px;
        font-size: 11.5px;
        line-height: 1.35;
    }
    .news-item .date {
        padding: 0 10px 8px;
        font-size: 10.5px;
    }
    .btn-read-more {
        margin: 0 10px 10px;
        padding: 5px 10px;
        font-size: 10.5px;
    }
}

/* ===== PETA LAYANAN SECTION STYLES ===== */
.peta-section{font-family:'Poppins',sans-serif;max-width:1040px;margin:40px auto 60px;padding:0 24px;color:#1e293b}
.peta-section *{box-sizing:border-box}
.peta-section h2{display:inline-block;font-size:26px;font-weight:700;color:#0f2a5c;padding-bottom:10px;border-bottom:2px solid #008db9;margin-bottom:32px}
.peta-card{background:#fff;border-radius:14px;padding:16px;box-shadow:0 2px 14px rgba(15,28,46,.10)}
.peta-card #map{width:100%;height:560px;border-radius:10px;z-index:1}
.peta-desc{font-size:12px;color:#64748b;margin:12px 4px 0}

/* Popup */
.peta-section .leaflet-popup-content-wrapper{padding:0;border-radius:12px;overflow:hidden;box-shadow:0 10px 25px rgba(0,0,0,.18);font-family:'Poppins',sans-serif}
.peta-section .leaflet-popup-content{margin:0;width:290px!important}
.pp-head{padding:14px 16px 8px}
.pp-badge{display:inline-block;padding:2px 10px;font-size:11px;font-weight:600;border-radius:20px;color:#fff;margin-bottom:6px}
.pp-badge.tpi{background:#f39c12}.pp-badge.bpi,.pp-badge.pbatp{background:#008db9}.pp-badge.dinas{background:#ef4444}
.pp-title{font-size:15px;font-weight:700;color:#0f2a5c;margin:0}
.pp-body{padding:6px 16px 16px}
.pp-img{width:100%;height:auto;max-height:220px;object-fit:contain;background:#f1f5f9;border-radius:8px;margin-bottom:10px;display:block;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.pp-btn{display:block;text-align:center;padding:8px 0;background:#008db9;color:#fff!important;text-decoration:none;border-radius:4px;font-size:12px;font-weight:600}
.pp-btn:hover{background:#00769c}

/* Legend */
.peta-legend{background:#fff;padding:12px 16px;border-radius:10px;box-shadow:0 4px 12px rgba(0,0,0,.12);font-family:'Poppins',sans-serif;font-size:12px;border-left:4px solid #008db9}
.peta-legend b{display:block;font-size:13px;color:#0f2a5c;margin-bottom:8px}
.peta-legend div{display:flex;align-items:center;margin-top:6px}
.peta-legend i{width:12px;height:12px;border-radius:50%;margin-right:8px;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
@media(max-width:640px){.peta-card #map{height:420px}.peta-section h2{font-size:20px}}

/* Internal scrollbar for profile content container */
section.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}
section.overflow-y-auto::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
section.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
section.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
