﻿* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

}

html {

  scroll-behavior: smooth;

  scroll-padding-top: 70px;

  -webkit-text-size-adjust: 100%;

}

:root {

  --primary: #0d4d72;

  --primary-dark: #083a58;

  --secondary: #f59e0b;

  --dark: #0f172a;

  --light: #ffffff;

  --gray: #475569;

  --bg: #edf2f7;

  --border: #d1d5db;

  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);

  --radius: 22px;

  --max-width: 1240px;

}

body {

  font-family: "Poppins", sans-serif;

  background: #f5f7fa;

  color: #1e293b;

  line-height: 1.8;

  overflow-x: hidden;

}

.container {

  width: min(92%, var(--max-width));

  margin-inline: auto;

}

.section {

  padding: clamp(50px, 8vw, 80px) 0;

}

.bg-light {

  background: linear-gradient(135deg, #f0f7fc 0%, #e8f2f9 100%);

}

img {

  max-width: 100%;

  display: block;

}

a {

  text-decoration: none;

}

ul {

  list-style: none;

  padding: 0;

  margin: 0;

}

.history-card p, .section-title p {

  text-align: justify;

  text-justify: inter-word;

  -webkit-hyphens: auto;

  -ms-hyphens: auto;

  hyphens: auto;

}

.card p {

  text-align: left;

  -webkit-hyphens: none;

  -ms-hyphens: none;

  hyphens: none;

}

.card, .history-card, .contact-card {

  backdrop-filter: blur(10px);

  background: rgba(255, 255, 255, 0.85);

}

#header {

  background: transparent;

  transition: all 0.4s ease-in-out;

  z-index: 997;

  height: 70px;

}

#header.header-scrolled {

  background: rgba(8, 58, 88, 0.98);

  box-shadow: 0 8px 32px rgba(13, 77, 114, 0.12);

  height: 60px;

}

#header .logo a { color: #fff; text-decoration: none; }

.navbar { padding: 0; }

.navbar ul { display: flex; align-items: center; }

.navbar li { position: relative; }

.navbar > ul > li { white-space: nowrap; padding: 10px 0 10px 22px; }

.navbar a, .navbar a:focus {

  display: flex; align-items: center; justify-content: space-between; padding: 0 4px;

  font-family: "Roboto", sans-serif; font-size: 14px; font-weight: 500; color: rgb(255, 255, 255);

  white-space: nowrap; transition: 0.3s; text-transform: uppercase; position: relative;

}

.navbar > ul > li > a::after {

  content: "";

  position: absolute;

  width: 0;

  height: 2px;

  bottom: -4px;

  left: 0;

  background-color: var(--secondary);

  transition: width 0.3s ease-in-out;

}

.navbar a:hover::after, .navbar li:hover > a::after, .navbar .active::after {

  width: 100%;

}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {

  color: var(--secondary);

}

.mobile-nav-toggle { color: #fff; font-size: 28px; cursor: pointer; display: none; line-height: 0; transition: 0.5s; }

@media (max-width: 991px) {

  .mobile-nav-toggle { display: block; }

  .navbar ul { display: none; }

}

.navbar-mobile {

  position: fixed; overflow: hidden; top: 0; right: 0; left: 0; bottom: 0;

  background: rgba(8, 58, 88, 0.9); transition: 0.3s; z-index: 999;

}

.navbar-mobile .mobile-nav-toggle { position: absolute; top: 15px; right: 15px; }

.navbar-mobile ul {

  display: block; position: absolute; top: 55px; right: 15px; bottom: 15px; left: 15px;

  padding: 10px 0; background-color: #fff; overflow-y: auto; transition: 0.3s; border-radius: 8px;

}

.navbar-mobile a, .navbar-mobile a:focus { padding: 10px 20px; font-size: 15px; color: var(--dark); }

.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a { color: var(--primary); }

.navbar-mobile > ul > li { padding: 0; }

.navbar-mobile a:hover::after, .navbar-mobile li:hover > a::after, .navbar-mobile .active::after { display: none; }

#hero {

  width: 100%; height: 100vh; background-color: rgba(13, 77, 114, 0.8); overflow: hidden; padding: 0;

}

