/* Visitor custom theme (homepage-like OJK Kepri style)
   Keep this file small and page-agnostic; override only what we need. */

:root {
  --visitor-green: #4CAF50;
  --visitor-green-2: #2E8B57;
  --visitor-cream: #FFF7D6;
  --visitor-ink: #0F172A;
}

/* Header */
.visitor-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.visitor-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 220px;
}

.visitor-brand img {
  height: 34px;
  width: auto;
}

.visitor-brand .visitor-brand-title {
  line-height: 1.15;
  font-weight: 800;
  color: var(--visitor-ink);
  letter-spacing: .1px;
}

.visitor-brand .visitor-brand-subtitle {
  font-size: .85rem;
  color: rgba(15, 23, 42, .65);
}

.visitor-nav .nav-link {
  color: rgba(15, 23, 42, .75);
  font-weight: 600;
  padding: .75rem .9rem;
  border-radius: 999px;
}

.visitor-nav .nav-link:hover,
.visitor-nav .nav-link.active {
  background: rgba(76, 175, 80, .12);
  color: rgba(15, 23, 42, .95);
}

.visitor-search {
  max-width: 280px;
}

.visitor-search .form-control {
  border-radius: 999px;
}

/* Sections */
.section-pad {
  padding: 3.25rem 0;
  min-height: 50vh;
}

.section-title {
  font-weight: 900;
  letter-spacing: .2px;
}

.section-subtitle {
  color: rgba(15, 23, 42, .65);
}

/* Hero / Wave blocks */
.wave-wrap {
  position: relative;
  overflow: hidden;
}

.wave-top {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 60%, rgba(255, 247, 214, .35) 100%);
}

.wave-green {
  background: linear-gradient(180deg, rgba(76, 175, 80, .95) 0%, rgba(46, 139, 87, .98) 100%);
  background-image: url("../media/patterns/batik-2.png");
  background-size: 1200px 1200px;
  background-position: center;
  background-repeat: repeat;
  background-blend-mode: overlay;
  color: #fff;
}

.wave-cream {
  position: relative;
  background-color: #fff7d6;
}

.wave-cream::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../media/patterns/batik-2.png") repeat center;
  opacity: 0.5;
  pointer-events: none;
}


.wave-shape {
  height: 100px;
  width: 100%;
  background-size: 100% 100px;
  pointer-events: none;
  border: none;
  margin-bottom: -0.4px;
}

.wave-shape.wave-shape-top {
  transform: rotate(0deg);
}

.wave-shape.wave-shape-bottom {
  bottom: -1px;
}

/* SVG as background (simple wave) */
.wave-shape {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,120 Q600,0 1200,120 L1200,120 L0,120 Z' fill='%2370B54B'%3E%3C/path%3E%3C/svg%3E");
}

.wave-green .wave-shape {
  opacity: .22;
}

/* Cards */
.feature-card {
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
}

.wave-green .feature-card {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}

.wave-green .feature-card .text-muted {
  color: rgba(255, 255, 255, .78) !important;
}

/* Hero Slider */
.hero-slider-wrapper {
  width: 100%;
  height: 64vh;
  overflow: hidden;
  position: relative;
}

.slider-navigation-buttons {
  width: 100%;
  height: 64vh;
  top: 85px;
}

.hero-slider {
  width: 100%;
  height: 100%;
}

.tns.tns-default .tns-outer {
  margin: 0px !important;
}

.hero-slider .tns-outer,
.hero-slider .tns-ovh,
.hero-slider .tns-inner,
.hero-slider [data-tns="true"] {
  width: 100%;
  height: 100%;
}

.hero-slide-item {
  width: 100%;
  height: 64vh;
  position: relative;
  overflow: hidden;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Hero Slider Navigation Buttons */
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-slider-btn-prev {
  left: 20px;
  background: #ffffff;
}

.hero-slider-btn-prev:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-slider-btn-prev i {
  color: #A01915 !important;
}

.hero-slider-btn-next {
  right: 20px;
  background: #A01915;
}

.hero-slider-btn-next:hover {
  background: #C62828;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* Hero Slider Dots */
.hero-slider .tns-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.hero-slider .tns-nav button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
}

.hero-slider .tns-nav button.tns-nav-active {
  background: #A01915;
  width: 24px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .hero-slider-wrapper,
  .hero-slide-item {
    height: 400px;
  }

  .slider-navigation-buttons {
    height: 400px;
  }

  .hero-slider-btn {
    width: 40px;
    height: 40px;
  }

  .hero-slider-btn-prev {
    left: 10px;
  }

  .hero-slider-btn-next {
    right: 10px;
  }

  .hero-slider .tns-nav {
    bottom: 15px;
  }
}

@media (max-width: 576px) {
  .hero-slider-wrapper,
  .hero-slide-item {
    height: 300px;
  }

  .slider-navigation-buttons {
    height: 300px;
    top: 60px;
  }
}

/* Service Cards Container */
.service-cards-container {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .08);
}

/* Service Cards */
.service-card {
  background: #FFFEF0;
  background-image: url("../media/patterns/batik-2.png");
  background-size: 200px 200px;
  background-position: center;
  background-repeat: repeat;
  background-blend-mode: overlay;
  opacity: 0.98;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.service-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.service-logo-box {
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

/* Footer */
.visitor-footer {
  background: linear-gradient(180deg, #70B54B, #5FA03D);
  color: #fff;
}

.visitor-footer a {
  color: rgba(255, 255, 255, .9);
}

.visitor-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .section-pad {
    padding: 2.25rem 0;
  }

  .visitor-search {
    max-width: 100%;
  }

  .visitor-brand {
    min-width: 0;
  }
}