@import url('shared.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  color: #fff;
  background: hsl(349deg, 100%, 74%);
}

h1,
h2,
h3,
h4,
h5 p {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  align-self: center;
}

a, a:hover {
  text-decoration: none;
}

.flow-content > * + * {
  margin-top: 2rem;
}

li {
  list-style-type: none;
}

body {
  background: #f5f5f0;
  padding: 1rem;
  min-height: 100vh;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
}

.grid {
  height: calc(100vh - 2rem);
  display: grid;
  grid-template-columns: minmax(10px, 1fr) minmax(10px, 3fr);
  grid-template-rows: 0.25fr min-content 1fr 0.1fr;
  gap: 1rem;
}
.back-link {
  margin-bottom: 0.5rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.grid > * {
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.06);
  opacity: 0;
}

.grid > header { animation: fadeSlideIn 0.6s ease-out 0s forwards; }
.grid > nav { animation: fadeSlideIn 0.6s ease-out 0.2s forwards; }
.grid > main { animation: fadeSlideIn 0.6s ease-out 0.3s forwards; }
.grid > aside { animation: fadeSlideIn 0.6s ease-out 0.4s forwards; }
.grid > footer { animation: fadeSlideIn 0.6s ease-out 0.5s forwards; }

@keyframes fadeSlideIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 100%;
    grid-template-rows: auto;
  }
  .grid > * {
    grid-column: 1/-1 !important;
    grid-row: auto !important;
  }
}

header {
  grid-column: 1/-1;
  background: hsl(0deg, 0%, 25%);
  background: #413C58;
  color: #fff;
  padding: 1.5rem 2.5rem !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
}
header h1 {
  color: #fff;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
}
header a {
  padding: 0.75rem;
  font-size: 1.1rem;
  border-radius: 4px;
  color: #fff;
  transition: all 0.25s ease;
}
header a:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: black;
  transform: translateY(-2px);
}
header a.active {
  background-color: #008CBA;
  color: white;
}

aside {
  grid-column: 1/2;
  grid-row: 2/4;
  background: hsl(0deg, 0%, 85%);
  background: #A3C4BC;
  background: hsl(251deg, 19%, 90%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 1rem;
}
aside details {
  font-size: 1rem;
  line-height: 1.7rem;
  padding: 2rem;
}
aside details summary {
  font-size: 1.5rem;
  cursor: pointer;
}
aside a {
  align-self: center;
}

nav {
  grid-column: 2/3;
  background: hsl(0deg, 0%, 90%);
  background: #BFD7B5;
  background: hsl(251deg, 19%, 95%);
  border-radius: 8px;
  overflow: hidden;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
}
nav ul li {
  display: inline-block;
}
nav ul li a {
  display: block;
  color: #666;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: all 0.25s ease;
}
nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: #333;
}
nav ul li a.active {
  color: white;
  background-color: #008CBA;
}

main {
  grid-column: 2/3;
  background: hsl(0deg, 0%, 95%);
  background: #E7EFC5;
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 600px) {
  main {
    height: 50vmin;
  }
}
main .hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://images.unsplash.com/photo-1613834926943-9e4ac2945744?auto=format&fit=crop&q=80&w=2070&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: grid;
  place-content: center;
}
main .hero-text {
  text-align: center;
  color: white;
}
main .hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
main .hero-text p {
  margin-bottom: 1rem;
  font-weight: 400;
  font-size: 1.1rem;
  opacity: 0.9;
}

footer {
  grid-column: 1/-1;
  background: #ffecb3;
  background: hsl(0deg, 0%, 80%);
  background: #F2E7C9;
  background: hsl(251deg, 19%, 95%);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}
footer span {
  display: flex;
  gap: 2rem;
}
footer span a {
  transition: color 0.25s ease;
}
footer span a:hover {
  color: #008CBA;
}
footer span i {
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
footer span i:hover {
  transform: scale(1.2);
  color: #008CBA;
}

a.btn,
.btn {
  border: 2px solid #000;
  background-color: white;
  color: black !important;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
  display: inline-block;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
a.btn:hover,
.btn:hover {
  background-color: #4a4a4a !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn .badge {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 5px 10px;
  border-radius: 50%;
  background: red;
  color: white;
}