.card-container {
  width: 90%;
  margin-left: 5%;
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  row-gap: 20px;
  gap: 10px;
  justify-content: center;
}

.card {

  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;

}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 15px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.read-more {
  text-decoration: none;
  color: #fff;
  background-color: var(--secondary-color);
  padding: 10px 16px;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #148c92;
}


@media (max-width: 668px) {
  .card {
    width: 350px;
  }
}


.hero_text {
  width: 100%;
  padding: 20px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #eee;
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: fit-content;
}

.hero_text h1 {
  font-size: 3rem;
  color: #333;
  margin-bottom: 10px;
  max-width: fit-content;

}

.hero_text p {
  font-size: 2rem;
  color: #000000;
  max-width: 800px;
  text-align: center;
}

main .hero_text {

  padding: 40px 20px;
  background: linear-gradient(rgba(197, 196, 196, 0.671), rgba(172, 172, 172, 0.61)), url(/images/pharma.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}



/* gallery page css */
.modal {

  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal img {
  /* max-width: 100%;
      max-height: 80%; */
  width: 500px;
  height: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 100px;
  right: 30px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}


.typewriter,
.subtitle {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  display:inline-block;
  margin: 0;
  border-right: 2px solid rgb(63, 63, 63);
  height: fit-content;
}

/* Heading typing */
.typewriter {
  font-size: 2rem;
  font-weight: bold;
  width: 0;
  /* animation: typing 3s steps(20, end) forwards, blink 0.7s infinite; */
}

/* Subtitle typing */
.subtitle {
  font-size: 1.2rem;
  width: 0;
  opacity: 0;
  /* animation: typingSubtitle 3s steps(40, end) forwards, blink 0.7s infinite;
  animation-delay: 0.5s; */
  /* start after title finishes */
}

/* Hide cursor after typing is done */
.typewriter.done,
.subtitle.done {
  border-right: none;
}

/* Keyframes */
@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes typingSubtitle {
  from {
    width: 0;
    opacity: 1;
  }

  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    border-color: transparent
  }
}

/* .typewriter {
          width:fit-content;
            text-align: center;
            font-size: 2rem;
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            border-right: 3px solid black;
       
            animation: typing 3s steps(30, end) forwards, blink 0.7s infinite;
            animation-fill-mode: forwards;
        }

        .subtitle {
            text-align: center;
            opacity: 0;
            animation: fadeIn 2s ease forwards;
            animation-delay: 3.2s;
        }

    
        .typewriter.done {
            border-right: none;
        }

        @keyframes typing {
            from {
                width: 0
            }

            to {
                width: 100%
            }
        }

        @keyframes blink {
            50% {
                border-color: transparent
            }
        }

        @keyframes fadeIn {
            to {
                opacity: 1;
            }
        } */



/* gallery page css end here */