.overlay-blur .overlay h3 {
    font-family: 'Neue Plak';
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    margin: 0;
    padding: 0 0 12px 0;
}
.tags {
    display: flex;
    gap: 16px;
}

.desc p {
    font-family: 'Neue Plak';
    font-weight: 400;
    font-size: 16px;
    margin: 0;
    padding: 0 0 12px 0;
}

.techno-container p {
    font-family: Neue Plak;
    font-weight: 400;
    font-size: 20px;
    margin: 0;
    padding: 0 0 12px 0;
}

.title {
    font-family: 'Neue Plak';
    font-weight: 700;
  	padding: 20px 0 0 0;
    font-size: 24px;
    line-height: 32px;
    color: #FFFFFF;
}

.mps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 47px; 
  row-gap: 100px; 
}

.mps-grid.rtl {
  direction: rtl;
}

.mps-card {
  perspective: 1000px;
  max-width: 597px;
  width: 100%;
  min-height: 473px;
  display: flex;
  flex-direction: column;
}

.flip-box {
  position: relative;
  width: 100%;
  height: 380px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.flip-box:hover {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 364px;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.flip-front img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.flip-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.flip-back .blur-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: 1;
}

/* Overlay content on top of blurred image */
.overlay-blur {
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(153, 153, 153, 0.1) 100%);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 30px;
    box-sizing: border-box;
    box-shadow: 0px 8px 24px 0px #0000001F;
    backdrop-filter: blur(34.400001525878906px);
}

.overlay-blur .overlay {
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 3;
  text-align: start;
}

/* Show overlay content only on hover (flip) */
.flip-box:hover .overlay-blur .overlay {
  opacity: 1;
}

.static-below {
  padding: 10px 0;
}
.badges {
    display: flex;
    gap: 12px;
}
.flip-back .tags span, .flip-back .badges span {
    display: inline-block;
    background: transparent;
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid #515151;
    color: #fff;
    font-family: 'Neue Plak';
    font-weight: 600;
    font-size: 16px;
}
.static-below .tags span{
    display: inline-block;
    background: transparent;
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid #515151;
    color: #fff;
    font-family: 'Neue Plak';
    font-weight: 400;
    font-size: 16px;
}

.btn {
    display: inline-block;
    margin-top: 22px;
    background: #fff;
    color: #152142;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-family: 'Neue Plak';
    font-weight: 500;
    font-size: 16px;
}

.btn:hover {
  background-color: #005177;
}
.btn img {
  width: 19px;
  margin: 0 0 0 10px;
}
.btn:hover img {
  filter: invert(1) brightness(2);
}

/* Tablet: 1 column */
@media (max-width: 1024px) {
  
  .overlay-blur .overlay {
    visibility: visible;
    padding: 25px 10px;
	}
  
    .mps-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 80px 30px;
      padding: 0 10px;
    }
  
}

/* Mobile: 1 column, smaller gap */
@media (max-width: 768px) {
  .title {
    font-size: 20px;
}
  .overlay-blur .overlay {
    visibility: visible;
    padding: 25px 10px;
	}
  .overlay-blur{
    padding: 25px 10px;
  }
    .mps-grid {
        grid-template-columns: 1fr;
        gap: 60px 20px;
      padding: 0 10px;
    }
}
