.hahmot-hero {
  position: relative;
  clear: both;
  overflow: hidden;
  margin: 18px 0 28px;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 42px 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(35, 25, 18, 0.66)),
    url("images/hahmot-2.jpg") center 38% / cover;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.hahmot-eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hahmot-hero h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
}

.hahmot-hero p {
  max-width: 660px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.5;
}

.page-header {
  text-align: center;
  margin-bottom: 26px;
}

.group-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 10px 36px;
}

.group-card {
  display: flex;
  flex-direction: column;
  width: 300px;
  min-height: 300px;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}
.group-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.group-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 24px;
  gap: 12px;
}
.group-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.14);
}


.group-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.group-card-count {
  font-size: 1rem;
  color: #666;
}

.hahmo-card {
  display: block;
  width: 220px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: center;
  color: #111;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hahmo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 23, 42, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 40px rgba(15, 23, 42, 0.18),
    0 6px 12px rgba(15, 23, 42, 0.1);
}

.hahmot-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.hahmo-card-body {
  padding: 16px 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.hahmo-card-body strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

@media (max-width: 768px) {

  .group-card {
    width: 100%;
    max-width: 420px;
  }

  .group-card-img {
    height: 220px;
  }
}
@media (max-width: 800px) {
  .group-list,
  .group-row {
    justify-content: center;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

.group-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92)),
    #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.group-title {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin: 20px 0 30px 0;
}

hr {
  border: none;
  border-top: 2px solid #ccc;
  margin: 20px auto;
  width: 80%;
}

.group-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.edit-group-link {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s;
}

.edit-group-link:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .group-row {
    gap: 12px;
    padding: 14px;
  }

  .hahmo-card {
    width: calc((100% - 12px) / 2);
    border-radius: 18px;
  }

  .hahmo-card-body {
    padding: 12px 10px 14px;
  }

  .hahmo-card-body strong {
    font-size: 0.9rem;
    line-height: 1.3;
  }
}
