.showcase-section {
  background:
    radial-gradient(circle at top right, rgba(0, 174, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #f5fbff 0%, #eef5ff 100%);
}

.showcase-shell {
  display: grid;
  gap: 28px;
}

.showcase-hero,
.student-hero {
  display: grid;
  gap: 24px;
  padding: 34px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(19, 106, 213, 0.96), rgba(0, 174, 255, 0.92)),
    linear-gradient(180deg, #136ad5 0%, #00aeff 100%);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(19, 106, 213, 0.18);
}

.showcase-hero {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  align-items: end;
}

.student-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  align-items: stretch;
}

.showcase-copy,
.student-hero-main {
  display: grid;
  gap: 16px;
}

.student-hero-main {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.student-hero-side,
.showcase-metrics {
  display: grid;
  gap: 14px;
}

.showcase-eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label {
  background: rgba(19, 106, 213, 0.1);
  color: #136ad5;
}

.showcase-title {
  margin: 0;
  font-family: "Display Playfair", serif;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.04;
  color: inherit;
}

.showcase-lead,
.student-text,
.detail-text,
.section-bar p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
}

.metric-card,
.detail-card,
.student-card,
.project-card,
.section-bar {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(19, 106, 213, 0.12);
  box-shadow: 0 18px 45px rgba(19, 106, 213, 0.08);
}

.metric-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  box-shadow: none;
}

.metric-card strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-card span {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.filter-card {
  position: relative;
  overflow: visible;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(19, 106, 213, 0.12);
  box-shadow: 0 18px 45px rgba(19, 106, 213, 0.08);
  padding: 28px;
}

.filter-card-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.filter-card-header h2 {
  margin: 10px 0 0;
  color: #10233d;
  font-family: "Display Playfair", serif;
}

.filter-card-header p {
  margin: 0;
  max-width: 520px;
  line-height: 1.7;
  color: #48627f;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #26456b;
}

.filter-field select,
.filter-field input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(19, 106, 213, 0.18);
  background: #f8fbff;
  color: #183250;
  outline: none;
}

.filter-field select:focus,
.filter-field input:focus {
  border-color: rgba(19, 106, 213, 0.42);
  box-shadow: 0 0 0 4px rgba(19, 106, 213, 0.08);
}

.filter-search-row {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-top: 18px;
}

.filter-field-search {
  flex: 1 1 auto;
}

.search-input-wrap {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(19, 106, 213, 0.14);
  box-shadow: 0 18px 45px rgba(19, 106, 213, 0.14);
}

.search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  background: #f5f9ff;
  color: #17385c;
  text-align: left;
  cursor: pointer;
}

.search-suggestion:hover {
  background: #e9f2ff;
}

.search-suggestion small {
  color: #5f7895;
  font-weight: 700;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(19, 106, 213, 0.16);
  background: #ffffff;
  color: #1d4674;
  font-weight: 700;
  text-decoration: none;
}

.filter-reset:hover {
  text-decoration: none;
  color: #1d4674;
  background: #f5f9ff;
}

.section-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
}

.section-bar h2,
.detail-card h2,
.student-card h3,
.project-card h3 {
  margin: 10px 0 0;
  color: #10233d;
  font-family: "Display Playfair", serif;
}

.section-bar h2 {
  font-size: 1.9rem;
}

.section-bar-compact {
  padding-bottom: 22px;
}

.student-grid,
.project-grid,
.student-detail-grid,
.class-grid,
.resource-grid {
  display: grid;
  gap: 22px;
}

.student-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.student-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.achievement-entry-grid {
  display: grid;
  gap: 22px;
}

.class-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.achievement-entry-card {
  display: grid;
  gap: 18px;
}

.achievement-entry-text {
  color: #2d4869;
}

.achievement-materials-grid {
  margin-top: 4px;
}

.student-card,
.project-card,
.detail-card,
.class-card,
.resource-card,
.empty-state-card {
  padding: 28px;
}

