/* ==========================================================================
   Service Process Page Styling - service.css
   1:1 High Fidelity Implementation with Responsive Layout & Interactive Effects
   ========================================================================== */

/* --- CSS Variables & Base Setup --- */
:root {
  --bg-color: #FFFFFF;
  --text-title: #262626;
  --text-subtitle: #8C8C8C;
  --text-body: #666666;
  --card-bg: #FFFFFF;
  --card-border: #F0F0F0;
  --card-border-hover: #E2E2E2;
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.08);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* --- Main Container --- */
.service-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 80px 10px;
}

/* --- Header Section --- */
.service-header {
  text-align: center;
  margin-bottom: 50px;
}

.service-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: 2px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-subtitle);
  letter-spacing: 1.5px;
  word-spacing: 4px;
}

/* --- Grid Layout (4 columns) --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- Service Card --- */
.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.service-card:active {
  transform: translateY(-2px);
}

/* --- Card Image Section --- */
.service-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #F5F5F5;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

/* Fallback SVG container */
.service-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Card Body Section --- */
.service-body {
  padding: 22px 20px 26px;
  flex: 1;
}

.service-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.service-step-desc {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.7;
  text-align: justify;
  margin: 0;
}

/* --- Responsive Layout Breakpoints --- */

/* Small Desktop / Laptop (1024px) */
@media screen and (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-img-wrap {
    height: 210px;
  }

  .service-header {
    margin-bottom: 40px;
  }

  .service-title {
    font-size: 24px;
  }
}

/* Tablet (768px) */
@media screen and (max-width: 768px) {
  .service-container {
    padding: 40px 10px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .service-img-wrap {
    height: 180px;
  }

  .service-body {
    padding: 18px 16px 20px;
  }

  .service-title {
    font-size: 22px;
  }

  .service-subtitle {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .service-step-title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .service-step-desc {
    font-size: 12px;
    line-height: 1.6;
  }
}

/* Mobile (540px) */
@media screen and (max-width: 540px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-img-wrap {
    height: 200px;
  }

  .service-header {
    margin-bottom: 30px;
  }

  .service-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .service-subtitle {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
}