/* ################################################# */
/* CASE STUDY TEMPLATE STYLES */
/* ################################################# */

/* ================================================== */
/* SKIP TO CONTENT (ACCESSIBILITY) */
/* ================================================== */

.skip-to-content {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: #ffffff;
  color: var(--mid-blue);
  border: 1.5px solid var(--mid-blue);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Work Sans', sans-serif;
  text-decoration: none;
  z-index: 99999;
  transition: transform 0.3s ease;
}

.skip-to-content:focus {
  transform: translateX(-50%) translateY(0);
  outline: none;
}

/* ================================================== */
/* DESIGN WORK HERO AREA */
/* ================================================== */

.case-study-hero {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 96px auto;
  position: relative;
  overflow: hidden;
  background: #000;
}

.case-study-hero-media {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
}

.case-study-hero-media img,
.case-study-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ================================================== */
/* TWO COLUMN TEXT AREA */
/* ================================================== */

/* ================================================== */
/* AWARD BADGE */
/* ================================================== */

.case-study-award {
  max-width: 920px;
  margin: -24px auto 40px auto;
  padding: 0 16px;
}

.award-label {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--dark-blue);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.award-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--light-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.award-logo {
  display: block;
  height: 56px;
  width: auto;
}

@media (max-width: 768px) {
  .case-study-award {
    padding: 0 8px;
    margin-bottom: 32px;
  }
  .award-logo {
    height: 44px;
  }
}

.case-study-intro {
  max-width: 920px;
  margin: 0 auto 96px auto;
  padding: 0 16px;
}

.case-study-text-2col {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 48px;
  line-height: 1.7;
}

.case-study-text-2col .col-left {
  color: #222;
}

.case-study-text-2col .col-left p {
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 400;
  line-height: 1.7em;
  color: var(--standard-text-color);
}

.case-study-text-2col .col-left p strong {
  color: var(--light-blue);
}

.case-study-text-2col .col-left p:last-child {
  margin-bottom: 0;
}

.case-study-text-2col .col-right {
  color: #222;
}

.case-study-text-2col .col-right h1 {
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.3;
  color: #222;
}

.case-study-text-2col .col-right h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: 32px;
  color: #222;
}

.case-study-text-2col .col-right h2:first-child {
  margin-top: 0;
}

.case-study-text-2col .col-right p {
  font-size: 26px;
  margin-bottom: 16px;
  font-weight: 300;
  line-height: 1.5em;
  color: var(--standard-text-color);
}

.case-study-text-2col .col-right p:last-child {
  margin-bottom: 0;
}

/* ================================================== */
/* DESIGN WORK MEDIA GALLERY */
/* ================================================== */

.case-study-gallery {
  max-width: 920px;
  margin: 0 auto 80px auto;
  padding: 0;
}

.gallery-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

.gallery-row:last-child {
  margin-bottom: 0;
}

/* Row type: 50/50 */
.gallery-row.row-50-50 .gallery-item {
  flex: 1;
}

/* Row type: 60/40 */
.gallery-row.row-60-40 .gallery-item.item-60 {
  flex: 0 0 calc(60% - 8px);
}

.gallery-row.row-60-40 .gallery-item.item-40 {
  flex: 0 0 calc(40% - 8px);
}

/* Row type: 30/30/30 */
.gallery-row.row-33-33-33 .gallery-item {
  flex: 1;
  aspect-ratio: 1/1; /* Forces 1:1 square proportion */
}

/* Row type: 70/30 */
.gallery-row.row-70-30 .gallery-item.item-70 {
  flex: 0 0 calc(70% - 11.2px);
}

.gallery-row.row-70-30 .gallery-item.item-30 {
  flex: 0 0 calc(30% - 4.8px);
}

/* Row type: 55/45 */
.gallery-row.row-55-45 .gallery-item.item-55 {
  flex: 0 0 calc(55% - 8.8px);
}

.gallery-row.row-55-45 .gallery-item.item-45 {
  flex: 0 0 calc(45% - 7.2px);
}

/* Row type: Full width single image */
.gallery-row.row-full .gallery-item {
  flex: 1 1 100%;
  aspect-ratio: 21/9; /* Matches the height feel of other rows */
}

/* Gallery items */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

/* Hover overlay */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover::before {
  background: rgba(0, 0, 0, 0.4);
}

