.card_main_div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 24px;
    width: min(1360px, calc(100% - 56px));
    margin: 22px auto 44px;
    padding: 0;
}

#search,
.search input {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(28, 111, 172, 0.45) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    background: #fff;
    color: #111827;
    font-size: 15px;
    outline: 0;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

#search:focus,
.search input:focus {
    border-color: var(--text-color) !important;
    box-shadow: 0 0 0 3px rgba(28, 111, 172, 0.12);
}

.card_border_div {
    width: 100%;
    min-width: 0;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(28, 111, 172, 0.12);
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card_border_div:hover {
    transform: translateY(-3px);
    border-color: rgba(28, 111, 172, 0.24);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.13);
}

.card_sub_div {
    width: 100%;
    min-height: 100%;
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.card_sub_div::before {
    content: "";
    display: block;
    height: 5px;
    background: var(--background-color);
}

.card_sub_div .card_img_div {
    margin: 14px 14px 0;
    width: auto;
    aspect-ratio: 1 / 1;
    height: auto;
    position: relative;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(28, 111, 172, 0.18);
    background:
        linear-gradient(135deg, rgba(28,111,172,0.18), rgba(10,0,92,0.12)),
        #edf4ff;
}

.card_sub_div .card_img_div img {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.card_content_div {
    margin: 0;
    color: #111827;
    background: #fff;
    border-radius: 0;
    padding: 13px 14px 17px;
}

.card_content_div .card_content_title {
    color: #102a43;
    text-align: center;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
    display: block;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
    border: 1px solid rgba(28, 111, 172, 0.10);
    border-radius: 8px;
    margin-bottom: 11px;
    padding: 7px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card_content_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-size: 14px;
    line-height: 1.35;
}

.card_content_row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.card_content_row span:nth-child(1) {
    font-weight: 700;
    color: #111827;
}

.card_content_row span:nth-child(2) {
    color: var(--text-color);
    font-weight: 800;
}

.card_content_row.justify-content-center {
    justify-content: center !important;
    text-align: center;
    padding: 2px 4px;
}

.card_content_row.justify-content-center span {
    color: #4b5563;
    font-weight: 600;
    font-size: 13.5px;
}

@media only screen and (max-width: 768px) {
    .card_main_div {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        width: min(520px, calc(100% - 24px));
        gap: 18px;
        margin: 18px auto 34px;
    }

    .card_sub_div .card_img_div {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .card_content_div .card_content_title {
        font-size: 16px;
    }
}

@media only screen and (max-width: 520px) {
    .card_main_div {
        grid-template-columns: 1fr;
        width: min(330px, calc(100% - 24px));
    }

    .card_sub_div .card_img_div {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    #search,
    .search input {
        height: 42px;
        font-size: 13px;
    }
}
