/* VR4BIM case studies — page styles layered on top of Bootstrap 5.3 and the site theme.
   Loaded only by resources/views/web/casestudy/*.blade.php; everything lives inside .cs-page.
   Breakpoints follow Bootstrap: sm 576px, lg 992px, xl 1200px */

.cs-page {
  --vr-red: #dc2626;
  --vr-red-dark: #b91c1c;
  --vr-ink: #111827;
  --vr-text: #4b5563;
  --vr-muted: #9ca3af;
  --vr-subtle: #6b7280;
  --vr-line: #e5e7eb;
  --vr-surface: #f9fafb;

  /* clears the site's fixed header */
  margin-top: 64px;
  background: #fff;
  color: var(--vr-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 993px) {
  .cs-page {
    margin-top: 72px;
  }
}

@media (min-width: 1201px) {
  .cs-page {
    margin-top: 88px;
  }
}

/* Neutralise the theme's element-level rules (main.css) inside the page */

:where(.cs-page) :is(h1, h2, h3, h4, p, figure, blockquote, ul) {
  margin: 0;
}

:where(.cs-page) p {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

:where(.cs-page) section {
  padding: 0;
}

:where(.cs-page) img {
  display: block;
}

/* ---------- Layout helpers ---------- */

.page-wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

.px-page {
  padding-inline: 16px;
}

.container-vr {
  width: 100%;
  max-width: 1264px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 576px) {
  .px-page,
  .container-vr {
    padding-inline: 32px;
  }
}

@media (min-width: 992px) {
  .px-page {
    padding-inline: 48px;
  }
}

@media (min-width: 1200px) {
  .px-page {
    padding-inline: 120px;
  }
}

/* ---------- Buttons ---------- */

.btn-vr-white,
.btn-vr-tab {
  --bs-btn-line-height: normal;
  --bs-btn-border-radius: 6px;
  white-space: nowrap;
}

.btn-vr-white {
  --bs-btn-padding-x: 28px;
  --bs-btn-padding-y: 14px;
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 700;
  --bs-btn-color: var(--vr-red);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--vr-red);
  --bs-btn-hover-bg: #f3f4f6;
  --bs-btn-hover-border-color: #f3f4f6;
  --bs-btn-active-color: var(--vr-red);
  --bs-btn-active-bg: #f3f4f6;
  --bs-btn-active-border-color: #f3f4f6;
}

.btn-vr-tab {
  --bs-btn-padding-x: 14px;
  --bs-btn-padding-y: 8px;
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--vr-text);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--vr-line);
  --bs-btn-hover-color: var(--vr-text);
  --bs-btn-hover-bg: var(--vr-surface);
  --bs-btn-hover-border-color: #d1d5db;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--vr-red);
  --bs-btn-active-border-color: var(--vr-red);
  flex-shrink: 0;
}

.btn-vr-tab.active {
  font-weight: 700;
}

.btn-vr-tab.active:hover {
  background-color: var(--vr-red-dark);
  border-color: var(--vr-red-dark);
}

@media (min-width: 992px) {
  .btn-vr-tab {
    --bs-btn-padding-x: 16px;
    --bs-btn-padding-y: 10px;
  }
}

/* The theme forces every <a> red with !important, so link colours here need it too */

.cs-page a.btn-vr-white {
  color: var(--vr-red) !important;
}

.cs-page a.btn-vr-tab {
  color: var(--vr-text) !important;
}

.cs-page a.btn-vr-tab.active {
  color: #fff !important;
}

/* ---------- Read more link ---------- */

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vr-ink) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.read-more img {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
}

.read-more:hover {
  color: var(--vr-red) !important;
}

.read-more:hover img {
  transform: translateX(2px);
}

.read-more--lg {
  gap: 6px;
  font-size: 14px;
}

.read-more--lg img {
  width: 14px;
  height: 14px;
}

/* ---------- Image with hover zoom ---------- */

.zoom-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
}

.zoom-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.hover-zoom {
  cursor: pointer;
}

.hover-zoom:hover .zoom-img > img {
  transform: scale(1.05);
}

/* ---------- Listing: page title & tabs ---------- */

.page-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 0 40px;
}

