/* Perspekt Latest News Grid v1.3.2 */

.plng-shell {
  --plng-accent: #355c88;
  margin: 2rem 0 2.75rem;
  font-family: inherit;
}

/* ── Header ── */
.plng-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(20, 37, 63, 0.12);
}

.plng-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #17345c;
  font-size: clamp(1.45rem, 1.12rem + 1vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
}

.plng-title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--plng-accent);
  box-shadow: 0 0 0 6px rgba(53, 92, 136, 0.14);
  flex-shrink: 0;
}

.plng-footer {
  display: flex;
  justify-content: center;
  margin-top: 1.45rem;
}

.plng-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.92rem 1.24rem 0.92rem 1.34rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 252, 0.98) 100%);
  border: 1px solid rgba(26, 53, 88, 0.14);
  box-shadow: 0 12px 30px rgba(13, 26, 44, 0.08);
  color: #17345c;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  transition: color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.plng-archive-link:hover {
  color: #102946;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(13, 26, 44, 0.12);
  border-color: rgba(26, 53, 88, 0.22);
}

.plng-archive-link__label {
  white-space: nowrap;
  line-height: 1.2;
}

.plng-archive-link__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(53, 92, 136, 0.1);
  color: #29486d;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.plng-archive-link:hover .plng-archive-link__arrow {
  transform: translateX(2px);
  background: rgba(53, 92, 136, 0.16);
}

.plng-controls {
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.plng-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plng-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.plng-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plng-btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plng-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(53, 92, 136, 0.42);
  background: #fff;
  color: var(--plng-accent, #355c88);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.plng-btn:disabled {
  opacity: 0.42;
  cursor: default;
  box-shadow: none;
}

.plng-slider {
  display: none;
}

.plng-slider-outer {
  overflow: hidden;
}

.plng-slider-track {
  display: flex;
  transition: transform 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.plng-slider-page {
  flex: 0 0 100%;
  min-width: 0;
}

.plng-slider-page-grid {
  display: grid;
  gap: 20px;
}

.plng-slider-page-cta,
.plng-slider-tail {
  margin-top: 14px;
}

.plng-slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  margin-top: 15px;
}

.plng-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d4d8de;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plng-slider-dot.active {
  background: #355c88;
  width: 28px;
}

.plng-mobile-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 249, 253, 0.98) 0%, rgba(237, 244, 251, 0.98) 100%);
  border: 1px solid rgba(53, 92, 136, 0.16);
  box-shadow: 0 10px 24px rgba(13, 26, 44, 0.07);
  color: #17345c;
  text-decoration: none;
}

.plng-mobile-more__label {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.plng-mobile-more__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(53, 92, 136, 0.1);
  color: #29486d;
}

/* ── Grid ── */
.plng-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ── Card ── */
.plng-card {
  min-width: 0;
  position: relative;
}

.plng-card__link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #111;
  aspect-ratio: 4 / 3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(9, 16, 28, 0.16);
}

.plng-card__link:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 38px rgba(9, 16, 28, 0.22);
}

/* ── Image ── */
.plng-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.plng-card__media img,
.plng-card__placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.18s ease;
}

.plng-card__link:hover .plng-card__media img {
  transform: scale(1.05);
}

.plng-card__placeholder {
  background: linear-gradient(135deg, #1e2d45 0%, #0d1a2d 100%);
}

.plng-card__media img.is-broken {
  opacity: 0;
}

/* ── Gradient overlay – bottom-heavy ── */
.plng-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 15, 27, 0.02) 0%,
    rgba(7, 15, 27, 0.10) 34%,
    rgba(7, 15, 27, 0.48) 64%,
    rgba(5, 10, 18, 0.88) 100%
  );
  pointer-events: none;
}

/* ── Body ── */
.plng-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* ── Meta row ── */
.plng-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plng-card__category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 46, 76, 0.84);
  color: #f8f7f2;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.plng-card__date {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Title ── */
.plng-card__title {
  display: block;
  color: #fff;
  font-size: clamp(1.08rem, 0.92rem + 0.58vw, 1.42rem);
  font-weight: 800;
  line-height: 1.18;
  text-wrap: balance;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Excerpt ── */
.plng-card__excerpt {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.42rem;
}

.plng-empty {
  color: #7d899c;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .plng-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plng-slider-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 681px) and (max-width: 1279px) {
  .plng-grid--desktop,
  .plng-footer--desktop {
    display: none;
  }

  .plng-slider {
    display: block;
  }

  .plng-header {
    justify-content: space-between;
  }

  .plng-controls {
    display: flex;
  }

  .plng-slider-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .plng-shell {
    margin-top: 1.25rem;
  }
  .plng-header {
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
  .plng-grid--desktop,
  .plng-footer--desktop {
    display: none;
  }
  .plng-slider {
    display: block;
  }
  .plng-controls {
    display: flex;
  }
  .plng-slider-page-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .plng-card__link {
    border-radius: 11px;
    aspect-ratio: 16 / 9;
  }
  .plng-card__title {
    font-size: 1.14rem;
  }
}