#hero .carousel-item {

  width: 100%; height: 100vh; background-size: cover; background-position: center; background-repeat: no-repeat;

  position: relative; transition: 0.3s;

}

#hero .carousel-item::before {

  content: ""; background-color: rgba(0, 0, 0, 0.6); position: absolute; top: 0; right: 0; left: 0; bottom: 0;

}

#hero .carousel-container {

  display: flex; justify-content: center; align-items: center; position: absolute; inset: 0;

}

#hero .carousel-content { text-align: center; }

#hero h2 { color: #fff; margin-bottom: 20px; font-size: clamp(2.5rem, 6vw, 48px); font-weight: 700; }

#hero p { width: 80%; margin: 0 auto 30px auto; color: #fff; font-size: clamp(0.95rem, 2vw, 1.1rem); }

#hero .carousel-inner .active.carousel-item-start, #hero .carousel-inner .active.carousel-item-end { opacity: 0; }

#hero .carousel-inner .active { opacity: 1; transition: 0.5s; }

.carousel-indicators { display: none !important; }

.section-title { text-align: center; margin-bottom: clamp(30px, 5vw, 45px); }

.section-title span { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: clamp(0.75rem, 1.5vw, 0.9rem); }

.section-title h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-top: 8px; line-height: 1.2; font-weight: bold; color: var(--dark); }

.section-title p { max-width: 760px; margin: 14px auto 0; color: var(--gray); line-height: 1.8; }



.card {

  background: white; padding: clamp(24px, 4vw, 32px); border-radius: var(--radius);

  box-shadow: 0 8px 24px rgba(13, 77, 114, 0.08); border: 1px solid rgba(13, 77, 114, 0.05);

  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); height: 100%;

}

.card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(13, 77, 114, 0.15); }

.card h3 { margin-bottom: 18px; color: var(--primary); font-size: clamp(1.2rem, 2.5vw, 1.4rem); font-weight: 700; }



.profile-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); gap: 32px; align-items: start; }

.info-list li { padding: 16px 0; border-bottom: 1px solid rgba(13, 77, 114, 0.08); color: var(--gray); }

.info-list li strong { color: var(--primary); }



.administration { margin-top: clamp(40px, 6vw, 60px); padding-top: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }

.stat-card { background: #fff; border-radius: 16px; padding: 30px 20px; text-align: center; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); transition: 0.3s; }

.stat-card:hover { transform: translateY(-8px); }

.stat-icon { font-size: 60px; line-height: 1; margin-bottom: 18px; display: flex; justify-content: center; align-items: center; }

.stat-card h3 { font-size: 36px; color: var(--primary); margin: 10px 0; font-weight: 700; }

.stat-card p { font-size: 16px; color: var(--gray); margin: 0; }



.history-card {

  background: white; padding: clamp(32px, 5vw, 48px); border-radius: var(--radius);

  box-shadow: 0 12px 36px rgba(13, 77, 114, 0.1); max-width: 1000px; margin: auto; border-left: 6px solid var(--primary);

}

.history-card h3 { font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--primary); margin-bottom: 28px; font-weight: 700; }

blockquote { margin-top: 30px; background: #ecfdf5; border-left: 5px solid var(--primary); padding: 20px; border-radius: 12px; font-style: italic; font-weight: 600; }

.slider-wrapper { position: relative; }

#galeri .slider-wrapper { padding: 0 60px; }



.horizontal-slider {

  display: flex;

  flex-wrap: nowrap;

  overflow-x: auto;

  gap: 25px;

  padding-bottom: 25px;

  scroll-snap-type: x mandatory;

  -webkit-overflow-scrolling: touch;

}

.horizontal-slider::-webkit-scrollbar { height: 8px; }

.horizontal-slider::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }

.horizontal-slider::-webkit-scrollbar-thumb { background: #0d4d72; border-radius: 10px; }

.slider-btn {

  position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; border-radius: 50%;

  background: var(--primary); color: #ffffff; border: none; font-size: 20px; cursor: pointer; z-index: 10;

  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: background-color 0.3s ease;

}

.slider-btn:hover { background: var(--secondary); }

.prev-btn { left: 0; }

.next-btn { right: 0; }

.news-card {

  flex: 0 0 320px; scroll-snap-align: start; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;

  overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer;

}

.zoom-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(13, 77, 114, 0.15); }

