* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #222;
}

header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: white;
}

header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

header p {
  font-size: 18px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.fruits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: black;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card h2 {
  text-align: center;
  padding: 15px;
  font-size: 18px;
}

/* tablet */
@media (max-width: 900px) {
  .fruits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* phone */
@media (max-width: 500px) {
  .fruits-grid {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 28px;
  }

  header p {
    font-size: 16px;
  }

  .container {
    padding: 25px 15px;
  }

  .card img {
    height: 220px;
  }
}