/*Main css file for Frikmat website*/

/*
 The design should be mobile first to render page faster.
 This is to make small devices' design first before scaling up to bigger screens
*/

.industry-list-container {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1250px;
  min-height: 100vh;
  padding: 0;
  margin: 0 auto;
  background: transparent;
}

.industry-list-title {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 0;
  margin: 0;
}

.industry-list-title > h2 {
  position: relative;
  display: inline-block;
  padding: 10px;
  margin: 40px 5px;
  font-size: 1.5em;
  font-weight: 500;
  overflow: visible;
}

.industry-list-title > h2::after {
  position: absolute;
  display: block;
  top: calc(100% + 5px);
  left: 10%;
  width: calc(100% - 20%);
  height: 5px;
  background: #2a80b9;
  content: '';
}

.industry-list-content {
  position: relative;
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
  width: 100%;
  height: auto;
  padding: 5px;
  margin: 15px 0;
}

.industry-list-item {
  position: relative;
  display: inline-block;
  width: 300px;
  height: 420px;
  padding: 3px;
  margin: 3px;
  margin-bottom: 20px;
  border-radius: 5px 5px 0 0;
  background: #F8F8FF;
  overflow: hidden;
}

.industry-list-item:hover {
  border: 1px solid #DCDCDC;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.industry-list-item > a {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 350px;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.industry-list-item > a > span {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  width: 100%;
  height: 100%;
  font-size: 1.5em;
}

.industry-list-item > a > img {
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  visibility: hidden;
}

.industry-list-item > a > p {
  display: block;
  width: 100%;
  padding: 5px;
  margin: 0;
  margin-top: 7px;
  text-align: center;
}

.industry-list-item-more {
  position: absolute;
  bottom: 3px;
  left: 3px;
  display: block;
  width: calc(100% - 6px);
  height: 35px;
  padding: 0;
  margin: 0;
  text-align: center;
}

.industry-list-item-more > a {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #36454F;
  color: white; 
  line-height: 37px;
  font-size: 0.9em;
}

.industry-list-item-more > a:hover {
  background-color: #2d3e50;
  color: #FFA500;
}

.industry-list-item-more-items {
  position: absolute;
  bottom: 100%;
  left: 0;
  display: none;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  background: #FFFFFF;
}

.industry-list-item-more-items > a {
  display: block;
  width: 100%;
  height: 35px;
  padding: 0;
  margin: 0;
  line-height: 38px;
  font-size: 0.9em;
  overflow: hidden;
}

.industry-list-item-more-items > a:hover {
  background: #DCDCDC;
}

.industry-list-item-more:hover .industry-list-item-more-items {
  display: block;
}

/* Small devices (portrait phones, 481px and up) */
@media only screen and (min-width: 481px) {
  .industry-list-title > h2{
    margin-left: 20px;
  }

  .industry-list-item {
    width: 220px;
    height: 340px;
  }

  .industry-list-item > a {
    height: 290px;
  }
}

/* Small devices (portrait tablets and large phones, 601px and up) */
@media only screen and (min-width: 601px) {
  .industry-list-title > h2 {
    margin-left: 50px;
  }
} 

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 769px) {
  
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 993px) {
	.industry-list-title > h2 {
    margin-left: 100px;
  }

  .industry-list-item {
    width: 250px;
    height: 350px;
  }

  .industry-list-item > a {
    height: 300px;
  }
} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1201px) {

}


