/**
 * PLD Custom Header Search & Full Figma Search Modal Styles
 * Supports Popular Searches Pills, Grouped Multi-Column Category Results, Sharp Corners, and Mobile-First Precision
 * Pixel-Perfect match to Figma "Search Pages" -> "Mobile - v2"
 *
 * @package PLD
 */

/* ==========================================================================
   1. Header Search Input & Triggers (Desktop / Tablet / Mobile)
   ========================================================================== */
.pld-header-search-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.pld-header-search-form {
  position: relative;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.pld-search-input-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #009ed5;
  border-radius: 0 !important;
  height: 36px;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.pld-search-input-box:hover,
.pld-search-input-box:focus-within {
  border-color: #0077b6;
  box-shadow: 0 0 0 2px rgba(0, 158, 213, 0.2);
}

.pld-search-field-input {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 12px !important;
  font-family:
    Urbanist,
    Roboto,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #212529 !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

.pld-search-field-input::placeholder {
  color: #3c7891 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

.pld-search-field-input::-webkit-input-placeholder {
  color: #3c7891 !important;
  opacity: 1 !important;
}

.pld-search-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0 !important;
  padding: 0 6px;
  cursor: pointer;
  color: #888;
  font-size: 18px;
  line-height: 1;
}

.pld-search-clear-btn.is-visible {
  display: flex;
}

.pld-search-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 158, 213, 0.25);
  border-top-color: #009ed5;
  border-radius: 50%;
  animation: pldSearchSpin 0.6s linear infinite;
  margin-right: 6px;
  flex-shrink: 0;
}

.pld-search-spinner.is-loading {
  display: block;
}

@keyframes pldSearchSpin {
  to {
    transform: rotate(360deg);
  }
}

.pld-search-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0 !important;
  border-left: 1px solid #009ed5;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #009ed5;
  transition: background-color 0.16s ease;
}

.pld-search-submit-btn:hover {
  background-color: #eff9fd;
}

.pld-search-submit-btn svg {
  width: 18px;
  height: 18px;
  stroke: #009ed5;
  fill: none;
}

/* ==========================================================================
   Responsive: Laptop (1024px) Compact Mode
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 992px) {
  .pld-search-col {
    flex: 0 0 36px !important;
    width: 36px !important;
    max-width: 36px !important;
    position: relative !important;
  }

  .pld-header-search-wrap {
    width: 36px;
    height: 36px;
  }

  .pld-header-search-wrap .pld-search-input-box {
    width: 36px;
    height: 36px;
    border: 1px solid #009ed5;
    border-radius: 0 !important;
  }

  .pld-header-search-wrap .pld-search-field-input {
    display: none;
  }

  .pld-header-search-wrap .pld-search-submit-btn {
    border-left: none;
    width: 36px;
    height: 36px;
    border-radius: 0 !important;
  }
}

/* ==========================================================================
   2. FULL FIGMA SEARCH MODAL POPUP (Exact Figma Match)
   ========================================================================== */
.pld-search-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 99999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  box-sizing: border-box !important;
}

.pld-search-modal-overlay.is-active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.pld-search-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 940px;
  max-height: 90vh;
  background: #fff;
  border-radius: 0 !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.97) translateY(-6px);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.pld-search-modal-overlay.is-active .pld-search-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Modal Title */
.pld-search-modal-title {
  font-family:
    Urbanist,
    Roboto,
    -apple-system,
    sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0077b6 !important;
  text-align: center !important;
  margin: 24px 20px 16px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.3px;
}

/* Modal Search Row (Figma Pixel-Perfect) */
.pld-modal-search-form {
  margin: 0 24px 18px !important;
  padding: 0 !important;
}

.pld-modal-search-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.pld-modal-search-box {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  background: #fff !important;
  border: 2px solid #009ed5 !important;
  border-radius: 0 !important;
  height: 46px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

.pld-modal-search-box:focus-within {
  border-color: #0077b6 !important;
  box-shadow: 0 0 0 3px rgba(0, 158, 213, 0.2) !important;
}

.pld-modal-search-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 10px !important;
  flex-shrink: 0 !important;
}

.pld-modal-search-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #009ed5 !important;
}

.pld-modal-search-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  font-family: Urbanist, Roboto, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  outline: none !important;
  box-shadow: none !important;
}

