@import url("./style.css");

.heading-image {
  position: relative;
}
.bg-image {
  position: relative;
  height: 287px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.bg-image > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -10;
}
.bg-image > span {
  color: var(--secondary-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pf-image {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid var(--bg-color);
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.pf-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 4rem;
  margin-top: 8rem;
  justify-content: space-evenly;
  padding-inline: 5rem;
}
.pet-story > div {
  width: 100%;
}
.story {
  border-bottom: 1px solid lightgray;
}
.story .title {
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
.story > p {
  text-align: justify;
  margin-bottom: 1rem;
  color: var(--dark-color);
  /* text-transform: capitalize; */
}

.adoption-fee {
  background-color: var(--card-color);
  border: 1px solid lightgray;
  border-radius: 0.25rem;
  padding: 2rem 3rem;
  text-align: center;
}
.adoption-fee > span {
  font-size: 3rem;
  display: block;
  font-weight: 700;
}

.adoption-fee > a {
  display: block;
  width: 100%;
  margin-top: 1rem;
  border: 0;
  padding: 0.75rem 0 0.75rem 0;
  cursor: pointer;
}
.adoption-fee .primary {
  background-color: var(--primary-orange);
  color: white;
}
@media (max-width: 1023px) {
  .adoption-fee {
    order: -1;
  }
  .pf-image {
    height: 150px;
    width: 150px;
  }
  .pet-story {
    grid-template-columns: 1fr;
  }
}

/* Pet Details  */
.pet-details {
  border-bottom: 1px solid lightgray;
  padding-bottom: 2rem;
}
.pet-details > h4 {
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
}
.detail > div {
  background-color: var(--card-color);
  border-radius: 0.25rem;
  border: 1px solid lightgray;
  padding: 0.75rem 1rem;
}
.detail-card > p {
  margin-top: 1rem;
  text-transform: capitalize;
  color: #000;
  font-weight: 400;
}

/* Behavioral Characteristics and Medical History */
.pet-behavior,
.pet-medical-history {
  grid-row: 3;
  background-color: var(--card-color);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
}
.pet-behavior > h4,
.pet-medical-history > h4 {
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.behavior > div,
.medical-history > div {
  border-bottom: 1px solid lightgray;
  padding: 1rem;
}

.behavior-card > .fa-solid,
.medical-history-card > .fa-solid {
  margin-right: 10px;
  rotate: -30deg;
}

.behavior-card > span,
.medical-history-card > span {
  text-transform: capitalize;
}
@media (max-width: 1023px) {
  .pet-behavior {
    grid-row: 4;
  }
  .pet-medical-history {
    grid-row: 5;
  }
}

/* More Pets  */
.more-pets {
  max-width: 1200px;
  margin-inline: auto;
  margin-top: 4rem;
  border-top: 1px solid gray;
  padding-top: 1rem;
}

.more-pets > h4 {
  margin-left: 1rem;
  text-transform: uppercase;
}