/* Play button overlay for videos - ONLY in media gallery */
.case-study-gallery .gallery-item .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.case-study-gallery .gallery-item.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.case-study-gallery .gallery-item .play-overlay i {
  font-size: 28px;
  color: var(--mid-blue);
  margin-left: 4px;
}

.case-study-gallery .gallery-item:hover .play-overlay {
  background: rgba(255, 255, 255, 1);
}

/* ================================================== */
/* DESIGN WORK STANDALONE VIDEO EMBED */
/* ================================================== */

.case-study-video-embed {
  max-width: 920px;
  margin: 0 auto 80px auto;
  padding: 0 16px;
}

.case-study-video-embed .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Replace with your video's ratio — see note below */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.case-study-video-embed .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================================================== */
/* LIGHTBOX */
/* ================================================== */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 68, 166, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Lightbox controls */
.lightbox-close,
.lightbox-fullscreen,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10000;
  padding: 16px;
  transition: color 0.3s ease, transform 0.2s ease;
  outline: none;
}

.lightbox-close:hover,
.lightbox-fullscreen:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--light-blue);
}

.lightbox-close:active,
.lightbox-fullscreen:active,
.lightbox-prev:active,
.lightbox-next:active {
  transform: scale(0.95);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-fullscreen {
  top: 20px;
  left: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-4px);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) translateX(4px);
}

/* Hide fullscreen button if not supported */
.lightbox-fullscreen.hidden {
  display: none;
}

/* ================================================== */
/* PROJECT NAVIGATION */
/* ================================================== */

