body{
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 2rem;
    color: #333;
}

header nav{
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

header nav a svg {
  width: 24px;
  height: 24px;
  stroke: black;
  stroke-width: 2;
  fill: none;
  transition: stroke 0.2s, fill 0.2s;
}



main{
    max-width: 600px;
    margin: 0 auto;
}

h2{ 
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

p{
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #555;
}

Form {
background-color: white;
    padding: 1rem;
    border-radius: 12px;
}

fieldset{
    border: none;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

fieldset:last-of-type{
    border-bottom: none;
}


legend{
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
}

label{
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    color: #444;
}

input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

button {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: #007cc2;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #005fa0;
}

section {
  max-width: 900px;
  margin: 2rem auto;
}

section > h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: start;
}

article {
  display: inline-block;
  vertical-align: top;
  width: 260px;
  background: white;
  border-radius: 12px;
  margin-right: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

article header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f4f4;
  padding: 0.6rem;
}

article header h3 {
  font-size: 1rem;
  margin: 0;
}

article p {
  margin: 0.4rem 0.6rem;
  font-size: 0.9rem;
  color: #555;
}

figure {
  margin: 0;
}

figure img {
  width: 200px;
  display: block;
}

figcaption {
  padding: 0.6rem;
}

figcaption h4 {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
}

figcaption p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
}

section > p {
  margin-top: 1rem;
}

section > p a {
  font-weight: bold;
  color: #007cc2;
  text-decoration: none;
}

section > p a:hover {
  text-decoration: underline;
}