.pld-modal-search-input::placeholder {
  color: #3c7891 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.pld-modal-search-input::-webkit-input-placeholder {
  color: #3c7891 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}

.pld-modal-search-clear {
  display: none;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  color: #0077b6 !important;
  font-family: Urbanist, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  margin-right: 4px !important;
  transition: color 0.15s ease !important;
}

.pld-modal-search-clear.is-visible {
  display: block !important;
}

.pld-modal-search-clear:hover {
  color: #ee3124 !important;
  text-decoration: underline !important;
}

.pld-modal-search-spinner {
  display: none;
  width: 18px !important;
  height: 18px !important;
  border: 2.2px solid rgba(0, 158, 213, 0.2) !important;
  border-top-color: #009ed5 !important;
  border-radius: 50% !important;
  animation: pldSearchSpin 0.6s linear infinite !important;
  margin-left: 6px !important;
  flex-shrink: 0 !important;
}

.pld-modal-search-spinner.is-loading {
  display: block !important;
}

.pld-modal-search-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  padding: 6px !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
  transition:
    color 0.15s ease,
    transform 0.15s ease !important;
}

.pld-modal-search-close:hover {
  color: #0f172a !important;
  transform: scale(1.1) !important;
}

.pld-modal-search-close svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #64748b !important;
}

.pld-modal-search-close:hover svg {
  stroke: #0f172a !important;
}

/* Modal Content Area */
.pld-modal-search-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 24px 22px;
  max-height: 540px;
}

.pld-modal-search-content::-webkit-scrollbar {
  width: 6px;
}
.pld-modal-search-content::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 0;
}

.pld-section-subtitle {
  font-size: 14px;
  font-weight: 800;
  color: #212529;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Popular Searches Pills */
.pld-popular-searches-section {
  margin-bottom: 20px;
}

.pld-popular-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pld-popular-pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #009ed5;
  border-radius: 50px !important;
  color: #0077b6;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.pld-popular-pill:hover,
.pld-popular-pill:active {
  background-color: #eff9fd;
  border-color: #0077b6;
  color: #0077b6;
  transform: translateY(-1px);
}

/* Explore Grid */
.pld-browse-category-section {
  margin-top: 6px;
}

.pld-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pld-explore-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #dcebf3;
  border-radius: 0 !important;
  text-decoration: none !important;
  text-align: left;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.pld-explore-card:hover,
.pld-explore-card:active {
  border-color: #009ed5;
  background-color: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 158, 213, 0.08);
  transform: translateY(-1px);
}

.pld-explore-icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pld-explore-icon-box.icon-blue {
  background-color: #dbe9ef;
}
.pld-explore-icon-box.icon-purple {
  background-color: #ece5f4;
}
.pld-explore-icon-box.icon-orange {
  background-color: #f5e8dc;
}
.pld-explore-icon-box.icon-green {
  background-color: #e4eddf;
}
.pld-explore-icon-box.icon-red {
  background-color: #f7e0ec;
}
.pld-explore-icon-box.icon-gray {
  background-color: #e1e3e5;
}

.pld-explore-label {
  font-size: 16px;
  font-weight: 800;
  color: #212529;
  line-height: 1.25;
}

.pld-explore-card:hover .pld-explore-label {
  color: #0077b6;
}

/* ==========================================================================
   3. Not Found State (Exact Figma Match)
   ========================================================================== */
.pld-state-not-found {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.pld-not-found-center-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 8px auto 22px;
  padding: 0 12px;
  box-sizing: border-box;
  width: 100%;
}

.pld-not-found-illus {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.pld-not-found-illus img,
.pld-not-found-illus svg {
  display: block;
  margin: 2rem 0 auto;
  max-width: 150px;
  height: auto;
  width: 130px;
}

.pld-not-found-heading {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #006bb1 !important;
  text-align: center !important;
  margin: 0 0 6px !important;
  line-height: 1.3 !important;
  width: 100%;
}

.pld-not-found-subtext {
  font-family: Urbanist, Roboto, sans-serif !important;
  font-size: 14.5px !important;
  color: #64748b !important;
  text-align: center !important;
  margin: 0 auto !important;
  max-width: 520px !important;
  line-height: 1.45 !important;
  display: block;
}

.pld-explore-section {
  margin-top: 4px;
  margin-bottom: 18px;
}

/* Modal Footer Banner (Inside Not Found State - Desktop: Horizontal bar, Mobile: Centered card) */
.pld-modal-footer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f3f9fb;
  border-radius: 0 !important;
  padding: 14px 20px;
  box-sizing: border-box;
  width: 100%;
  margin-top: 14px;
  margin-bottom: 6px;
}

