    button:hover{
        background-color: rgba(0, 0, 245, .1);
        color: #f4f4ed;
    }
    a:hover{
        color: rgba(0, 0, 245, .5);
    }
  
  .flip-card {
    perspective: 1000px;
    width: 260px;
    height: 260px;
  }
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  .flip-card-front,
    .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;  
    justify-content: center;  
    text-align: center; 
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

  .flip-card-front {
    background: url('https://images.unsplash.com/photo-1616784260443-3b55583c4a8d?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
    color: white;
    transform: rotateY(0deg); /* Front face normal */
    z-index: 2; /* front face higher at start */
  }

  .flip-card-front::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* subtle overlay */
    border-radius: 1rem;
    z-index: 1;
  }

  .flip-card-front > div {
    position: relative;
    z-index: 2;
  }

  .flip-card-back {
    background: url('https://images.unsplash.com/photo-1593642634367-d91a135587b5?auto=format&fit=crop&w=400&q=80') center/cover no-repeat;
    transform: rotateY(180deg);
    position: relative;
    color: white;
  }

  /* Real overlay behind the text */
  .flip-card-back::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* darken the background */
    z-index: 0; /* push it behind the text */
    border-radius: 1rem;
  }

  /* Text content stays on top */
  .flip-card-back * {
    position: relative;
    z-index: 1;
  }