.project-nav {
  max-width: 920px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-nav-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-nav-text:hover {
  color: var(--light-blue);
}

.nav-arrow {
  color: var(--light-blue);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 8px;
  position: absolute;
}

.nav-arrow svg {
  stroke: var(--light-blue);
  transition: stroke 0.3s ease;
}

.nav-arrow.arrow-left {
  left: 16px;
}

.nav-arrow.arrow-right {
  right: 16px;
}

.nav-arrow:hover {
  color: var(--mid-blue);
}

.nav-arrow:hover svg {
  stroke: var(--mid-blue);
}

.nav-arrow.arrow-left:hover {
  transform: translateX(-6px);
}

.nav-arrow.arrow-right:hover {
  transform: translateX(6px);
}

.nav-arrow:active {
  transform: scale(0.95);
}

.nav-arrow.arrow-left:active {
  transform: translateX(-6px) scale(0.95);
}

.nav-arrow.arrow-right:active {
  transform: translateX(6px) scale(0.95);
}

/* Hide arrows if no prev/next */
.nav-arrow.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* ================================================== */
/* MOBILE RESPONSIVE */
/* ================================================== */

@media (max-width: 768px) {
  /* Design Work Hero */
  .case-study-hero {
    margin-bottom: 48px;
  }

  .case-study-hero-media {
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio */
  }
  
  .case-study-hero-media img,
  .case-study-hero-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  /* Two column text */
  .case-study-intro {
    margin-bottom: 48px;
    padding: 0 20px;
  }
  
  .case-study-text-2col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .case-study-text-2col .col-right h1 {
    font-size: 1.8rem;
  }
  
  .case-study-text-2col .col-right h2 {
    font-size: 1.3rem;
  }
  
  /* Design Work Media Gallery */
  .case-study-gallery {
    margin-bottom: 48px;
    padding: 0 8px;
  }
  
  .gallery-row {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .gallery-row.row-60-40 .gallery-item.item-60,
  .gallery-row.row-60-40 .gallery-item.item-40,
  .gallery-row.row-50-50 .gallery-item,
  .gallery-row.row-33-33-33 .gallery-item,
  .gallery-row.row-70-30 .gallery-item.item-70,
  .gallery-row.row-70-30 .gallery-item.item-30,
  .gallery-row.row-55-45 .gallery-item.item-55,
  .gallery-row.row-55-45 .gallery-item.item-45,
  .gallery-row.row-full .gallery-item {
    flex: 1 1 100%;
  }

  .gallery-item {
    aspect-ratio: 16/9;
  }

  .gallery-row.row-33-33-33 .gallery-item {
    aspect-ratio: 1/1; /* Keep 1:1 ratio on mobile too */
  }

  .gallery-row.row-full .gallery-item {
  aspect-ratio: auto; /* Restores natural image proportions on mobile */
}

.gallery-row.row-full .gallery-item img {
  height: auto;
  object-fit: contain; /* or 'cover' if you want it to fill */
}

  .gallery-item.item-portrait {
    aspect-ratio: unset; /* Allow portrait items to retain natural height */
  }

  .gallery-item .play-overlay {
    width: 50px;
    height: 50px;
  }

  .gallery-item .play-overlay i {
    font-size: 20px;
  }

  /* Lightbox */
  .lightbox-content {
    max-width: 95%;
    max-height: 85%;
  }

  .lightbox-close,
  .lightbox-fullscreen,
  .lightbox-prev,
  .lightbox-next {
    font-size: 24px;
    padding: 12px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-fullscreen {
    top: 10px;
    left: 10px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  /* Project navigation */
  .project-nav {
    margin-bottom: 48px;
    gap: 32px;
    padding: 0 8px;
  }

  .project-nav-text {
    font-size: 1.2rem;
  }

  .nav-arrow {
    font-size: 12px;
  }

  .nav-arrow svg {
    width: 52px !important;
  }

  .nav-arrow.arrow-left {
  left: 12px;
  }

  .nav-arrow.arrow-right {
  right: 12px;
  }

}

@media (max-width: 480px) {
  .case-study-text-2col .col-right h1 {
    font-size: 1.5rem;
  }
  
  .case-study-text-2col .col-right h2 {
    font-size: 1.2rem;
  }
  
  .case-study-text-2col .col-left p {
    font-size: 0.95rem;
  }
}

/* ================================================== */
/* ACCESSIBILITY & REDUCED MOTION */
/* ================================================== */

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .gallery-item,
  .nav-arrow,
  .gallery-item::before,
  .play-overlay {
    transition: none;
    animation: none;
  }
}

/* Focus styles for keyboard navigation */
.gallery-item:focus,
.nav-arrow:focus,
.lightbox-close:focus,
.lightbox-fullscreen:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
  outline: 2px solid var(--light-blue);
  outline-offset: 4px;
}

/* ================================================== */
/* PRINT STYLES */
/* ================================================== */

@media print {
  .lightbox,
  .play-overlay,
  .project-nav,
  .nav-arrow {
    display: none !important;
  }
  
  .gallery-item::before {
    display: none;
  }
}


/* ================================================== */
/* STREAMING VIDEOS FROM VIMEO */
/* ================================================== */

/* Vimeo container for 16:9 aspect ratio */
.vimeo-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  background: #000;
}

.vimeo-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Prevent clicks on iframe in gallery - allow clicks to bubble to gallery-item */
.case-study-gallery .vimeo-container iframe {
  pointer-events: none;
}

/* Re-enable pointer events in lightbox so controls work */
.lightbox .vimeo-container iframe {
  pointer-events: auto;
}

/* Override padding-bottom technique in lightbox - use actual dimensions */
.lightbox .vimeo-container {
  padding-bottom: 0;
  height: auto;
  width: 80vw;
  max-width: 1200px;
  aspect-ratio: 16/9;
}

/* ================================================== */
/* ================================================== */
/* UX CASE STUDY SPECIFIC STYLES                     */
/* ================================================== */
/* ================================================== */


/* ================================================== */
/* UX CASE STUDY: TITLE BLOCK                        */
/* ================================================== */

.ux-cs-title-block {
  margin-bottom: 24px;
  padding-top: 0px;
}

.ux-cs-label {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--dark-grey);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ux-cs-h1 {
  font-size: 3.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--dark-blue);
  margin: 0;
}


/* UX Case Study: Overview body text */
.case-study-overview-text {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5em;
  color: var(--standard-text-color);
  margin-bottom: 20px;
}

.case-study-overview-text:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .case-study-overview-text {
    font-size: 20px;
  }
}


/* UX Case Study: Overview 3 Column Section */
.ux-cs-meta-item-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: var(--dark-blue);
  margin-bottom: 12px; /* control spacing between title and body */
}

.ux-cs-meta-item-body {
  font-size: 16px;
  line-height: 1.7em;
  font-weight: 400;
  color: var(--dark-grey);
  margin-bottom: 0;
}


/* ================================================== */
/* UX CASE STUDY: SECTION WRAPPER                    */
/* ================================================== */

.ux-cs-section {
  padding: 56px 0 80px 0;
}

/* ================================================== */
/* UX CASE STUDY: SECTION SPACING VARIANTS          */
/* ================================================== */

/* Intro section with image panel (first in sequence) - blue background */
.ux-cs-section-intro--blue {
  background: var(--light-blue-background);
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  padding: 80px 0px 0px 0px;
}

