body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background: AliceBlue;
  color: Black;
}

header {
  width: 100%;
  text-align: center;
  padding: 15px;
  background: MidnightBlue;
  color: White;
}

header p {
  color: White;
  margin: 0;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 15px;
  background: MidnightBlue;
  color: White;
  z-index: 100;
}

footer p {
  color: White;
  margin: 0;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 20px;
  box-sizing: border-box;
}

article {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

img {
  width: 100%;
  max-width: 200px;
  margin-bottom: 10px;
}

h1 {
  margin: 0;
  font-size: 2em;
}
h2 {
  margin: 10px 0 0 0;
  color: MidnightBlue;
}
p {
  color: DarkSlateGray;
}

.button-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  background: RoyalBlue;
  color: White;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.2s;
}
.button-link:hover {
  background: Navy;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: Gainsboro;
  color: Black;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-media a:hover {
  background: RoyalBlue;
  color: White;
}
.social-media svg {
  width: 18px;
  height: 18px;
}


main > article:first-child {
  grid-column: 1 / -1;
  order: -1;
  background: #fff;
  padding: 32px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  font-size: 1.35em;
}

main > article img {
  width: 100%;
  max-width: 200px;
  margin-bottom: 10px;
  object-fit: contain;
  aspect-ratio: 1.5/1;
}

main > article:first-child img {
  max-width: 200px;
  aspect-ratio: unset;
}

@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  article {
    width: 100%;
    max-width: 100%;
  }
  main > article:first-child {
    font-size: 1.1em;
    padding: 20px 8px;
  }
}
