.cv-page {
  padding-bottom: 1rem;
}

.cv-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.cv-grid--related {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cv-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(23, 48, 88, 0.12);
}

.cv-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #eef2f7;
  overflow: hidden;
}

.cv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cv-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--brand-accent);
  font-size: 2rem;
}

.cv-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}

.cv-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--brand-primary);
}

.cv-card__title a {
  color: inherit;
  text-decoration: none;
}

.cv-card__title a:hover {
  color: var(--brand-accent);
}

.cv-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.cv-card__meta i {
  color: var(--brand-accent);
  margin-right: 0.2rem;
}

.cv-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cv-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-accent);
  text-decoration: none;
}

.cv-card__cta:hover i {
  transform: translateX(3px);
}

.cv-card__cta i {
  transition: transform 0.2s ease;
}

.cv-breadcrumb {
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cv-breadcrumb a {
  color: var(--brand-primary);
  text-decoration: none;
}

.cv-breadcrumb a:hover {
  text-decoration: underline;
}

.cv-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.cv-block + .cv-block {
  margin-top: 2rem;
}

.cv-block__title {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  color: var(--brand-primary);
}

.cv-prose {
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

.cv-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cv-gallery__item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
}

.cv-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cv-photo-slide {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.cv-photo-slide__viewport {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.cv-photo-slide__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  transition: transform 0.35s ease;
  will-change: transform;
}

.cv-photo-slide__item {
  flex: 0 0 calc((100% - 1.5rem) / 3);
  width: calc((100% - 1.5rem) / 3);
  max-width: calc((100% - 1.5rem) / 3);
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
}

.cv-photo-slide__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cv-photo-slide__nav {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-primary);
  display: inline-grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cv-photo-slide__nav:hover:not(:disabled) {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.cv-photo-slide__nav:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.cv-photo-slide__nav[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.cv-photo-slide__nav i {
  font-size: 1.15rem;
  line-height: 1;
}

@media (max-width: 899.98px) {
  .cv-photo-slide__item {
    flex-basis: calc((100% - 0.75rem) / 2);
    width: calc((100% - 0.75rem) / 2);
    max-width: calc((100% - 0.75rem) / 2);
  }
}

@media (max-width: 575.98px) {
  .cv-photo-slide {
    gap: 0.4rem;
  }

  .cv-photo-slide__item {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }

  .cv-photo-slide__nav {
    width: 2.15rem;
    height: 2.15rem;
  }
}

.cv-videos {
  display: grid;
  gap: 1rem;
}

.cv-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.cv-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cv-facts {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.2rem;
  position: sticky;
  top: calc(var(--site-nav-height, 76px) + 1rem);
}

.cv-facts__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--brand-primary);
}

.cv-facts__row {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text);
}

.cv-facts__row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cv-facts__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 0.84rem;
}

.cv-facts__label i {
  color: var(--brand-accent);
}

.cv-organizers {
  margin: 0.15rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.cv-organizers li + li {
  margin-top: 0.2rem;
}

.cv-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.cv-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(170, 34, 46, 0.08);
  color: var(--brand-accent);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cv-social a:hover {
  background: var(--brand-accent);
  color: #fff;
}

@media (max-width: 991.98px) {
  .cv-grid,
  .cv-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv-detail__layout {
    grid-template-columns: 1fr;
  }

  .cv-facts {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .cv-grid,
  .cv-grid--related,
  .cv-gallery {
    grid-template-columns: 1fr;
  }
}
