/* =========================================================
   DINGODOTS COLLECTION
   Express Entry List - Custom Template
   ========================================================= */


/* ---------------------------------------------------------
   COLLECTION WRAPPER / HEADINGS
   --------------------------------------------------------- */

.dingo-collection-heading {
    margin: 0 0 12px;
    font-weight: 700;
}

.dingo-collection-description {
    margin: 0 0 28px;
    color: #666;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   SEARCH AREA
   --------------------------------------------------------- */

.dingo-collection-search {
    margin-bottom: 32px;
    padding: 24px;
    background: #f7f5f8;
    border: 1px solid #e6e1e8;
    border-radius: 12px;
}

.dingo-collection-search .form-control,
.dingo-collection-search .form-select {
    min-height: 44px;
    border: 1px solid #d7d1da;
    border-radius: 7px;
    background: #fff;
}

.dingo-collection-search .form-control:focus,
.dingo-collection-search .form-select:focus {
    border-color: #8a668f;
    box-shadow: 0 0 0 3px rgba(138, 102, 143, 0.12);
}

.dingo-collection-search
.ccm-block-express-entry-list-advanced-search {
    color: #76547c;
    font-weight: 600;
    text-decoration: none;
}

.dingo-collection-search
.ccm-block-express-entry-list-advanced-search:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   ADVANCED SEARCH / FILTER GRID
   --------------------------------------------------------- */

.dingo-advanced-search {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid #ded8e1;
}

.dingo-search-field {
    min-width: 0;
    margin: 0;
}

.dingo-search-field h4 {
    margin: 0 0 6px;
    color: #29262b;
    font-size: 14px;
    font-weight: 700;
}

.dingo-search-field .form-control,
.dingo-search-field .form-select,
.dingo-search-field select,
.dingo-search-field input {
    width: 100%;
}

.dingo-search-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.dingo-search-submit .btn-primary {
    min-width: 110px;
    padding: 10px 22px;
    border: 0;
    border-radius: 7px;
    background: #76547c;
    font-weight: 600;
}

.dingo-search-submit .btn-primary:hover,
.dingo-search-submit .btn-primary:focus {
    background: #604365;
}


/* ---------------------------------------------------------
   COLLECTION GRID
   --------------------------------------------------------- */

.dingo-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
}


/* ---------------------------------------------------------
   COLLECTION CARD
   --------------------------------------------------------- */

.dingo-collection-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4dfe6;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(22, 18, 24, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dingo-collection-card:hover {
    transform: translateY(-3px);
    border-color: #cfc2d2;
    box-shadow: 0 8px 24px rgba(22, 18, 24, 0.11);
}
.dingo-collection-card {
    position: relative;
    cursor: pointer;
}

.dingo-card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: 12px;
}

.dingo-card-link:focus-visible {
    outline: 3px solid #76547c;
    outline-offset: 3px;
}

.dingo-collection-card:hover .dingo-card-title {
    color: #76547c;
}


/* ---------------------------------------------------------
   CARD IMAGE
   --------------------------------------------------------- */

.dingo-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f3f6;
    border-bottom: 1px solid #ebe7ec;
}

.dingo-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.dingo-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: #8a858d;
    font-size: 14px;
    text-align: center;
}


/* ---------------------------------------------------------
   CARD CONTENT
   --------------------------------------------------------- */

.dingo-card-content {
    padding: 18px;
}

.dingo-card-type {
    display: inline-block;
    margin-bottom: 9px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eee8f0;
    color: #694b70;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dingo-card-title {
    margin: 0;
    color: #242126;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.dingo-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #6f6971;
    font-size: 14px;
    line-height: 1.4;
}

.dingo-card-meta-separator {
    color: #aaa3ac;
}


/* ---------------------------------------------------------
   PAGINATION
   --------------------------------------------------------- */

.dingo-collection-pagination {
    margin-top: 36px;
}

.dingo-collection-pagination .pagination {
    justify-content: center;
}


/* ---------------------------------------------------------
   EMPTY RESULTS
   --------------------------------------------------------- */

.dingo-collection-empty {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid #e4dfe6;
    border-radius: 10px;
    background: #f8f6f8;
    color: #666;
    text-align: center;
}


/* ---------------------------------------------------------
   TABLET / SMALL DESKTOP
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .dingo-collection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

}


/* ---------------------------------------------------------
   SMALL TABLET
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .dingo-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .dingo-advanced-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dingo-collection-search {
        padding: 18px;
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 520px) {

    .dingo-collection-grid {
        grid-template-columns: 1fr;
    }

    .dingo-advanced-search {
        grid-template-columns: 1fr;
    }

    .dingo-card-content {
        padding: 16px;
    }

    .dingo-card-title {
        font-size: 19px;
    }

    .dingo-search-submit {
        justify-content: stretch;
    }

    .dingo-search-submit .btn-primary {
        width: 100%;
    }

}