.three-blocks-cta {
  position: relative;
  padding: 80px 0;
  color: var(--white);
  overflow: hidden;
  width: 100%;
}

.three-blocks-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.three-blocks-cta .container {
  position: relative;
  z-index: 2;
}

.three-blocks-cta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .three-blocks-cta__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.three-blocks-cta__item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.three-blocks-cta__item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
}

.three-blocks-cta__image {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.three-blocks-cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.three-blocks-cta__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--white);
  line-height: 1.3;
}

.three-blocks-cta__content {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
}

.three-blocks-cta__content p:last-child {
  margin-bottom: 0;
}

.three-blocks-cta__button {
  display: inline-block;
  background: var(--accent-red);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.three-blocks-cta__button:hover,
.three-blocks-cta__button:focus {
  background: #c62828;
  color: var(--white);
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .three-blocks-cta__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .three-blocks-cta {
    padding: 60px 0;
  }

  .three-blocks-cta__item {
    padding: 32px 24px;
  }

  .three-blocks-cta__image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  .three-blocks-cta__title {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .three-blocks-cta {
    padding: 50px 0;
  }

  .three-blocks-cta__grid {
    gap: 24px;
  }

  .three-blocks-cta__item {
    padding: 28px 20px;
  }

  .three-blocks-cta__image {
    width: 100px;
    height: 100px;
  }

  .three-blocks-cta__title {
    font-size: 1.2rem;
  }

  .three-blocks-cta__button {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* Dark background adjustments */
.three-blocks-cta[style*="background-color: #"] .three-blocks-cta__item,
.three-blocks-cta[style*="background-image"] .three-blocks-cta__item {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Light background adjustments */
.three-blocks-cta[style*="background-color: #fff"],
.three-blocks-cta[style*="background-color: #ffffff"],
.three-blocks-cta[style*="background-color: white"] {
  color: var(--text);
}

.three-blocks-cta[style*="background-color: #fff"] .three-blocks-cta__item,
.three-blocks-cta[style*="background-color: #ffffff"] .three-blocks-cta__item,
.three-blocks-cta[style*="background-color: white"] .three-blocks-cta__item {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--grey);
  box-shadow: var(--shadow);
}

.three-blocks-cta[style*="background-color: #fff"] .three-blocks-cta__title,
.three-blocks-cta[style*="background-color: #ffffff"] .three-blocks-cta__title,
.three-blocks-cta[style*="background-color: white"] .three-blocks-cta__title {
  color: var(--text);
}

.three-blocks-cta[style*="background-color: #fff"] .three-blocks-cta__content,
.three-blocks-cta[style*="background-color: #ffffff"] .three-blocks-cta__content,
.three-blocks-cta[style*="background-color: white"] .three-blocks-cta__content {
  color: var(--muted);
}

.three-blocks-cta[style*="background-color: #fff"] .three-blocks-cta__image,
.three-blocks-cta[style*="background-color: #ffffff"] .three-blocks-cta__image,
.three-blocks-cta[style*="background-color: white"] .three-blocks-cta__image {
  background: var(--grey-light);
  border-color: var(--grey);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .three-blocks-cta {
    padding: 60px 0;
  }
  
  .three-blocks-cta__grid {
    gap: 30px;
  }
  
  .three-blocks-cta__item {
    padding: 30px 20px;
  }
  
  .three-blocks-cta__image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }
  
  .three-blocks-cta__title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .three-blocks-cta__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .three-blocks-cta__item {
    padding: 25px 15px;
  }
  
  .three-blocks-cta__image {
    width: 100px;
    height: 100px;
  }
  
  .three-blocks-cta__title {
    font-size: 1.2rem;
  }
  
  .three-blocks-cta__button {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}