.dam-search-wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.dam-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #d9e2f2;
  border-radius: 60px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 47, 135, 0.08);
  margin-bottom: 18px;
}

.dam-search-box input[type="text"] {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 18px;
  padding: 16px 20px;
  background: transparent;
  color: #1f2b3d;
}

.dam-search-box input[type="text"]::placeholder {
  color: #7a8798;
}

.dam-search-box button {
  background: #002f87;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.dam-search-box button:hover {
  background: #1548b3;
}

.dam-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e2f2;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0, 47, 135, 0.06);
  margin-bottom: 28px;
}

.dam-filter-bar select,
.dam-filter-bar button {
  min-height: 46px;
}

.dam-filter-bar select {
  min-width: 200px;
  border: 1px solid #d4dbe8;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #1f2b3d;
  font-size: 14px;
  outline: none;
}

.dam-filter-bar button {
  background: #eef3fb;
  color: #002f87;
  border: 1px solid #d4dbe8;
  border-radius: 12px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 600;
}

.dam-filter-bar button:hover {
  background: #e0ebfb;
}

.dam-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.dam-card {
  background: #fff;
  border: 1px solid #e2e8f3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 47, 135, 0.06);
  display: flex;
  flex-direction: column;
}

.dam-card-image {
  height: 30%;
  min-height: 160px;
  max-height: 160px;
  overflow: hidden;
  background: #f4f7fb;
  flex-shrink: 0;
}
.dam-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dam-file-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #002f87 0%, #1548b3 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.dam-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dam-card-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: #0f1d35;
}
.dam-card-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
  color: #0f1d35;
  min-height: calc(1.4em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}
.dam-card-description {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7a90;
  min-height: calc(1.5em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.dam-file-type {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7a90;
}

.dam-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.dam-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef3fb;
  color: #002f87;
  font-size: 12px;
  font-weight: 600;
}

.dam-pill-type {
  background: #edf7e8;
  color: #4f7d18;
}

.dam-pill-tag {
  background: #fff4df;
  color: #8a5a00;
}

.dam-download-btn {
  display: inline-block;
  background: #002f87;
  color: #fff !important;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.25s ease;
  margin-top: auto;
  align-self: flex-start;
}
.dam-download-btn:hover {
  background: #1548b3;
}

.dam-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border: 1px dashed #d2dceb;
  border-radius: 18px;
  color: #5f6f87;
}

@media (max-width: 1024px) {
  .dam-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dam-search-box {
    flex-direction: column;
    border-radius: 24px;
  }

  .dam-search-box button,
  .dam-search-box input[type="text"] {
    width: 100%;
  }

  .dam-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .dam-filter-bar select,
  .dam-filter-bar button {
    width: 100%;
  }

  .dam-results-grid {
    grid-template-columns: 1fr;
  }
}


.dam-initial-message {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border: 1px dashed #d2dceb;
  border-radius: 18px;
  color: #5f6f87;
  font-size: 16px;
}
