@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900");

:root {
  --primary-color: #149e9e;
  --secondary-color: #e8e8e8;
  --text-dark: #0f172a;
  --text-light: #94a3b8;
  --white: #ffffff;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--secondary-color);
}

.section__container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
  text-align: center;
}

.section__container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.section__container h1 {
  position: relative;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4; /* Adjust this value to increase/decrease line spacing */
}

.section__container h1::after {
  position: absolute;
  content: "";
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 2px;
  width: 5rem;
  background-color: var(--primary-color);
}

.header__text {
  font-size: 1.25rem; /* Increase font size */
  font-weight: 700;   /* Make text bold */
  color: var(--primary-color); /* Optional: Change text color if needed */
  letter-spacing: 1px; /* Optional: Add letter spacing for better readability */
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.section__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 2rem 2rem;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.section__card::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 75%;
  aspect-ratio: 1;
  border-radius: 100%;
  background-color: var(--primary-color);
  z-index: -1;
  transition: 0.5s;
}

.section__card span {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem;
  font-size: 3rem;
  color: var(--white);
}

.section__card h4 {
  margin-top: 4rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: 0.3s;
  line-height: 1.4; /* Adjust this value to increase/decrease line spacing */
}

.section__card p {
  margin-bottom: 2rem;
  color: var(--text-light);
  transition: 0.3s;
  line-height: 1.6; /* Adjust this value to increase/decrease line spacing */
}

.section__card img {
  margin-bottom: 1rem;
  max-width: 100px;
  border-radius: 100%;
  border: 2px solid var(--primary-color);
  transition: 0.3s;
}

.section__card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: 0.3s;
  line-height: 1.5; /* Adjust this value to increase/decrease line spacing */
}

.section__card h6 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
  transition: 0.3s;
  line-height: 1.5; /* Adjust this value to increase/decrease line spacing */
}

.section__card:hover::before {
  width: 400%;
}

.section__card:hover :is(h4, h5) {
  color: var(--white);
}

.section__card:hover :is(p, h6) {
  color: var(--secondary-color);
}

.section__card:hover img {
  border-color: var(--white);
}
.content {
  max-height: 200px; /* Initial height of the content */
  overflow: hidden;
  position: relative; /* Needed for positioning the button */
}

.more-text {
  display: none; /* Initially hide the additional text */
}

.read-more-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  border: none;
  color: rgb(73, 156, 157);
  cursor: pointer;
  font-weight: bold; /* Optional: Change font weight */
  text-decoration: none; /* Remove underline */
}



/* Responsive Styles */
@media (max-width: 1024px) {
  .section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section__container h1 {
    font-size: 2rem;
  }
  
  .section__card {
    padding: 4rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .section__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section__container h1 {
    font-size: 1.75rem;
  }

  .section__card {
    padding: 3rem 1rem 1rem;
  }
}