.eyebrow {
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.display-title {
  color: var(--vr-ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.page-intro__lead {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.6;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 576px) {
  .display-title {
    font-size: 36px;
  }
}

@media (min-width: 992px) {
  .page-intro {
    gap: 16px;
    padding-top: 56px;
  }

  .eyebrow {
    font-size: 14px;
  }

  .display-title {
    font-size: 42px;
  }

  .page-intro__lead {
    font-size: 16px;
  }

  .filter-tabs {
    gap: 12px;
  }
}

/* ---------- Listing: featured ---------- */

.featured {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 48px;
}

.featured__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.featured__image {
  height: 240px;
}

.meta {
  color: var(--vr-text);
  font-size: 11px;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
  white-space: pre-wrap;
}

.featured__title {
  color: var(--vr-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: normal;
}

.featured__text {
  font-size: 14px;
  line-height: 1.6;
}

.featured__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.side-item:last-child {
  border-bottom: 0;
}

.side-item__thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 6px;
}

.side-item__thumb > img {
  transition-duration: 0.3s;
}

.side-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.side-item__tag {
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.side-item__title {
  color: var(--vr-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  transition: color 0.15s;
}

.side-item:hover .side-item__title {
  color: var(--vr-red);
}

.side-item__text {
  font-size: 12px;
  line-height: 1.5;
}

.line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

@media (min-width: 576px) {
  .featured__image {
    height: 320px;
  }
}

@media (min-width: 992px) {
  .featured {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    padding-bottom: 64px;
  }

  .featured__main {
    gap: 20px;
    width: 60%;
  }

  .featured__image {
    height: 420px;
  }

  .meta {
    font-size: 12px;
  }

  .featured__title {
    font-size: 24px;
  }

  .featured__text {
    font-size: 15px;
  }

  .featured__side {
    gap: 24px;
    width: 36%;
  }

  .side-item {
    gap: 20px;
    padding-bottom: 20px;
  }

  .side-item__thumb {
    width: 140px;
    height: 95px;
  }

  .side-item__body {
    gap: 8px;
  }

  .side-item__title {
    font-size: 15px;
  }

  .side-item__text {
    font-size: 13px;
  }
}

/* ---------- Listing: case study grid ---------- */

.case-grid-section {
  padding: 40px 0 64px;
}

.case-grid {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}

.case-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.case-card__image {
  height: 200px;
}

.case-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-card__title {
  color: var(--vr-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  transition: color 0.15s;
}

.case-card:hover .case-card__title {
  color: var(--vr-red);
}

@media (min-width: 992px) {
  .case-grid-section {
    padding: 64px 0 96px;
  }

  .case-grid {
    --bs-gutter-x: 36px;
    --bs-gutter-y: 48px;
  }

  .case-card {
    gap: 16px;
  }

  .case-card__image {
    height: 220px;
  }

  .case-card__title {
    font-size: 18px;
  }
}

/* ---------- CTA banner ---------- */

.cta-wrap {
  /* padding-inline: 16px; */
  padding-bottom: 30px;
}

.cta-banner {
  display: flex;
  justify-content: center;
  padding: 48px 24px;
  border-radius: 10px;
  background: var(--vr-red);
  color: #fff;
  text-align: center;
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 760px;
}

.cta-banner__title {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.cta-banner__text {
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 576px) {
  .cta-wrap {
    /* padding-inline: 32px; */
  }

  .cta-banner {
    /* padding-inline: 48px; */
  }

  .cta-banner__title {
    font-size: 36px;
  }
}

@media (min-width: 992px) {
  .cta-wrap {
    /* padding-inline: 80px; */
    padding-bottom: 50px;
  }

  .cta-banner {
    padding: 72px 120px;
  }

  .cta-banner__title {
    font-size: 42px;
  }

  .cta-banner__text {
    font-size: 16px;
  }
}

/* ---------- Detail: hero ---------- */

.hero {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 28px;
  background: rgba(0, 0, 0, 0.55);
}

.hero__badge {
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--vr-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: normal;
  text-transform: uppercase;
}

.hero__title {
  width: 100%;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

@media (min-width: 576px) {
  .hero {
    height: 360px;
  }

  .hero__title {
    font-size: 30px;
  }
}

@media (min-width: 992px) {
  .hero {
    height: 460px;
  }

  .hero__overlay {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero__title {
    font-size: 40px;
  }
}

/* ---------- Detail: breadcrumb ---------- */

.breadcrumb-bar {
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
}

.breadcrumb-bar .breadcrumb {
  --bs-breadcrumb-divider: ">";
  --bs-breadcrumb-divider-color: var(--vr-muted);
  --bs-breadcrumb-item-padding-x: 6px;
  --bs-breadcrumb-item-active-color: var(--vr-ink);
  --bs-breadcrumb-font-size: 13px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  font-weight: 500;
  white-space: nowrap;
}

.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
  font-weight: 400;
}

.breadcrumb-bar .breadcrumb-item a {
  color: var(--vr-text) !important;
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb-bar .breadcrumb-item a:hover {
  color: var(--vr-red) !important;
}

.breadcrumb-bar .breadcrumb-item.active {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 576px) {
  .breadcrumb-bar .breadcrumb-item.active {
    max-width: none;
  }
}

@media (min-width: 992px) {
  .breadcrumb-bar {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

/* ---------- Detail: overview image + project information ---------- */

.overview {
  padding-top: 24px;
  padding-bottom: 24px;
}

.overview__inner {
  position: relative;
}

.overview__image {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
}

.overview__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.overview__image:hover > img {
  transform: scale(1.05);
}

.overview__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.1) 50%, transparent);
}

.overview__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overview__caption::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--vr-red);
}

.info-card {
  position: relative;
  z-index: 10;
  margin: 28px 12px 0;
  padding: 22px 20px;
  border: 1px solid var(--vr-line);
  border-top: 4px solid var(--vr-red);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.14);
}

.info-card__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--vr-line);
}

.info-card__eyebrow {
  color: var(--vr-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-card__title {
  color: var(--vr-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.info-grid {
  --bs-gutter-x: 24px;
  padding-top: 4px;
}

.info-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 0 15px 14px;
  border-bottom: 1px solid var(--vr-line);
}

.info-item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: var(--vr-red);
}

.info-item__label {
  color: var(--vr-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-item__value {
  color: var(--vr-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 576px) {
  .overview__image {
    height: 380px;
  }

  .overview__caption {
    padding: 28px;
    font-size: 12px;
  }

  .info-card {
    margin-inline: 24px;
    padding: 28px;
  }

  .info-card__title {
    font-size: 24px;
  }

  .info-item {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .info-item--last {
    border-bottom: 0;
  }

  .info-item__value {
    font-size: 14px;
  }
}

@media (min-width: 992px) {
  .overview {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .overview__inner {
    min-height: 480px;
  }

  .overview__image {
    width: 76%;
    height: 480px;
  }

  .overview__caption {
    padding: 36px;
  }

  .info-card {
    position: absolute;
    top: 50%;
    right: 0;
    width: 48%;
    margin: 0;
    padding: 32px;
    transform: translateY(-50%);
  }

  .info-card__header {
    padding-bottom: 24px;
  }
}

/* ---------- Detail: main body ---------- */

.detail-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding-top: 16px;
  padding-bottom: 60px;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  min-width: 0;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.section-title {
  margin-bottom: 12px;
  color: var(--vr-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: normal;
}

.section-title--md {
  margin-bottom: 16px;
}

.section-title--lg {
  margin-bottom: 20px;
}

.prose-text {
  font-size: 14px;
  line-height: 1.7;
}

.prose-text + .prose-text {
  margin-top: 12px;
}

@media (min-width: 992px) {
  .detail-body {
    flex-direction: row;
    gap: 60px;
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .detail-content {
    flex: 1;
    gap: 48px;
    width: auto;
  }

  .detail-sidebar {
    flex-shrink: 0;
    gap: 24px;
    width: 340px;
  }

  .section-title {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .section-title--md {
    margin-bottom: 20px;
  }

  .section-title--lg {
    margin-bottom: 24px;
  }

  .prose-text {
    font-size: 15px;
  }

  .prose-text + .prose-text {
    margin-top: 16px;
  }
}

/* Challenge / Solution */

.callout-row {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}

.callout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px 24px 24px;
  border-left: 4px solid #dedede;
  background: var(--vr-surface);
}

.callout--accent {
  border-left-color: var(--vr-red);
}

.callout__title {
  color: var(--vr-red);
  font-size: 13px;
  font-weight: 800;
  line-height: normal;
  text-transform: uppercase;
}

.callout__text {
  font-size: 14px;
  line-height: 1.6;
}

/* Statistics */

.stats-row {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 16px;
  border-bottom: 2px solid #f3f4f6;
}

.stat__value {
  color: var(--vr-red);
  font-size: 26px;
  font-weight: 800;
  line-height: normal;
}

.stat__label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

/* Key benefits */

.benefits-row {
  --bs-gutter-x: 32px;
  --bs-gutter-y: 28px;
}

.benefit__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.benefit__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vr-red);
}

.benefit__icon img {
  width: 10px;
  height: 8px;
}

.benefit__title {
  color: var(--vr-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
}

.benefit__text {
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .callout-row {
    --bs-gutter-x: 20px;
  }

  .callout {
    padding: 28px 24px 28px 28px;
  }

  .stats-row {
    --bs-gutter-x: 53px;
    --bs-gutter-y: 0;
  }

  .stat {
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 0;
  }

  .stat__value {
    font-size: 32px;
  }

  .benefits-row {
    --bs-gutter-y: 32px;
  }

  .benefit__title {
    font-size: 15px;
  }

  .benefit__text {
    font-size: 14px;
  }
}

/* Image gallery */

.gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery__stack {
  display: flex;
  gap: 12px;
}

.gallery-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}

.gallery-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color 0.3s;
}

.gallery-img__zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.gallery-img:hover > img {
  transform: scale(1.05);
}

.gallery-img:hover::after {
  background: rgba(0, 0, 0, 0.3);
}

.gallery-img:hover .gallery-img__zoom {
  opacity: 1;
}

.gallery-img--main {
  height: 200px;
}

.gallery-img--side {
  height: 130px;
}

.gallery-img--wide {
  height: 160px;
}

@media (min-width: 576px) {
  .gallery__row {
    flex-direction: row;
  }

  .gallery__stack {
    flex: 2;
    flex-direction: column;
    min-width: 0;
  }

  .gallery-img--main {
    flex: 3;
    height: 260px;
    min-width: 0;
  }
}

@media (min-width: 992px) {
  .gallery {
    gap: 24px;
  }

  .gallery__row,
  .gallery__stack {
    gap: 16px;
  }

  .gallery-img--main {
    height: 300px;
  }

  .gallery-img--side {
    height: 142px;
  }

  .gallery-img--wide {
    height: 200px;
  }
}

/* Testimonial */

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-left: 4px solid var(--vr-red);
  border-radius: 0 8px 8px 0;
  background: var(--vr-surface);
}

.testimonial__stars {
  display: flex;
  gap: 4px;
}

.testimonial__stars img {
  width: 14px;
  height: 14px;
}

.testimonial__quote {
  color: var(--vr-ink);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
}

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

.testimonial__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__name {
  margin-bottom: 3px;
  color: var(--vr-ink);
  font-size: 14px;
  font-weight: 700;
}

.testimonial__role {
  font-size: 13px;
}

@media (min-width: 992px) {
  .testimonial {
    padding: 24px 32px;
  }

  .testimonial__quote {
    font-size: 15px;
  }
}

/* Related case studies */

.related-row {
  --bs-gutter-x: 20px;
  --bs-gutter-y: 20px;
}

.related-card {
  --bs-card-border-color: var(--vr-line);
  --bs-card-border-radius: 8px;
  --bs-card-inner-border-radius: 7px;
  --bs-card-spacer-x: 16px;
  --bs-card-spacer-y: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.related-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.related-card .zoom-img {
  height: 180px;
  border-radius: 0;
}

.related-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.related-card__badge {
  padding: 4px 10px;
  border-radius: 4px;
  background: #fee2e2;
  color: var(--vr-red);
  font-size: 11px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
}

.related-card__title {
  color: var(--vr-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  transition: color 0.15s;
}

.related-card:hover .related-card__title {
  color: var(--vr-red);
}

.related-card__text {
  font-size: 13px;
  line-height: 1.5;
}

.related-card__more {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--vr-red);
  font-size: 13px;
  font-weight: 600;
  transition: gap 0.15s;
}

.related-card__more:hover {
  gap: 8px;
}

@media (min-width: 992px) {
  .related-row {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 24px;
  }

  .related-card {
    --bs-card-spacer-x: 20px;
    --bs-card-spacer-y: 20px;
  }

  .related-card .zoom-img {
    height: 200px;
  }

  .related-card__title {
    font-size: 16px;
  }
}

/* ---------- Detail: sidebar ---------- */

.side-panel {
  padding: 20px;
  border: 1px solid var(--vr-line);
  border-radius: 8px;
}

.side-panel__title {
  margin-bottom: 14px;
  color: var(--vr-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: normal;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  padding: 6px 14px;
  border-radius: 20px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s;
}

.tag-pill:hover {
  background: var(--vr-line);
}

.software-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.software-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--vr-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s;
}

.software-item:hover {
  color: var(--vr-red);
}

.software-item__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  transition: opacity 0.15s;
}

.software-item:hover .software-item__icon {
  opacity: 0.8;
}

.side-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  background: var(--vr-red);
}

.side-cta__title {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: normal;
}

.side-cta__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

.side-cta .btn {
  --bs-btn-padding-x: 24px;
  --bs-btn-padding-y: 12px;
}

@media (min-width: 992px) {
  .side-panel {
    padding: 24px;
  }

  .side-panel__title {
    margin-bottom: 16px;
  }

  .software-list {
    gap: 12px;
  }

  .side-cta {
    padding: 28px;
  }
}

/* ---------- Listing: ajax filter & infinite scroll ---------- */

#cs-listing {
  transition: opacity 0.2s;
}

#cs-listing.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

.cs-empty {
  padding: 48px 0 64px;
  color: var(--vr-text);
  font-size: 16px;
  text-align: center;
}

.cs-loader {
  padding-bottom: 40px;
  color: var(--vr-text);
  font-size: 14px;
  text-align: center;
}

/* ---------- Details: cms driven content ---------- */

.prose-content h2,
.prose-content h3,
.prose-content h4 {
  margin: 20px 0 8px;
  color: var(--vr-ink);
  font-size: 16px;
  font-weight: 700;
}

.prose-content p,
.prose-content ul,
.prose-content ol {
  margin-bottom: 12px;
}

.prose-content ul,
.prose-content ol {
  padding-left: 20px;
}

.prose-content li + li {
  margin-top: 4px;
}

.prose-content > :first-child {
  margin-top: 0;
}

.prose-content > :last-child {
  margin-bottom: 0;
}

.prose-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.benefit__image {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

img.software-item__icon {
  object-fit: contain;
}

a.gallery-img {
  display: block;
}

.cs-page a.related-card__more {
  color: var(--vr-red) !important;
  text-decoration: none;
}

.testimonial + .testimonial {
  margin-top: 16px;
}

/* ---------- Gallery lightbox ---------- */

.cs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above the fixed header (19998) and scroll-up button (99999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
  background: rgba(17, 24, 39, 0.94);
}

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

.cs-lightbox__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.cs-lightbox__counter {
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.cs-lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cs-lightbox__btn:hover,
.cs-lightbox__btn:focus-visible {
  background: var(--vr-red);
  outline: none;
}

.cs-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.cs-lightbox__nav--prev {
  left: 8px;
}

.cs-lightbox__nav--next {
  right: 8px;
}

.cs-lightbox--single .cs-lightbox__nav,
.cs-lightbox--single .cs-lightbox__counter {
  display: none;
}

.cs-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.cs-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 8px;
  object-fit: contain;
  user-select: none;
}

.cs-lightbox__caption {
  margin-top: 12px;
  color: #e5e7eb;
  font-size: 0.9375rem;
  text-align: center;
}

.cs-lightbox__caption:empty {
  display: none;
}

body.cs-lightbox-open {
  overflow: hidden;
}

@media (min-width: 992px) {
  .cs-lightbox {
    padding: 72px 96px;
  }

  .cs-lightbox__nav--prev {
    left: 24px;
  }

  .cs-lightbox__nav--next {
    right: 24px;
  }

  .cs-lightbox__bar {
    padding: 16px 24px;
  }
}

/* ---------- Project information: external project link ---------- */

.info-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--vr-red);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.info-item__link:hover,
.info-item__link:focus-visible {
  color: var(--vr-red-dark);
  text-decoration: underline;
}

.info-item__link svg {
  flex-shrink: 0;
}