/* Body section with image panel (middle sections) - blue background */
.ux-cs-section-body--blue {
  background: var(--light-blue-background);
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  padding: 0px 0px 0px 0px;
}

/* End section in sequence - blue background */
.ux-cs-section-end--blue {
  background: var(--light-blue-background);
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  padding: 0 0 80px 0;
}

/* Intro section with image panel (first in sequence) - white background */
.ux-cs-section-intro--white {
  background: #ffffff;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  padding: 80px 0px 0px 0px;
}

/* Body section with image panel (middle sections) - white background */
.ux-cs-section-body--white {
  background: #ffffff;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  padding: 0px 0px 0px 0px;
}

/* End section in sequence - white background */
.ux-cs-section-end--white {
  background: #ffffff;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  padding: 0 0 80px 0;
}

/* Alt (tinted) sections — full-bleed background */
.ux-cs-section--alt {
  background: var(--alt-panel-background);
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
}

/* Re-constrain the inner .container inside alt sections */
.ux-cs-section--alt > .container {
  max-width: 920px;
  width: 95%;
  margin: 0 auto;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}


/* ================================================== */
/* UX CASE STUDY: SIDEBAR + CONTENT COLUMN LAYOUT    */
/* ================================================== */

.ux-cs-section-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}

.ux-cs-sidebar {
  padding-top: 6px;
}

.ux-cs-sidebar-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--light-blue);
  line-height: 1.4;
  position: sticky;
  top: 100px;
}

.ux-cs-content p {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--standard-text-color);
  margin-bottom: 20px;
}

.ux-cs-content p:last-child {
  margin-bottom: 0;
}


/* ================================================== */
/* UX CASE STUDY: TYPOGRAPHY                         */
/* ================================================== */

.ux-cs-h2 {
  font-size: 1.9rem;
  font-weight: 100;
  color: var(--dark-blue);
  line-height: 1.3;
  margin-bottom: 24px;
}

.ux-cs-h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--standard-text-color);
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

/* UX Case Study: Subsection Title (h3 style) */
.ux-cs-h3-subsection {
  font-size: 30px;
  font-weight: 400;
  color: var(--standard-text-color);
  letter-spacing: 0em;
  line-height: 1.3;
  margin-bottom: 24px;
}

/* UX Case Study: Section Title */
.ux-cs-section-title {
  font-weight: 400;
  font-size: 40px;
  color: var(--standard-text-color);
  letter-spacing: 0em;
  padding-bottom: 16px;
  line-height: 1.3;
  margin-bottom: 24px;
}

/* UX Case Study: Section Body Copy */
.ux-cs-section-body {
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0em;
  color: var(--standard-text-color);
  padding-bottom: 20px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* UX Case Study: Section Image Title */
.ux-cs-section-image-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0em;
  color: var(--dark-blue);
  margin-bottom: 0px;
}

.ux-cs-inline-link {
  color: var(--mid-blue);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.ux-cs-inline-link:hover {
  color: var(--dark-blue);
  text-decoration: underline;
}


/* ================================================== */
/* UX CASE STUDY: META GRID (Role / Team / Timeline) */
/* ================================================== */

.ux-cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  margin-top: 16px;
  padding-top: 32px;
}

.ux-cs-meta-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-blue);
  margin-bottom: 8px;
}


/* ================================================== */
/* UX CASE STUDY: NUMBERED LIST                      */
/* ================================================== */

.ux-cs-numbered-list {
  list-style: none;
  counter-reset: ux-counter;
  margin: 20px 0 24px 0;
  padding: 0;
}

.ux-cs-numbered-list li {
  counter-increment: ux-counter;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--standard-text-color);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 104, 255, 0.08);
}

.ux-cs-numbered-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ux-cs-numbered-list li::before {
  content: counter(ux-counter, decimal-leading-zero);
  font-size: 1.5rem;
  font-weight: 100;
  color: var(--light-blue);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
  padding-top: 2px;
}

/* ================================================== */
/* UX CASE STUDY: NEW NUMBERED LIST ITEMS (STYLED)  */
/* ================================================== */

.ux-cs-numbered-list-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0;
  padding: 0px 0px 16px 0px;
}

.ux-cs-numbered-list-item {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.12);
  padding: 20px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0px;
  align-items: start;
}

