

section {
  display: flex;
  justify-content: center;

}
#section-header {
  background: #0B1A63;
  min-height: 300px;
  position: relative;
}
.page-title{
  color: #FFF;
  position: absolute;
  bottom: 25%;
}


#section-map {
  padding: 2rem 0px;
}

.location-wraper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-wraper {
  width: 1000px;
  position: relative;
}

.blind-map {
  width: 100%;
}

.loc-point {
  position: absolute;
}
  .loc-point.loc-1 {
    top: 0px; left: 165px;
  }
  .loc-point.loc-2 {
    top: 0px; left: 580px;
  }
  .loc-point.loc-3 {
    top: 0px; left: 620px;
  }

.icon-loc {
  width: 25px;
  cursor: pointer;
  position: relative;
  z-index: 3; /* titik selalu di atas */
}

/* Garis putus-putus */
.loc-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 500px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.loc-line line {
  stroke: red;
  stroke-width: 4;
  stroke-dasharray: 5 5;
  stroke-dashoffset: 100;
  animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: 0;
  }
}

/* Info box */
.loc-info {
  position: absolute;
  background: white;
  padding: 8px;
  border-radius: 6px;
  width: 180px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 2;
}
.loc-info.info-1 { 
  top: 200px; right: 0px;
}
.loc-info.info-2 { 
  top: 260px; right: 0px;
}
.loc-info.info-3 { 
  top: -100px; left: 0px;
}

.loc-title {
  font-weight: bold;
  color: #003399; 
  margin-bottom: 4px;
}

.loc-sub {
  font-size: 13px;
  color: #444;
  margin-bottom: 2px;
}

.loc-info img {
  width: 100%;
  border-radius: 4px;
  margin-top: 6px; 
}

/* Saat hover titik lokasi → garis & info muncul */
.map-wraper:hover .loc-line,
.map-wraper:hover .loc-info {
  opacity: 1;
  transform: translateY(0);
}


/*Card-About Factory */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  background-color: #FFF !important;
  border-bottom: none !important;
}

.card-header svg {
  width: 40px;
  height: 40px;
  fill: #2b77e5;
}

.card-header p {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.card-body {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-body span {
  display: block;
  font-size: 22px;
  font-weight: 400;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {

  #section-header {
    min-height: 300px !important;
  }
  .page-title{
    bottom: 15% !important;

  }

  .card-grid {
    grid-template-columns: repeat(1, 1fr);
    margin: 0 20px;
  }
  .card {
    padding: 15px;
  }

  .icon-loc {
    width: 15px;
    height: auto;
  }
  .loc-point.loc-1 {
    top: -5px; left: 80px; 
  }
  .loc-point.loc-2 {
    top: -10px; left: 280px;
  }
  .loc-point.loc-3 {
    top: -10px; left: 300px;
  }

  .loc-info {
    width: 160px;
    transform: translateY(10px);
    background: rgba(255, 255, 255, 1);
  }
  .loc-info.info-1 { 
    top: 100px; left: -50px;
  }
  .loc-info.info-2 { 
    top: 120px; left: -20px;
  }
  .loc-info.info-3 { 
    top: -100px; left: -50px;
  }
  
  .loc-title {
    color: #003399; 
    margin-bottom: 0px;
  }

  .loc-sub {
    font-size: 8px;
    margin-bottom: 2px;
  }
  .loc-info img {
    width: auto;
    height: 50px;
    margin-top: 3px; 
  }
  


}


@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}