.pld-modal-footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
  min-width: 0;
}

.pld-modal-footer-title {
  font-family: Urbanist, Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #006bb1 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.pld-modal-footer-sub {
  font-family: Urbanist, Roboto, sans-serif !important;
  font-size: 13px !important;
  color: #475569 !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

.pld-modal-contact-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  background: #0077b6 !important;
  color: #fff !important;
  font-family: Urbanist, Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition:
    background-color 0.16s ease,
    transform 0.16s ease !important;
}

.pld-modal-contact-btn:hover {
  background: #005a8a !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   4. Grouped Multi-Column Results View (Exact Figma 2-Column Desktop Match)
   ========================================================================== */
.pld-grouped-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 36px;
  row-gap: 24px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.pld-category-result-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.pld-category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none;
}

.pld-category-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pld-cat-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 6px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pld-cat-badge.badge-blue {
  background-color: #d6e6ec;
  color: #006bb1;
}

.pld-cat-badge.badge-purple {
  background-color: #f3e8ff;
  color: #9333ea;
}

.pld-cat-badge.badge-green {
  background-color: #e8f5e9;
  color: #16a34a;
}

.pld-cat-badge.badge-pink {
  background-color: #fce8ef;
  color: #e11d48;
}

.pld-cat-badge svg {
  width: 18px;
  height: 18px;
}

.pld-category-header-title {
  font-size: 16px;
  font-weight: 800;
  color: #212529;
  white-space: nowrap;
}

.pld-category-header-view-all {
  font-size: 14px;
  font-weight: 700;
  color: #0077b6;
  text-decoration: none !important;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.pld-category-header-view-all:hover {
  color: #005a8a;
  text-decoration: underline !important;
}

.pld-category-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Match query highlighting (Exact yellow background from screenshot) */
.pld-search-highlight,
mark.pld-search-highlight {
  background-color: #f6c21b !important;
  color: #212529 !important;
  padding: 1px 2px !important;
  border-radius: 2px !important;
  font-weight: inherit !important;
  text-decoration: none !important;
  display: inline !important;
}

/* Result Card in Group (Clean, unbordered list item) */
.pld-group-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  background: transparent;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.pld-group-item-card:hover,
.pld-group-item-card.is-selected {
  opacity: 0.88;
  transform: translateX(3px);
}

.pld-group-item-thumb {
  width: 92px !important;
  height: 66px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  min-height: 66px !important;
  max-height: 66px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  display: block !important;
  background-color: #eff9fd !important;
  border: none !important;
  flex-shrink: 0 !important;
}

.pld-group-item-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pld-group-item-title {
  font-size: 16px;
  font-weight: 800;
  color: #006bb1;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  margin: 0;
}

.pld-group-item-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  margin: 0;
}

.pld-group-item-arrow {
  color: #93c5fd;
  stroke: #93c5fd;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 4px;
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}

.pld-group-item-card:hover .pld-group-item-arrow {
  color: #009ed5;
  stroke: #009ed5;
  transform: translateX(2px);
}

