section {
    padding: 60px 5%;
    background: #14144d;
}
.mentors-header {
    text-align: center;
    margin-bottom: 60px;

}

.mentors-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    
}

.mentors-header p {
    font-size: 15px;
    color: #ffffff;
}
.mentor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 35px;
    justify-content: center;
}

/* Center second row (cards 5–7) */

.mentor-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    height: 550px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.mentor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
.mentor-card img {
    width: 100%;
    aspect-ratio: 3 / 4;   /* 🔥 key fix */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}


.mentor-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    text-align: center;
}

.mentor-card span {
    font-size: 14px;
    color: #666;
    text-align: center;
    
}

@media (max-width: 600px) {
    .mentor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .mentor-card {
        height: auto;
        padding: 18px;
    }

    .mentor-card img {
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }

    .mentors-header h2 {
        font-size: 24px;
    }

    .mentors-header p {
        font-size: 14px;
    }
}


.btn {
    display: block;
    width: fit-content;
    margin: 30px auto;          /* centers the button */
    padding: 12px 34px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.primary-btn {
    background-color: #0343cc;
    color: #ffffff;
}

.primary-btn:hover {
    background-color: #022f99;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