.news-img-wrapper { width: 100%; height: 220px; overflow: hidden; }

.news-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.zoom-card:hover .news-img-wrapper img { transform: scale(1.1); }

.news-content { padding: 24px 20px; flex-grow: 1; display: flex; flex-direction: column; }

.news-title { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }

.news-desc {

  font-size: 0.95rem; color: var(--gray); line-height: 1.6; margin-bottom: 15px; display: -webkit-box;

  -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;

}

.btn-selengkapnya {

  background: var(--primary); color: #ffffff; border: none; padding: 8px 16px; border-radius: 8px; font-size: 0.9rem;

  cursor: pointer; transition: background-color 0.3s ease; display: inline-block; margin-top: auto; align-self: flex-start;

}

.btn-selengkapnya:hover { background: var(--primary-dark); }

.news-footer { padding: 16px 20px; border-top: 1px solid #f1f5f9; background-color: #fafafa; }

.news-date { font-size: 0.95rem; color: #64748b; font-weight: 500; display: flex; align-items: center; gap: 8px; }

#potensi-slider {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;

    align-items: stretch;

}

#potensi-slider .card {

    display: flex;

    flex-direction: column;

    background: #fff;

    padding: 0;

    border-radius: 18px;

    overflow: hidden;

    border: none;

    box-shadow: 0 10px 30px rgba(15,23,42,.08);

    transition: transform .35s ease, box-shadow .35s ease;

    height: 100%;

    opacity: 0;

    transform: translateY(40px);

    animation: potensiFade .8s forwards;

}

#potensi-slider .card:nth-child(1) { animation-delay: .15s; }

#potensi-slider .card:nth-child(2) { animation-delay: .35s; }

#potensi-slider .card:nth-child(3) { animation-delay: .55s; }

@keyframes potensiFade {

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

#potensi-slider .card:hover {

    transform: translateY(-10px);

    box-shadow: 0 22px 45px rgba(13,77,114,.15);

}

#potensi-slider .card-img-wrapper {

    width: 100%;

    height: 230px;

    overflow: hidden;

}

#potensi-slider .card-img-wrapper img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .6s;

    display: block;

}

#potensi-slider .card:hover .card-img-wrapper img {

    transform: scale(1.08);

}

#potensi-slider .card h3 {

    margin: 28px 28px 16px;

    padding: 0;

    font-size: 24px;

    color: #0d4d72;

    font-weight: 700;

    position: relative;

}

#potensi-slider .card p {

    margin: 0;

    padding: 0 28px 30px;

    flex: 1;

    font-size: 15px;

    line-height: 1.7;

    color: #5b6777;

    text-align: left;

    letter-spacing: 0;

    word-spacing: normal;

}

.modal-popup {

  display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%;

  background: rgba(0, 0, 0, 0.85); align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.3s ease;

}

.modal-content {

  background: #ffffff; border-radius: 16px; max-width: 800px; width: 100%; padding: 25px;

  position: relative; animation: slideUp 0.4s ease; display: flex; flex-direction: column; max-height: 90vh;

}

.modal-content img {

  width: 100%; height: auto; max-height: 50vh; object-fit: contain; border-radius: 12px; margin-bottom: 15px;

  flex-shrink: 0; background-color: #f1f5f9;

}

.modal-close { position: absolute; top: 10px; right: 20px; font-size: 32px; color: #333333; cursor: pointer; font-weight: bold; }

#modalTitle { flex-shrink: 0; margin-bottom: 10px; color: var(--primary); word-break: break-word; overflow-wrap: break-word; }

#modalDesc { overflow-y: auto; padding-right: 15px; flex-grow: 1; text-align: justify; word-break: break-word; overflow-wrap: break-word; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.map-container {

  width: 100%; margin: 0 auto; position: relative; animation: fadeInUp 1s ease-out forwards;

}

