.sd-brochures-hubdb-dynamic-listings {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 20px;
}

.sd-brochures-hubdb-dynamic-listings .content-section {
  position: relative;
  margin-bottom: 40px;
}
.sd-brochures-hubdb-dynamic-listings .hd-headline {
  color: #5187A3;
  text-align: center;
}
.sd-brochures-hubdb-dynamic-listings .card-image {
  width: 100%;
  height: 220px;
  min-height: 220px; /* Add minimum height */
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
  background-color: #f5f5f5;
  display: flex; /* Add flexbox */
  align-items: center; /* Center content */
  justify-content: center; /* Center content */
}
.sd-brochures-hubdb-dynamic-listings .card-image {
  width: 100%;
  height: 220px;
  min-height: 220px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
  background-color: #f5f5f5;
}

.sd-brochures-hubdb-dynamic-listings .card-image.card-image-placeholder {
  background-color: #E8F4F8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-brochures-hubdb-dynamic-listings .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide empty card-image divs if they have no img child */
.sd-brochures-hubdb-dynamic-listings .card-image:empty {
  display: none;
}
.sd-brochures-hubdb-dynamic-listings .card p {
  margin: 0 !important;
  color: #34373B;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 25.2px */
  /* Add these properties for 2-line truncation */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coming-soon-message p {
  color: #1E5D85;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  text-align: center;
}
.sd-brochures-hubdb-dynamic-listings .preheading {
  display: flex;
  gap: 12px;
  position: relative;
  justify-content: center;
  z-index: 3;
}
.sd-brochures-hubdb-dynamic-listings .no-results-message {
  text-align: center;
  padding: 60px 20px;
  width: 100%;
}

.sd-brochures-hubdb-dynamic-listings .no-results-message p {
  font-size: 24px;
  color: #5187A3;
  font-weight: 600;
  margin: 0;
}
.sd-brochures-hubdb-dynamic-listings .body {
  text-align: center
}
.sd-brochures-hubdb-dynamic-listings .preheading .hd-headline {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}
.sd-brochures-hubdb-dynamic-listings .svg-section {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

/* Filter Section */
.sd-brochures-hubdb-dynamic-listings .filter-section {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sd-brochures-hubdb-dynamic-listings .filter-dropdown {
  position: relative;
  flex: 1;
/*   min-width: 250px;
  max-width: 490px; /* Add this */ */
}
.sd-brochures-hubdb-dynamic-listings .filter-dropdown .category-select-container {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sd-brochures-hubdb-dynamic-listings .filter-dropdown .category-select-container .category-select-tag {
  display: flex;
  height: 40px;
  padding: 8px 10px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 10px;
  border: 1px solid #8DD700;
  background: #FFFFFF;
  cursor: pointer;
  color: #34373B;
  font-family: "DIN Next LT Pro";
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 14px */
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sd-brochures-hubdb-dynamic-listings .filter-dropdown .category-select-container .category-select-tag.active {
  background: #8DD700;
}

.sd-brochures-hubdb-dynamic-listings .custom-select {
  position: relative;
  width: 100%;
}

.sd-brochures-hubdb-dynamic-listings .select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5px 10px 10px;
  border-radius: 10px;
  border: 1px solid #D9D9D9;
  background-color: white;
  cursor: pointer;
  user-select: none;
}

.sd-brochures-hubdb-dynamic-listings .select-trigger:hover {
  border-color: #5187A3;
}

.sd-brochures-hubdb-dynamic-listings .select-text {
  font-size: 16px;
  color: #34373B;
  font-family: inherit;
}

.sd-brochures-hubdb-dynamic-listings .dropdown-icon {
  width: 47px;
  height: 43px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sd-brochures-hubdb-dynamic-listings .custom-select.open .dropdown-icon {
  transform: rotate(180deg);
}

.sd-brochures-hubdb-dynamic-listings .select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: white;
  border: 2px solid #00A4D5;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sd-brochures-hubdb-dynamic-listings .custom-select.open .select-options {
  display: block;
}

.sd-brochures-hubdb-dynamic-listings .select-option {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 16px;
  color: #34373B;
  transition: background-color 0.2s ease;
}

.sd-brochures-hubdb-dynamic-listings .select-option:hover {
  background-color: #E8F4F8;
}

.sd-brochures-hubdb-dynamic-listings .select-option.selected {
  background-color: #00A4D5;
  color: white;
}

.sd-brochures-hubdb-dynamic-listings .filter-button {
  flex-shrink: 0;
  width: 100%;
}

.sd-brochures-hubdb-dynamic-listings .filter-button .btn {
  width: 100% !important;
  text-align: center !important;
  display: inline-block !important;
}
/* Card container - mobile first (1 column) */
.sd-brochures-hubdb-dynamic-listings .card-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
}

.sd-brochures-hubdb-dynamic-listings .icon-text-section {
  gap: 16px;
  display: flex;
  align-items: start;
}

.sd-brochures-hubdb-dynamic-listings .icon-text-section .hd-headline {
  margin:0;
  color: #34373B;
}

.sd-brochures-hubdb-dynamic-listings .card p {
  margin: 0 !important;
  color: #34373B;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 25.2px */
}

.sd-brochures-hubdb-dynamic-listings .card {
  border: 1px solid  #DDE1E6;
  display: flex;
  padding: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: left;
  gap: 0;
  border-radius: 20px;
  width: 100%;
  min-height: 295.601px;
  overflow: hidden;
}

.sd-brochures-hubdb-dynamic-listings .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
}
.sd-brochures-hubdb-dynamic-listings .learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1C1B1F;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  align-items: end;
}

.sd-brochures-hubdb-dynamic-listings .learn-more-link:hover {
  gap: 12px;
  color: #8DD700
}
.learn-more-link:hover svg path {
  fill: #8DD700;
}

.sd-brochures-hubdb-dynamic-listings .learn-more-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.sd-brochures-hubdb-dynamic-listings .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sd-brochures-hubdb-dynamic-listings .card  .content-section {
  padding: 24px 16px 16px 16px;
  gap: 16px;
  display: flex;
  flex-direction: column;
}
.sd-brochures-hubdb-dynamic-listings .card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
}

.sd-brochures-hubdb-dynamic-listings .category-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: #53D6BC;
  color: #34373B;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 14px */
  border-radius: 100px;
}

