.d2n-list-wrap,
.d2n-list-wrap * {
  box-sizing: border-box;
}

.d2n-list-wrap {
  width: min(1290px, calc(100% - 32px));
  margin: 0 auto;
  color: #111111;
  font-family: inherit;
}

.d2n-list-wrap a {
  color: inherit;
  text-decoration: none;
}

.d2n-list-wrap img {
  max-width: none;
}

/* Header */
.d2n-home-head,
.d2n-archive-head {
  padding: 28px 0 22px;
}

.d2n-home-kicker,
.d2n-archive-kicker {
  margin-bottom: 6px;
  color: #1f4a8a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.d2n-home-head h1,
.d2n-archive-head h1 {
  margin: 0;
  color: #111111;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.d2n-home-head p,
.d2n-archive-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #111111;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

/* Section */
.d2n-list-section {
  padding: 0 0 44px;
}

.d2n-home-section {
  padding-top: 22px;
}

.d2n-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.d2n-section-head h2 {
  margin: 0;
  color: #111111;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.d2n-section-head p {
  max-width: 680px;
  margin: 6px 0 0;
  color: #555555;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.d2n-view-all {
  flex: 0 0 auto;
  color: #1f4a8a !important;
  font-size: 13px;
  font-weight: 500;
}

.d2n-view-all:hover {
  text-decoration: underline;
}

/* Grid */
.d2n-card-list {
  min-width: 0;
}

.d2n-card-list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 16px;
}

/* Slider */
.d2n-slider-shell {
  position: relative;
}

.d2n-card-list--slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.d2n-card-list--slider::-webkit-scrollbar {
  display: none;
}

.d2n-card-list--slider .d2n-list-card {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
}

/* Card */
.d2n-list-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.d2n-list-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.d2n-list-card-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eeeeee;
}

.d2n-list-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.d2n-list-card-body {
  display: flex;
  flex-direction: column;
  min-height: 154px;
  padding: 17px 16px 18px;
  background: #ffffff;
}

.d2n-list-card-body h3 {
  margin: 0;
  color: #111111;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.d2n-list-card-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 42px;
  margin: 8px 0 0;
  color: #5f6470;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.45;
}

.d2n-card-location {
  margin-top: auto;
  padding-top: 14px;
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Slider buttons */
.d2n-slide-btn {
  position: absolute;
  top: 37%;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.d2n-slide-btn:hover {
  background: rgba(17, 17, 17, 0.92);
}

.d2n-slide-btn.is-disabled {
  opacity: 0.16;
  pointer-events: none;
}

.d2n-slide-prev {
  left: -12px;
}

.d2n-slide-next {
  right: -12px;
}

.d2n-slider-shell.is-not-scrollable .d2n-slide-btn {
  display: none;
}

/* Empty */
.d2n-empty-list {
  padding: 28px;
  border-radius: 4px;
  background: #f6f6f6;
  color: #555555;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

/* Admin */
.d2n-admin-simple-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.d2n-admin-simple-box input,
.d2n-admin-simple-box textarea {
  width: 100%;
  border-radius: 6px;
}

.d2n-admin-simple-box p {
  margin: 10px 0 0;
}

.d2n-admin-simple-box .description {
  color: #646970;
  font-size: 12px;
  line-height: 1.45;
}

/* Tablet */
@media (max-width: 1024px) {
  .d2n-card-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d2n-card-list--slider .d2n-list-card {
    flex-basis: calc((100% - 16px) / 2);
  }
}

/* Mobile */
@media (max-width: 720px) {
  .d2n-list-wrap {
    width: min(100% - 24px, 1290px);
  }

  .d2n-home-head,
  .d2n-archive-head {
    padding: 22px 0 18px;
  }

  .d2n-home-kicker,
  .d2n-archive-kicker {
    font-size: 13px;
  }

  .d2n-home-head h1,
  .d2n-archive-head h1 {
    font-size: 30px;
    line-height: 1.18;
  }

  .d2n-home-head p,
  .d2n-archive-head p {
    font-size: 15px;
  }

  .d2n-section-head {
    display: block;
    margin-bottom: 12px;
  }

  .d2n-section-head h2 {
    font-size: 24px;
  }

  .d2n-section-head p {
    font-size: 14px;
  }

  .d2n-view-all {
    display: inline-flex;
    margin-top: 8px;
  }

  .d2n-card-list--grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .d2n-card-list--slider {
    gap: 14px;
  }

  .d2n-card-list--slider .d2n-list-card {
    flex-basis: 86%;
  }

  .d2n-slide-btn {
    display: none;
  }

  .d2n-list-card {
    border-radius: 4px;
  }

  .d2n-list-card-body {
    min-height: 142px;
    padding: 15px 15px 16px;
  }

  .d2n-list-card-body h3 {
    font-size: 20px;
  }

  .d2n-list-card-body p {
    font-size: 14px;
    line-height: 1.45;
  }
}