#map-interactive {

  height: 500px; width: 100%; max-width: 1000px; margin: 0 auto; border-radius: 21px; overflow: hidden;

  box-shadow: 0 25px 50px -12px rgba(13, 77, 114, 0.25); border: 1px solid rgba(13, 77, 114, 0.1);

  z-index: 1; background-color: #e5e3df;

}

.map-tools {

  position: absolute; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px;

}

.map-tools button {

  width: 44px; height: 44px; border-radius: 12px; border: none; background: rgba(255,255,255,0.9);

  backdrop-filter: blur(5px); color: var(--primary); font-size: 20px; cursor: pointer;

  box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: all 0.3s;

}

.map-tools button:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.map-info-bar { margin-top: 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; color: var(--gray); }

#mouse-coords { font-family: 'Roboto Mono', monospace; font-weight: 500; }

.map-legend { display: flex; align-items: center; gap: 8px; }

.pulse-dot {

  width: 12px; height: 12px; background: #10b981; border-radius: 50%; display: inline-block;

  box-shadow: 0 0 0 0 rgba(16, 185, 129, 1); animation: pulse-legend 2s infinite;

}

@keyframes pulse-legend {

 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }

 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }

 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }

}

.custom-pulsing-icon { display: flex; justify-content: center; align-items: center; }

.pulsing-pin {

  width: 16px; height: 16px; background: #10b981; border: 3px solid #ffffff; border-radius: 50%;

  box-shadow: 0 0 15px rgba(16, 185, 129, 0.9); position: relative;

}

.pulsing-pin::after {

  content: ''; position: absolute; top: -7px; left: -7px; width: 30px; height: 30px;

  border-radius: 50%; background-color: #10b981; opacity: 0.5; animation: mapPulse 2s infinite ease-out;

}

@keyframes mapPulse {

 0% { transform: scale(0.5); opacity: 0.8; }

 100% { transform: scale(2.8); opacity: 0; }

}