.ux-cs-numbered-list-item--blue {
  background: rgb(235, 246, 253, 0.9);
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  padding: 20px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0px;
  align-items: start;
}

.ux-cs-list-number {
  color: var(--light-blue);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0em;
  flex-shrink: 0;
  line-height: 1;
}

.ux-cs-list-text {
  color: var(--standard-text-color);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0em;
  line-height: 1.6;
  margin: 0;
}

/* ================================================== */
/* UX CASE STUDY: RESEARCH INSIGHTS CONTAINER        */
/* ================================================== */

.ux-cs-research-insights-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin: 24px 0;
  padding: 0px 0px 16px 0px;
}

.ux-cs-research-insight-item {
  background: rgb(235, 246, 253, 0.9);
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.12);
  padding: 32px 52px 52px 52px;
  display: flex;
  flex-direction: column;
}

.ux-cs-insight-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ux-cs-insight-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--dark-blue);
}

.ux-cs-insight-title-text {
  color: var(--light-blue);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0em;
  margin: 0;
}

.ux-cs-insight-body {
  color: var(--standard-text-color);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0em;
  line-height: 1.6;
  margin-bottom: 24px;
  margin-top: 0;
}

.ux-cs-insight-recommendations-title {
  color: var(--light-blue);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0em;
  margin-bottom: 16px;
  margin-top: 0;
}

.ux-cs-insight-recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ux-cs-insight-recommendations-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--standard-text-color);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}

.ux-cs-insight-bullet {
  color: var(--light-blue);
  font-weight: 600;
  flex-shrink: 0;
}


/* ================================================== */
/* 2 COLUMN USER QUOTES OR KEY FINDINGS          */
/* ================================================== */

.ux-cs-numbered-list-container-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 48px;
}

.ux-cs-2col-insight-item {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.12);
  padding: 20px;
  /* display: grid; */
  /* grid-template-columns: 60px 1fr; */
  /* gap: 0px; */
  /* align-items: start; */
}

.ux-cs-2col-insight-item--blue {
  background: rgb(235, 246, 253, 0.9);
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.12);
  padding: 24px;
  /* display: grid; */
  grid-template-columns: 60px 1fr;
  gap: 0px;
  align-items: start;
}

.ux-cs-2col-insight-text {
  color: var(--dark-blue);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0em;
  flex-shrink: 0;
  line-height: 1;
}

@media (max-width: 768px) {
  .ux-cs-numbered-list-container-2col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ux-cs-2col-insight-text {
    font-size: 18px;
  }
}


/* ================================================== */
/* UX CASE STUDY: A/B TESTING POINTS                 */
/* ================================================== */

.ux-cs-ab-points {
  margin: 20px 0 24px 0;
  display: flex;
  flex-direction: column;
}

.ux-cs-ab-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 104, 255, 0.08);
}

.ux-cs-ab-item:last-child {
  border-bottom: none;
}

.ux-cs-ab-connector {
  justify-content: flex-start;
  border-bottom: none;
  padding: 6px 0;
}

.ux-cs-ab-label {
  font-size: 1.3rem;
  font-weight: 100;
  color: var(--light-blue);
  flex-shrink: 0;
  min-width: 56px;
  padding-top: 2px;
  line-height: 1;
}

.ux-cs-ab-item p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  font-weight: 300 !important;
  color: var(--standard-text-color);
  margin: 0 !important;
}


/* ================================================== */
/* UX CASE STUDY: FULL-WIDTH IMAGES                  */
/* ================================================== */

.ux-cs-full-image {
  padding: 24px 0;
}

.ux-cs-full-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.ux-cs-full-image--closing {
  padding: 32px 0 48px 0;
}

.ux-cs-full-image--closing img {
  border-radius: 0;
}

/* Full-width image panel - Blue background */
.ux-cs-full-image--blue {
  width: 100vw;
  background: var(--light-blue-background);
  padding: 48px 0;
  margin: 0;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
}

.ux-cs-full-image--blue img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Full-width image panel - White background */
.ux-cs-full-image--white {
  width: 100vw;
  background: #ffffff;
  padding: 48px 0;
  margin: 0;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
}

.ux-cs-full-image--white img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Full-width mobile image panels */
.ux-cs-full-image--mobile {
  display: none;
  width: 100%;
  margin: 0;
}

.ux-cs-full-image--mobile img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}


/* ================================================== */
/* UX CASE STUDY: NUMBERED FEATURE BLOCKS (01/02/03) */
/* ================================================== */

