/* =========================================================
   GLOBAL: FORCE CLEAN WHITE UI
========================================================= */
body,
.main,
.wrapper,
#content,
.primary,
.secondary,
.module,
.module-content,
.box,
.panel,
.panel-default,
.panel-heading,
.panel-body,
.card,
.resource-view,
.dataset-item,
.organization-item {
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

/* =========================================================
   REMOVE SEARCH RESULT / SIDEBAR BOXES
========================================================= */
.dataset-item,
.search-result,
.search-form,
.filter-panel,
.secondary .module,
aside .module {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* =========================================================
   REMOVE DATASET INFO PANELS
========================================================= */
.notes,
.dataset-resources,
.dataset-details {
  border: none !important;
  background: transparent !important;
}

/* =========================================================
   REMOVE TABLE / DATATABLE BORDERS
========================================================= */
table,
.table,
.datatables_wrapper {
  border: none !important;
}

/* =========================================================
   NAVBAR & FOOTER CLEAN
========================================================= */
footer {
  background: #ffffff !important;
  border-top: 1px solid #eee;
}

.masthead {
  background: #ffffff !important;
  border-bottom: 1px solid #eee;
}

/* =========================================================
   REMOVE FACET FILTER BOX UI
========================================================= */
.search-sidebar,
.search-filters,
.secondary,
.secondary .module,
.filters,
.filters .module,
.facet,
.module.module-narrow {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.module-heading {
  background: transparent !important;
  border: none !important;
  padding: 6px 0 !important;
  font-weight: 600;
}

.facet-list,
.list-group,
.list-group-item {
  border: none !important;
  background: transparent !important;
}

.facet-list li,
.list-group-item {
  border-bottom: none !important;
}

.badge,
.item-count {
  background: transparent !important;
  border-radius: 0 !important;
  color: #777 !important;
  font-weight: 500;
}

/* =========================================================
   DATASET CARD — FULL BLUE BACKGROUND
========================================================= */
.dataset-item {
  display: flex !important;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem !important;

  background-color: #F5F8FF !important; /* FULL CARD BLUE */
  border: 1px solid hsl(210deg 50% 87%) !important;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  margin-bottom: 14px !important;
  margin: 0;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: DM Sans, sans-serif, system-ui, Helvetica, Arial;
  text-decoration: none;
}



/* Hover lift */
.dataset-item:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.12) !important;
  cursor: pointer;
  text-decoration: none;
}

/* =========================================================
   TEXT STYLING
========================================================= */
.dataset-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.dataset-item p {
  font-size: 1rem;
  color: #444;
  font-weight: 400;
  box-sizing: border-box;
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
  font-family: DM Sans, sans-serif, system-ui, Helvetica, Arial;
}

.dataset-item .organization {
  font-size: 16px;
  color: #666;
  font-weight: 400;
  font-family: DM Sans, sans-serif, system-ui, Helvetica, Arial;
}

/* =========================================================
   FORCE REMOVE FORMAT BADGE / WHITE BOX
========================================================= */

/* Kill label / badge UI */
.dataset-item .label,
.dataset-item .label-default,
.dataset-item .badge,
.dataset-item .resource-format,
.dataset-item .resource-item .label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;

  font-weight: 600 !important;
  color: #666 !important;
  text-transform: uppercase;
}

/* Remove white bars behind format list */
.dataset-item .resource-item,
.dataset-item .resource-list,
.dataset-item .resource-list li {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Ensure resource block inherits blue card */
.dataset-item * {
  background-color: transparent !important;
}

/* =========================================================
   BUTTON CLEAN
========================================================= */
.btn,
button {
  border-radius: 6px;
  border: none;
}

.dataset-heading a {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: DM Sans, sans-serif, system-ui, Helvetica, Arial;
   color: #1377C8 !important;
   display: flex;
  justify-content: space-between;
  align-items: center;
}

.dataset-item .last-updated {
    display: block !important;
    color: red !important; /* easily visible */
    font-size: 1rem !important;
    font-size: 0.75rem;
    text-align: right;
    margin: 0;
    align-self: end;
}


