.text-long {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 5px auto;
  padding: 50px 30px;
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  text-align: left;
  font-size: 1.5em; /* Text mai mare */
  font-weight: 300; /* Roboto Light */
  font-family: 'Roboto', sans-serif; /* Font Roboto */
  font-size: 1.5rem;
  font-weight: 400;
  color: #222;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-long:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #ffffff, #e9ecef);
}

/* Titlu pentru text-long */
.text-long-title {
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.text-long:hover .text-long-title {
  text-decoration: underline;
  text-decoration-color: #0d6efd;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Text pentru descriere */
.text-long p {
  font-weight: 300;
  color: #555;
  line-height: 1.75;
}

/* Linie decorativă animată */
.text-long::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #6610f2);
  border-radius: 2px;
  transition: width 0.4s ease, left 0.4s ease;
}

.text-long:hover::after {
  width: 80%;
  left: 10%;
}

/* Efect subtil de gradient dinamic */
.text-long::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.03), transparent);
  z-index: -1;
  transition: opacity 0.4s ease;
}

.text-long:hover::before {
  opacity: 0.2;
}

@media (max-width: 768px) {
  .text-long {
    padding: 30px 20px; /* Reducere padding */
    font-size: 1.2rem; /* Text mai mic */
    border-radius: 15px; /* Colțuri mai puțin rotunjite */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Umbră mai subtilă */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Timp de tranziție redus */
  }

  .text-long-title {
    font-size: 1.4rem; /* Dimensiune mai mică pentru titlu */
    margin-bottom: 15px; /* Spațiu mai mic între titlu și text */
  }

  .text-long p {
    font-size: 1rem; /* Dimensiune mai mică pentru text */
    line-height: 1.5; /* Spațiu mai compact între linii */
  }

  .text-long::after {
    bottom: -5px; /* Linie mai aproape de text */
    height: 2px; /* Linie mai subțire */
  }

  .text-long:hover::after {
    width: 70%; /* Lățime mai mică pe mobil */
    left: 15%; /* Aliniere ajustată */
  }
}
