:root {
    --container-w: 900px;
}


body {
    margin: 0;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    font-family: "Arial", sans-serif;
    background: #2852a0;
}

.page {
    width: var(--container-w);
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 120px auto 1fr 60px;
    gap: 20px;
}

  
.logo-box {
    border: 5px ridge #29c2ff;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../images/mc.jpg");
    background-size: cover;
    background-position: center;
}


.hero {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  border: 5px ridge #29c2ff;
  position: relative;
  height: 120px;
  background: #a7dcff;
}

.nav-buttons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  display: flex;
  gap: 28px;
  
}

.nav-buttons .btn {
  border: 5px ridge #29c2ff;
  padding: 10px 26px;
  font-weight: 700;
  text-decoration: none;
  color: #000;
  background: #a7dcff;
  display: inline-block;
}

.btn:hover {
  background-color: #a68efd;
}

  
.profile-card {
  grid-column: 1 / 2;
  grid-row: 2 / 4;
  border: 5px ridge #29c2ff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #a7dcff;
 }

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 5px ridge #29c2ff;
  background: #a7dcff;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-weight: bold;
}

.profile-info ul {
  margin: 6px 0 0 18px;
  padding: 0;
  font-size: 14px;
}


.main-frame {
  grid-column: 2 / 3;
  grid-row: 2 / 4;
  border: 5px ridge #29c2ff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: #a7dcff;
}

.main-frame h2 {
  text-align: center;
  text-decoration: underline;
  margin: 0 0 14px 0;
  font-size: 22px;
}

.top-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.top-text {
  width: calc(100% - 160px);
  text-align: justify;
  line-height: 1.45;
  font-size: 14px;
}

.tall-side-img {
  width: 140px;
  height: 420px;
  border: 5px ridge #29c2ff;
  background: #a7dcff;
  overflow: hidden;
  flex-shrink: 0;
}

.tall-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lower-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.square-img {
  border: 5px ridge #29c2ff;
  height: 260px;
  background: #a7dcff;
  overflow: hidden;
}

.square-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lower-text {
  text-align: justify;
  line-height: 1.45;
  font-size: 14px;
}

.sub-footer {
  grid-column: 1 / 3;
  border: 5px ridge #29c2ff;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px; 
}

.grid-item {
  text-align: center;
}

.grid-item img {
  width: 100%;
  height: auto;
  border:ridge 5px  #29c2ff;
  
}

/* I figured out these image grids via youtube,
alongside the container layout to try my best to mimic
what I drew originally for the website plan.*/