/* Homepage "Our institutions" (dynamic/home-showcase): the University's own centres, forums and platforms as a sliding brand
   wall, after the "Our brands and stakeholders" wall of the Boğaziçi University portals — one row of white cards (logo above a
   line, name below), round navy arrows either side, moving on by itself, everything grey until the pointer rests on a card, which then takes its
   own colours. Prefix: showcase- */
.inst-section { background: var(--white, #fff); }
.inst-head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.inst-head .band-kicker { display: none; }
.inst-head .band-sub { margin: .6rem 0 0; font-weight: 400; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); color: var(--navy, #1c458b); }

.showcase { --per: 6; --gap: 1.75rem; --mark: 6.5rem; }   /* --mark: the emblem's size, and the height of every logo's frame */
.showcase-slider { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; }
.showcase-track { grid-column: 2; list-style: none; margin: 0; padding: 4px 2px 10px; display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-item { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; }

.showcase-arrow { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--navy, #1c458b); color: #fff; font-size: 1.15rem; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(15, 42, 77, .6); transition: background-color .2s, transform .2s, opacity .2s; }
.showcase-arrow[hidden] { display: none; }
.showcase-arrow:hover { background: var(--navy-900, #0f2a4d); transform: scale(1.06); }
.showcase-arrow:focus-visible { outline: 3px solid var(--sky, #7ccbee); outline-offset: 3px; }
.showcase-arrow .bi { -webkit-text-stroke: 1px currentColor; }
.showcase-prev { grid-column: 1; grid-row: 1; }
.showcase-next { grid-column: 3; grid-row: 1; }

.showcase-card { position: relative; height: 100%; min-height: 18.5rem; display: flex; flex-direction: column; border: 1px solid #dcdcdc; border-radius: 10px; background: var(--white, #fff); color: #6b6b6b; text-align: center; text-decoration: none; overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s; }
.showcase-mark { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: 10.5rem; padding: 1.5rem 1.4rem; border-bottom: 1px solid #dcdcdc; transition: border-color .3s; }
/* every logo in the same frame: the card's width by the emblem's height, scaled to fit whole and centred, so a tall seal
   is as tall as the emblems and a wide logo as wide as the card, and none reaches the line under it */
.showcase-mark img { display: block; width: 100%; height: var(--mark); min-width: 0; object-fit: contain; object-position: center; filter: grayscale(1) contrast(.9); opacity: .65; transition: filter .35s, opacity .35s, transform .35s; }
.showcase-emblem { display: grid; place-items: center; align-content: center; gap: .3rem; width: var(--mark); height: var(--mark); border-radius: 50%; background: #f2f2f2; color: #8c8c8c; box-shadow: inset 0 0 0 1px #e2e2e2; transition: background-color .35s, color .35s, box-shadow .35s, transform .35s; }
.showcase-emblem .bi { font-size: 1.9rem; line-height: 1; }
.showcase-emblem b { max-width: 5.6rem; overflow: hidden; font: 800 .78rem/1.1 var(--font-sans, sans-serif); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.showcase-emblem b.long { font-size: .66rem; letter-spacing: .02em; }
.showcase-name { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.1rem 1rem 1.25rem; font: 500 1.02rem/1.3 var(--font-sans, sans-serif); color: #6b6b6b; transition: color .3s; }
.showcase-ext { position: absolute; top: .7rem; right: .75rem; font-size: .75rem; color: #a3a3a3; transition: color .3s; }

/* resting on a card (or reaching it with the keyboard): its own colours */
a.showcase-card:hover, a.showcase-card:focus-visible { border-color: var(--brand, #1c458b); box-shadow: 0 16px 32px -22px var(--brand, #1c458b); transform: translateY(-3px); }
a.showcase-card:focus-visible { outline: 3px solid var(--sky, #7ccbee); outline-offset: 3px; }
.showcase-card:hover .showcase-mark, .showcase-card:focus-visible .showcase-mark { border-color: color-mix(in srgb, var(--brand, #1c458b) 35%, #dcdcdc); }
.showcase-card:hover .showcase-mark img, .showcase-card:focus-visible .showcase-mark img { filter: none; opacity: 1; transform: scale(1.04); }
.showcase-card:hover .showcase-emblem, .showcase-card:focus-visible .showcase-emblem { background: var(--brand, #1c458b); color: #fff; box-shadow: 0 10px 22px -12px var(--brand, #1c458b); transform: scale(1.04); }
.showcase-card:hover .showcase-name, .showcase-card:focus-visible .showcase-name { color: var(--brand, #1c458b); }
.showcase-card:hover .showcase-ext { color: var(--brand, #1c458b); }

@media (max-width: 1399.98px) { .showcase { --per: 5; } }
@media (max-width: 1199.98px) { .showcase { --per: 4; --gap: 1.25rem; } }
@media (max-width: 991.98px) { .showcase { --per: 3; } .showcase-slider { gap: 1rem; } .showcase-arrow { width: 44px; height: 44px; font-size: 1rem; } }
@media (max-width: 767.98px) {
  .showcase { --per: 2.3; --gap: .85rem; }
  .showcase-slider { grid-template-columns: 1fr auto auto; row-gap: 1.1rem; column-gap: .6rem; }
  .showcase-track { grid-column: 1 / -1; grid-row: 1; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .showcase-prev { grid-column: 2; grid-row: 2; }
  .showcase-next { grid-column: 3; grid-row: 2; }
  .showcase-card { min-height: 14.5rem; }
  .showcase-mark { height: 8rem; padding: 1.1rem; }
  .showcase { --mark: 5rem; }
  .showcase-emblem .bi { font-size: 1.5rem; }
  .showcase-name { padding: .85rem .7rem 1rem; font-size: .9rem; }
}
@media (max-width: 419.98px) { .showcase { --per: 1.6; } }
@media (hover: none) { .showcase-mark img { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .showcase-track { scroll-behavior: auto; }
  .showcase-card, .showcase-mark img, .showcase-emblem, .showcase-arrow { transition: none; }
  a.showcase-card:hover, .showcase-card:hover .showcase-mark img, .showcase-card:hover .showcase-emblem, .showcase-arrow:hover { transform: none; }
}