.ux-cs-feature {
  padding: 32px 0 8px 0;
}

.ux-cs-feature-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 920px;
  width: 95%;
  margin: 0 auto;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

.ux-cs-feature-number {
  font-size: 2.4rem;
  font-weight: 100;
  color: var(--light-blue);
  line-height: 1;
  flex-shrink: 0;
  min-width: 56px;
  padding-top: 4px;
}

.ux-cs-feature-body {
  flex: 1;
}

.ux-cs-feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--standard-text-color);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.ux-cs-feature-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--standard-text-color);
  margin: 0;
}


/* ================================================== */
/* UX CASE STUDY: "VIEW ALL PROJECTS" NAVIGATION     */
/* ================================================== */

.ux-cs-nav {
  padding: 56px 0 72px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ux-cs-nav-link {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dark-blue);
  text-decoration: none;
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.ux-cs-nav-link:hover {
  color: var(--light-blue);
  border-color: var(--mid-blue);
}


/* ================================================== */
/* UX CASE STUDY: MOBILE RESPONSIVE                  */
/* ================================================== */

@media (max-width: 768px) {


  .ux-cs-title-block {
    margin-bottom: 8px;
  }

  .ux-cs-h1 {
    font-size: 3rem;
  }

  .ux-cs-section {
    padding: 40px 0;
  }

  .ux-cs-section-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
  }

  .ux-cs-h3-subsection {
    font-size: 24px;
  }

  .ux-cs-section-body {
    line-height: 1.55em;
  }

  .ux-cs-section-intro--blue,
  .ux-cs-section-intro--white {
    position: static;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    width: auto;
    padding: 40px 0 4px 0;
  }

  .ux-cs-section-body--blue,
  .ux-cs-section-body--white {
    position: static;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    width: auto;
    padding: 0 0 4px 0;
  }

  .ux-cs-section-end--blue,
  .ux-cs-section-end--white {
    position: static;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    width: auto;
    padding: 40px 0;
  }

  .ux-cs-section-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ux-cs-sidebar {
    padding-top: 0;
  }

  .ux-cs-sidebar-heading {
    position: static;
  }

  .ux-cs-meta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
  }

  .ux-cs-numbered-list-item,
  .ux-cs-numbered-list-item--blue {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .ux-cs-list-number {
    font-size: 24px;
  }

  .ux-cs-list-text {
    font-size: 18px;
  }

  .ux-cs-full-image {
    padding: 16px 0;
  }

  .ux-cs-full-image--blue,
  .ux-cs-full-image--white {
    display: block !important;
    padding: 24px 0 !important;
  }

  .ux-cs-full-image--blue img,
  .ux-cs-full-image--white img {
    display: none !important;
  }

  .ux-cs-full-image--blue img,
  .ux-cs-full-image--white img {
    display: none !important;
  }

  .ux-cs-full-image--mobile {
    display: block !important;
    width: 100%;
    margin: 0;
  }

  .ux-cs-full-image--mobile img {
    display: block !important;
    width: 100%;
    height: auto;
    margin-bottom: 16px;
  }

  .ux-cs-full-image--mobile img:last-child {
    margin-bottom: 0;
  }

  .ux-cs-feature {
    padding: 24px 0 8px 0;
  }

  .ux-cs-feature-number {
    font-size: 1.8rem;
    min-width: 44px;
  }

  .ux-cs-nav {
    padding: 40px 0 56px 0;
  }

  .ux-cs-research-insight-item {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
    padding: 16px 20px 20px 20px;
  }

  .ux-cs-insight-body {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 24px;
  margin-top: 0;
}
}

@media (max-width: 480px) {

  .ux-cs-h1 {
    font-size: 2.625rem;
  }

  .ux-cs-h2 {
    font-size: 1.5rem;
  }

  .ux-cs-section-inner {
    gap: 12px;
  }

  .ux-cs-numbered-list li::before {
    font-size: 1.2rem;
    min-width: 28px;
  }

  .ux-cs-feature-number {
    font-size: 1.5rem;
    min-width: 36px;
  }

}


/* ================================================== */
/* UX CASE STUDY: FOCUS STYLES                       */
/* ================================================== */

.ux-cs-nav-link:focus,
.ux-cs-inline-link:focus {
  outline: 2px solid var(--light-blue);
  outline-offset: 4px;
}