.sd-brochures-hubdb-dynamic-listings .card > .icon-text-section {
  padding-top: 20px;
}
/* Pagination */
.sd-brochures-hubdb-dynamic-listings .pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 20px 0;
}

.sd-brochures-hubdb-dynamic-listings .pagination-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 43px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.sd-brochures-hubdb-dynamic-listings .pagination-arrow svg {
  width: 47px;
  height: 43px;
}

.sd-brochures-hubdb-dynamic-listings .pagination-arrow:hover:not(:disabled) {
  opacity: 0.8;
}

.sd-brochures-hubdb-dynamic-listings .pagination-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sd-brochures-hubdb-dynamic-listings .pagination-prev svg {
  transform: rotate(-90deg);
}

.sd-brochures-hubdb-dynamic-listings .pagination-next svg {
  transform: rotate(-90deg);
}

.sd-brochures-hubdb-dynamic-listings .pagination-numbers {
  display: flex;
  gap: 8px;
}

.sd-brochures-hubdb-dynamic-listings .pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 43px;
  padding: 0;
  border: 2px solid #19C3AF;
  border-radius: 5px;
  background-color: white;
  color: #5187A3;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sd-brochures-hubdb-dynamic-listings .pagination-number:hover {
  background-color: #E8F4F8;
}

.sd-brochures-hubdb-dynamic-listings .pagination-number.active {
  background-color: #19C3AF;
  border-color: #19C3AF;
  color: white;
}

.sd-brochures-hubdb-dynamic-listings .pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 43px;
  color: #5187A3;
  font-size: 16px;
  font-weight: 600;
}
.sd-brochures-hubdb-dynamic-listings .card > .button {
  padding-bottom: 20px;
}

/* Tablet - 2 columns */
@media (min-width: 768px) {
  .sd-brochures-hubdb-dynamic-listings .filter-button {
    width: auto;
  }
  .sd-brochures-hubdb-dynamic-listings .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .sd-brochures-hubdb-dynamic-listings .icon-text-section .hd-headline {
    text-align:left
  }
}

/* Desktop - 4 columns */
@media (min-width: 1024px) {
  .sd-brochures-hubdb-dynamic-listings .card-container {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Tablet - 2 columns */
@media (max-width: 992px) {
  .sd-brochures-hubdb-dynamic-listings {
    margin: 0 20px;
  }
}

/* Mobile responsive for filters */
@media (max-width: 767px) {
  .sd-brochures-hubdb-dynamic-listings .filter-section {
    flex-direction: column;
  }

  .sd-brochures-hubdb-dynamic-listings .filter-dropdown {
    width: 100%;
  }

  .sd-brochures-hubdb-dynamic-listings .filter-button {
    width: 100%;
  }

  .sd-brochures-hubdb-dynamic-listings .filter-button .button,
  .sd-brochures-hubdb-dynamic-listings .filter-button .btn {
    width: 100%;
    display: block;
  }
}

@media (max-width: 600px) {
  .sd-brochures-hubdb-dynamic-listings .filter-dropdown .category-select-container .category-select-tag {
    flex: 1 1 100%;
  }
}