.cardIcon {
  position: relative;
  width: 70px;
  height: 70px;
  color: #5dabc4; /* This might be for text color, not the SVG fill */
  fill: currentColor; /* Ensures the SVG fill color matches the 'color' property */
  margin: 0px;
  transition: all .3s ease;
}
.expanding-grid {
  position: relative;
  width: 100%;
}
.expanding-grid .links {
  display: block;
  overflow: hidden;
  list-style-type:none;
  padding: 50px 0 0 0;
  transition: all .1s ease;
}
.expanding-grid .links > li {
  padding: 0;
  min-height: 140px;
}
.expanding-grid .links > li a {
  background: #ffffff;
  display: block;
  padding: 35px;
  position: relative;
  text-align: center;
  text-decoration: none;
  margin: 2px;
  border-radius: 5px;
}
.expanding-grid .links > li a:hover .cardIcon { /* Modified selector to target .cardIcon within the hovered 'li a' */
  fill: #e06721; /* Change fill for SVG icon */
  transition: all .3s ease;
  transition-delay: 0.25s;
}
.expanding-grid .links > li a.active {
  background: #000000;
  transition: all .3s ease;
}
.expanding-grid .links > li a.active .cardIcon {
  fill: #e06721;
  transition: all .3s ease;
}
li a .more {
  color: #e06721;
  transition: all .3s ease;
  margin: auto;
  padding: 0;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 80%;
  font-weight: 400;
}
.expanding-grid .links > li a.active .more {
  color: #333333;
  transition: all .3s ease;
}
.expanding-grid .links > li a.active:after {
  background-color: transparent;
  border-bottom: 14px solid #5fadc7;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  bottom: -4px;
  content: '';
  height: 0;
  left: 50%;
  margin-left: -14px;
  position: absolute;
  width: 0;
}
.expanding-grid .links > li a h3{
  font-size: 17px;
  font-weight: 300;
  color: #5dabc4;
  margin: 10px 0px;
  padding-bottom: 5px;
}
.expanding-grid .links > li a p{
  margin: 10px 0px 15px;
}
.expanding-grid .spacer {
  background-color: rgba(255,255,255,0);
  clear: both;
  display: block;
  margin: 0 1em;
}
.expanding-grid .expanding-container {
  clear: both;
  display: none;
  overflow: hidden;
  width: 100%;
}
.expanding-grid .expanding-container.expanded, .expanding-grid .expanding-container:target {
  display: block;
}
.expanding-grid .main-section {
  background: #5fadc7;
  clear: both;
  color: #fff;
  min-height: 4em;
  overflow: hidden;
  padding: 40px;
  margin: 2px;
  width: calc(100% - 4px);
  border-radius: 5px;
}
.expanding-grid .main-section .entry-title {
  font-size: 25px;
  font-weight: 200;
  color: #ffffff;
  letter-spacing: 0;
  margin-top: 0;
}
.expanding-grid .main-section p {
  text-align: left;
}
.expanding-grid .close-button {
  color: #fff;
  display: inline-block;
  line-height: 1.5;
  padding: 10px;
  text-decoration: none;
  width: 40px;
  will-change: opacity;
  z-index: 5;
  font-size: 125%;
  transition: opacity 0.2s;
}
.close-button.active {
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.expanding-grid .close-button:hover {
  opacity: 0.5;
  transition: opacity 0.2s;
}

@media only screen 
and (min-device-width : 375px) 
and (max-device-width : 812px) {

.cardIcon {
    position: relative;
    width: 150px;
    height: 150px;
}

.expanding-grid .links > li a h3 {
    font-size: 27px;
}

.expanding-grid .main-section .entry-title {
    font-size: 40px;
}

li a .more {
    font-size: 100%;
}

expanding-grid .links > li a {
    padding: 65px;
}

.expanding-grid .close-button {
    width: 55px;
}

.expanding-grid .links > li a.active:after {
    border-bottom: 25px solid #5fadc7;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
}
}