.tesisX {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
  }

  .tesisX a {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
  }

  .tesisX img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
  }

  .tesisX .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 14, 31, 0.7);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .tesisX:hover .overlay {
    opacity: 1;
  }

  .tesisX .overlay span {
    color: white;
    /* font-size: clamp(1rem, 2vw, 1.2rem); */ /* Responsive font-size */
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background: rgba(220, 55, 69, 0.2);
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .tesisX .overlay p {
    color: white;
    font-size: clamp(0.8rem, 1.5vw, 1rem); /* Responsive font-size */
    font-weight: 400;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    margin: 0;
  }

  .tesisX:hover img {
    transform: scale(1.1);
  }

  .tesisX .title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right:10px;
    color: white;
    font-size: clamp(1rem, 2vw, 1rem); /* Responsive font-size */
    font-weight: 600;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    transition: opacity 0.3s ease;
  }

  .tesisX:hover .title {
    opacity: 0;
  }

  .tesisX .backgroundA-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%; /* Logo boyutu */
    height: 100%; /* Logo boyutu */
    transform: translate(-50%, -50%) rotate(-45deg); /* Başlangıçta görünmemesi için */
    background: url('/images/aologoBeyaz.png') no-repeat center center;
    background-size: contain;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
  }

  .tesisX:hover .backgroundA-img {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0.2;
  }

  @media (min-width: 992px) {
    .tesisX {
      margin-bottom: 2rem;
    }
  }