/* ============================================================
   DATASETS PAGE
   ============================================================ */

/* ----- PAGE HEADER (Title & Breadcrumb) ----- */
.datasets-title {
    padding: 8.8rem 0 3rem;
    background: linear-gradient(125deg, #eef8f5, #f8f4ec);
}

.datasets-title .breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 1.25rem;
}

.datasets-title .breadcrumb a {
    color: var(--teal);
    text-decoration: none;
}

.datasets-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 700;
    margin: 0.45rem 0;
}

.datasets-title p {
    color: var(--muted);
    margin: 0;
}

/* ----- SOURCE PANEL (Sidebar / Info Box) ----- */
.source-panel {
    top: 92px;
    padding: 1.65rem;
    background: #f6faf8;
    border: 1px solid #dceae5;
    border-radius: 15px;
}

.source-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    background: var(--teal);
    color: #fff;
    border-radius: 14px;
    font-size: 1.45rem;
    margin-bottom: 1.1rem;
}

.source-panel h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0.55rem 0;
}

.source-panel > p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--muted);
}

.source-meta {
    padding-top: 0.8rem;
}

.source-meta > div {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    border-top: 1px solid #dce8e4;
    padding: 0.7rem 0;
    font-size: 0.8rem;
}

.source-meta i {
    color: var(--teal);
    font-size: 1rem;
}

.source-meta a {
    color: var(--teal);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.source-meta strong {
    display: block;
    color: var(--ink);
    font-size: 0.9rem;
}

.source-panel h6 {
    font-weight: 700;
    font-size: 0.82rem;
}

.related-tags {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.related-tags a {
    font-size: 0.72rem;
    color: var(--teal);
    background: #dff2ec;
    padding: 0.35rem 0.55rem;
    border-radius: 30px;
    text-decoration: none;
}

/* ----- RESULTS HEADER & FILTERS ----- */
.results-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0.4rem 0 1.2rem;
}

.dataset-filters {
    border: 1px solid #e1ece8;
    background: #fff;
    padding: 1rem;
    border-radius: 13px;
    margin-bottom: 1.15rem;
}

.filter-search {
    display: flex;
    align-items: center;
    border: 1px solid #d7e4df;
    border-radius: 8px;
}

.filter-search i {
    padding-left: 0.8rem;
    color: var(--muted);
}

.filter-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0.65rem 0.8rem;
    color: var(--ink);
}

.dataset-filters .btn-link {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

/* ----- DATASET LIST / ITEMS ----- */
.dataset-results article {
    transition: background 0.15s;
}

.dataset-results article:hover {
    background: #f8fcfa;
}

.dataset-tags {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}

.dataset-tags span {
    font-size: 0.65rem;
    color: #46716a;
    background: #eaf4f0;
    padding: 0.18rem 0.4rem;
    border-radius: 20px;
}

/* ----- EMPTY STATE ----- */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    border: 1px dashed #cdded8;
    border-radius: 14px;
    background: #f8fcfa;
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--teal);
}

.empty-state h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.7rem;
}

.empty-state p {
    font-size: 0.84rem;
    color: var(--muted);
}

/* ----- PAGINATION & LINKS ----- */
.pagination .page-link {
    color: var(--teal);
    font-size: 0.8rem;
}

.pagination .active .page-link {
    background: var(--teal);
    border-color: var(--teal);
}

.dataset-title-link {
    color: var(--ink);
    text-decoration: none;
}

.dataset-title-link:hover {
    color: var(--teal);
    text-decoration: underline;
}