/* General Styles */
body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.mf-plans-header h3 {
    position: relative;
    text-align: center;
    font-size: 3rem;
}

h4 {
    position: relative;
    text-align: center;
    font-size: 4rem;
    color: #000;
    margin-block-start: .5em;
    margin-block-end: 0em;
}

/* Cards Styling */

a {
    text-decoration: none;
}

#plans {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
}

.cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 50%;
}

.plans-card {
  background-color: white;
  border-radius: 5px;
  color: black;
  width: 100%; /* Adjusted to be more responsive */
  height: auto; /* Changed to auto to respect content size */
  border: 5px solid gold;
  box-shadow: 5px 5px 10px grey;
  margin: 10px;
  transition: all 0.2s ease-in-out;
  animation: slide-in 0.5s;
}

.plans-card:hover {
  box-shadow: 2px 2px 30px gold; /* Enhanced shadow on hover for visual feedback */
}

.plan-image {
    box-shadow: 0px 5px 10px 0px grey;
}

.plans-card h4, .start-price, .info-row-plans {
  text-align: center;
  padding: 10px;
  color: #000;
  text-decoration: none;
  font-size: 2rem;
}

.start-price {
    text-decoration: underline;
}

.info-row-plans {
  display: flex;
  justify-content: space-around;
  font-size: 1rem;
}

.plans-card-one, .plans-card-two, .plans-card-three, .plans-card-four {
    border: 5px solid gold;
}

@media (max-width: 1050px) {
    .mf-plans-header h3 {
        margin-block-start: 3em;
        margin-block-end: 0em;
        font-size: 1.5rem;
    }

    h4 {
        font-size: 2rem;
      }

    .plans-card {
        flex-direction: column;
        width: 90%;
    }

    .plans-card h4, .start-price, .info-row-plans {
        font-size: smaller;
    }

    .info-row-plans {
        gap: .5em;
    }
}

@media (max-width: 768px) {

    .mf-plans-header h3 {
        margin-block-start: 3em;
        margin-block-end: 0em;
        font-size: 1.5rem;
    }

    h4 {
        font-size: 2rem;
      }

    .plans-card {
        flex-direction: column;
        width: 90%;
    }

    .plans-card h4, .start-price, .info-row-plans {
        font-size: smaller;
    }

    .info-row-plans {
        gap: .5em;
    }
}

@media (max-width: 480px) {
  .mf-plans-header h3 {
    margin-block-start: 3em;
    margin-block-end: 0em;
    font-size: 1.5rem;
  }

  h4 {
    font-size: 2rem;
  }

  .logo-container {
    left: 5px;
    padding: 5px;
  }

  .plans-card {
    width: 100%;
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(50%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
