/*--------------------------------------------------------------
# Service-square
--------------------------------------------------------------*/
.service-square .container {
  max-width:100%;
}
.service-square .content {
  margin-left:2em;
  margin-right:2em;
}

.service-square .section-title h2, 
.service-square .section-title span, 
.service-square .section-title p,
.service-square .section-subtitle {
text-align: center;
}

.service-square .section-title p {
font-family: var(--body-font-family);
    font-size: var(--body-font-size);
    font-weight: var(--body-font-weight);
    line-height: var(--body-line-height);
    color: var(--body-color);
}

.service-square h1.headsize, .service-square h2.headsize, .service-square h3.headsize, .service-square h4.headsize, .service-square h5.headsize, .service-square h6.headsize, .service-square p.headsize {
    font-size: 32px;
    font-weight: var(--terraplanet-font-weight-headings);
    text-transform: uppercase;
    padding-bottom: 0;
    color: #4d4643;
    position: relative;
	text-align: center;
	z-index: 2;
}

.service-square h1.headsize::after, .service-square h2.headsize::after, .service-square h3.headsize::after, .service-square h4.headsize::after, .service-square h5.headsize::after, .service-square h6.headsize::after, .service-square p.headsize::after {
    content: "";
    position: absolute;
    display: block;
    width: 100px;
    height: 5px;
    background: var(--terraplanet-color-primary);
    bottom: -.2em;
    left: calc(50% - 50px);
}

.service-square .subheadsize {
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: var(--body-font-weight);
    color: color-mix(in srgb, var(--terraplanet-color-primary), transparent 30%);
    display: inline-block;
    font-family: var(--body-font);
	position: relative;
    padding: 10px 10px;
    background: color-mix(in srgb, var(--terraplanet-color-primary), transparent 95%);
    border-radius: 10px;
    display: inline-block;	
}
/*
.service-square .section-title h2 {
    font-size: 32px;
    font-weight: var(--terraplanet-font-weight-headings);
    text-transform: uppercase;
    padding-bottom: 0;
    color: #4d4643;
    position: relative;
    z-index: 2;
}

.service-square .section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 100px;
    height: 5px;
    background: var(--terraplanet-color-primary);
    bottom: -.2em;
    left: calc(50% - 50px);
}
*/
.service-square .section-title span {
    position: absolute;
    color: #f0f1f3;
	margin-bottom: 10px;
    left: 0;
    right: 0;
    z-index: 1;
    font-weight: 700;
    font-size: 52px;
    text-transform: uppercase;
    line-height: 0;
}

@media (max-width: 575px) {
.service-square h1.headsize, .service-square h2.headsize, .service-square h3.headsize, .service-square h4.headsize, .service-square h5.headsize, .service-square h6.headsize, .service-square p.headsize {
    font-size: 28px;
    margin-bottom: 15px;
  }



.service-square .section-title span {
    visibility: hidden;
  }
}
/*----------------*/
.service-square .icon-box {
  text-align: center;
  font-family:var(--body-font-family);
  font-weight: var(--body-font-weight);
  background: #fefefe;
  box-shadow: 0px 5px 20px 0px rgba(110, 123, 131, 0.1);
  padding: 80px 20px;
  transition: all ease-in-out 0.3s;
}

.service-square .icon-box .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: var(--terraplanet-color-primary);
  border-radius: 5px;
  transition: all 0.3s ease-out 0s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transform-style: preserve-3d;
  position: relative;
  z-index: 2;
}

.service-square .icon-box .icon span {
  color: #fff;
  font-size: 28px;
}

.service-square .icon-box .icon::before {
  position: absolute;
  content: "";
  left: -8px;
  top: -8px;
  height: 100%;
  width: 100%;
  background: var(--terraplanet-color-primary);
  border-radius: 5px;
  transition: all 0.3s ease-out 0s;
  transform: translateZ(-1px);
  z-index: 1;
  opacity:.3;
}

.service-square .icon-box h3 {
  font-weight: var(--terraplanet-font-weight-headings);
  margin-bottom: 15px;
  font-size: 24px;
}

.service-square .icon-box h3 a {
  color: var(--dark);
}

.service-square .icon-box p {
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  margin-bottom: 0;
}


.service-square .icon-box:hover {
  background: var(--terraplanet-color-primary);
  border-color: var(--terraplanet-color-primary);
}

.service-square .icon-box:hover .icon {
  background: #fff;
}

.service-square .icon-box:hover .icon span {
  color: var(--terraplanet-color-primary);
}

.service-square .icon-box:hover .icon::before {
  background: #000;
  opacity:.3;
}
.service-square .icon-box:hover h1 a,
.service-square .icon-box:hover h2 a,
.service-square .icon-box:hover h3 a,
.service-square .icon-box:hover h4 a,
.service-square .icon-box:hover h5 a,
.service-square .icon-box:hover h6 a,
.service-square .icon-box:hover p a,
.service-square .icon-box:hover p {
  color: #fff;
}



.service-square h1.boxhead,
.service-square h2.boxhead,
.service-square h3.boxhead,
.service-square h4.boxhead,
.service-square h5.boxhead,
.service-square h6.boxhead,
.service-square p.boxhead,
.service-square .boxhead a {
  font-weight: var(--terraplanet-font-weight-headings);
  font-family: var(--terraplanet-font-family-headings);
  color: var(--body-color);
  margin-bottom: 1em;
  padding: 0;
  line-height: 1;
  font-size: 22px;
  margin-right:auto;
}

.service-square .btnmore a {
  color: var(--body-color);
  text-decoration:none;
  float:left;
  margin-left:1em;
  font-size:1.1em;
}
/**/.service-square .btnmore a:hover {
  text-decoration:underline;
}
.service-square .btnmore a span{
  color: var(--terraplanet-color-primary);
}
.service-square .icon-box:hover .btnmore a span{
	color:var(--body-bg);
}
/*.service-square .icon-box:hover .btnmore a{
	text-decoration:underline;
}

.service-square .boxhead a:hover{
	color: var(--terraplanet-color-primary);
}*/