/* Base wrapper for the section */
.about {
  padding: 2rem 0;
}

/* Image container */
.about-img {
  border-radius: 0.5rem;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

.image-crop {
  height: 400px;
  overflow: hidden;
  position: relative;
}

.about-img-inner {
  width: 100%;
  height: auto;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  object-fit: cover; /* Optional: Use if you want the image to fill and crop proportionally */
}

/* Section Header */
.about h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Tabs nav */
.nav-pills .nav-link {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.nav-pills .nav-link.active {
  background-color: #007bff;
  color: #fff;
}

.nav-pills .nav-link:hover {
  background-color: #005900;
  color: #fff;
}

/* Tab content area */
.tab-content {
  margin-top: 1.5rem;
}

.tab-pane {
  padding: 1rem;
}

/* Rich text formatting */
.tab-pane p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tab-pane ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.tab-pane li {
  margin-bottom: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .about h3 {
    font-size: 1.5rem;
  }

  .nav-pills {
    flex-wrap: wrap;
    justify-content: center;
  }
}
