/* ==========================================================================
   Four Icon Parallax Module
   Prefix: rc-icon-parallax-
   ========================================================================== */

/* --------------------------------------------------------------------------
   Main Container with Parallax Background
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Optional: Description Hover Color
   -------------------------------------------------------------------------- */
.rc-icon-parallax--desc-hover .rc-icon-parallax__block:hover .rc-icon-parallax__desc {
  color: #6fb53f;
  transition: color 0.3s ease;
}
#rc-icon-parallax,
.rc-icon-parallax {
  position: relative;
  background-color: #333333;
  background-attachment: fixed;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 60px 0;
}

.rc-icon-parallax__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --------------------------------------------------------------------------
   Row & Columns - 2x2 Grid
   -------------------------------------------------------------------------- */
.rc-icon-parallax__row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.rc-icon-parallax__col {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Icon Block (Clickable Link)
   -------------------------------------------------------------------------- */
.rc-icon-parallax__block {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  padding: 25px 0;
  transition: opacity 0.3s ease;
}

.rc-icon-parallax__block:hover {
  opacity: 0.85;
  text-decoration: none;
}

.rc-icon-parallax__block:hover .rc-icon-parallax__title {
  color: #6fb53f;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Icon Image
   -------------------------------------------------------------------------- */
.rc-icon-parallax__icon {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  margin-right: 25px;
}

.rc-icon-parallax__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Content Wrapper
   -------------------------------------------------------------------------- */
.rc-icon-parallax__content {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Title
   -------------------------------------------------------------------------- */
.rc-icon-parallax__title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.3s ease;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Description
   -------------------------------------------------------------------------- */
.rc-icon-parallax__desc {
  display: block;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 24px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Responsive - Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .rc-icon-parallax {
    padding: 50px 0;
  }
  
  .rc-icon-parallax__title {
    font-size: 20px;
  }
  
  .rc-icon-parallax__desc {
    font-size: 14px;
  }
  
  .rc-icon-parallax__icon {
    width: 80px;
    height: 80px;
    margin-right: 20px;
  }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .rc-icon-parallax {
    background-attachment: scroll;
    padding: 40px 0;
  }
  
  .rc-icon-parallax__col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .rc-icon-parallax__block {
    padding: 20px 0;
  }
  
  .rc-icon-parallax__icon {
    width: 70px;
    height: 70px;
    margin-right: 15px;
  }
  
  .rc-icon-parallax__title {
    font-size: 18px;
  }
  
  .rc-icon-parallax__desc {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   iOS Safari Fix for Fixed Background
   -------------------------------------------------------------------------- */
@supports (-webkit-touch-callout: none) {
  .rc-icon-parallax {
    background-attachment: scroll;
  }
}