/* ── index.css ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #fafafa;
  color: #111;
}

/* ── Hero ── */
.hero-wrapper {
  position: relative;
  width: 100%;
  margin-top: 70px;
  height: calc(100vh - 70px);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

.hero-text {
  position: absolute;
  bottom: 52px;
  left: 72px;
  color: #fff;
  z-index: 2;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

/* ── Blog grid section ── */
.section-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  padding: 60px 24px 8px;
  color: #111;
}

.section-subtitle {
  text-align: center;
  color: #888;
  font-size: 15px;
  margin: 0 0 40px;
  padding: 0 24px;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding: 60px 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Card ── */
.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 160px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
}

.card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.grid-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.grid-buttons button,
button {
  background-color: #111;
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.1px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.grid-buttons button:hover,
button:hover {
  background-color: #333;
  transform: translateY(-1px);
}

/* ── Add card ── */
.add-card {
  justify-content: center;
  align-items: center;
  border: 2px dashed #ccc;
  background: transparent;
  cursor: pointer;
}

.add-card:hover {
  border-color: #aaa;
  background: #f5f5f5;
}

/* ── Tablet ── */
@media (max-width: 900px) {
  .container {
    padding: 20px 40px 60px;
    gap: 20px;
  }

  .hero-text {
    left: 40px;
    bottom: 40px;
  }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .hero-wrapper {
    margin-top: 60px;
    height: calc(70vh - 60px);
  }

  .hero-text {
    left: 20px;
    bottom: 28px;
  }

  .container {
    grid-template-columns: 1fr;
    padding: 16px 16px;
    gap: 16px;

  }

  .card {
    padding: 24px 20px;
  }

  .grid-buttons button,
  button {
    padding: 9px 18px;
    font-size: 13px;
  }
}
