* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {

  font-family: 'Montserrat', sans-serif;
}

.card {
  flex: 0 1 380px;
  width: 380px;
  max-width: 100%;

  container-type: inline-size;
  background: #1a2e4a;
  border-radius: 20px;
  position: relative;

  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(10, 22, 40, 0.10);
}

.photo-col {
  position: absolute;
  left: -45px;
  top: -46px;
  left: -11.842cqw;
  top: -12.105cqw;
  bottom: 0;
  width: 265px;
  width: 69.737cqw;
  z-index: 0;
}

@container (max-width: 379px) {

  .photo-col { left: var(--phone-photo-left, -11.842cqw); }

  .card--wide-photo .photo-col {
    top: -5cqw;
    width: 82cqw;
  }
}

.teacher-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.content {

  position: relative;
  z-index: 1;

  margin-left: 135px;
  margin-left: 35.526cqw;
  padding: 22px 18px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;

  min-height: 440px;

  flex: 1;
}

.name,
.achievements li {
  text-shadow: 0 1px 4px rgba(10, 22, 40, 0.95);
}

.name {
  font-size: 21px;
  font-weight: 800;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.achievements li {
  position: relative;
  padding-left: 16px;
  color: #dde0ee;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.achievements li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}

.btn {
  display: block;
  width: 100%;
  padding: 13px 10px;
  background: #ffffff;
  border: 3px solid var(--gold);
  border-radius: 4px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #111111;
  text-decoration: none;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--gold);
  color: #ffffff;
}

.btn { overflow-wrap: break-word; }

@media (max-width: 600px) {
  .content {
    padding: 18px 12px 14px 10px;
  }

  .btn {

    font-size: clamp(13px, 4.2vw, 19px);
    letter-spacing: 0.3px;
    padding: 12px 8px;
  }

  .name { font-size: clamp(15px, 4.6vw, 21px); }
}

.bottom-banner {
  position: relative;

  z-index: 2;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;

  overflow: hidden;
  border-radius: 0 0 20px 20px;
}

.bottom-banner::before {
  content: '';
  position: absolute;

  inset: 10px -24px -24px;
  background: var(--gold);
  transform: skewY(-2deg);

  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(160, 100, 5, 0.25) 0px,
      transparent 3px,
      transparent 10px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(200, 150, 0, 0.15) 0px,
      transparent 2px,
      transparent 6px
    );
}

.banner-text {
  position: relative;
  z-index: 1;
  font-size: 25px;
  font-weight: 900;
  color: #0d2044;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
