/* Landing Page — Kecamatan Liukang Tangaya */

:root {
  --lt-green: #1a7a3c;
  --lt-green-dark: #0f5c2a;
  --lt-green-light: #e8f5ec;
  --lt-gold: #f5c518;
  --lt-blue: #0d6efd;
}

body.landing-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8fafc;
  margin: 0;
}

/* Navbar */
.landing-nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.landing-nav .navbar-brand {
  font-weight: 700;
  color: var(--lt-green-dark);
  font-size: 1rem;
}
.landing-nav .logo-img {
  height: 48px;
  width: auto;
}
.landing-nav .brand-sub {
  font-size: .72rem;
  color: #64748b;
  font-weight: 400;
  display: block;
  line-height: 1.2;
}

/* Hero Slideshow */
.hero-carousel .carousel-item {
  height: 420px;
}
.hero-carousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(.75);
}
.hero-carousel .carousel-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  left: 8%;
  right: auto;
  max-width: 560px;
}
.hero-carousel .carousel-caption h1 {
  font-size: 2.25rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-carousel .carousel-caption p {
  font-size: 1.05rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Sections */
.landing-section {
  padding: 4rem 0;
}
.landing-section.alt-bg {
  background: var(--lt-green-light);
}
.section-title {
  font-weight: 700;
  color: var(--lt-green-dark);
  margin-bottom: .5rem;
}
.section-subtitle {
  color: #64748b;
  margin-bottom: 2rem;
}

/* Profil */
.profil-img {
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}
.profil-text {
  line-height: 1.8;
  color: #334155;
}

/* Desa grid */
.desa-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: transform .15s, box-shadow .15s;
  height: 100%;
}
.desa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,122,60,.15);
  border-color: var(--lt-green);
}
.desa-card .desa-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lt-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.desa-card .desa-name {
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  font-size: .95rem;
}

/* Calendar */
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.calendar-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.calendar-table th {
  background: var(--lt-green);
  color: #fff;
  text-align: center;
  padding: .75rem .25rem;
  font-size: .85rem;
  font-weight: 600;
}
.calendar-table td {
  border: 1px solid #e2e8f0;
  vertical-align: top;
  padding: .35rem;
  height: 110px;
  font-size: .75rem;
}
.calendar-table td.other-month {
  background: #f8fafc;
  color: #cbd5e1;
}
.calendar-table td.today {
  background: #fffbeb;
  border-color: var(--lt-gold);
}
.calendar-table .day-num {
  font-weight: 700;
  font-size: .85rem;
  color: #334155;
  margin-bottom: .25rem;
}
.calendar-table td.other-month .day-num {
  color: #cbd5e1;
}
.cal-event {
  background: var(--lt-green);
  color: #fff;
  border-radius: .2rem;
  padding: .15rem .3rem;
  margin-bottom: .15rem;
  line-height: 1.2;
  font-size: .65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
.cal-event.kantor { background: #2563eb; }
.cal-event.luar   { background: #ea580c; }
.cal-event.online { background: #059669; }
.cal-event .ev-time {
  opacity: .85;
  font-size: .6rem;
}
.calendar-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: .8rem;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.calendar-legend .dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.landing-filter {
  background: #fff;
  border-radius: .75rem;
}
.landing-filter .form-label {
  color: var(--lt-green-dark);
  margin-bottom: .25rem;
}

/* Footer */
.landing-footer {
  background: var(--lt-green-dark);
  color: #cbd5e1;
  padding: 2rem 0;
  font-size: .9rem;
}
.landing-footer a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-carousel .carousel-item { height: 280px; }
  .hero-carousel .carousel-caption h1 { font-size: 1.4rem; }
  .hero-carousel .carousel-caption p { font-size: .85rem; }
  .calendar-table td { height: 80px; }
}
