/* Custom site styles inspired by dkp.ternatekota.go.id */
:root {
  --primary: #0b6efd;
  --primary-dark: #075bd6;
  --muted: #6c757d;
}
body {
  font-family: "Open Sans", Arial, sans-serif;
  color: #333;
}
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
}
.topbar a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}
.navbar-brand img {
  height: 48px;
}
.navbar {
  padding: 0.5rem 0;
}
.navbar {
  z-index: 1050;
}
.sticky-top {
  top: 0;
}
.navbar .nav-link {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
}
.navbar .nav-link.active {
  color: var(--primary);
}
.hero-caption {
  padding: 4rem 0;
}
.card-service {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 30, 60, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.card-service:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 30, 60, 0.08);
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 22px;
}
.footer {
  background: #0d47a1;
  color: #fff;
}
.footer a {
  color: rgba(255, 255, 255, 0.95);
}
.back-to-top {
  background: var(--primary);
  border: none;
}
@media (min-width: 1200px) {
  .container-fluid.px-4 {
    padding-left: 6rem !important;
    padding-right: 6rem !important;
  }
}

/* small utility tweaks */
.visually-hidden-focusable:focus {
  position: static;
  clip: auto;
  height: auto;
  width: auto;
  margin: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ddd;
}

/* Owl carousel tweaks */
.header-carousel .owl-item img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
}
/* .header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  pointer-events: none;
} */
/* .header-carousel .owl-nav button {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.85);
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
} */
.header-carousel .owl-dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
}
.header-carousel .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.7);
  display: block;
  border-radius: 50%;
}
.header-carousel .owl-dots .owl-dot.active span {
  background: var(--primary);
}

/* Services section styling */
.services-section .card-service {
  min-height: 160px;
}
.services-section h3 {
  font-weight: 700;
}
.services-section .card-service .service-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  font-size: 24px;
}

/* Uniform thumbnail for berita/portfolio items */
.portfolio-container .service-item {
  /* display: block; */
  background-color: #cbd5dd;
  padding: 0.5rem;
}

/* .border-light {
  border: 1px solid rgba(184, 198, 204, 0.8) !important;
  border-color: rgba(184, 198, 204, 0.8) !important;
} */

.portfolio-container .service-item .overflow-hidden {
  height: 180px !important;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}
.portfolio-container .service-item .overflow-hidden img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991.98px) {
  .portfolio-container .service-item .overflow-hidden {
    height: 180px;
  }
}
@media (max-width: 575.98px) {
  .portfolio-container .service-item .overflow-hidden {
    height: 140px;
  }
}

/* Footer polish */
.footer {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  padding: 48px 0;
}
.footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  margin-right: 8px;
}
.footer .subscribe .form-control {
  border-radius: 6px 0 0 6px;
}
.footer .subscribe .btn {
  border-radius: 0 6px 6px 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .header-carousel .owl-item img {
    height: 45vh;
  }
  .hero-caption {
    padding: 2.25rem 0;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .navbar .nav-link {
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
  }
  .services-section .card-service {
    min-height: 150px;
    padding: 1rem;
  }
  .footer {
    padding: 36px 0;
  }
}

@media (max-width: 575.98px) {
  .header-carousel .owl-item img {
    height: 35vh;
  }
  .hero-title {
    font-size: 1.4rem;
  }
  .hero-sub {
    font-size: 0.9rem;
  }
  .service-icon {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  .services-section .card-service {
    min-height: 130px;
  }
  .topbar {
    font-size: 13px;
  }
}

/* ensure hero overlay text is readable on small images */
.hero-caption {
  align-items: center;
  text-align: center;
}
.hero-caption .container {
  z-index: 2;
}
.header-carousel .owl-item:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.12);
}
