/* ===== AFFILIATIONS & AWARDS ===== */

.affil-banner {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  background: #eef2f5;
}
.affil-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.affil-sec {
  padding: 70px 0;
}

.affil-sec .headingsec {
  text-align: center;
}

.awards-sec {
  padding: 40px 0 80px;
  background: #f4f7fb;
}

.awards-sec .headingsec {
  text-align: center;
}

/* ── Carousel Wrapper ── */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 48px;
  border-radius: 24px;
}

/* ── Carousel Track (flex, no wrapping) ── */
.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  cursor: grab;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.carousel-track:active {
  cursor: grabbing;
}

/* ── Card base styles (width & margin-right set by JS) ── */
.affil-card,
.award-card {
  flex-shrink: 0;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Affiliation Card */
.affil-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e9edf2;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.05);
}
.affil-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 28px -12px rgba(0, 0, 0, 0.12);
  border-color: #cddfe7;
}
.affil-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.affil-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f2c3f;
  margin: 0;
}
.affil-card p {
  font-size: 0.82rem;
  color: #4a5c6e;
  line-height: 1.5;
  margin: 0;
}

/* Award Card */
.award-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 32px -12px rgba(0, 0, 0, 0.15);
}
.award-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}
.award-body {
  padding: 18px;
}
.award-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0b2b3f;
  margin-bottom: 8px;
}
.award-body p {
  font-size: 0.82rem;
  color: #4e6b7e;
  line-height: 1.5;
  margin: 0;
}

/* Responsive: only adjust banner height, card widths are handled by JS */
@media (max-width: 768px) {
  .affil-banner {
    max-height: 200px;
  }
  .award-img {
    height: 180px;
  }
  .affil-banner img {
    width: 100%;
    height: 171px;
    object-fit: cover;
    display: block;
    object-position: -5px 0px;
  }
  .affil-sec {
    padding: 25px 0;
  }
}
