/* styling hospitals section */
#hospitals {
  margin-top: -100px;
  margin-bottom: 320px;
  padding-block: 130px;
  background: var(--main-gradient);
  border-bottom-right-radius: var(--large-radius);
  border-bottom-left-radius: var(--large-radius);

  .sec-title {
      margin-top: 32px;
    color: #fff;
  }

  .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    .image {
      margin-bottom: -350px;
    }

    .info {
      margin-bottom: -450px;
      background-color: white;
      padding: 25px;
      border-radius: var(--main-radius);
      box-shadow: var(--main-shadow);

      .title {
        color: #D3C312;
        font-size: 24px;
        margin-bottom: 20px;
      }

      .description {
        margin-bottom: 30px;
        font-weight: normal;
      }

      .hospitals-list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding-inline: 15px;
        column-gap: 25px;
        row-gap: 5px;

        li {
          list-style: disc;
          font-weight: 700;
          line-height: 24px;

          &::marker {
            color: #D3C312;
            font-size: 20px;
          }
        }
      }
    }
  }
}

/* styling laoratories section */
#laboratories {
    overflow:hidden;
  padding-bottom: 40px;

  .content {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;

    .info {
      flex: 1;
      background-color: white;
      padding: 25px;
      border-radius: var(--main-radius);
      box-shadow: var(--main-shadow);

      .title {
        color: #D3C312;
        font-size: 24px;
        margin-bottom: 20px;
      }

      .description {
        margin-bottom: 30px;
        font-weight: normal;
      }

      .hospitals-list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding-inline: 15px;
        column-gap: 25px;
        row-gap: 5px;

        li {
          list-style: disc;
          font-weight: 700;
          line-height: 24px;

          &::marker {
            color: #D3C312;
            font-size: 20px;
          }
        }
      }
    }

    .image-one {
      margin-top: 100px;

      img {
        width: 100%;
        box-shadow: var(--main-shadow);
        border-radius: var(--main-radius);
      }
    }

    .image-two {
      position: relative;

      &::after {
        content: '';
        position: absolute;
        top: 50px;
        right: -80px;
        height: 100%;
        width: calc(100% + 150px);
        background: var(--main-gradient);
        border-top-left-radius: var(--main-radius);
        border-bottom-left-radius: var(--main-radius);
        z-index: -1;
      }

      img {
        width: 100%;
        box-shadow: var(--main-shadow);
        border-radius: var(--main-radius);
      }
    }
  }
}

/* styling radiology centers section */
#radiology {
  padding-block: 100px;

  .content {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    .image {
      flex-grow: 1;
      position: relative;
      height: 100%;

      img {
        width: 100%;
        height: 100%;
      }

      &::after {
        content: '';
        position: absolute;
        top: -50px;
        left: -80px;
        height: 80%;
        width: calc(25% + 100px);
        background: var(--main-gradient);
        border-top-right-radius: var(--main-radius);
        border-bottom-right-radius: var(--main-radius);
        z-index: -1;
      }
    }

    .info {
      flex-grow: 1;
      height: 100%;
      background-color: white;
      padding: 25px;
      border-radius: var(--main-radius);
      box-shadow: var(--main-shadow);

      .title {
        color: #D3C312;
        font-size: 24px;
        margin-bottom: 20px;
      }

      .description {
        margin-bottom: 30px;
        font-weight: normal;
      }

      .hospitals-list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        max-width: 400px;
        padding-inline: 15px;
        column-gap: 25px;
        row-gap: 5px;

        li {
          list-style: disc;
          font-weight: 700;
          line-height: 24px;

          &::marker {
            color: #D3C312;
            font-size: 20px;
          }
        }
      }
    }
  }
}

.sec-title {
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 40px;
  line-height: 48px;
  text-transform: capitalize;
}

#transportation .content,
#accomodation .content,
#feeding .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;

  .info {
    .title {
      margin-bottom: 5px;
      font-weight: 600;
      font-size: 32px;
      line-height: 48px;
      text-transform: uppercase;
    }

    .description {
      font-weight: 400;
      line-height: 24px;
    }
  }

  .image {
    position: relative;
    min-width: 600px;

    &::after {
      content: '';
      position: absolute;
      background: var(--main-gradient-revers);
      bottom: -20px;
      width: 60%;
      height: 50%;
      z-index: -1;
    }

    img {
      /*width: 100%;*/
      height:400px;
width:480px;
      border-radius: var(--main-radius);
    }
  }
}

#transportation .content,
#feeding .content {
  flex-direction: row-reverse;
}

#transportation  {
  .sec-title {
    margin-bottom: 20px;
  }
  .image {
    &::after {
      left: -100px;
      border-top-right-radius: var(--main-radius);
      border-bottom-right-radius: var(--main-radius);
    }
  }
}

#accomodation {
    overflow:hidden;
  margin-block: 100px;

  .content {
    .image {
      &::after {
        right: -100px;
        border-top-left-radius: var(--main-radius);
        border-bottom-left-radius: var(--main-radius);
      }
    }
  }
}

#feeding {
  margin-bottom: 100px;

  .content {
    .info {
      ul {
        padding-inline: 30px;

        li {
          list-style-type: disc;
        }
      }
    }

    .image {
      &::after {
        left: -100px;
        border-top-right-radius: var(--main-radius);
        border-bottom-right-radius: var(--main-radius);
      }
    }
  }
}

/* styling services section */
#services {
  margin-bottom: 100px;
  padding-top: 100px;
  color: white;
  position: relative;

  &::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--main-gradient);
  }

  .head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .title {
      font-size: 40px;
    }

    .description {
      font-size: 20px;
      font-weight: 400;
      line-height: 28px;
      width: 50%;
      padding-inline: 30px;
    }
  }

  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    margin-top: 50px;

    .card {
      overflow: hidden;
      border-radius: var(--main-radius);
      max-height: 300px;
      position: relative;

      img {
        width: 100%;
        height: 100%;
      }

      .info {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 5;
        display: flex;
        flex-direction: column;
        justify-content: end;
        padding: 25px;

        .title {
          font-size: 20px;
          font-weight: 600;
          margin-bottom: 20px;
        }

        .description {
          font-weight: 400;
          line-height: 24px;
        }
      }

    }

    .one {
      .info {
        background: linear-gradient(to bottom, #D3C31200, #D3C312);
      }
    }

    .two {
      .info {
        background: linear-gradient(to bottom, #0FA98A00, #0FA98A);
      }
    }

    .three {
      .info {
        background: linear-gradient(to bottom, #61A90F00, #61A90F);
      }
    }

    .four {
      .info {
        background: linear-gradient(to bottom, #2EB8DB00, #2EB8DB);
      }
    }

    .five {
      .info {
        background: linear-gradient(to bottom, #57873A00, #57873A);
      }

    }

    .six {
      .info {
        background: linear-gradient(to bottom, #639EBA00, #639EBA);
      }
    }
  }
}