body {
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

p {
  text-align: center;
  font-weight: bold;
  color: #fff;
}

a img {
  height: 50px;
  width: auto;
  display: flex;
  margin-left: auto;
  margin-right: 200px;
}

nav {
  text-align: left;
  padding: 10px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.616);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: auto;
}

nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-grow: 1;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  margin: 0px 10px;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  transition: color 0.3s ease-in-out;
  text-align: center;
}

.nav-links a.active,
.nav-links a:hover {
  color: #F6D920;
}

nav .login-admin {
  margin-left: auto;
}

.login-admin button,
.logout-admin button {
  padding: 8px 12px;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.3s ease-in-out;
}

.login-admin button {
  background-color: #0f8950;
}

.login-admin button:hover {
  background-color: #0b6840;
}

.logout-admin button {
  background-color: #890f0f;
}

.logout-admin button:hover {
  background-color: #630a0a;
}

.toggle-nav {
  display: none;
  background: #0f8950;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  border-radius: 5px;
  border-color: #FFF;
}

/* Hero Section */
.hero {
  background: url('../asset_icon/fotokemenag.jpeg') no-repeat center center/cover;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16/9;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: -1;
}

.hero h1 {
  color: #FFF;
  text-align: center;
  text-shadow: 13px 25px 78.5px rgba(0, 0, 0, 0.25);
  font-family: Inter, sans-serif;
  font-size: 40px;
  font-weight: 700;
}

/* Search Form */
.container-btn {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.search-form {
  display: flex;
  align-items: center;
  max-width: 700px;
  gap: 20px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.category-select,
.search-input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.category-select:focus {
  outline: none;
  border-color: #008000;
  box-shadow: 0 0 5px rgba(0, 128, 0, 0.5);
}

.search-btn {
  background-color: #198754;
  color: white;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 5px;
}

/* Card Swiper */
.card.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 300px;
  height: 300px;
  padding: 10px 9px;
  border-radius: 20px;
  border: 2px solid #CBFFE7;
  background: rgba(0, 0, 0, 0.20);
  box-shadow:
    137px 289px 89px rgba(0, 0, 0, 0.00),
    87px 185px 82px rgba(0, 0, 0, 0.01),
    49px 104px 69px rgba(0, 0, 0, 0.05),
    22px 46px 51px rgba(0, 0, 0, 0.09),
    5px 12px 28px rgba(0, 0, 0, 0.10);
}

.slide-content {
  display: flex;
  overflow: hidden;
}

.card-wrapper {
  display: flex;
  gap: 15px;
}

.card-image {
  position: relative;
  height: 50px;
  width: 50px;
  border-radius: 10px;
}

.card-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10%;
}

.name,
.description {
  font-family: Inter, sans-serif;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}

.name {
  font-size: 25px;
  font-weight: 700;
}

.description {
  font-size: 25px;
  font-weight: 500;
}

.button {
  border: none;
  font-size: 12px;
  color: #FFF;
  padding: 5px 19px;
  background-color: #198754;
  border-radius: 6px;
  margin: 20px 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  background: #198754;
}

/* Swiper Navigation */
.slide-container {
  max-width: 80%;
  margin: 100px auto 0;
  position: relative;
  overflow: visible;
}

.swiper-navBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 20%;
  font-size: 20px;
  color: #198754;
  border: 1px solid #ccc;
  z-index: 10;
  cursor: pointer;
  padding: 10px 5px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.swiper-button-prev {
  left: -60px;
}

.swiper-button-next {
  right: -60px;
}

.swiper-navBtn:hover {
  background-color: #198754;
  color: #fff;
  border-color: #198754;
}

/* Kecamatan Cards */
.containkecamatan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 700px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  justify-items: center;
  margin: 40px 150px;
}

.cardkecamatan {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 250px;
  height: 60px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  padding: 8px;
}

.cardkecamatan:hover {
  background: #198754;
  color: white;
  width: 270px;
}

.kecicon {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

/* Section Header */
.tab2 h2 {
  color: #ffffff;
  font-family: Inter, sans-serif;
  display: flex;
  height: 80px;
  padding: 20px 60px;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  font-weight: 700;
  border-top: 1px solid #000000;
  background: linear-gradient(
    0deg,
    #FFF,
    #C5FFD9 -14.33%,
    #0E4E30 7.58%,
    #0D472C 14.26%,
    #0B3B24 42.84%,
    #082E1C 71.42%,
    #062115 100%
  );
}

h3 {
  color: #ffffff;
  font-family: Inter, sans-serif;
  text-align: center;
  margin-top: 10px;
  font-size: 25px;
  font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #292929;
    width: 40%;
    padding: 10px 0;
    align-items: flex-end;
  }
  
  .nav-links.show {
    display: flex;
  }
  

  .nav-links a,
  .login-admin {
    display: block;
    padding: 10px;
    text-align: left;
    margin-left: 0;
  }

  .toggle-nav {
    display: block;
  }

  .hero {
    padding: 80px 10px;
  }

  .hero h1 {
    margin-top:auto;
    font-size: 24px;
    padding: 0 10px;
  }

  .card.swiper-slide {
    width: 220px;
    height: 290px;
  }

  .name {
    font-size: 18px;
  }

  .description {
    font-size: 16px;
  }

  .button {
    font-size: 12px;
    padding: 6px 15px;
  }

  .swiper-navBtn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  a img {
    height: 50px;
    width: auto;
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }

  .swiper-button-next {
    right: -10px;
  }

  .swiper-button-prev {
    left: -10px;
  }

  .containkecamatan {
    width: 90%;
    gap: 20px;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px;
  }

  .cardkecamatan {
    width: 100%;
    font-size: 14px;
  }

  .kecicon {
    width: 25px;
    height: 25px;
  }

  .slide-container {
    max-width: 95%;
    margin: 60px auto 0;
  }
}