.student-card::before,
.project-card::before,
.detail-card::before,
.class-card::before,
.resource-card::before,
.empty-state-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 255, 0.15), transparent 70%);
}

.student-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: linear-gradient(135deg, #136ad5 0%, #00aeff 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.45rem;
  box-shadow: 0 12px 28px rgba(19, 106, 213, 0.22);
}

.student-visual {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-shrink: 0;
}

.student-photo {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  border: 4px solid rgba(19, 106, 213, 0.1);
  box-shadow: 0 14px 30px rgba(19, 106, 213, 0.16);
  background: #eef5ff;
}

.student-avatar-large {
  width: 92px;
  height: 92px;
  font-size: 1.9rem;
}

.student-photo-large {
  width: 180px;
  height: 220px;
  border-radius: 32px;
  border-width: 5px;
  box-shadow: 0 22px 44px rgba(19, 106, 213, 0.22);
}

.student-visual .student-avatar,
.student-visual .student-photo {
  flex-shrink: 0;
}

.student-grade,
.project-year {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(19, 106, 213, 0.09);
  color: #136ad5;
  font-size: 0.92rem;
  font-weight: 700;
}

.student-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  color: #4e647f;
  font-weight: 600;
}

.student-card-footer--end {
  justify-content: flex-end;
}

.profile-meta-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #395675;
  line-height: 1.6;
}

.profile-meta-list strong {
  color: #10233d;
}

.student-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.student-tags span {
  padding: 9px 13px;
  border-radius: 999px;
  background: #f3f8ff;
  color: #2a4c74;
  font-size: 0.9rem;
  font-weight: 600;
}

.showcase-button,
.showcase-backlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #136ad5 0%, #00aeff 100%);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 28px rgba(19, 106, 213, 0.2);
}

.showcase-button {
  padding: 13px 20px;
}

.showcase-backlink {
  padding: 12px 18px;
}

.showcase-button:hover,
.showcase-backlink:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(19, 106, 213, 0.25);
}

.class-card,
.resource-card,
.empty-state-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(19, 106, 213, 0.12);
  box-shadow: 0 18px 45px rgba(19, 106, 213, 0.08);
}

.resource-image-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 400px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #eef5ff;
  cursor: zoom-in;
}

.resource-image-trigger > .resource-image {
  display: block;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  height: 100% !important;
  flex: 0 0 auto;
  margin-bottom: 0;
  border-radius: 18px;
  background: #eef5ff;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 18, 33, 0.82);
}

.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  padding: 18px;
  border-radius: 28px;
  background: rgba(10, 23, 41, 0.96);
  box-shadow: 0 28px 70px rgba(6, 16, 30, 0.34);
}

.image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-image {
  display: block;
  width: 100%;
  max-height: min(88vh, 980px);
  object-fit: contain;
  border-radius: 20px;
}

body.lightbox-open {
  overflow: hidden;
}

.showcase-hero-class {
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
}

.empty-state-card h2,
.class-card h3,
.resource-card h3 {
  margin: 12px 0 0;
  color: #10233d;
  font-family: "Display Playfair", serif;
}

.highlight-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #2c4668;
  line-height: 1.7;
}

.highlight-list li + li {
  margin-top: 12px;
}

@media (max-width: 991.98px) {
  .showcase-hero,
  .student-hero {
    grid-template-columns: 1fr;
  }

  .filter-card-header,
  .filter-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .student-hero-main {
    grid-template-columns: 1fr;
  }

  .student-photo-large {
    width: 140px;
    height: 176px;
  }
}

@media (max-width: 767.98px) {
  .showcase-hero,
  .student-hero,
  .student-card,
  .project-card,
  .detail-card,
  .section-bar,
  .filter-card,
  .class-card,
  .resource-card,
  .empty-state-card {
    padding: 22px;
    border-radius: 22px;
  }

  .section-bar,
  .student-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-button,
  .showcase-backlink {
    width: 100%;
  }

  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox-dialog {
    padding: 14px;
    border-radius: 22px;
  }
}