/* Bottom All Results Bar */
.pld-modal-all-results-bar {
  background: #eff9fd;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 20px;
  margin-bottom: 10px;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.pld-modal-all-results-bar:hover {
  background-color: #e0f2fe;
  border-color: #009ed5;
}

.pld-modal-all-results-link {
  font-size: 16px;
  font-weight: 800;
  color: #006bb1;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  box-sizing: border-box;
  cursor: pointer;
  transition: color 0.15s ease;
}

.pld-modal-all-results-link svg {
  width: 18px;
  height: 18px;
  stroke: #0077b6;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.pld-modal-all-results-link:hover {
  color: #0077b6;
  text-decoration: none !important;
}

.pld-modal-all-results-link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   5. MOBILE VIEWPORT OVERRIDES (< 768px) — Exact Figma Screen Match
   ========================================================================== */
@media (max-width: 767px) {
  .pld-search-modal-overlay {
    padding: 0 !important;
    background: #fff !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  .pld-search-modal-dialog {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .pld-search-modal-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 18px 16px 12px !important;
    text-align: left !important;
  }

  .pld-modal-search-form {
    margin: 0 16px 14px !important;
  }

  .pld-modal-search-wrap {
    gap: 8px !important;
  }

  .pld-modal-search-box {
    height: 46px !important;
    padding: 0 12px !important;
  }

  .pld-modal-search-icon {
    margin-right: 8px !important;
  }

  .pld-modal-search-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .pld-modal-search-input {
    font-size: 14px !important;
  }

  .pld-modal-search-close {
    padding: 4px !important;
  }

  .pld-modal-search-close svg {
    width: 22px !important;
    height: 22px !important;
  }

  .pld-modal-search-content {
    padding: 0 16px 20px !important;
    max-height: none !important;
    flex: 1 1 auto !important;
  }

  .pld-popular-searches-section {
    margin-bottom: 18px !important;
  }

  .pld-popular-pills-list {
    gap: 8px !important;
  }

  .pld-popular-pill {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }

  .pld-explore-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .pld-explore-card {
    padding: 9px 10px !important;
    gap: 8px !important;
  }

  .pld-explore-icon-box {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  .pld-explore-icon-box svg {
    width: 18px !important;
    height: 18px !important;
  }

  .pld-explore-label {
    font-size: 14px !important;
  }

  /* Grouped Live Results on Mobile */
  .pld-grouped-results-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-bottom: 16px !important;
  }

  .pld-category-block-header {
    margin-bottom: 10px !important;
  }

  .pld-cat-badge {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 6px !important;
  }

  .pld-category-header-title {
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  .pld-category-header-view-all {
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .pld-category-items-list {
    gap: 10px !important;
  }

  .pld-group-item-card {
    padding: 6px 0 !important;
    gap: 12px !important;
  }

  .pld-group-item-thumb {
    width: 92px !important;
    height: 66px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    min-height: 66px !important;
    max-height: 66px !important;
    border-radius: 6px !important;
  }

  .pld-group-item-title {
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .pld-group-item-excerpt {
    font-size: 12px !important;
  }

  .pld-modal-all-results-bar {
    margin-top: 18px !important;
    margin-bottom: 12px !important;
  }

  .pld-modal-all-results-link {
    padding: 13px 16px !important;
    font-size: 14px !important;
  }

  /* Not Found State on Mobile */
  .pld-not-found-center-hero {
    margin: 6px auto 0 !important;
  }

  .pld-not-found-illus svg {
    width: 56px !important;
    height: 56px !important;
  }

  .pld-not-found-heading {
    font-size: 20px !important;
  }

  .pld-not-found-subtext {
    font-size: 16px !important;
    margin-bottom: 4rem !important;
  }

  .pld-modal-footer-banner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 22px 18px 20px !important;
    margin-top: 14px !important;
    margin-bottom: 8px !important;
  }

  .pld-modal-footer-title {
    font-size: 15.5px !important;
    text-align: center !important;
    margin-bottom: 2px !important;
  }

  .pld-modal-footer-sub {
    font-size: 13.5px !important;
    text-align: center !important;
    margin-bottom: 14px !important;
  }

  .pld-modal-contact-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 13px 18px !important;
  }
}

/* ==========================================================================
   6. SEARCH RESULTS PAGE & MOBILE FILTER DRAWER STYLES
   ========================================================================== */
.pld-search-results-page {
  background: #fafbfd;
  min-height: 80vh;
  padding: 24px 0 60px;
  box-sizing: border-box;
}

.pld-search-page-header {
  margin-bottom: 18px;
}

.pld-search-page-title {
  font-family: Urbanist, Roboto, sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0077b6 !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.2 !important;
}

.pld-search-active-query-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pld-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff9fd;
  border: 1px solid #009ed5;
  border-radius: 20px;
  padding: 4px 12px;
  font-family: Urbanist, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #0077b6;
}

.pld-search-chip-clear {
  background: transparent;
  border: none;
  color: #ee3124;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
}

/* Action Controls Bar (Filters Button + Sort Dropdown) */
.pld-search-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  margin-bottom: 22px;
  box-sizing: border-box;
}

.pld-search-filter-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #009ed5;
  border-radius: 0 !important;
  padding: 7px 14px;
  font-family: Urbanist, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #0077b6;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pld-search-filter-trigger-btn:hover {
  background: #eff9fd;
}

.pld-search-filter-badge {
  background: #0077b6;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

.pld-search-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pld-search-sort-label {
  font-family: Urbanist, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.pld-search-sort-select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0 !important;
  padding: 6px 10px;
  font-family: Urbanist, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  cursor: pointer;
}

/* Sections */
.pld-search-section {
  margin-bottom: 32px;
}

.pld-search-section-title {
  font-family: Urbanist, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 0 14px 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pld-search-section-count {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
}

/* Literacy Blog Cards */
.pld-search-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pld-search-blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  transition: all 0.16s ease;
  overflow: hidden;
}

.pld-search-blog-card:hover {
  border-color: #009ed5;
  box-shadow: 0 6px 16px rgba(0, 158, 213, 0.1);
  transform: translateY(-2px);
}

.pld-search-blog-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background-color: #eff9fd;
  display: block;
}

