.case-studies-tag {
  display: flex;
  align-items: center;
  margin: 10px 0;
  gap: 6px;
}

.case-studies-tag span {
  color: var(--button-color);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  background-color: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 28px;
}

.case-studies-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  padding: 0 80px;
}

.case-studies-section {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 10px;
}

.section-header h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 150%;
  color: white;
  margin: 0;
}

.section-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.section-image img {
  max-height: 250px;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 0 30px;
  box-sizing: border-box;
}

.overlay h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 100%;
  color: white;
}

.overlay a {
  margin-top: 20px;
  background-color: #141414;
  border: 1px solid #262626;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s;
}

.overlay a:hover {
  background-color: #444;
}

@media (max-width: 768px) {
  .case-studies-content {
    padding: 40px 20px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .section-header h2 {
    font-size: 26px;
  }
}
