/*
 * Moderní styl karet pro Rovnátka Cheb
 */

/* Moderní styly pro ikony boxů */
.services .icon-box {
  padding: 30px;
  position: relative;
  overflow: hidden;
  margin: 0 0 40px 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(68, 88, 144, 0.12);
  transition: all 0.3s ease-in-out;
  text-align: center;
  border: 1px solid #fff;
  border-radius: 15px;
  height: 100%;
}

/* Efekt při najetí myší */
.services .icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(68, 88, 144, 0.2);
}

/* Ikony v boxech */
.services .icon {
  margin: 0 auto 20px auto;
  padding-top: 17px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  transition: all 0.3s ease-in-out;
}

/* Barevné styly pro ikony */
.services .icon-box-pink .icon {
  background: linear-gradient(135deg, #fceef3 0%, #ffa8c6 100%);
}

.services .icon-box-cyan .icon {
  background: linear-gradient(135deg, #e6fdfc 0%, #8eeeea 100%);
}

.services .icon-box-green .icon {
  background: linear-gradient(135deg, #eafde7 0%, #90e97c 100%);
}

.services .icon-box-blue .icon {
  background: linear-gradient(135deg, #e1eeff 0%, #73aeff 100%);
}

/* Styly pro nadpisy */
.services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
  position: relative;
  padding-bottom: 10px;
}

.services .title:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: #68A4C4;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.services .icon-box:hover .title:after {
  width: 80px;
}

.services .title a {
  color: #111;
}

/* Barvy okrajů při najetí */
.services .icon-box-pink:hover {
  border-color: #ff689b;
  border-width: 2px;
}

.services .icon-box-cyan:hover {
  border-color: #3fcdc7;
  border-width: 2px;
}

.services .icon-box-green:hover {
  border-color: #41cf2e;
  border-width: 2px;
}

.services .icon-box-blue:hover {
  border-color: #2282ff;
  border-width: 2px;
}

/* Zajištění konzistentní výšky na mobilech */
@media (max-width: 768px) {
  .services .icon-box {
    height: auto;
    min-height: 250px;
  }
}