:root {
  --bg-color: #fffaf0;
  --primary-color: #ff6b6b;
  --accent-color: #1e3d59;
  --card-bg: #ffffff;
  --text-color: #1e3d59;
  --btn-hover: #fa5252;
  --shadow: rgba(0, 0, 0, 0.08);
  --transition: 0.25s ease-in-out;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 20px;
  line-height: 1.6;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  color: var(--accent-color);
  font-size: clamp(2rem, 5vw, 3rem);
  /* margin: 0 auto 40px; */
  font-weight: 700;
  max-width: 100%;
}

.btn {
  display: block;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  box-shadow: 0 6px 12px var(--shadow);
  text-decoration: none;
}

.btn:hover {
  background-color: var(--btn-hover);
  transform: translateY(-3px);
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.card {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  box-shadow: 0 12px 30px var(--shadow);
}

.card h2 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 12px;
  color: var(--primary-color);
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin: 10px 0;
}

.link-list a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  padding-left: 10px;
  position: relative;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.link-list a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.link-list a:hover {
  color: var(--primary-color);
}

.search-form {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.search-form input[type="text"] {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
  width: 300px;
}

.search-form button {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.search-form button:hover {
  background-color: var(--btn-hover);
}

label {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: border-color var(--transition), box-shadow var(--transition);
  margin: 10px auto;
  display: block;
  box-shadow: 0 4px 8px var(--shadow);
}

select:hover,
select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 6px 12px var(--shadow), 0 0 0 3px rgba(255, 107, 107, 0.3);
}

@media (max-width: 600px) {
  .card {
    padding: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .link-list a {
    padding-left: 8px;
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .card h2 {
    font-size: clamp(0.95rem, 3vw, 1.15rem);
  }
}
