/* =========================
   Archive Category Sections
   ========================= */

.type-section {
  position: relative;
  width: 100%;
  min-height: 78vh;
  overflow: hidden;
}

.type-banner-link {
  position: relative;
  display: block;
  width: 100%;
  min-height: 78vh;
  text-decoration: none;
  color: inherit;
}

.type-banner-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.8s ease;
  background-color: #1e1e1e;
}

/* Fallback when no image exists */
.type-banner-image:empty,
.type-banner-image:not([style]) {
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.92), rgba(48, 48, 48, 0.88)),
    radial-gradient(
      circle at top right,
      rgba(211, 84, 42, 0.22),
      transparent 35%
    );
}

.type-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.78) 0%,
    rgba(10, 10, 10, 0.55) 35%,
    rgba(10, 10, 10, 0.38) 60%,
    rgba(10, 10, 10, 0.58) 100%
  );
  z-index: 1;
}

.type-banner-content {
  position: relative;
  z-index: 2;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.type-banner-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1rem;
  max-width: 10ch;
}

.type-banner-desc {
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
}

.type-banner-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.type-banner-link:hover .type-banner-image,
.type-banner-link:focus-visible .type-banner-image {
  transform: scale(1.05);
}

.type-banner-link:hover .type-banner-button,
.type-banner-link:focus-visible .type-banner-button {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.type-banner-link:focus-visible {
  outline: none;
}

.type-banner-link:focus-visible .type-banner-button {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.22),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

/* Optional separation between sections */
.type-section + .type-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* =========================
   Large desktops
   ========================= */
@media (min-width: 1400px) {
  .type-section,
  .type-banner-link,
  .type-banner-content {
    min-height: 82vh;
  }

  .type-banner-content {
    padding-bottom: 6rem;
  }
}

/* =========================
   Tablets
   ========================= */
@media (max-width: 991.98px) {
  .type-section,
  .type-banner-link,
  .type-banner-content {
    min-height: 64vh;
  }

  .type-banner-content {
    justify-content: flex-end;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .type-banner-title {
    max-width: 12ch;
    margin-bottom: 0.85rem;
  }

  .type-banner-desc {
    font-size: 1rem;
    max-width: 48ch;
  }
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 767.98px) {
  .type-section,
  .type-banner-link,
  .type-banner-content {
    min-height: 56vh;
  }

  .type-banner-overlay {
    background: linear-gradient(
      to top,
      rgba(10, 10, 10, 0.84) 0%,
      rgba(10, 10, 10, 0.62) 42%,
      rgba(10, 10, 10, 0.38) 100%
    );
  }

  .type-banner-content {
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }

  .type-banner-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    max-width: 100%;
  }

  .type-banner-desc {
    font-size: 0.96rem;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 1.25rem;
  }

  .type-banner-button {
    padding: 0.82rem 1.1rem;
    font-size: 0.92rem;
  }
}

/* =========================
   Small mobile devices
   ========================= */
@media (max-width: 479.98px) {
  .type-section,
  .type-banner-link,
  .type-banner-content {
    min-height: 52vh;
  }

  .type-banner-content {
    padding-top: 5.25rem;
    padding-bottom: 2rem;
  }

  .type-banner-title {
    line-height: 1.08;
  }
}