.animated-border { animation: dash 20s linear infinite; filter: drop-shadow(0 0 3px #000); }

@keyframes dash { to { stroke-dashoffset: -1000; } }

.leaflet-interactive:hover { filter: drop-shadow(0 0 10px var(--secondary)); }

.leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.leaflet-popup-content { margin: 0; }

.popup-header { background: var(--primary); color: #fff; padding: 12px 16px; font-weight: 700; font-size: 0.95rem; }

.popup-body { padding: 12px 16px; }

.popup-body p { margin: 0 0 6px 0; color: var(--gray); font-size: 0.85rem; line-height: 1.5; }

.popup-body strong { color: var(--dark); }

.leaflet-tooltip.desa-label {

  background: transparent; border: none; box-shadow: none; font-size: 32px;

  font-weight: 900; color: #fff; text-shadow: 0 3px 10px rgba(0,0,0,0.9); letter-spacing: 2px;

}

.kunjungi-kami-wrapper { margin-top: 80px; width: 100%; }

.kunjungi-kami-wrapper .section-title p {

  text-align: justify; text-align-last: center; max-width: 550px; margin-inline: auto;

}

.gmaps-card {

  position: relative; display: block; width: 100%; max-width: 1000px; margin: 0 auto; height: 350px;

  border-radius: 13px; overflow: hidden; box-shadow: 0 10px 30px rgba(13, 77, 114, 0.15); text-decoration: none;

  border: 1px solid rgba(13, 77, 114, 0.1); background: #e5e3df; transition: all 0.4s ease;

}

.gmaps-card:hover { box-shadow: 0 15px 40px rgba(13, 77, 114, 0.25); transform: translateY(-5px); }

.gmaps-card iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.gmaps-info-box { display: none; }

.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(16, 185, 129, 0.6); }


.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {

  background-color: rgba(16, 185, 129, 0.8); color: #fff; font-weight: 700; border-radius: 50%; width: 40px; height: 40px; line-height: 40px;

}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.footer-area {

  background: linear-gradient(135deg, #0d4d72 0%, #083a58 100%); color: #ffffff; padding: 60px 0 25px 0; font-size: 14px;

}

.footer-area .footer-about p { color: rgba(255, 255, 255, 0.8); margin-bottom: 0; line-height: 1.7; text-align: left; }

.footer-area .sitename { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: 1px; }

.footer-area .social-links a {

  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.2); font-size: 18px; color: rgba(255, 255, 255, 0.8); margin-right: 12px;

  transition: 0.3s; text-decoration: none;

}

.footer-area .social-links a:hover {

  color: #fff; border-color: var(--secondary); background: var(--secondary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);

}

.footer-area h4 {

  font-size: 16px; font-weight: 700; position: relative; padding-bottom: 12px; margin-bottom: 20px; color: #fff;

  text-transform: uppercase; letter-spacing: 1px;

}

.footer-area h4::after {

  content: ""; position: absolute; display: block; width: 50px; height: 3px; background: var(--secondary); bottom: 0; left: 0; border-radius: 2px;

}

.footer-area .footer-links ul { list-style: none; padding: 0; margin: 0; }

.footer-area .footer-links ul li { padding: 10px 0; display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.footer-area .footer-links ul li:last-child { border-bottom: none; }

.footer-area .footer-links ul i { font-size: 12px; margin-right: 10px; color: var(--secondary); }

.footer-area .footer-links ul a { color: rgba(255, 255, 255, 0.8); transition: 0.3s; display: inline-block; line-height: 1; text-decoration: none; }

.footer-area .footer-links ul a:hover { color: var(--secondary); transform: translateX(6px); }

.footer-area .footer-contact p { line-height: 26px; color: rgba(255, 255, 255, 0.8); margin-bottom: 5px; text-align: left; }

.footer-area .footer-contact strong { color: #ffffff; }


.footer-area .copyright {

  padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.8);

  text-align: center; width: 100%; display: block;

}

#backTop {

  position: fixed; right: 25px; bottom: 25px; width: 50px; height: 50px; border: none; border-radius: 50%;

  background: var(--primary); color: white; cursor: pointer; display: none; font-size: 24px; box-shadow: var(--shadow); z-index: 996;

}

#backTop:hover { background: var(--secondary); }

#loading {

  position: fixed; inset: 0; background: linear-gradient(180deg, #083a58 0%, #0d4d72 60%);

  display: flex; align-items: center; justify-content: center; z-index: 9999; color: white;

}

.loader { text-align: center; }

.loader svg { width: 64px; height: 64px; animation: spin 1.2s linear infinite; margin-bottom: 12px; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 769px) {

  .footer-area .row { display: flex; flex-wrap: wrap; justify-content: space-between; width: 100%; }

  .footer-area .footer-contact { margin-left: auto; max-width: max-content; padding-right: 0; }

}

@media (max-width: 992px) {

  .profile-grid { grid-template-columns: 1fr; }

  #potensi-slider { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 768px) {

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  #map-interactive { height: 500px; }

  .map-tools { top: 10px; right: 10px; }

  .map-tools button { width: 38px; height: 38px; font-size: 18px; }

  #galeri .slider-wrapper { padding: 0; }

  .slider-btn { display: none; }

  .gmaps-card { height: 350px; }

  .gmaps-info-box { top: 15px; left: 15px; right: 15px; min-width: auto; padding: 12px 15px; }

  .gmaps-text strong { font-size: 15px; }

  .gmaps-icon-route { width: 38px; height: 38px; font-size: 18px; }

  .footer-area h4::after { left: 50%; transform: translateX(-50%); }

  .footer-area .footer-about p, .footer-area .footer-contact p { text-align: center; }

  .footer-area .sitename { justify-content: center; width: 100%; text-align: center; }

  .footer-area .social-links { justify-content: center; }

  .footer-area .footer-links h4, .footer-area .footer-contact h4 { text-align: center; margin-top: 20px; }

  .footer-area .footer-links ul li { justify-content: center; }

}

@media (max-width: 640px) {

  #potensi-slider { grid-template-columns: 1fr; }

  #galeri .slider-wrapper { padding: 0; }

}

@media (max-width: 576px) {

  .stats-grid { grid-template-columns: 1fr; }

} 