.student-profile-page {
    padding: 50px 0 70px;
    color: #263247;
}

.student-profile-heading {
    margin-bottom: 24px;
    text-align: center;
}

.student-profile-heading h1 {
    margin: 0 0 8px;
    color: #051939;
    font-size: 32px;
    font-weight: 700;
}

.student-profile-heading p {
    margin: 0;
    color: #687386;
    font-size: 15px;
}

.student-search-panel {
    margin-bottom: 30px;
    border: 1px solid #e5e9f0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.student-search-panel .panel-heading {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e9f0;
    background: #fafafa;
}

.student-search-panel .panel-title {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.student-search-panel .panel-title i {
    margin-right: 7px;
    color: var(--thm-primary);
}

.student-search-panel .panel-body {
    padding: 22px 20px 8px;
}

.student-search-panel .panel-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e9f0;
    background: #fafafa;
}

.student-search-form label {
    display: block;
    margin-bottom: 7px;
    color: #263247;
    font-size: 14px;
    font-weight: 600;
}

.student-search-form .form-control {
    width: 100%;
    height: 44px;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    background-color: #fff;
    color: #263247;
    font-size: 15px;
}

.student-search-form .form-control:focus {
    border-color: var(--thm-primary);
    box-shadow: 0 0 0 3px rgba(5, 25, 57, .08);
}

.student-search-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.student-search-actions .btn {
    min-width: 130px;
    padding: 8px 18px;
    border-color: #d4d8dd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.student-search-actions .btn:hover,
.student-search-actions .btn:focus {
    border-color: var(--thm-primary);
    background: var(--thm-primary);
    color: #fff;
}

.student-search-reset {
    color: #687386;
    font-size: 14px;
    font-weight: 600;
}

.student-result-count {
    margin-bottom: 14px;
    color: #687386;
    font-size: 14px;
}

.student-profile-card {
    display: flex;
    min-height: 250px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(5, 25, 57, .07);
}

.student-profile-photo {
    width: 190px;
    min-width: 190px;
    background: #eef2f7;
}

.student-profile-photo img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.student-profile-content {
    flex: 1;
    min-width: 0;
    padding: 24px;
}

.student-profile-title span {
    color: var(--thm-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.student-profile-title h2 {
    margin: 4px 0 18px;
    color: #051939;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}

.student-profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 0;
}

.student-profile-details div {
    min-width: 0;
}

.student-profile-details dt {
    margin-bottom: 2px;
    color: #8791a1;
    font-size: 12px;
    font-weight: 600;
}

.student-profile-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #263247;
    font-size: 14px;
    font-weight: 600;
}

.student-profile-empty {
    padding: 48px 20px;
    border: 1px dashed #ccd4df;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.student-profile-empty i {
    margin-bottom: 12px;
    color: #aab3c0;
    font-size: 38px;
}

.student-profile-empty h2 {
    margin: 0 0 6px;
    color: #263247;
    font-size: 20px;
}

.student-profile-empty p {
    margin: 0;
    color: #7b8595;
    font-size: 14px;
}

@media (max-width: 767px) {
    .student-profile-page {
        padding: 30px 0 45px;
    }

    .student-profile-heading h1 {
        font-size: 26px;
    }

    .student-search-panel .panel-body {
        padding: 18px 16px 4px;
    }

    .student-search-panel .panel-heading,
    .student-search-panel .panel-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .student-profile-card {
        display: block;
    }

    .student-profile-photo {
        width: 100%;
        height: 280px;
    }

    .student-profile-photo img {
        min-height: 0;
    }

    .student-profile-content {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .student-profile-photo {
        height: 240px;
    }

    .student-profile-details {
        grid-template-columns: 1fr;
    }

    .student-search-actions {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }
}
