/* case-refactor.css */

.zs-page-header-title {
  background-color: #fff;
  padding: 20px 0;
}

.zs-page-header-title h1 {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.zs-page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
  text-align: left;
}

.zs-page-banner .zs-container {
  position: relative;
  z-index: 1;
}

.zs-page-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.zs-page-desc {
  font-size: 18px;
  color: #fff;
  max-width: 600px;
  line-height: 1.6;
}

.zs-case-section {
  padding: 60px 0;
  background-color: #fff;
}

.zs-tabs {
  margin-top: 20px;
}

/* Tabs Nav */
.zs-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border-bottom: 1px solid #eaeaea;
  flex-wrap: wrap;
}

.zs-tabs-nav li {
  margin-bottom: -1px;
}

.zs-tabs-nav a {
  display: block;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.zs-tabs-nav a:hover,
.zs-tabs-nav a.is-active {
  color: #0056b3;
  border-bottom-color: #0056b3;
}

/* Tabs Content */
.zs-tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.zs-tab-pane.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Card Style */
.zs-case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.zs-case-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 15px;
  display: block;
}

.zs-case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.zs-case-card-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.zs-case-card-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s;
}

.zs-case-card-title a:hover {
  color: #0056b3;
}

@media (max-width: 1200px) {
  .zs-case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .zs-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive */
@media (max-width: 767px) {
  .zs-case-grid {
    grid-template-columns: 1fr;
  }
  .zs-tabs-nav a {
    padding: 10px 15px;
    font-size: 14px;
  }
}
