
/* =========================
   STUDENTS PLACEMENT SLIDER
   ========================= */

.yusra-students-slider-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 12px 0 15px;
    position: relative;
}

.yusra-students-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 26px;
    width: max-content;

    animation: studentsScroll 38s linear infinite;

    /* Important for smooth animation */
    will-change: transform;
}

/* Pause when mouse is over slider */
.yusra-students-slider-container:hover .yusra-students-grid {
    animation-play-state: paused;
}


/* =========================
   CARD
   ========================= */

.yusra-student-card {
    flex: 0 0 300px;
    width: 300px;
    max-width: 100%;

    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
}

/* Card hover */
.yusra-student-card:hover {
    transform: none;
    border-color: #ff4b20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}


/* =========================
   IMAGE SECTION
   ========================= */

.yusra-card-image {
    width: 100%;
    height: 220px;

    position: relative;
    overflow: hidden;

    background: #f5f5f5;
}

.yusra-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================
   LPA BADGE
   ========================= */

.yusra-lpa-badge {
    position: absolute;

    top: 13px;
    right: 12px;

    background: #ff4b20;
    color: #ffffff;

    font-size: 18px;
    font-weight: 700;

    padding: 9px 15px;

    border-radius: 25px;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);

    z-index: 2;
}


/* =========================
   LOCATION BADGE
   ========================= */

.yusra-location-badge {
    position: absolute;

    left: 18px;
    bottom: 13px;

    background: #272727;
    color: #ffffff;

    font-size: 17px;
    font-weight: 600;

    padding: 9px 18px;

    border-radius: 25px;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);

    z-index: 2;
}


/* =========================
   CARD CONTENT
   ========================= */

.yusra-card-content {
    padding: 10px 20px 15px;
    min-height: 240px;

    background: #ffffff;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    min-width: 0;
}


/* =========================
   NAME
   ========================= */

.yusra-student-name {
    margin: 0;

    font-size: 25px;
    line-height: 1.25;

    font-weight: 700;

    color: #171717;
}


/* =========================
   ROLE
   ========================= */

.yusra-student-role {
    margin-top: 2px;

    font-size: 22px;
    line-height: 1.25;

    font-weight: 700;

    color: #c84d12;

    white-space: nowrap;
}


/* =========================
   INFO
   ========================= */

.yusra-student-info {
    margin-top: 10px;

    padding-top: 10px;

    border-top: 1px solid #f0cdb8;

    min-width: 0;
}

.yusra-student-info p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
    color: #303030;

    overflow-wrap: break-word;
}

.yusra-student-info p span {
    color: #777777;
    margin-right: 3px;
}


/* =========================
   BATCH PILLS
   ========================= */

.yusra-batch-info {
    width: 100%;
    max-width: 100%;

    margin-bottom: 10px;

    padding: 10px 15px;

    background: #fff6ec;

    border: 1px solid #f0e4d7;
    border-radius: 5px;

    color: #292929;

    font-size: 17px;
    font-weight: 600;

    line-height: 1.25;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    box-sizing: border-box;
}


/* =========================
   READ MORE BUTTON
   ========================= */

.yusra-read-more-btn {
    margin-top: auto;
    width: 100%;
    max-width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 55px;
    padding: 10px 12px;

    background: #351806;
    color: #ffffff;

    border-radius: 12px;

    text-decoration: none;

    font-size: 17px;
    font-weight: 700;

    box-sizing: border-box;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.yusra-read-more-btn:hover {
    background: #e8461e;
    transform: none;
}


/* =========================
   INFINITE SMOOTH MOVEMENT
   ========================= */

@keyframes studentsScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 13px));
    }

}


/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {
    .yusra-students-slider-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .yusra-student-card {
        flex: 0 0 290px;
        width: 290px;
        max-width: calc(100vw - 20px);
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {
    .yusra-students-slider-container {
        width: 100%;
        margin: 0 auto;
        padding: 8px 10px 15px;
        overflow: hidden;
    }

    .yusra-students-grid {
        gap: 16px;
        animation-duration: 30s;
    }

    .yusra-student-card {
        flex: 0 0 calc(100vw - 20px);
        width: calc(100vw - 20px);
        max-width: calc(60vw - 20px);
        border-radius: 13px;
    }

    .yusra-card-image {
        height: 185px;
    }

    .yusra-card-content {
        padding: 16px 18px 16px;
        min-height: 250px;
    }

    .yusra-student-name {
        font-size: 21px;
    }

    .yusra-student-role {
        font-size: 19px;
        line-height: 1.25;
        white-space: nowrap;
    }

    .yusra-student-info {
        margin-top: 16px;
        padding-top: 16px;
    }

    .yusra-student-info p {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .yusra-batch-info {
        font-size: 14px;
        padding: 8px 11px;
        margin-bottom: 12px;
    }

    .yusra-read-more-btn {
        min-height: 52px;
        font-size: 16px;
        border-radius: 11px;
    }

    .yusra-lpa-badge {
        font-size: 15px;
        padding: 7px 12px;
    }

    .yusra-location-badge {
        font-size: 15px;
        padding: 7px 13px;
    }
}



@media (max-width: 425px) {

    .yusra-students-slider-container {
        width: 100%;
        margin: 0 auto;
        padding: 8px 10px 12px;
        overflow: hidden;
    }

    .yusra-students-grid {
        gap: 14px;
        animation-duration: 30s;
    }

    /* CARD */
    .yusra-student-card {
        flex: 0 0 calc(100vw - 30px);
        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
        border-radius: 12px;
    }

    /* IMAGE */
    .yusra-card-image {
        height: 165px;
    }

    /* LPA */
    .yusra-lpa-badge {
        top: 9px;
        right: 9px;
        font-size: 14px;
        padding: 6px 10px;
    }

    /* LOCATION */
    .yusra-location-badge {
        left: 11px;
        bottom: 9px;
        font-size: 14px;
        padding: 6px 11px;
    }

    /* CONTENT */
    .yusra-card-content {
        padding: 13px 15px 14px;
        min-height: 225px;
    }

    /* NAME */
    .yusra-student-name {
        font-size: 20px;
        line-height: 1.2;
    }

    /* ROLE */
    .yusra-student-role {
        margin-top: 2px;
        font-size: 18px;
        line-height: 1.2;
        white-space: nowrap;
    }

    /* INFO */
    .yusra-student-info {
        margin-top: 12px;
        padding-top: 12px;
    }

    .yusra-student-info p {
        margin: 0 0 10px;
        font-size: 14px;
        line-height: 1.35;
    }

    /* BATCH */
    .yusra-batch-info {
        margin-bottom: 9px;
        padding: 7px 10px;
        font-size: 13px;
        line-height: 1.2;
    }

    /* BUTTON */
    .yusra-read-more-btn {
        min-height: 48px;
        padding: 9px 10px;
        border-radius: 10px;
        font-size: 15px;
    }
}