/* === SAFWA PANEL (Final Responsive Boustead Style with Hover Reveal) === */
html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 100%;
  height: auto;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.highlight-section {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

/* Panel Style */
.service-box {
  flex: 1;
  min-width: 0;
  min-height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: flex 0.5s ease, transform 0.4s ease;
}

/* Hover Expand Effect */
.highlight-section:hover .service-box {
  flex: 1;
}
.highlight-section .service-box:hover {
  flex: 2;
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.service-road    { background-image: url('../images/a.jpeg'); }
.service-asset   { background-image: url('../images/b.jpeg'); }
.service-system  { background-image: url('../images/c.jpeg'); }
.service-client  { background-image: url('../images/d.jpeg'); }


/* Overlay Gradient */
.service-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
  z-index: 1;
  transition: background 0.4s ease;
}
.service-box:hover::before {
  background: rgba(0, 0, 0, 0);
}

/* Text Content */
.service-box .content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  color: #ffffff;
}

.service-box h3 {
  font-size: 26px;
  margin: 0;
  color: #ffffff !important;
  background: rgba(0,0,0,0.3);
  padding: 5px 12px;
  display: inline-block;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.75);
  transition: all 0.3s ease;
}

.service-box .description {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-box:hover .description {
  opacity: 1;
}

.service-box .description p {
  font-size: 15px;
  margin: 10px 0 6px;
  color: #ffffff !important;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.service-box a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  display: inline-block;
  margin-top: 8px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}
.service-box a:hover {
  color: #ffdede;
}

/* Responsive */
@media (max-width: 768px) {
  .highlight-section {
    flex-direction: column;
    height: auto;
  }

  .service-box {
    flex: 1 1 100%;
    height: 300px;
  }

  .service-box .description {
    opacity: 1;
  }
}
