/* =====================================
   MAIN
===================================== */

.dhs-directory {
    max-width: 1250px;
    margin: 40px auto;
    padding: 0 20px;
}


/* =====================================
   HEADER
===================================== */

.dhs-directory-header {
    text-align: center;
    margin-bottom: 32px;
}

.dhs-directory-icon {
    font-size: 42px;
    margin-bottom: 5px;
}

.dhs-directory-header h1 {
    margin: 0 0 8px;
    font-size: 38px;
    font-weight: 700;
}

.dhs-directory-header p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}


/* =====================================
   FILTER BOX
===================================== */

.dhs-directory-filter-box {

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1fr
        auto;

    gap: 14px;

    align-items: end;

    padding: 24px;

    margin-bottom: 25px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f0f7ff,
            #f7f2ff,
            #effcf8
        );

    border: 1px solid #dbe4f0;

    box-shadow:
        0 8px 30px rgba(
            0,
            0,
            0,
            0.05
        );
}


/* =====================================
   FILTER FIELD
===================================== */

.dhs-filter-field label {

    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 700;

    color: #26344a;
}


.dhs-filter-field input,
.dhs-filter-field select {

    width: 100%;

    height: 46px;

    padding: 0 14px;

    border-radius: 10px;

    border: 1px solid #d7deea;

    background: #ffffff;

    font-size: 14px;

    outline: none;

    transition: all .2s ease;

    box-sizing: border-box;
}


.dhs-filter-field input:focus,
.dhs-filter-field select:focus {

    border-color: #4f8cff;

    box-shadow:
        0 0 0 3px
        rgba(
            79,
            140,
            255,
            .12
        );
}


/* =====================================
   SEARCH FIELD
===================================== */

.dhs-search-field input {

    border-left:
        4px solid #4f8cff;
}


/* =====================================
   STATUS
===================================== */

.dhs-filter-status {

    display: flex;

    align-items: center;

    gap: 8px;
}


.dhs-search-loader {

    display: none;

    font-size: 12px;

    color: #4f8cff;

    white-space: nowrap;
}


.dhs-search-loader.active {

    display: inline-block;
}


.dhs-reset-btn {

    height: 46px;

    padding: 0 18px;

    border-radius: 10px;

    border: 1px solid #d5dce8;

    background: #ffffff;

    color: #374151;

    cursor: pointer;

    font-weight: 600;

    transition: all .2s ease;
}


.dhs-reset-btn:hover {

    background: #f3f6fa;

    border-color: #9ca3af;
}


/* =====================================
   RESULT COUNT
===================================== */

.dhs-directory-result {

    margin-bottom: 18px;

    font-size: 15px;

    color: #555;
}


.dhs-directory-result strong {

    color: #2563eb;

    font-size: 18px;
}


/* =====================================
   4 COLUMN GRID
===================================== */

.dhs-alumni-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    align-items: start;
}


/* =====================================
   CARD
===================================== */

.dhs-alumni-card {

    overflow: hidden;

    background: #ffffff;

    border-radius: 15px;

    border: 1px solid #e5e7eb;

    box-shadow:
        0 5px 20px
        rgba(
            0,
            0,
            0,
            .06
        );

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.dhs-alumni-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 15px 35px
        rgba(
            0,
            0,
            0,
            .11
        );
}


/* =====================================
   PHOTO
===================================== */

.dhs-alumni-photo {

    width: 100%;

    height: 245px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f1f5f9,
            #ffffff
        );

    border-bottom:
        1px solid #edf0f4;
}


.dhs-alumni-photo img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    object-position: center;

    padding: 8px;

    box-sizing: border-box;
}


.dhs-no-photo {

    width: 90px;

    height: 90px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 38px;

    background: #eef2ff;
}


/* =====================================
   CARD CONTENT
===================================== */

.dhs-alumni-content {

    padding: 18px;
}


.dhs-alumni-content h2 {

    margin: 0 0 5px;

    font-size: 19px;

    line-height: 1.3;

    font-weight: 700;

    color: #111827;
}


.dhs-member-id {

    margin-bottom: 15px;

    font-size: 12px;

    color: #718096;
}


/* =====================================
   COLORFUL META
===================================== */

.dhs-alumni-meta {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 6px;

    margin-bottom: 16px;
}


.dhs-alumni-meta div {

    padding: 9px 5px;

    border-radius: 8px;

    text-align: center;
}


.dhs-alumni-meta .meta-batch {

    background: #eef5ff;
}

.dhs-alumni-meta .meta-ssc {

    background: #f4efff;
}

.dhs-alumni-meta .meta-blood {

    background: #fff1f2;
}


.dhs-alumni-meta span {

    display: block;

    margin-bottom: 3px;

    font-size: 10px;

    color: #64748b;

    font-weight: 600;
}


.dhs-alumni-meta strong {

    font-size: 13px;

    color: #1e293b;
}


/* =====================================
   DETAILS
===================================== */

.dhs-alumni-details {

    border-top:
        1px solid #edf0f4;

    padding-top: 12px;
}


.dhs-alumni-details p {

    display: grid;

    grid-template-columns:
        85px 1fr;

    gap: 5px;

    margin: 7px 0;

    font-size: 12px;

    line-height: 1.4;

    color: #475569;
}


.dhs-alumni-details p span {

    color: #64748b;

    font-weight: 700;
}


/* =====================================
   LOADING
===================================== */

.dhs-directory-loading {

    grid-column:
        1 / -1;

    padding: 60px;

    text-align: center;
}


.dhs-spinner {

    width: 35px;

    height: 35px;

    margin:
        0 auto 12px;

    border:
        3px solid #e5e7eb;

    border-top-color:
        #4f8cff;

    border-radius: 50%;

    animation:
        dhs-spin .7s linear infinite;
}


@keyframes dhs-spin {

    to {
        transform:
            rotate(360deg);
    }

}


/* =====================================
   AJAX LOADING
===================================== */

#dhs-directory-results.is-loading {

    opacity: .55;

    transition:
        opacity .2s ease;
}


/* =====================================
   NO RESULTS
===================================== */

.dhs-no-results {

    grid-column:
        1 / -1;

    padding: 60px 20px;

    text-align: center;

    border:
        1px solid #e5e7eb;

    border-radius: 14px;

    background: #ffffff;
}


.dhs-no-results-icon {

    font-size: 42px;

    margin-bottom: 10px;
}


.dhs-no-results h3 {

    margin: 0 0 8px;

    font-size: 22px;
}


.dhs-no-results p {

    margin: 0;

    color: #718096;
}


/* =====================================
   TABLET
===================================== */

@media (max-width: 1100px) {

    .dhs-alumni-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

    .dhs-directory-filter-box {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 700px) {

    .dhs-directory {

        padding: 0 12px;

    }

    .dhs-directory-header h1 {

        font-size: 30px;

    }

    .dhs-directory-filter-box {

        grid-template-columns: 1fr;

        padding: 18px;

    }

    .dhs-alumni-grid {

        grid-template-columns: 1fr;

    }

    .dhs-alumni-photo {

        height: 280px;

    }

}