.pld-search-blog-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.pld-search-blog-tag {
  font-family: Urbanist, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.pld-search-blog-title {
  font-family: Urbanist, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #0077b6;
  line-height: 1.3;
  margin-bottom: 6px;
}

.pld-search-blog-excerpt {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1 1 auto;
}

.pld-search-blog-link {
  font-family: Urbanist, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #0077b6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Programs & Resources Product Grid */
.pld-search-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pld-search-product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  padding: 10px;
  text-decoration: none !important;
  transition: all 0.16s ease;
  box-sizing: border-box;
  position: relative;
}

.pld-search-product-card:hover {
  border-color: #009ed5;
  box-shadow: 0 6px 16px rgba(0, 158, 213, 0.1);
  transform: translateY(-2px);
}

.pld-search-product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #eff9fd;
  border: 1px solid #009ed5;
  color: #0077b6;
  font-family: Urbanist, sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
}

.pld-search-product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  background-color: #f8fafc;
}

.pld-search-product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pld-search-product-title {
  font-family: Urbanist, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.pld-search-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.pld-search-product-price {
  font-family: Urbanist, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #0077b6;
}

.pld-search-add-btn {
  background: #86c440;
  color: #fff !important;
  border: none;
  border-radius: 0 !important;
  padding: 5px 10px;
  font-family: Urbanist, sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.pld-search-add-btn:hover {
  background: #75b332;
}

/* ==========================================================================
   7. ASIDE - FILTERS DRAWER / MODAL (Exact Figma Match)
   ========================================================================== */
.pld-filter-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1000002;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

.pld-filter-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.pld-filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 1000003;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.pld-filter-drawer-backdrop.is-open .pld-filter-drawer {
  transform: translateX(0);
}

.pld-filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.pld-filter-drawer-title {
  font-family: Urbanist, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pld-filter-drawer-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.pld-filter-drawer-close:hover {
  color: #0f172a;
}

.pld-filter-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px;
  -webkit-overflow-scrolling: touch;
}

.pld-filter-group {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.pld-filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.pld-filter-group-title {
  font-family: Urbanist, sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pld-filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pld-filter-checkbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.pld-filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Urbanist, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}

.pld-filter-checkbox-label input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #009ed5;
  cursor: pointer;
}

.pld-filter-count {
  font-family: Urbanist, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

/* Year level pills */
.pld-filter-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.pld-filter-year-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: Urbanist, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.pld-filter-year-pill:hover {
  background: #eff9fd;
  border-color: #009ed5;
  color: #0077b6;
}

.pld-filter-year-pill.is-checked {
  background: #0077b6;
  border-color: #0077b6;
  color: #fff;
}

/* Drawer Sticky Footer */
.pld-filter-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  gap: 10px;
}

.pld-filter-clear-all-btn {
  background: transparent;
  border: none;
  font-family: Urbanist, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  padding: 6px 8px;
  transition: color 0.15s ease;
}

.pld-filter-clear-all-btn:hover {
  color: #ee3124;
  text-decoration: underline;
}

.pld-filter-apply-btn {
  flex: 1 1 auto;
  background: #0077b6;
  color: #fff;
  border: none;
  border-radius: 0 !important;
  padding: 10px 18px;
  font-family: Urbanist, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.16s ease;
}

.pld-filter-apply-btn:hover {
  background: #005a8a;
}

/* Responsive Search Results */
@media (max-width: 991px) {
  .pld-search-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .pld-search-blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 576px) {
  .pld-search-results-page {
    padding: 14px 0 36px;
  }

  .pld-search-page-title {
    font-size: 22px !important;
  }

  .pld-search-blog-grid {
    grid-template-columns: 1fr !important;
  }

  .pld-search-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .pld-search-product-card {
    padding: 8px !important;
  }

  .pld-search-product-title {
    font-size: 12.5px !important;
    min-height: 32px;
  }

  .pld-search-product-price {
    font-size: 13.5px !important;
  }

  .pld-search-add-btn {
    font-size: 11.5px !important;
    padding: 5px 8px !important;
  }
}