/* ================================================== */
/* PROCESS INNOVATION IMAGES                         */
/* ================================================== */

.process-innovation-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;           /* Control spacing between images */
  margin-top: 8px;    /* Control spacing above */
  margin-bottom: 40px; /* Control spacing below */
  width: 100%;
}

.process-innovation-images img {
  height: 250px;        /* Fixed height - adjust this value as needed */
  width: auto;          /* Width scales proportionally */
  display: block;
  object-fit: contain;  /* Ensures image fits without cropping */
  border-radius: 4px;
}

/* Medium variant - larger height for single image display */
.process-innovation-images--medium img {
  height: 400px;        /* Larger height for single image display */
}

/* Hide second image on mobile */
@media (max-width: 768px) {
  .process-innovation-images {
    gap: 0;
  }

  .process-innovation-images .animated-image-2 {
    display: none !important;
  }

  .process-innovation-images--medium img {
    height: 300px;
  }
}


/* ================================================== */
/* WEBSITE GALLERY                                    */
/* ================================================== */

.website-gallery-wrapper {
  position: relative;
  margin: 32px auto 0;
  width: 100%;
}

.website-gallery-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  cursor: pointer;
}

.website-gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  display: block;
}

.website-gallery-image.active {
  opacity: 1;
  animation: scrollInCenter 0.75s ease forwards;
}

.website-gallery-image.leaving-left {
  animation: scrollOutLeft 0.5s ease forwards;
}

.website-gallery-image.leaving-right {
  animation: scrollOutRight 0.75s ease forwards;
}

.website-gallery-image.entering-from-left {
  animation: scrollInFromLeft 0.5s ease forwards;
}

.website-gallery-image.entering-from-right {
  animation: scrollInFromRight 0.75s ease forwards;
}

/* Scroll animations */
@keyframes scrollOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

@keyframes scrollOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes scrollInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scrollInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scrollInCenter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.website-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.075);
  border: none;
  color: #ffffff;
  font-size: 28.8px;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  border-radius: 4px;
  z-index: 100;
  line-height: 1;
}

.website-gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.website-gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.website-gallery-arrow:disabled {
  opacity: 0;
  pointer-events: none;
  cursor: not-allowed;
}

.website-gallery-arrow i {
  display: block;
  font-weight: 700;
}

.website-gallery-prev {
  left: 12px;
}

.website-gallery-next {
  right: 12px;
}

/* Responsive gallery */
@media (max-width: 768px) {
  .website-gallery-container {
    aspect-ratio: 16 / 9;
  }

  .website-gallery-arrow {
    font-size: 21.6px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .website-gallery-arrow {
    font-size: 16.8px;
    padding: 8px 10px;
  }
}

/* ================================================== */
/* TESTIMONIALS                                       */
/* ================================================== */

.testimonials-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.testimonial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0px 12px 0px;
}

.testimonial-icon {
  font-size: 40px;
  color: var(--dark-blue);
  margin-bottom: 24px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--standard-text-color);
  font-weight: 300;
  letter-spacing: 0em;
  padding-bottom: 20px;
  margin-bottom: 0px;
  max-width: 720px;
  text-align: center;
}

.testimonial-attribution {
  font-size: 18px;
  line-height: 1.75;
  color: var(--dark-blue);
  font-weight: 600;
  letter-spacing: 0em;
  padding-bottom: 20px;
  margin-bottom: 0px;
  max-width: 720px;
  text-align: center;
}

.testimonial-divider {
  border: none;
  border-top: 2px solid var(--dark-grey);
  opacity: 0.1;
  margin: 0 auto;
  width: 80%;
  border-radius: 999px;
}

/* Responsive testimonials */
@media (max-width: 768px) {
  .testimonial-item {
    padding: 32px 0;
  }

  .testimonial-icon {
    font-size: 40px;
    margin-bottom: 16px;
  }

  .testimonial-text {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .testimonial-attribution {
    font-size: 0.95rem;
  }

  .testimonial-divider {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .testimonial-item {
    padding: 24px 0;
  }

  .testimonial-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .testimonial-text {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .testimonial-attribution {
    font-size: 18px;
  }

  .testimonial-divider {
    width: 100%;
  }
}

/* ================================================== */
/* UX CASE STUDY: PRINT STYLES                       */
/* ================================================== */

@media print {

  .ux-cs-sidebar-heading {
    position: static;
  }

  .ux-cs-nav {
    display: none;
  }
}