/* Showcase of Excellence — Design Categories layout */

.se-showcase {
  width: 100%;
}

.se-showcase .showcase-section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .se-showcase .showcase-section {
    flex-direction: row;
    align-items: stretch;
    min-height: 100vh;
  }
}

/* Left — hero image */
.se-showcase .showcase-main-image-container {
  position: relative;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .se-showcase .showcase-main-image-container {
    width: 50%;
    min-height: 100vh;
  }
}

.se-showcase .showcase-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
}

.se-showcase .showcase-overlay-card {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 1.5rem;
  padding: 1.5rem;
  max-width: 28rem;
  background: hsla(0, 0%, 30%, 0.85);
  border-radius: 0.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

@media (min-width: 1024px) {
  .se-showcase .showcase-overlay-card {
    margin: 2.5rem;
    padding: 2rem;
  }
}

.se-showcase .showcase-overlay-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.se-showcase .showcase-overlay-label::before {
  content: '';
  width: 2rem;
  height: 0.125rem;
  background: hsl(37, 29%, 63%);
  flex-shrink: 0;
}

.se-showcase .showcase-overlay-title {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: hsl(37, 29%, 63%);
  text-decoration: none;
}

.se-showcase .showcase-overlay-title[href]:hover,
.se-showcase .showcase-overlay-title[href]:focus {
  color: hsl(37, 35%, 72%);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.se-showcase .showcase-overlay-description {
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsla(0, 0%, 100%, 0.85);
  margin: 0;
}

@media (min-width: 1024px) {
  .se-showcase .showcase-overlay-description {
    font-size: 1rem;
  }
}

/* Prev on hero (desktop) */
.se-showcase .showcase-main-nav {
  position: absolute;
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
  z-index: 3;
  display: none;
}

@media (min-width: 1024px) {
  .se-showcase .showcase-main-nav {
    display: inline-flex;
  }
}

/* Right — content panel */
.se-showcase .showcase-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
  background: #ffffff;
  color: hsl(170, 48%, 12%);
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .se-showcase .showcase-panel {
    width: 50%;
    padding: 3.5rem 3rem 4rem;
  }
}

.se-showcase .showcase-featured-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.se-showcase .showcase-featured-label::before {
  content: '';
  width: 3rem;
  height: 1px;
  background: hsl(37, 29%, 63%);
  flex-shrink: 0;
}

.se-showcase .showcase-featured-text {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: hsl(37, 29%, 63%);
}

.se-showcase .showcase-headline {
  font-size: 1.875rem;
  font-weight: 300;
  margin: 0 0 2.5rem;
  line-height: 1.25;
  color: hsl(170, 48%, 12%);
}

@media (min-width: 1024px) {
  .se-showcase .showcase-headline {
    font-size: 3rem;
    margin-bottom: 3.5rem;
  }
}

/* Thumbnail carousel */
.se-showcase .showcase-carousel-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
  width: 100%;
  padding: 0 3rem;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .se-showcase .showcase-carousel-wrapper {
    margin-bottom: 3rem;
    padding: 0 3.25rem;
  }
}

.se-showcase .showcase-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.se-showcase .showcase-carousel::-webkit-scrollbar {
  display: none;
}

.se-showcase .showcase-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: hsl(0, 0%, 42%);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.95;
  padding: 0;
}

.se-showcase .showcase-carousel-nav::after {
  content: none;
}

.se-showcase .showcase-carousel-nav:hover {
  background: hsl(0, 0%, 32%);
  opacity: 1;
}

.se-showcase .showcase-carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.se-showcase .showcase-carousel-nav svg {
  display: block;
  width: 18px;
  height: 18px;
}

.se-showcase .showcase-carousel-prev {
  left: 0;
}

.se-showcase .showcase-carousel-next {
  right: 0;
  left: auto;
}

.se-showcase .showcase-main-nav.showcase-carousel-nav {
  background: rgba(255, 255, 255, 0.92);
  color: hsl(0, 0%, 25%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.se-showcase .showcase-main-nav.showcase-carousel-nav:hover {
  background: #ffffff;
}

.se-showcase .showcase-thumbnail {
  flex-shrink: 0;
  width: 176px;
  aspect-ratio: 4 / 3;
  height: auto;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.72;
}

@media (min-width: 1024px) {
  .se-showcase .showcase-thumbnail {
    width: 208px;
  }
}

.se-showcase .showcase-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  -webkit-user-drag: none;
  user-select: none;
  display: block;
}

.se-showcase .showcase-thumbnail:hover img {
  transform: scale(1.04);
}

.se-showcase .showcase-thumbnail.active {
  opacity: 1;
  border-color: hsl(37, 29%, 63%);
  box-shadow: none;
}

.se-showcase .showcase-thumbnail button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
  position: relative;
}

.se-showcase .showcase-thumbnail-overlay {
  display: none;
}

/* CTA */
.se-showcase .showcase-button {
  position: relative;
  display: inline-block;
  align-self: flex-start;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.3s;
  background: hsl(37, 25%, 75%);
  color: hsl(0, 0%, 8%);
  border: none;
  text-decoration: none;
}

.se-showcase .showcase-button::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  border: 1px solid hsl(37, 20%, 60%);
  transform: translate(4px, 4px);
  transition: transform 0.3s ease;
}

.se-showcase .showcase-button:hover::before {
  transform: translate(6px, 6px);
}

.se-showcase .showcase-button:hover {
  background: hsl(37, 29%, 63%);
}

@media (max-width: 767px) {
  .se-showcase .showcase-carousel-wrapper {
    padding: 0 2.75rem;
  }

  .se-showcase .showcase-carousel-nav {
    width: 36px;
    height: 36px;
  }

  .se-showcase .showcase-thumbnail {
    width: 160px;
  }
}
