/* Internship list card — internship_list.php (+ shared mobile helpers) */

.ia-card-wrap {
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    box-sizing: border-box;
    float: none !important;
    clear: both;
}

.ia-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 16px 18px;
    box-sizing: border-box;
    overflow: hidden;
    float: none !important;
}

.ia-card__layout {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    margin: 0;
    padding: 0;
    table-layout: fixed;
    float: none !important;
}

.ia-card__main {
    width: 78%;
    vertical-align: top;
    padding: 0 16px 0 0;
    border: 0;
    float: none !important;
}

.ia-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2d3d;
    line-height: 1.35;
    text-transform: uppercase;
    word-break: break-word;
    margin: 0 0 6px;
}

.ia-card__org {
    font-size: 14px;
    font-weight: 600;
    color: #2b2b2b;
    line-height: 1.3;
    margin: 0 0 12px;
    word-break: break-word;
}

.ia-card__grid {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    margin: 0;
    padding: 0;
    table-layout: fixed;
    float: none !important;
}

.ia-card__cell {
    width: 25%;
    vertical-align: top;
    padding: 8px 10px 8px 0;
    border: 0;
    float: none !important;
    box-sizing: border-box;
}

.ia-card__cell--empty {
    width: 25%;
    padding: 8px 10px 8px 0;
    border: 0;
    float: none !important;
}

.ia-card__cell-inner {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    margin: 0;
    padding: 0;
}

.ia-card__icon-col {
    width: 18px;
    vertical-align: top;
    padding: 1px 6px 0 0;
    border: 0;
}

.ia-card__icon {
    color: #ff6c00;
    font-size: 14px;
    line-height: 1;
}

.ia-card__text-col {
    vertical-align: top;
    padding: 0;
    border: 0;
}

.ia-card__label {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
    line-height: 1.2;
}

.ia-card__value {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    word-break: break-word;
}

.ia-card__aside {
    width: 22%;
    vertical-align: top;
    padding: 0 0 0 14px;
    border: 0;
    border-left: 1px solid #eef2f6;
    float: none !important;
}

.ia-card__aside-inner {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    margin: 0;
    padding: 0;
    min-height: 170px;
    float: none !important;
}

.ia-card__aside-top {
    text-align: center;
    vertical-align: top;
    padding: 0 0 10px;
    border: 0;
}

.ia-card__aside-bottom {
    text-align: center;
    vertical-align: bottom;
    padding: 8px 0 0;
    border: 0;
}

.ia-card__logo-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
    border: 0;
    background: #b91c1c;
    padding: 0;
    box-sizing: border-box;
    line-height: 0;
}

.ia-card__logo-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    transform: scale(1.28);
    transform-origin: center center;
}

.ia-card__logo-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    margin: 0;
    background: transparent;
}

.ia-card__enrolled {
    font-size: 12px;
    font-weight: 700;
    color: #0d2340;
    line-height: 1.3;
    margin-bottom: 8px;
}

.ia-card__btn {
    display: inline-block !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    background: #286bda !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    border: 0 !important;
    box-shadow: none !important;
    white-space: normal;
    text-align: center;
}

.ia-card__btn:hover,
.ia-card__btn:focus {
    background: #1f5bb8 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.ia-card__status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.ia-card__status--active {
    background: #68fa5e;
    color: #1f700b;
}

.ia-card__status--expired {
    background: #ffc9c9;
    color: #f10d05;
}

/* ===== Internship list page layout ===== */
.internshipListPage .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.internshipFilterBar.row {
    margin-left: 0;
    margin-right: 0;
}

.internshipFilterBar .internshipSearchWrap,
.internshipFilterBar .internshipFilterSelects {
    float: none;
    padding-left: 0;
    padding-right: 0;
}

.internshipSearchField {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 12px;
}

.internshipSearchField .internshipSearchInput {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 20px 0 0 20px !important;
}

.internshipSearchField .btnSearchDesign {
    flex: 0 0 52px;
    border-radius: 0 20px 20px 0 !important;
}

@media (min-width: 992px) {
    .internshipFilterBar > [class*="col-"]:first-child .internshipSearchField {
        padding-right: 8px;
    }

    .internshipFilterBar > [class*="col-"]:last-child .internshipSearchField {
        padding-left: 8px;
        margin-bottom: 0;
    }
}

.internshipFilterSelects select {
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

.internshpListDList {
    width: 100%;
    float: none;
    clear: both;
    overflow: hidden;
}

.pagination-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pagination-wrapper .pagination {
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== Tablet & mobile: internship card ===== */
@media only screen and (max-width: 991px) {
    .ia-card {
        padding: 14px 12px;
    }

    .ia-card__layout,
    .ia-card__layout > tbody,
    .ia-card__layout > tbody > tr {
        display: block;
        width: 100%;
    }

    .ia-card__main,
    .ia-card__aside {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .ia-card__main {
        padding: 0 0 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid #eef2f6;
    }

    .ia-card__aside {
        border-left: 0;
        padding: 0;
    }

    .ia-card__aside-inner,
    .ia-card__aside-inner > tbody,
    .ia-card__aside-inner > tbody > tr {
        display: block;
        width: 100%;
        min-height: 0;
    }

    .ia-card__aside-top,
    .ia-card__aside-bottom {
        display: block;
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .ia-card__aside-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 10px;
    }

    .ia-card__grid {
        table-layout: auto;
    }

    .ia-card__grid,
    .ia-card__grid > tbody {
        display: block;
        width: 100%;
    }

    .ia-card__grid > tbody > tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .ia-card__cell {
        display: block;
        width: 50% !important;
        flex: 0 0 50%;
        max-width: 50%;
        padding: 8px 10px 8px 0;
        box-sizing: border-box;
    }

    .ia-card__cell--empty {
        display: none !important;
    }
}

@media only screen and (max-width: 767px) {
    .internshipListPage {
        padding-top: 16px;
    }

    .internshipListPage .section_heading h2 {
        font-size: 22px;
        line-height: 1.3;
        padding: 0 4px;
    }

    .internshipFilterBar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        margin-bottom: 14px;
    }

    .internshipFilterBar .internshipSearchWrap,
    .internshipFilterBar .internshipFilterSelects {
        width: 100% !important;
        max-width: 100%;
        margin-bottom: 10px;
    }

    .internshipSearchField {
        display: flex;
        align-items: stretch;
        width: 100%;
        margin-bottom: 10px;
    }

    .internshipSearchField .internshipSearchInput {
        width: calc(100% - 52px) !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    .internshipFilterSelects select {
        width: 100% !important;
        margin-bottom: 8px;
    }

    .internshpListDList {
        margin-top: 16px;
    }

    .ia-card__title {
        font-size: 14px;
    }

    .ia-card__org {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .ia-card__grid > tbody > tr {
        display: block;
    }

    .ia-card__cell {
        width: 100% !important;
        max-width: 100%;
        flex: none;
        padding: 8px 0;
        border-bottom: 1px solid #f3f5f8;
    }

    .ia-card__cell:last-child {
        border-bottom: 0;
    }

    .ia-card__logo-wrap {
        width: 64px;
        height: 64px;
    }

    .ia-card__logo-img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        transform: scale(1.28);
    }

    .ia-card__logo-frame {
        width: 100%;
        height: 100%;
    }

    .ia-card__btn {
        width: 100% !important;
        max-width: 220px;
        padding: 10px 16px !important;
    }
}

@media only screen and (max-width: 480px) {
    .internshipListPage .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .ia-card {
        padding: 12px 10px;
        border-radius: 8px;
    }
}
