/*
* Plugin Name: Zest Dynamic Plugin
* Plugin URI: https://tdp.zestdev.com
* Description: Making things Dynamic
* Version: 0.1
* Author: Zest digital
* Author URI: https://www.zestdigital.co
*/

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css");

.childpages {
    padding-top: 100px;
}

.childpages li {
  width: 33%;
  padding-right: 60px;
  padding-bottom: 60px;
  float: left;
  list-style: none;
}

.childpages img.attachment-medium.size-medium.wp-post-image {
    width: 345px;
    height: 285px;
    object-fit: cover;
}

.childpages .column-bg-overlay {
    opacity: 0.4;
    background-color: #32587b;
    width: 100%;
    height: 285px;
    object-fit: cover;
    margin-top: -285px;
}

.childpages h4 {
    position: absolute;
    text-align: center;
    width: 27.5%;
    height: 20.1%;
    color: white;
    margin-top: -160px !important;
}

.pagelist-shortcode {
    width: 18%;
    float: left;
    padding: 1%;
    background-color: var(--e-global-color-f0d21a4);
    border-radius: 5px;
    box-shadow: 0px 3px 16px 0px rgb(0 0 0 / 16%);
    margin: 1%;
    margin-bottom: 1%;
}

.pagelist-shortcode img {
    margin-bottom: 25px;
    width: 280px !important;
    height: 15vh !important;
    display: block;
    object-fit: cover;
}

.pagelist-shortcode h4 {
    font-family: var( --e-global-typography-b0f1cae-font-family ), Sans-serif;
    color: var( --e-global-color-primary );
    font-size: 20px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 22px !important;
    height: 10vh;
}

.pagelist-shortcode a:hover {
  opacity: 0.6;
}


@media (max-width: 480px) {
  .childpages li, .pagelist-shortcode {
    width: 100%;
    padding-right: 20px;
    padding-bottom: 40px;
    float: none;
        margin: 0px;
            margin-bottom: 40px;
  }
  .childpages .column-bg-overlay {
    width: 100%;
}
.childpages h4 {
    width: 88%;
    height: 0%;
    margin-top: -163px !important;
}
.pagelist-shortcode:nth-child(3n) {
  margin-right: 20px;
}
.pagelist-shortcode img {
    width: 100%;
}
}

@media (min-width: 481px) and (max-width: 767px) {
  .childpages li, .pagelist-shortcode {
    width: 100%;
    padding-right: 20px;
    padding-bottom: 40px;
    float: none;
        margin: 0px;
            margin-bottom: 40px;
}
.childpages .column-bg-overlay {
  width: 100%;
}
.childpages h4 {
    width: 88%;
    height: 0%;
    margin-top: -163px !important;
}
.pagelist-shortcode:nth-child(3n) {
  margin-right: 20px;
}
.pagelist-shortcode img {
    width: 100%;
}
}

@media (min-width: 768px) and (max-width: 1024px) {
  .childpages li, .pagelist-shortcode {
    width: 47%;
    padding-right: 20px;
    padding-bottom: 40px;
}
.childpages h4 {
    width: 43%;
}
.pagelist-shortcode:nth-child(3n) {
  margin-right: 20px;
}
.pagelist-shortcode:nth-child(2n) {
  margin-right: 0px;
}
.pagelist-shortcode img {
    width: 100%;
}
}

/********Code for sidebar shortcode ( Added by Mayur Sharma )***/

.sidemain {
  padding: 30px 40px;
  background-color: #F4F6F9;
  box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.16);
}

.sidemain h2 {
  color: #345A7D;
  font-family: "Quicksand", Sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 34px;
}

.sidemain ul {
  padding: 0;
  list-style-type: none;
}

.sidemain ul li {
    margin: 15px 0;
    background-color: #ffff;
    padding: 7px 15px;
    display: flex;
    align-items: center;
}
.sidemain ul li span {
    margin-right: 15px;
    width: 30px;
    text-align: center;
}
.sidemain ul li:hover {
    color: #fff;
    background-color: #32587b;
}
.sidemain ul li:hover a {
    color: #fff;
}
/*.sidemain ul li::before {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 10px;
  top: 20%;
}*/

.additional {
  width: 100%;
  padding: 7px 15px;
  background-color: #ffff;
  display: block;
  color: #32587b;
  transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  margin-bottom: 15px;
}

.additional:hover {
  color: #fff;
  background-color: #32587b;
}