* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f6fc;
    color: #1f2937;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 55px 45px;
}

.header {
    text-align: center;
    margin-bottom: 27px;
}

.header h1 {
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
    color: #17233b;
}

.header p {
    margin-top: 8px;
    font-size: 7px;
    color: #8b95a7;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.top-bar input {
    width: 150px;
    height: 25px;
    padding: 0 10px;
    border: 1px solid #dce2eb;
    border-radius: 4px;
    outline: none;
    background: white;
    font-size: 7px;
    color: #555;
}

.top-bar input::placeholder {
    color: #a4aab4;
}

.explore-btn {
    border: none;
    background: #7c4dff;
    color: white;
    height: 25px;
    padding: 0 13px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 600;
    cursor: pointer;
}

.mentor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.mentor-card {
    background: #ffffff;
    border: 1px solid #e3e7ed;
    border-radius: 7px;
    overflow: hidden;
    padding: 9px;
    min-width: 0;
}

.mentor-card > img,
.image-wrapper {
    width: 100%;
    height: 157px;
    border-radius: 6px;
}

.mentor-card > img {
    object-fit: cover;
    display: block;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.new-badge {
    position: absolute;
    left: 8px;
    bottom: 7px;
    background: #23bd74;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 6px;
}



.info {
    padding-top: 8px;
}

.info h3 {
    font-size: 10px;
    font-weight: 700;
    color: #202b3d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verified {
    color: #24b879;
    font-size: 7px;
}

.job {
    font-size: 7px;
    color: #7d8592;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.details {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: #8b929d;
    font-size: 5.5px;
    white-space: nowrap;
}

.details span {
    display: inline-block;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    gap: 5px;
}

.price-row small {
    display: block;
    font-size: 6px;
    color: #8d95a1;
    font-weight: 400;
}

.price-row strong {
    display: block;
    margin-top: 2px;
    font-size: 8px;
    color: #303847;
    font-weight: 700;
}

.price-row strong small {
    display: inline;
    font-size: 6px;
}

.price-row button {
    height: 24px;
    padding: 0 8px;
    border: 1px solid #cdd4df;
    background: white;
    color: #596273;
    border-radius: 4px;
    font-size: 6px;
    white-space: nowrap;
    cursor: pointer;
}

.price-row button:hover {
    background: #f7f7ff;
}

.price-row .trial-btn {
    border-color: #8c69e8;
    color: #7047d8;
}

.mentor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}


@media (max-width: 800px) {

    .mentor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 25px 30px 40px;
    }

    .mentor-card > img,
    .image-wrapper {
        height: 220px;
    }
}


@media (max-width: 500px) {

    .mentor-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 25px 15px;
    }

    .mentor-card > img,
    .image-wrapper {
        height: 280px;
    }

    .header h1 {
        font-size: 19px;
    }

    .top-bar {
        gap: 10px;
    }
}