/* Main container styles */
.shareholders-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-container {
  //width: 83.333%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (min-width: 768px) {
  .section-container {
    //width: 83.333%;
  }
}

@media (min-width: 1024px) {
  .section-container {
    width: 100%;
  }
}

@media (min-width: 1280px) {
  .section-container {
    //width: 83.333%;
  }
}

@media (min-width: 1536px) {
  .section-container {
    //width: 75%;
  }
}

.section-heading {
  font-size: calc(1rem + 0.66vw);
  font-weight: bold;
  line-height: 1.3;
}

@media (min-width: 1280px) {
  .section-heading {
    font-size: 1.3rem;
  }
}

.committee-header {
  position: relative;
}

.committee-title {
  font-size: 1.1rem;
  position: relative;
  color: #dc2626;
  font-weight: bold;
}

.committee-org-chart {
  position: relative;
  padding-top: 40px;
}

.committee-org-chart::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 28px;
  background-color: #dc2626;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.groups-container {
  display: flex;
  gap: 16px;
}

.group-item {
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .group-item {
    width: 25%;
  }
}

.group-title-wrapper {
  position: relative;
}

.group-title-wrapper::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 12px;
  background-color: #dc2626;
  left: 50%;
  top: -12px;
}

.group-title-container {
  position: relative;
  z-index: 2;
}

.group-title {
  position: relative;
  z-index: 2;
  background-color: #dc2626;
  padding: 8px 16px;
  text-transform: uppercase;
  color: white;
  font-weight: bold;
}

.group-title-bg {
  background-color: #94a3b8;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  transform: rotate(-2deg);
  z-index: 1;
}

.group-content {
  position: relative;
  padding-top: 8px;
  padding-bottom: 16px;
  padding-left: 32px;
  padding-right: 32px;
}

.group-content::before {
  content: "";
  border: 2px solid #dc2626;
  transform: rotate(-2deg);
  width: 75%;
  left: 12.5%;
  top: -4px;
  z-index: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  height: 100%;
  position: absolute;
}

.group-image {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
}

.group-description {
  margin-top: 16px;
  text-align: center;
  color: #6b7280;
}

/* Horizontal lines connecting groups */
.group-item:not(:last-child)::after {
  content: "";
  position: absolute;
  width: calc(50% + 12px);
  height: 4px;
  background-color: #dc2626;
  top: -16px;
}

.group-item:not(:first-child)::before {
  content: "";
  position: absolute;
  width: calc(50% + 12px);
  height: 4px;
  background-color: #dc2626;
  top: -16px;
  left: -8px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .groups-container {
    flex-direction: column;
  }

  .group-item {
    width: 100%;
  }

  .committee-title::before,
  .group-title-wrapper::before,
  .group-item::after,
  .group-item::before,
  .horizontal-connector,
  .committee-org-chart::before {
    display: none;
  }
}
