/* Professional Societies — sidebar tabs + panel layout (matches infrastructure) */

body.professional-societies-page .animate-on-scroll {
  opacity: 1;
  transform: none;
}

body.professional-societies-page .principal-tabs {
  max-height: calc(100vh - var(--header-h) - 80px);
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
}

body.professional-societies-page .principal-tabs::-webkit-scrollbar {
  width: 5px;
}

body.professional-societies-page .principal-tabs::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

@media (max-width: 900px) {
  body.professional-societies-page .principal-tabs {
    max-height: none;
    overflow: visible;
  }
}

/* ---- Panel body ---- */
body.professional-societies-page .societies-panel-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
}

body.professional-societies-page .societies-panel-body h4:first-child {
  margin-top: 0;
}

body.professional-societies-page .societies-list {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.35rem;
}

body.professional-societies-page .societies-list li {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

body.professional-societies-page .societies-list--compact {
  margin-top: 0.5rem;
}

body.professional-societies-page .societies-list--officers {
  list-style: none;
  padding-left: 0;
}

body.professional-societies-page .societies-list--officers li {
  padding: 0.65rem 0.9rem;
  background: var(--off-white);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  margin-bottom: 0.5rem;
}

/* ---- Info card ---- */
body.professional-societies-page .societies-info-card {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.04) 0%, rgba(255, 184, 0, 0.06) 100%);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin: 1.25rem 0 1.5rem;
}

body.professional-societies-page .societies-info-card h4 {
  margin-top: 0;
}

body.professional-societies-page .societies-info-card p {
  margin-bottom: 0.5rem;
}

/* ---- Images (infra-style grid) ---- */
body.professional-societies-page .societies-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

body.professional-societies-page .societies-images--single {
  grid-template-columns: 1fr;
}

body.professional-societies-page .societies-images--banner {
  grid-template-columns: 1fr;
}

body.professional-societies-page .societies-images img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  object-fit: cover;
}

body.professional-societies-page .societies-images--banner img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 42%;
}

body.professional-societies-page .societies-images:not(.societies-images--banner):not(.societies-images--single) img {
  aspect-ratio: 4 / 3;
}

/* CSI logo — small emblem, don't crop */
body.professional-societies-page .societies-images--logo {
  max-width: 180px;
  margin-bottom: 1.25rem;
}

body.professional-societies-page .societies-images--logo img {
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--off-white);
  padding: 0.75rem;
}

/* ---- Links / CTA ---- */
body.professional-societies-page .societies-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

body.professional-societies-page .societies-link-btn:hover {
  background: #00524e;
  color: var(--white);
  transform: translateY(-2px);
}

body.professional-societies-page .societies-link-btn i {
  color: var(--gold);
}

@media (max-width: 640px) {
  body.professional-societies-page .societies-images {
    grid-template-columns: 1fr;
  }

  body.professional-societies-page .societies-images--single {
    max-width: 100%;
  }
}
